Je travaille avec LateX depuis 2 ans et je souhaite y intégrer xcas.
Après installation, xcas marche très bien. Il est dans C et giac.exe est dans le répertoire. mon ordi est windows xp sp3.
Ce qui marche moins bien en revanche, c'est avec LateX :
J'utilise miktex2.9 et texmakerx. J'ai changé le path et je compile en shell-escape.
Malgré cela, cela ne marche pas, c'est pourquoi je me tourne vers les pros.
Voici mon fichier (les lettes de f o p e n après Sortie sont collées en fait mais cela est refusé par le navigateur

Code : Tout sélectionner
\documentclass[12pt]{article}
\usepackage{fancyvrb}
\makeatletter
\newcommand{\executGiac}[1]{\immediate\write18{giac #1}}
\makeatother
\begin{VerbatimOut}{Xcass.in}
maple_mode(0);
Sortie:= f o p e n ("xcass.tex");
read("xcass.out");
simplify(ans());
Resultat:=cat(latex(ans()[0]));
fprint(Sortie,Unquoted,Resultat);
fclose(Sortie);
\end{VerbatimOut}
\newenvironment{Xcass}
{\VerbatimEnvironment\begin{VerbatimOut}{xcass.out}}
{\end{VerbatimOut}
\executGiac{Xcass.in}
\[\input{xcass}\]}
\begin{document}
\begin{Xcass}
solve(sin(x)=1/2,x)
\end{Xcass}
\end{document}
Code : Tout sélectionner
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded format=latex 2011.9.9) 18 JAN 2012 14:02
entering extended mode
**essai_xcass.tex
("D:\Marco\Latex\Latex-Marco\essais divers\essai_xcass.tex"
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size12.clo"
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\fancyvrb\fancyvrb.sty"
Package: fancyvrb 2008/02/07
Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
<2008/02/07> (tvz) ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
\FV@CodeLineNo=\count87
\FV@InFile=\read1
\FV@TabBox=\box26
\c@FancyVerbLine=\count88
\FV@StepNumber=\count89
\FV@OutFile=\write3
)
No file essai_xcass.aux.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 25.
LaTeX Font Info: ... okay on input line 25.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 25.
LaTeX Font Info: ... okay on input line 25.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 25.
LaTeX Font Info: ... okay on input line 25.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 25.
LaTeX Font Info: ... okay on input line 25.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 25.
LaTeX Font Info: ... okay on input line 25.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 25.
LaTeX Font Info: ... okay on input line 25.
runsystem(giac Xcass.in)...disabled (restricted).
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line 30.
! LaTeX Error: File `xcass.tex' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex)
Enter file name:
! Emergency stop.
<read *>
l.30 \end{Xcass}
*** (cannot \read from terminal in nonstop modes)
Here is how much of TeX's memory you used:
622 strings out of 494046
8585 string characters out of 3148333
55161 words of memory out of 3000000
3985 multiletter control sequences out of 15000+200000
6376 words of font info for 23 fonts, out of 3000000 for 9000
715 hyphenation exceptions out of 8191
23i,1n,19p,164b,92s stack positions out of 5000i,500n,10000p,200000b,50000s
No pages of output.