PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Fehlermeldungen bei vref / varioref



dashu
07-07-2005, 19:08
Hallo zusammen!

Ich habe beschlossen, meine Diplomarbeit mit Latex zu schreiben und kam bisher mit Hilfe dieses Forums und des Googles auch immer zurecht, aber mit folgendem Problem komme ich nicht weiter:

Präambel-Auszug:

\documentclass[DIVcalc,12pt,headsepline,a4paper,german,ngerman,sm allheadings,titlepage,fleqn,oneside,liststotoc,bib totoc]{scrreprt}

\usepackage[english,german,ngerman]{babel}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{bibgerm}
\usepackage{array}
\usepackage{amsmath,amsfonts}
\usepackage{longtable,booktabs}
\usepackage[pdftex]{graphicx}
\usepackage[]{subfigure}
\usepackage{floatflt}
\usepackage{hhline}
\usepackage{fancyhdr}
\usepackage{lscape}
\usepackage[margin=10pt,font=small,labelfont=bf,format=hang,%j ustification=raggedright,
singlelinecheck=false]{caption}
\usepackage{varioref}
\usepackage{totpages}
\usepackage[plainpages=false, pdfpagelabels, hypertexnames=false, colorlinks, bookmarksopen, pdfstartview=FitH, linkcolor=blue, citecolor=blue, urlcolor=blue]{hyperref}
\usepackage[notref,notcite]{showkeys}

\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{\leftmark}
\lfoot{Diplomarbeit}
\cfoot{007}
\rfoot{\thepage/\pageref{TotPages}}

\begin{document}

%\include{Diplom_Tit} % Schmutztitel & Titelseite
%\include{Diplom_Vor} % Vorwort / Einleitung(kurz - 1 Seite)
%\include{Diplom_Ver} % Verzeichnisse (Inhalt, Abbildungen, Tabellen)
%\include{Diplom_Pro} % ausführliche Vorstellung der 2 Probleme
%\include{Diplom_EFL} % Einführung in die Fuzzy-Logic
%\include{Diplom_Var} % 2 Variablenarten, Linguistisch & Fest mit Streuung
%\include{Diplom_Kat} % Kategorien der variablen Eingangswerte bei der Baugrundbeurteilung
%\include{Diplom_Aus} % Ausarbeitung der 2 Probleme
%\include{Diplom_Faz} % Fazit & andere Verfahren
%
%\textsc{\LARGE Notfalltext} \\
%mit Verweis auf den guten Benno~\cite{biewer}
%
%\include{Diplom_Lit}

\chapter{test}\label{sss:fmz-ling}

siehe Abschnitt \vref{sss:fmz-ling}

\end{document}

------

Fehlermeldungs-Auszug aus dem Log.

LaTeX Info: Redefining \ref on input line 154.
LaTeX Info: Redefining \pageref on input line 154.
(Diplomarbeit.out)
(Diplomarbeit.out)
LaTeX Info: Redefining \vref on input line 154.
(TEST.tex
LaTeX Font Info: Try loading font information for T1+pcr on input line 5.
(C:\Programme\Miktex\tex\latex\psnfss\t1pcr.fd
File: t1pcr.fd 2001/06/04 font definitions for T1/pcr.
)
! Argument of \@secondoffive has an extra }.
<inserted text>
\par
l.7 Abschnitt \vref{sss:fmz-ling}

I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
! Paragraph ended before \@secondoffive was complete.
<to be read again>
\par
l.7 Abschnitt \vref{sss:fmz-ling}

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

! Argument of \@secondoffive has an extra }.
<inserted text>
\par
l.7 Abschnitt \vref{sss:fmz-ling}

I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
! Paragraph ended before \@secondoffive was complete.
<to be read again>
\par
l.7 Abschnitt \vref{sss:fmz-ling}

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

Runaway argument?
! Paragraph ended before \is@pos@num@ was complete.
<to be read again>
\par
l.7 Abschnitt \vref{sss:fmz-ling}

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

! Undefined control sequence.
\is@pos@number #1->\is@pos@num 0#1\space \@nil

l.7 Abschnitt \vref{sss:fmz-ling}

The control sequence at the end of the top line :confused:
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>
\par
l.7 Abschnitt \vref{sss:fmz-ling}

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.)

) [1.1


{sfonts.map}] (Diplomarbeit.aux (TEST.aux)) )
Here is how much of TeX's memory you used:
6669 strings out of 95519
88177 string characters out of 1189343
156501 words of memory out of 1159765
9413 multiletter control sequences out of 35000
10379 words of font info for 23 fonts, out of 500000 for 1000
14 hyphenation exceptions out of 607
35i,11n,43p,237b,342s stack positions out of 1500i,500n,5000p,200000b,32768s
19 PDF objects out of 300000
3 named destinations out of 300000
17 words of extra memory for PDF output out of 65536

{r.enc}
Output written on Diplomarbeit.pdf (1 page, 4656 bytes).

---------

Hoffe das reicht für einen Überblick...

Das ganze habe ich auch schon mit Minimierter Präambel gemacht, dann funktionierts:

\documentclass[ngerman]{scrreprt}
\usepackage{babel}
\usepackage{varioref}
\begin{document}

\newpage

\begin{figure}
test test
\caption{Test}\label{fig:test}
\end{figure}

Abbildung~\vref{fig:test}

\end{document}

Hoffe, mir kann da jemand helfen. Mit \ref{} funktioniert alles einwandfrei, nur \vref{} produziert mir 7 Fehler.

Mixed Emotions
22-07-2005, 17:39
Probier doch mal 'varioref' wie folgt einzubinden:

\usepackage[ngerman]{babel, varioref}

Ich hatte vorher auch dieses Problem. Und seit dem ich das wie oben beschrieben eingebunden habe, funktioniert das einwandfrei.

Viele Grüße.
ME