1

A while ago, I asked a question about always occurring errors from the gnuplottex package.

/usr/share/texlive/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty:79: Argument of " has an extra }. [...te\write18{rm -f "\jobname.gnuploterrors"}]
/usr/share/texlive/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty:79: Paragraph ended before " was complete. [...te\write18{rm -f "\jobname.gnuploterrors"}]

I just noticed my document compiles fine when not I'm not including the ngerman package, which I usually do.

Is there any way to use ngerman and gnuplottex both?

Edit: Here is a minimal example document producing the error for me:

%!TEX options = "--shell-escape"

\documentclass[a4paper]{article}

\usepackage{ngerman}
\usepackage{gnuplottex}

\begin{document}

\end{document}

The other question actually did mention some error messages disappeared when not including ngerman, but apparently, I was to dumb to get that hint. For some reason, all errors disappear now. Maybe, the remaining errors in the old question where because of some log file I forgot to delete.

  • Please post a document, not only error messages – user31729 Jun 23 '16 at 12:23
  • Minimal example, please. The other question didn't mention ngerman at all. – egreg Jun 23 '16 at 12:24
  • Sure! The error already occurs when just including both packages, though. – jmb Jun 23 '16 at 12:26
  • well, ngerman is quite old and outdated, as far as I know – user31729 Jun 23 '16 at 12:28
  • Oh, really? Should I use \usepackage[german]{babel} instead? – jmb Jun 23 '16 at 12:36
2

The package ngerman is obsolete and should not be used.

The error disappears if you correctly use babel.

\documentclass[a4paper]{article}

\usepackage[ngerman]{babel}

\usepackage{gnuplottex}

\begin{document}

\begin{gnuplot}[terminal=epslatex]
plot sin(x) w l
\end{gnuplot}

\end{document}

Alternatively, but not recommendable, load the packages in reverse order.

\documentclass[a4paper]{article}

\usepackage{gnuplottex}
\usepackage{ngerman}

\begin{document}

\begin{gnuplot}[terminal=epslatex]
plot sin(x) w l
\end{gnuplot}

\end{document}

This fixes the error about ". The other one is fixed by having a gnuplot environment in the document or with the fix suggested for gnuplottex package not working anymore

Note that the two issues are completely unrelated to each other.

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.