[cstex] Problém s komunikací s GNUPlotem

Pavel Striz striz at fame.utb.cz
Mon Oct 26 21:05:32 CET 2009


Dobrý večer, TL2008, WinXP, dnešní verze GnuPlotu, gnuplottex.sty v0.4.2.

GnuPlot jsem si nainstaloval do C:\gnuplot\, rozšířil jsem PATH o 
C:\gnuplot\bin\.

Udělal jsem kopii wgnuplot.exe na gnuplot.exe (žádá si to gnuplottex.sty 
soubor).

Udělejte si kopii gnuplottex.sty na gnuplottex-puvodni.sty.

V gnuplottex.sty zasáhněte na řádcích 60 a 66, abyste dostal:
   \immediate\write18{echo t > \tmpfile}
   \immediate\write18{del \tmpfile}

Ve své ukázce si zapněte miktex, bez ohledu na instalaci TL, spíše než 
miktex by byl zajímavější termín windows:
   \usepackage[miktex]{gnuplottex}

Například gnuplottex/example-pdf.tex jsem spustil, až když jsem zasáhl na 
řádcích 3 a 7 na:
   \usepackage[miktex]{gnuplottex}
   \begin{gnuplot}%[terminal=pdf,terminaloptions=fsize 20 linewidth 3]
Další zkoumání je už o syntaxi.

Přikládám váš soubůrek projetý:
   pdflatex -shell-escape t-GPlot

PS


----- Původní zpráva ----- 
Od: ""Procházka Lukáš Ing. - Pontex s. r. o."" <LPr at pontex.cz>
Komu: "TeX" <cstex at cs.felk.cvut.cz>
Odesláno: 26. října 2009 18:21
Předmět: [cstex] Problém s komunikací s GNUPlotem


> Zdravím účastníky konference,
>
> prosil bych o radu, jak rozchodit komunikaci s GNUPlotem.
>
> Mám .texový soubor:
>
> \documentclass[10pt,a4paper]{article}
>
> \usepackage[cp1250]{inputenc}
> \usepackage{czech,a4wide}
> \usepackage{fancyvrb}
> \usepackage{gnuplottex}
>
> \begin{document}
>
>  A
>
>  \begin{gnuplot}
>    plot sin(x)
>  \end{gnuplot}
>
> \end{document}
>
> Ale nedaří se mi vykreslit graf. Objevuje se:
>
> C:\Lukas\Jobs\Manuals\Test3>C:\TeXLive2007\bin\win32\pdflatex.exe
> -shell-escape t-GPlot.tex
> This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
> \write18 enabled.
> %&-line parsing enabled.
> entering extended mode
> (./t-GPlot.tex
> LaTeX2e <2005/12/01>
> Babel <v3.8h> and hyphenation patterns for english, usenglishmax,
> dumylang, noh
> yphenation, arabic, basque, bulgarian, coptic, welsh, german, ngerman,
> danish,
> esperanto, spanish, catalan, galician, estonian, farsi, finnish, french,
> greek,
> monogreek, ancientgreek, croatian, hungarian, interlingua, ibycus,
> indonesian,
> icelandic, italian, latin, mongolian, dutch, norsk, polish, portuguese,
> pinyin
> , romanian, russian, slovenian, uppersorbian, serbian, swedish, turkish,
> ukengl
> ish, ukrainian, czech:IL2, czech:T1, czechX, slovak:IL2, slovak:T1,
> slovakX, lo
> aded.
> (c:/TeXLive2007/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
> (c:/TeXLive2007/texmf-dist/tex/latex/base/size10.clo))
> (c:/TeXLive2007/texmf-dist/tex/latex/base/inputenc.sty
> (c:/TeXLive2007/texmf-dist/tex/latex/base/cp1250.def))
> (c:/TeXLive2007/texmf-var/tex/generic/csh-babel/czech.sty
> (c:/TeXLive2007/texmf-var/tex/generic/csh-babel/czech.ldf
> (c:/TeXLive2007/texmf-var/tex/generic/csh-babel/babel.def)
> cslatex compatibility mode
> (c:/TeXLive2007/texmf-dist/tex/latex/cslatex/il2enc.def)))
> (c:/TeXLive2007/texmf-dist/tex/latex/ltxmisc/a4wide.sty
> (c:/TeXLive2007/texmf-dist/tex/latex/ntgclass/a4.sty))
> (c:/TeXLive2007/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
> Style option: `fancyvrb' v2.6, with DG/SPQR fixes <1998/07/17> (tvz)
> (c:/TeXLive2007/texmf-dist/tex/latex/graphics/keyval.sty)
> No file fancyvrb.cfg.
> ) (c:/TeXLive2007/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty
> (c:/TeXLive2007/texmf-dist/tex/latex/base/latexsym.sty)
> (c:/TeXLive2007/texmf-dist/tex/latex/graphics/graphicx.sty
> (c:/TeXLive2007/texmf-dist/tex/latex/graphics/graphics.sty
> (c:/TeXLive2007/texmf-dist/tex/latex/graphics/trig.sty)
> (c:/TeXLive2007/texmf/tex/latex/config/graphics.cfg)
> (c:/TeXLive2007/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
> (c:/TeXLive2007/texmf-dist/tex/latex/moreverb/moreverb.sty
> (c:/TeXLive2007/texmf-dist/tex/latex/tools/verbatim.sty))*touch není
> názvem vnitřního ani vnějšího příkazu,
> spustitelného programu nebo dávkového souboru.*
>
>
> Package gnuplottex Warning: *Shell escape not enabled.*
> (gnuplottex)                You'll need to convert the graphs yourself..
>
> ) (./t-GPlot.aux) (c:/TeXLive2007/texmf-dist/tex/context/base/supp-pdf.tex
> [Loading MPS to PDF converter (version 2006.09.02).]
> ) Opening gnuplot stream t-GPlot-gnuplottex-fig1.gnuplot
>
> *Package gnuplottex Warning: Please convert
> t-GPlot-gnuplottex-fig1.gnuplot manu
> ally.*
>
> [1{c:/TeXLive2007/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
> (./t-GPlot.aux
> ) )<c:/TeXLive2007/texmf-dist/fonts/type1/public/cs/csr10.pfb>
> Output written on t-GPlot.pdf (1 page, 3597 bytes).
> Transcript written on t-GPlot.log.
>
> Podle manuálu gnuplottex.pdf jsem již zjistil, že pdflatex.exe musím
> volat se -shell-escape; což dělám.
>
> Problémem by mohlo být volání "touch" (soudě podle chybové hlášky);
> nevím však, jakou hraje úlohu a jak jej "emulovat" ve Windows.
>
> A dále mě mate hláška "Shell escape not enabled".
>
> Co jsem také zkusil, a nefunguje:
>
> Zároveň mít na cestě (PATH) soubor gnuplot.bat, který volá
> [w]GNUPlot.exe plnou cestou.
>
> Stejně tak nepomohlo mít gnuplot.bat ve stejném adresáři, kde je umístěn
> t-GNUPlot.tex.
>
> Zkusil jsem nastavit PATH i do adresáře, kde je GNUPlot - bezvýsledně.
>
> Pokud přeložím vygenerovaný t-GPlot-gnuplottex-fig1.gnuplot *ručne*, tj.
> "gnuplot.bat t-GPlot-gnuplottex-fig1.gnuplot", vznikne žádaný
> t-GPlot-gnuplottex-fig1.tex, který se má natáhnout do t-GPlot.tex.
>
> Nevěděl by někdo, kde by mohla být chyba, či jakou použít "obezličku"?
>
> WinXP, TL2007.
>
> Předem děkuji a zdravím.
>
> Lukáš Procházka
>
>
> -- 
>
> Ing. Lukáš Procházka [LPr at pontex.cz <mailto:LPr at pontex.cz>]
> Pontex s. r. o.      [www.pontex.cz <http://www.pontex.cz>] 
> [pontex at pontex.cz <mailto:pontex at pontex.cz>]
> Bezová 1658
> 147 14 Praha 4
>
> Tel: (+420) 244 062 238
> Fax: (+420) 244 461 038
>
>
>
>
> ___ Information from ESET Mail Security, ver. 4544 (20091026) ___
> The message was checked by ESET Mail Security. www.eset.com
>
>


--------------------------------------------------------------------------------


> \documentclass[10pt,a4paper]{article}
>
> \usepackage[cp1250]{inputenc}
> \usepackage{czech,a4wide}
> \usepackage{fancyvrb}
> \usepackage{gnuplottex}
>
> \begin{document}
>
>  A
>
>  \begin{gnuplot}
>    plot sin(x)
>  \end{gnuplot}
>
> \end{document}
>
>
>
>
> ___ Information from ESET Mail Security, ver. 4544 (20091026) ___
> The message was checked by ESET Mail Security. www.eset.com
>
>


--------------------------------------------------------------------------------


> set terminal latex
> set output 't-GPlot-gnuplottex-fig1.tex'
> plot sin(x)
>
>
>
>
>
> ___ Information from ESET Mail Security, ver. 4544 (20091026) ___
> The message was checked by ESET Mail Security. www.eset.com
>
>


--------------------------------------------------------------------------------


> _______________________________________________
> csTeX mailing list
> csTeX at cs.felk.cvut.cz
> http://lists.felk.cvut.cz/mailman/listinfo/cstex
>
>
>
> ___ Information from ESET Mail Security, ver. 4544 (20091026) ___
> The message was checked by ESET Mail Security. www.eset.com
>
> 



___ Information from ESET Mail Security, ver. 4545 (20091026) ___
The message was checked by ESET Mail Security. www.eset.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-GPlot.pdf
Type: application/pdf
Size: 26696 bytes
Desc: not available
URL: <http://lists.felk.cvut.cz/pipermail/cstex/attachments/20091026/18373c05/attachment-0003.pdf>


More information about the csTeX mailing list