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