Page 1 sur 1

Probleme avec Ghostscript ?

Posté : ven. 3 juin 2016, 08:34
par XavteX
Bonjour,

Je ne parviens pas à installer Asymptote avec la configuration suivante :

Windows 10
MiKTeX 2.9
Texmaker 4.5
Asymptote 2.21
Ghostscript 9.19
ImageMagick 7.01

Après avoir indiqué les chemins dans Commandes de Texmaker pour Asymptote et Ghostscript.
Je tente une compilation PdfLateX+Asymptote+PdfLateX+Voir Pdf

et j'obtiens le message :
Process started

0 [main] asy 976 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer. Please report this problem to the public mailing list cygwin@cygwin.com

Cannot execute

gswin32c.exe

Please put in a file config.asy: import settings; gs="LOCATION"; where LOCATION specifies the location of Ghostscript. Alternatively, set the environment variable ASYMPTOTE_GS or use the command line option -gs="LOCATION". For further details, see http://asymptote.sourceforge.net/doc/Configuring.html http://asymptote.sourceforge.net/doc/Search-paths.html

C:\Program Files (x86)\Asymptote/plain_shipout.asy

: 82.10: runtime: shipout failed

Process exited with error(s)
le fichier :

Code : Tout sélectionner

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[inline]{asymptote}
\begin{document}
\begin{asy}
size(7cm,0);
pair A, B, C, D;
A=(0,0);
B=(2,1);
C=(2,2);
D=(4,0);
draw(A--B,red);
draw(C--D,blue);
\end{asy}
\end{document}
Voyez-vous où est le problème ?
Merci

Re: Probleme avec Ghostscript ?

Posté : ven. 3 juin 2016, 09:14
par XavteX
Réponse à moi même : il manquait ocg.sty dans le répertoire asymptote créé sous Miktex ...
Installation très obscure ... mais enfin ça tourne !

Re: Probleme avec Ghostscript ?

Posté : ven. 3 juin 2016, 17:34
par GM
Bonsoir,

Gros doute sur l'explication de la résolution de ton problème au point que j'ai renommé temporairement ocg.sty pour tester
... et la compilation n'a pas posé de problème.

Mais si le problème est réglé... tant mieux.