Pour toute demande d'aide sur des exemples non finalisés, c'est ici.
Les exemples aboutis et intéressants seront ajoutés aux sous-forums qui suivent.
Règles du forum
Pour toute demande d'aide pour la conception (ou la confirmation d'un code) d'une figure Asymptote, c'est ici.
J'invite ceux qui ont régulièrement des questions à poser à aller dans leur panneau de l'utilisateur pour indiquer dans la signature de leurs messages :
- Nom du système d'exploitation (W7 ou Ubuntu 12.04 ou ...)
- Version d'Asymptote et éditeur utilisé pour les figures Asymptote
- Distribution LaTeX et éditeur utilisé pour les tex.
On va gagner du temps dans les réponses !
-
etienne25
- Messages : 26
- Enregistré le : mar. 29 mai 2012, 00:40
Message non lu
par etienne25 » dim. 29 juil. 2012, 03:50
Bonjour,
En compilant l'exemple "Génération d'un cône" trouvé
ici (je prends exactement le code donné, sauf la dernière ligne où j'utilise label(A.pdf(... ), j'obtient le warning suivant:
Code : Tout sélectionner
**** Warning: Default viewing OC config dictionary has /BaseState /OFF
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> MiKTeX pdfTeX-1.40.12 <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
Ça semble être un warning émis par pdflatex, et non par Asymptote (quand on efface toutes les étiquettes de l'image, on perd le warning). L'animation fonctionne quand même, mais j'aime bien les compilations "propres", sans warning. Serait-ce ma distribution LaTeX qui cause problème? Merci à l'avance!
J'utilise
Win 7
Asymptote 2.16
MiKTeX 2.9
-
maurice
- Messages : 262
- Enregistré le : jeu. 25 mars 2010, 13:00
-
Contact :
Message non lu
par maurice » dim. 29 juil. 2012, 09:53
Bonjour,
j'ai le même problème sous linux avec texlive2012 :
Code : Tout sélectionner
$ asy -f pdf -render=4 Cone-gen.asy
**** Warning: Default viewing OC config dictionary has /BaseState /OFF
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> pdfTeX-1.40.13 <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
et en plus, les labels n'apparaissent pas !
- resultat.png (4.29 Kio) Vu 5863 fois
bruno
Doc 3D
Si ça ne marche pas, essayez
la version pdf
Fedora 23 -- Asymptote 2.35 -- TeXlive 2013 -- emacs et/ou gedit
-
maurice
- Messages : 262
- Enregistré le : jeu. 25 mars 2010, 13:00
-
Contact :
Message non lu
par maurice » dim. 29 juil. 2012, 10:00
Avec l'option de compilation -vvv voici ce qui apparait entre deux schéma identiques :
Code : Tout sélectionner
*gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dEPSCrop -dSubsetFonts=true -dEmbedAllFonts=true -dMaxSubsetPct=100 -dPDFSETTINGS=/prepress -dCompatibilityLevel=1.4 -P -dSAFER -dAutoRotatePages=/None -g612x792 -dDEVICEWIDTHPOINTS=176 -dDEVICEHEIGHTPOINTS=209.887 -sOutputFile=Cone-gen+24.pdf Cone-gen+24_.eps
Wrote Cone-gen+24.pdf
Wrote Cone-gen+24.prc
Wrote Cone-gen+24.js
\fontsize{12}{14.4}\selectfont
*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
*\setbox\ASYbox=\hbox{\includemovie[3Dlights=Headlamp,text={\includegraphics[hiresbb]{Cone-gen+24.pdf}},label=,toolbar=true,3Daac=0.000000000000000000,3Dc2c=0.000000000000000000 0.000000000000000000 1.000000000000000000,3Dcoo=0.000000000000000000 0.000000000000000000 -461.327488442433036653,3Droll=0.000000000000000000,3Droo=461.327488442433036653,3Dbg=1.000000000000000000 1.000000000000000000 1.000000000000000000,3Djscript=Cone-gen+24.js]{174.6525pt}{217.81375pt}{Cone-gen+24.prc}}
<Cone-gen+24.pdf, id=56, 176.66pt x 210.6771pt> <use Cone-gen+24.pdf>
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 174.6525pt.
<*> \showthe\wd\ASYbox
*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 217.81375pt.
<*> \showthe\ht\ASYbox
*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont
*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
*\setbox\ASYbox=\hbox{$S$}
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 7.92493pt.
<*> \showthe\wd\ASYbox
*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont
*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
*\setbox\ASYbox=\hbox{$S$}
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 7.92493pt.
<*> \showthe\wd\ASYbox
*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont
*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
*\setbox\ASYbox=\hbox{$A$}
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 8.80824pt.
<*> \showthe\wd\ASYbox
*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont
*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
*\setbox\ASYbox=\hbox{$A$}
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 8.80824pt.
<*> \showthe\wd\ASYbox
*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont
*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
*\setbox\ASYbox=\hbox{$B$}
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 9.53186pt.
<*> \showthe\wd\ASYbox
*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont
*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
*\setbox\ASYbox=\hbox{$B$}
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 9.53186pt.
<*> \showthe\wd\ASYbox
*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont
*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
*\setbox\ASYbox=\hbox{$C$}
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 9.26823pt.
<*> \showthe\wd\ASYbox
*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont
*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
*\setbox\ASYbox=\hbox{$C$}
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 9.26823pt.
<*> \showthe\wd\ASYbox
*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont
*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
*\setbox\ASYbox=\hbox{$D$}
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 10.08214pt.
<*> \showthe\wd\ASYbox
*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont
*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
*\setbox\ASYbox=\hbox{$D$}
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 10.08214pt.
<*> \showthe\wd\ASYbox
*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
*
(Please type a command or say `\end')
*gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dEPSCrop -dSubsetFonts=true -dEmbedAllFonts=true -dMaxSubsetPct=100 -dPDFSETTINGS=/prepress -dCompatibilityLevel=1.4 -P -dSAFER -dAutoRotatePages=/None -g612x792 -dDEVICEWIDTHPOINTS=176 -dDEVICEHEIGHTPOINTS=209.887 -sOutputFile=Cone-gen+27.pdf Cone-gen+27_.eps
Wrote Cone-gen+27.pdf
Wrote Cone-gen+27.prc
Wrote Cone-gen+27.js
Ce qui laisse supposer des problèmes pdflatex mais cela reste du charabia pour moi.
Bruno
Doc 3D
Si ça ne marche pas, essayez
la version pdf
Fedora 23 -- Asymptote 2.35 -- TeXlive 2013 -- emacs et/ou gedit
-
maurice
- Messages : 262
- Enregistré le : jeu. 25 mars 2010, 13:00
-
Contact :
Message non lu
par maurice » dim. 29 juil. 2012, 10:08
En commentant les trois lignes :
Code : Tout sélectionner
// dot("$S$",pS,align=N);
// dot("$A$",pA,align=S); dot("$B$",pB,align=SE);
// dot("$C$",pC,align=NE); dot("$D$",pD,align=NW);
le problème demeure ;
par contre avec l'option noprc, soit en ajoutant la ligne :
Ça travaille, .... s'il n'y a pas de labels ...
Avec les labels, même message d'erreur mais les labels apparaissent cette fois.
Tout cela m'embrouille, il est plus sage d'attendre le passage d'un spécialiste.
Bruno
Doc 3D
Si ça ne marche pas, essayez
la version pdf
Fedora 23 -- Asymptote 2.35 -- TeXlive 2013 -- emacs et/ou gedit
-
GM
- Administrateur du site
- Messages : 1512
- Enregistré le : dim. 7 mars 2010, 14:50
Message non lu
par GM » dim. 29 juil. 2012, 16:29
etienne25 a écrit :Bonjour,
En compilant l'exemple "Génération d'un cône" trouvé
ici (je prends exactement le code donné, sauf la dernière ligne où j'utilise label(A.pdf(... ), j'obtient le warning suivant:
Cela semble lié à des modifications de ghostcript.
Le problème constaté avec la version 9.02-64b n'a pas lieu avec la 8.70-32b que j'ai encore d'installé :
je me suis contenté de changer
en
dans mon config.asy, pour le constater.
Quant à l'explication... aucune idée !
maurice a écrit :il est plus sage d'attendre le passage d'un spécialiste.
Pour ce genre de problème, je ne suis pas sûr qu'il y en ait ici : il faut peut-être à nouveau voir du côté du forum Asymptote officiel... où le problème n'est peut-être même pas encore connu.
Index des fonctions - Exemple de lien donnant le résultat d'une recherche sur les mots 'arc' et 'triple' :
http://asy.marris.fr/indexasy/?filtre=arc triple
Mes configurations (le 24/02/21) :
PC n°1 :
Windows 10 - Asymptote(2.82)+MikTeX2.9 - Editeurs : Notepad++, TeXworks, Visual Studio Code.
PC n°2 :
Ubuntu 20.04LTS - Asymptote(2.67-?? git) + TexLive2020
Mon serveur :
Debian Stretch- Asymptote(2.68-16 git) + TexLive2018
Merci de préciser la votre !