Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File `gnuplotttex.sty' not found #17

Closed
FranzPolster opened this issue Dec 17, 2020 · 10 comments
Closed

File `gnuplotttex.sty' not found #17

FranzPolster opened this issue Dec 17, 2020 · 10 comments

Comments

@FranzPolster
Copy link

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

@uhoefel
Copy link
Collaborator

uhoefel commented Dec 17, 2020

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.

@larskotthoff
Copy link
Owner

How did you install gnuplottex?

@FranzPolster
Copy link
Author

FranzPolster commented Dec 17, 2020 via email

@FranzPolster
Copy link
Author

FranzPolster commented Dec 17, 2020 via email

@larskotthoff
Copy link
Owner

You need to install the package. I believe on OpenSUSE it's called texlive-gnuplottex.

@FranzPolster
Copy link
Author

FranzPolster commented Dec 17, 2020 via email

@uhoefel
Copy link
Collaborator

uhoefel commented Dec 18, 2020

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.

@larskotthoff
Copy link
Owner

On linux the command-line option is -shell-escape.

@FranzPolster
Copy link
Author

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.

@larskotthoff
Copy link
Owner

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.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants