PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem beim Inhaltsverzeichnis



kiansoh
25-03-2008, 23:34
Hallo,
ich habe eine LaTex-Vorlage für meine Arbeit benutzt und es ist soweit alles super aber beim Inhaltsverzeichnis sind die Kapitel fehlerhaft, bitte siehe die beigefügte pdf Datei.

Die LaTex Vorlage sieht folgendermaßen aus:

\documentclass[12pt,german,english,titlepage,a4paper]{report}
\usepackage[dvips,pdftitle={Titel},
pdfauthor={Musterman},
pagebackref=false,
backref=none,
linktocpage,
colorlinks=false,
hyperindex=true
linkcolor=black,
urlcolor=black]{hyperref}
\usepackage{titletoc}
\usepackage{array}
\usepackage[rigidchapters]{titlesec}
\usepackage{psfrag}
\usepackage{subfigure}
\usepackage[subfigure]{tocloft}
\usepackage{longtable}
\usepackage[latin1]{inputenc}
\usepackage{times,mathptm}
\usepackage{flafter}
\usepackage{makeidx}
\usepackage[eso-pic,dvips]{graphicx}
\usepackage{fancyhdr}
\usepackage{babel}
\usepackage{bibunits}
\usepackage[square,comma,sort&compress]{natbib}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{rotating}
\usepackage{lscape}
\usepackage{makeidx}
\usepackage{maple2e}
\usepackage{listings}
\usepackage{fancyvrb}
\usepackage{mathptm}
\usepackage{mathptmx}
\usepackage{capt-of}
%----------Include der Titelseite------------------
\include{titel}
%----------Include der Seiten pp Definitionen -----
\include{DEFINITIONS}

\makeindex
\makeglossary
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
%-----------------------------
\setcounter{LTchunksize}{7} %for style longtable
\setcounter{totalnumber}{5}
%---------------------------------
\maketitle
%----------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%

\clearpage
\pagestyle{empty}
\pagestyle{plain}
\begin{minipage}[t]{11cm}
\raggedright{\vspace{11cm}
\textsc{Musterman2}\\
\dcpresident \vspace{-0.3cm}
}
\vspace{1.5cm}\\

\raggedright{
\textsc{Dekan} \dcfaculty:\\
\dcdean \vspace{-0.3cm}
}\vspace{1.5cm}\\

\raggedright{ \textit{Prüfer:}
\begin{enumerate}
\item{\dcapprovala} \vspace{-0.3cm} \item{\dcapprovalb}
\vspace{-0.3cm}
%\item{\dcapprovalc} \vspace{-0.3cm}
\end{enumerate}} \vspace{0.5cm}
%-----------------
\raggedright{
\begin{tabular}{lll}
\textit{eingereicht am}: & &\dcdatesubmitted\\
%Tag der m\"undlichen Pr\"ufung: & & \dcdateexam
\end{tabular}
}
\end{minipage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%--------------------------------------------------------------
\pagenumbering{roman}
\pagestyle{headings}
%-----------------------
\setcounter{secnumdepth}{7}
\setcounter{tocdepth}{7}
\setlength{\textheight}{21cm}
%---------------------
\renewcommand{\topfraction}{0.9}
\renewcommand{\bottomfraction}{0.9}
\renewcommand{\textfraction}{0.05}
\newcommand{\ii}[1]{{\it#1}} %fur index
%--------------------------------------------------------------------
%--------------------------------------------------------------------
\pagenumbering{roman}
%--------------------------------------------------------------------
\pagestyle{fancy}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{1pt}
\fancyhead{} \cfoot{} \fancyhead[LE,RO]{\small \slshape
\rightmark} \fancyfoot[LE,RO]{\small \thepage \slshape}
%--------------------------------------------------------------------
\include{Selbstandigkeitserklarung}

%--------------------------------------------------------------------
\include{Widmung}
%--------------------------------------------------------------------
\include{Danksagung}
%--------------------------------------------------------------------
\addcontentsline{toc}{section}{\textsc{Kurzzusamme nfassung}}
\selectlanguage{german}
\include{abstract_ger}
\selectlanguage{english}
\addcontentsline{toc}{section}{\textsc{Abstract}}
\include{abstract_eng}
\clearpage
\addcontentsline{toc}{section}{\textsc{List of Symbols and
Abbreviations}}
\include{LIST_OF_SYMBOLS}
\pagebreak
%--------------------------------------------------------------------
\pagenumbering{arabic}
%--------------------------------------------------------------------
\tableofcontents \pagebreak
%--------------------------------------------------------------------
\listoffigures \pagebreak
%--------------------------------------------------------------------
\listoftables \pagebreak
%--------------------------------------------------------------------
%XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX
\include{Chap1}
\include{Chap2}
\include{Chap3}
\include{Chap4}
\include{Chap5}
\include{Conclusion}
\begin{appendix}
\appendix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%% Redefinition of Chapter (TOC, etc)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%
\titleformat{\chapter}[display] %display ->2 zeilen
%{\sc \Huge}
%{\sc \huge} %
{\sc \Large} %
{\bfseries Appendix \vspace{2ex} \filright \thechapter}
{0ex} %
{\Huge \bfseries}
\titlecontents{chapter}
[3pc ]
{\addvspace{1.5pc}%
\filcenter} {\bf APPENDIX \thecontentslabel \\*[.2pc ]} {}
{}%That is,without page number
[\addvspace{.5pc}]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%
\include{AnhangA}
\end{appendix}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliography{ARTICLE}
\bibliographystyle{alpha}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{1pt}
\fancyhead{} \cfoot{} \fancyhead[LE,RO]{\small \slshape
\rightmark} \fancyfoot[LE,RO]{\small \thepage \slshape}
\printindex
\end{document}


Es wäre nett wenn jemand eine Idee hätte wo der Fehler liegt, vielen Dank!

Grüße
k.

sofa-surfer
26-03-2008, 08:52
Hallo,

mit deinem Code können wir hier leider nicht viel anfangen, da wir deine eingebundenen Dateien nicht zur Verfügung haben. Lässt sich das Problem soweit eindampfen, dass du hier ein für uns kompilierbares Minimalbeispiel posten kannst?
Beim kurzen Überschauen deines Codes ist mir auf die Schnelle nur aufgefallen, dass du das hyperref-Paket sehr weit vorn lädst. Im Allgemeinen (bis auf wenige Ausnamhen) sollte es aber das letzte Paket sein, das geladen wird. Vielleicht hilft das ja schon was ...

Matthias

kiansoh
26-03-2008, 15:50
Hallo, ich habe mittlerweile die Fehler-Quelle gefunden und zwar in \include{DEFINITION}. Ich habe die auskommentiert und dann sieht es ok aus.
Mit der DEFINITION sieht jedoch das Inhaltsverzeichnis viel besser aus. Kann man etwa tricksen?

\titlecontents{chapter}
[0pt]
{\addvspace{1pc}}
\makebox[0pt][r]{\large\thecontentslabel\enspace} \large}
{\contentsmargin{0mm} \bfseries
\makebox[0pt][r]{\thecontentslabel\enspace} }
\makebox[0pt][r]{\thecontentslabel} }
{\contentsmargin{0mm} }
{}
[\addvspace{.5pc}]

\titlecontents{section}
[0pt]
{\addvspace{0.2pc}}
{\thecontentslabel{\enspace}}
{}
{\titlerule*{. . }\contentspage}
[\addvspace{.6pc}]

\titlecontents{subsection}
[2.5pc]
{\addvspace{0.2pc}}
{\thecontentslabel{\enspace}}
{}
{\titlerule*{. . }\contentspage}
[\addvspace{.6pc}]

Viele Grüße
K.

kiansoh
27-03-2008, 12:02
Hallo.
Ich habe im Forum nachgeschaut und habe folgendes ausprobiert; es ist ein manueller Seitenumbruch im Inhaltsverzeichnis mit dem folgenden Befehl:
\addtocontents{toc}{\protect\clearpage}
Es ist zwar nicht die eleganteste Lösung aber ich kann damit leben :-) Ein Lob für dieses Forum!

Viele Grüße
K.