Fehlermeldung bei gnuplottex-Paket

Tabellen und Grafiken erstellen und anordnen


Mac-Cherony
Forum-Anfänger
Forum-Anfänger
Beiträge: 48
Registriert: Sa 30. Apr 2011, 11:39

Fehlermeldung bei gnuplottex-Paket

Beitrag von Mac-Cherony »

Hallo allerseits,

ich habe mal einige Versuche mit dem Paket gnuplottex durchgeführt. Leider bekomme ich immer Fehlermeldungen, obwohl ich ein akzeptables Ergebnis bei der pdf-Ausgabe erhalte. Das Minimalbeispiel ist angehängt. Weiter unten ist auch noch der Ausschnitt mit den entsprechenden Fehlermeldungen aus dem log-File. Damit kann ich allerdings nichts anfangen, da ich bei LaTeX nicht so tief in der Materie stecke, allerdings sieht es erstmal für mich so aus, dass ich diese Fehlermeldungen nur umgehen kann, wenn ich in den Paketcode eingreifen würde?!

Wenn hier Jemand eine Idee hat, wie ich diese Fehler umgehen kann, wäre ich sehr dankbar.

Viele Grüße

Mac-Cherony

\documentclass{article}
\usepackage[pdftex]{graphicx}
\usepackage{gnuplottex}

\begin{document}

\begin{figure}[!ht]
\centering
\begin{gnuplot}[terminal=epslatex]
set terminal epslatex size 12 cm, 5 cm 
plot sin(x)
\end{gnuplot}
\caption{Das ist der Sinus.}
\end{figure}

\end{document}
! Undefined control sequence.
\gnuplotverbatimwrite ...e \openout \verbatim@out
#1 \BeforeStream \let \do ...
l.12 \begin{gnuplot}[terminal=epslatex]
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
M
l.12 \begin{gnuplot}[terminal=epslatex]
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
\openout0 = `MWE_Gnuplottex-gnuplottex-fig1.gnuplot'.
Opening gnuplot stream MWE_Gnuplottex-gnuplottex-fig1.gnuplot
! Undefined control sequence.
\BeforeStream ...}\immediate \write \verbatim@out
{\string set terminal \gnu...
l.12 \begin{gnuplot}[terminal=epslatex]
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
{
l.12 \begin{gnuplot}[terminal=epslatex]
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Undefined control sequence.
\BeforeStream ... \immediate \write \verbatim@out
{\string set output '\fign...
l.12 \begin{gnuplot}[terminal=epslatex]
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
{
l.12 \begin{gnuplot}[terminal=epslatex]
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Undefined control sequence.
\verbatim@processline ...ate \write \verbatim@out
{\the \verbatim@line }
l.13 set terminal epslatex size 12 cm, 5 cm
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
{
l.13 set terminal epslatex size 12 cm, 5 cm
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Undefined control sequence.
\verbatim@processline ...ate \write \verbatim@out
{\the \verbatim@line }
l.14 plot sin(x)
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
{
l.14 plot sin(x)
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Undefined control sequence.
\endgnuplotverbatimwrite ...loseout \verbatim@out
\@esphack \catcode `\\0 \c...
l.15 \end{gnuplot}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
\relax
l.15 \end{gnuplot}
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

Benutzeravatar
localghost
Forum-Meister
Forum-Meister
Beiträge: 826
Registriert: Di 8. Jul 2008, 15:40
Wohnort: Braunschweig

Altualisierung notwendig

Beitrag von localghost »

Aktualisiere zumindest mal gnuplottex. Es gab zwischendurch eine Version, die kaputt war. Generell empfiehlt es sich, ein TeX-System immer aktuell zu halten.

Ich persönlich würde eher dazu tendieren, pgfplots zu verwenden. Es basiert auf pgf/tikZ und benutzt Gnuplot als Back-End.
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{pgfplots}

\begin{document}
  \begin{tikzpicture}
    \begin{axis}[domain=0:2*pi]
      \addplot {sin(deg(x))};
    \end{axis}
  \end{tikzpicture}

  \begin{tikzpicture}
    \begin{axis}[domain=0:360]
      \addplot {sin(x)};
    \end{axis}
  \end{tikzpicture}
\end{document}
Alle Möglichkeiten dieses Pakets zeigt dessen (umfangreiche) Anleitung auf.


Thorsten
TeX und LaTeX, Fragen und Antworten – TeXwelt

¹ Es tut mir Leid. Meine Antworten sind begrenzt. Sie müssen die richtigen Fragen stellen.
² System: TeX Live 2024, TeXworks

Mac-Cherony
Forum-Anfänger
Forum-Anfänger
Beiträge: 48
Registriert: Sa 30. Apr 2011, 11:39

Beitrag von Mac-Cherony »

Vielen Dank für deine Antwort Thorsten,

die Aktualisierung hat geholfen.
Übrigens tendiere ich mittlerweile seit einiger Zeit auch schon zu pgfplots ;)
Ich will nur gerne einen "Plan B" in der Hand haben, da ich bei etwas außergewöhnlicheren Graphen bei Gnuplot ( z.Z. noch) schneller ans Ziel kome als mit pgfplots...

Antworten