Spindoctor
27-11-2007, 12:37
Hallo!
Hab nach langer Zeit mal beschlossen, an meiner Diplomarbeit weiterzuschreiben. Davor hab ich aber ein Update mit MikTex gemacht.
Seither will der Befehl "\captionof" nicht mehr so wirklich.
Bisher hab ich meine PSTricks-Bilder so beschriftet:
Minimalbeispiel
\documentclass[a4paper,oneside]{scrreprt}
\usepackage{pstricks-add}
\usepackage{pst-pdf}
\usepackage{caption}
\usepackage[naustrian]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\begin{pspicture}(0,0)(10,10)
\rput(5,5){Bild}
\end{pspicture}
\captionof{figure}[Bild1]{Das Bild Nummer 1}
\end{document}
Das gibt mir jetzt die Fehlermeldung
! Package caption Error: \captionsetup{type*=...} or \captionof
(caption) outside box or environment.
See the caption package documentation for explanation.
Type H <return> for immediate help.
...
l.20 \captionof{figure}
[Bild1]{Das Bild Nummer 1}
Der Dokumentation zu Folge sollte ich wohl den \captionof-Befehl in die pspicture-Umgebung mit hineinnehmen.
Also so:
Minimalbeispiel
\documentclass[a4paper,oneside]{scrreprt}
\usepackage{pstricks-add}
\usepackage{pst-pdf}
\usepackage{caption}
\usepackage[naustrian]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\begin{pspicture}(0,0)(10,10)
\rput(5,5){Bild}
\captionof{figure}[Bild1]{Das Bild Nummer 1}
\end{pspicture}
\end{document}
Aber da spielt scheinbar pstricks nicht mit und sagt:
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Missing } inserted.
<inserted text>
}
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Undefined control sequence.
<argument> \csname fnum@\@captype
\endcsname
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
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.
! Undefined control sequence.
<argument> ...ionlabelfont \csname fnum@\@captype
\endcsname }\fi
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
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.
! Undefined control sequence.
<argument> \csname fnum@\@captype
\endcsname
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
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.
! Undefined control sequence.
<argument> ...ionlabelfont \csname fnum@\@captype
\endcsname }\fi
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
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.
Preview: Tightpage -32891 -32891 32891 32891
[1]
! Too many }'s.
\endpspicture ...ft =\psk@shift \endgroup \egroup
\ifdim \wd \pst@hbox =\z@ ...
l.20 \end{pspicture}
You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.
! Extra \endgroup.
\endpspicture ...vevmode \box \pst@hbox \endgroup
\global \psk@shift \z@
l.20 \end{pspicture}
Things are pretty mixed up, but I think the worst is over.
! LaTeX Error: \begin{document} ended by \end{pspicture}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.20 \end{pspicture}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
! Extra \endgroup.
<recently read> \endgroup
l.20 \end{pspicture}
Things are pretty mixed up, but I think the worst is over.
)
Wie mach ichs denn jetzt richtig?
Danke im Vorraus,
Spin
Hab nach langer Zeit mal beschlossen, an meiner Diplomarbeit weiterzuschreiben. Davor hab ich aber ein Update mit MikTex gemacht.
Seither will der Befehl "\captionof" nicht mehr so wirklich.
Bisher hab ich meine PSTricks-Bilder so beschriftet:
Minimalbeispiel
\documentclass[a4paper,oneside]{scrreprt}
\usepackage{pstricks-add}
\usepackage{pst-pdf}
\usepackage{caption}
\usepackage[naustrian]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\begin{pspicture}(0,0)(10,10)
\rput(5,5){Bild}
\end{pspicture}
\captionof{figure}[Bild1]{Das Bild Nummer 1}
\end{document}
Das gibt mir jetzt die Fehlermeldung
! Package caption Error: \captionsetup{type*=...} or \captionof
(caption) outside box or environment.
See the caption package documentation for explanation.
Type H <return> for immediate help.
...
l.20 \captionof{figure}
[Bild1]{Das Bild Nummer 1}
Der Dokumentation zu Folge sollte ich wohl den \captionof-Befehl in die pspicture-Umgebung mit hineinnehmen.
Also so:
Minimalbeispiel
\documentclass[a4paper,oneside]{scrreprt}
\usepackage{pstricks-add}
\usepackage{pst-pdf}
\usepackage{caption}
\usepackage[naustrian]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\begin{pspicture}(0,0)(10,10)
\rput(5,5){Bild}
\captionof{figure}[Bild1]{Das Bild Nummer 1}
\end{pspicture}
\end{document}
Aber da spielt scheinbar pstricks nicht mit und sagt:
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Missing } inserted.
<inserted text>
}
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Undefined control sequence.
<argument> \csname fnum@\@captype
\endcsname
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
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.
! Undefined control sequence.
<argument> ...ionlabelfont \csname fnum@\@captype
\endcsname }\fi
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
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.
! Undefined control sequence.
<argument> \csname fnum@\@captype
\endcsname
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
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.
! Undefined control sequence.
<argument> ...ionlabelfont \csname fnum@\@captype
\endcsname }\fi
l.18 \captionof{figure}[Bild1]{Das Bild Nummer 1}
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.
Preview: Tightpage -32891 -32891 32891 32891
[1]
! Too many }'s.
\endpspicture ...ft =\psk@shift \endgroup \egroup
\ifdim \wd \pst@hbox =\z@ ...
l.20 \end{pspicture}
You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.
! Extra \endgroup.
\endpspicture ...vevmode \box \pst@hbox \endgroup
\global \psk@shift \z@
l.20 \end{pspicture}
Things are pretty mixed up, but I think the worst is over.
! LaTeX Error: \begin{document} ended by \end{pspicture}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.20 \end{pspicture}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
! Extra \endgroup.
<recently read> \endgroup
l.20 \end{pspicture}
Things are pretty mixed up, but I think the worst is over.
)
Wie mach ichs denn jetzt richtig?
Danke im Vorraus,
Spin