PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Inhaltsverzeichnis; Einträge verschoben



F.Grueb
19-07-2009, 12:42
Hallo,

in dem Inhaltsverzeichnis meines Anhangs sind die Seitennummerierungen auf der rechten Seite nicht einheitlich untereinander.

Der Anhang ist mit Buchstaben und Zahlen nummeriert (A-1, A-2, A-3, B-4, B-5 etc.).

Im Inhaltsverzeichnis sieht das ganze so aus;

A Sectiontitel ............................. A-1
A.1 Subsectiontitel ........................ A-1
A.2 Subsectiontitel ........................ A-3
A.3 Subsectiontitel ........................ A-5

B Sectiontitel ............................. B-7
B.1 Subsectiontitel ........................ B-8
B.2 Subsectiontitel ........................ B-9



Die Seitennummerierungen bei Sectiontiteln liegen etwas links verschoben im Vergleich zu den Seitennummern bei Subsectiontiteln.


Es sollte eigentlich so aussehen;

A Sectiontitel ............................. A-1
A.1 Subsectiontitel ...................... A-1
A.2 Subsectiontitel ...................... A-3
A.3 Subsectiontitel ...................... A-5

B Sectiontitel ............................. B-7
B.1 Subsectiontitel ...................... B-8
B.2 Subsectiontitel ...................... B-9




Es liegt wohl an der Umdefinierung der Seitenzahlen (von 1 zu A-1 etc.);

\usepackage{appendix}
%------------------Anfang Nummerierung Anhang-----------------
\renewcommand\appendix{\par
\setcounter{section}{0}%
\setcounter{subsection}{0}%
\setcounter{figure}{0}%
\renewcommand\thesection{\Alph{section}}%
\renewcommand\thesubsection{\Alph{section}.\arabic {subsection}}%
\renewcommand\thefigure{\Alph{section}.\arabic{fig ure}}}
\renewcommand\thetable{\Alph{section}.\arabic{tabl e}}
%------------------Ende Nummerierung Anhang-----------------
\renewcommand{\thepage}{\Alph{section}-\arabic{page}}



Kann mir jemand hier weiter helfen?
Wie kann ich diese Art der Seitennummerierung benutzen ohne dass das Layout des Inhaltsverzeichnis verzerrt wird?

mechanicus
19-07-2009, 13:13
Hallo,

hiermal mit einem etwas ausführlicherem Minimalbeispiel. Ich habe deine Redefinierung etwas geändert. Zudem habe ich den Platz für die Seitenzahlen im Inhaltsverzeichnis angepasst.

Die Einrückung die du evtl. meinst, ist wohl bedingt durch den Fettdruck der sections im Inhaltsverzeichnis:


\documentclass[ngerman]{scrartcl}
\usepackage{babel,lipsum}
\usepackage{appendix}
%------------------Anfang Nummerierung Anhang-----------------
\renewcommand\appendix{%
\clearpage
\setcounter{section}{0}%
\setcounter{subsection}{0}%
\setcounter{figure}{0}%
\renewcommand\thesection{\Alph{section}}%
\renewcommand\thesubsection{\thesection.\arabic {subsection}}%
\renewcommand\thefigure{\thesection.\arabic{figure }}
\renewcommand\thetable{\thesection.\arabic{table}}
%------------------Ende Nummerierung Anhang-----------------
\renewcommand{\thepage}{\thesection-\arabic{page}}
}
\makeatletter
\renewcommand*{\@pnumwidth}{2.5em}
\makeatother

\begin{document}
\tableofcontents
\appendix
\section{Sectiontitel}
\subsection{Subsectiontitel}
\lipsum[1]
\clearpage
\subsection{Subsectiontitel}
\lipsum
\clearpage
\subsection{Subsectiontitel}
\lipsum
\clearpage
\section{Sectiontitel}
\subsection{Subsectiontitel}
\lipsum[1]
\clearpage
\subsection{Subsectiontitel}
\lipsum
\clearpage
\subsection{Subsectiontitel}
\lipsum
\end{document}

Gruß
Marco

F.Grueb
19-07-2009, 22:21
Hey super!

Vielen, vielen Dank!

Das war der letzte typografische Makel den ich unbedingt noch in meiner Diplomarbeit beseitigen wollte :).