When I compile the following code (LaTeX -> pdf) without the option 'subfolder' at the 'gnuplottex'-package, it works fine.

The ps-file 'test-gnuplottex-fig1.ps', automatically created by gnuplottex, is converted to a pdf-file 'test-gnuplottex-fig1-eps-converted-to.pdf' by epstopdf, both files are in the same folder as the main tex-file.



plot sin(x) notitle


But adding the 'subfolder' option results in the error "Undefined control sequence" at the position in the tex-file where the pdf-file gets included because there's only a ps-file in the subfolder 'gnuplottex', but no pdf-file.

The error remains when I copy the pdf-file 'test-gnuplottex-fig1-eps-converted-to.pdf' to the 'gnuplottex'-subfolder.

How can I get the gnuplottex package to run with the subfolder option?

My system:

  • MikTeX 2.9
  • TeXnicCenter 2.0 Beta 2
  • Windows 7
  • 'gnuplottex'-package version 0.7 (2013/07/23)

1 Answer 1


This is a bug in gnuplottex. I've just uploaded a new version that should fix this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.