Closed FranzPolster closed 3 years ago
Is gnuplottex available in your TexLive installation? I use MikTeX, so I am a bit unsure how TexLive works. Besides, I would really recommend to not use the latex-terminal. Better use the tikz-terminal, or at last the pdf one.
How did you install gnuplottex?
I just followed the instructions in the paper and added the commands \usepackage{graphicx} % benötigt für \figure und gnuplotttex \usepackage{latexsym} % benötigt für gnuplotttex \usepackage{keyval} % benötigt für gnuplotttex \usepackage{moreverb} % benötigt für gnuplotttex \usepackage{gnuplotttex}
Should I install some additional piece of software?
Franz
Lars Kotthoff notifications@github.com hat am 17.12.2020 16:56 geschrieben:
How did you install gnuplottex? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/larskotthoff/gnuplottex/issues/17#issuecomment-747528860), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ASFEKWCPNJWDZLTYEHZ2VCDSVIS4JANCNFSM4U72AM7A).
Franz J. Polster Dreikirchenstr. 3 91301 Forchheim, Germany
Following the instructions in the paper I added the commands: \usepackage{graphicx} % benötigt für \figure und gnuplotttex \usepackage{latexsym} % benötigt für gnuplotttex \usepackage{keyval} % benötigt für gnuplotttex \usepackage{moreverb} % benötigt für gnuplotttex \usepackage{gnuplotttex} Checking the latex-messages in detail makes me suspect, that maybe in my installation gnuplottex is not available: latex obiously finds STY-files for all of the packages listed above except package gnuplottex!
Also: I just tried the example with the tikz-terminal, which did not change anything: File `gnuplotttex.sty' not found
Franz
Udo Höfel notifications@github.com hat am 17.12.2020 16:23 geschrieben:
Is gnuplottex available in your TexLive installation? I use MikTeX, so I am a bit unsure how TexLive works. Besides, I would really recommend to not use the latex-terminal. Better use the tikz-terminal, or at last the pdf one. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/larskotthoff/gnuplottex/issues/17#issuecomment-747506094), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ASFEKWEHREAY62KJNM73KLLSVIPAZANCNFSM4U72AM7A).
Franz J. Polster Dreikirchenstr. 3 91301 Forchheim, Germany
You need to install the package. I believe on OpenSUSE it's called texlive-gnuplottex.
I just installed using YAST a gnuplottex SW package: sorry, it was not clear to me at all, that there exists LaTeX-related software outside the LaTeX SW package. Now I get a warning: "Please convert test-latex-gnuplottex-fig1.gnuplot manually." Questions_
Franz
Lars Kotthoff notifications@github.com hat am 17.12.2020 16:56 geschrieben:
How did you install gnuplottex? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/larskotthoff/gnuplottex/issues/17#issuecomment-747528860), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ASFEKWCPNJWDZLTYEHZ2VCDSVIS4JANCNFSM4U72AM7A).
Franz J. Polster Dreikirchenstr. 3 91301 Forchheim, Germany
You need to enable shell-escape when calling latex. For me this means using --enable-write18
as a command line parameter. A quick google search should help there, if you need a slightly differently worded command.
On linux the command-line option is -shell-escape
.
Thanks! I spent this afternoon with almost nothing but trial-and-error issuing "latex -shell-escape ...." commands. Lessons learnt: 1) None of the source code examples given in your paper "The gnuplottex package" work for me. E.g: running latex -shell-escape test-latex.tex (see attachment, with suffix "txt") produces the messages of attachment "test-latex-messages.txt test-latex-messages.txt test-latex.txt However the stripped-down version "test-latex00.tex" of attachment "test-latex.txt" works! Despite the xdvi-warning: "Raw Postscript commands on page 1 may be rendered in correctly." test-latex00.txt 2) I also tried the other terminals referred to in the examples, neither produced a usable result, if any. Terminal jpeg e.g. indicated "No Bounding Box"
Since I have to insert into my LaTex-documents simple, not really sophisticated plots of two functions, the features used in file test-latex00 will do the job for me, with terminal latex. Too bad, that I cannot present in LaTeX the plots gnuplot generates on screen or as PDF-file (viewed with "okular") or JPEG-file (viewed with "display")! It seems to be the case, that in the gnuplot-environment the options for the plot-command have no effect?!?: e.g. despite the "with lines" options two graphs in test-latex00.tex are shown as dotted lines. I failed to find a way to get rid of the dotted lines.
Well, the examples in the manual illustrate the different types of functionality you can use. Most of this requires other software to be installed, in particular to support different types of gnuplot terminals. So yes, not all of this will work in all cases, but you can make it work by installing additional software (the error messages give you an idea of what's missing). Some of it also depends on the version of LaTeX you're using (in particular "plain" LaTeX vs. pdfLaTeX).
If you're having trouble with individual plots, I highly recommend debugging this separately directly in gnuplot. Gnuplottex doesn't do any plotting on its own, so if e.g. dotted lines show up, it's a problem with the gnuplot code.
Running the first example given in "The gnuplottex package" (dated April 6, 2020) results in the LaTeX Error: File `gnuplotttex.sty' not found. What should I do to get it running? gnuplottex - when it works as described - might be the tool I have been looking for! Thanks in advance! Franz PS-1: the file extension of attached source files have been changed from "tex" to "txt" in order to be able to attach them to this message PS-2: I am working with Linux (openSUSE Leap 15.1), LaTeX-version: pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/TeX Live for SUSE Linux) kpathsea version 6.2.3 Copyright 2017 Han The Thanh (pdfTeX) et al. and GNUPLOT test-defs.txt test-latex.txt
Version 5.2 patchlevel 2 last modified 2017-11-15