von Basteli » So 28. Jun 2015, 23:01
Hallo Zusammen
Ich habe schon einiges im Internet geforscht und auch die bisher beste Lösung mit \addcontentsline{toc}{chapter}{\newline \protect Tabellenverzeichnis\hfill} gefunden.
Doch wie ihr im Beispiel sehen könnt, rückt es mir immer die Seitenzahlen im Inhaltsverzeichnis vom Tabellenverzeichnis, Abbildungsverzeichnis und Anhang ein wenig ein.
Hat da jemand eine Lösung dafür?
Für konstruktive Antworten bin ich euch sehr dankbar.
Gruess Basteli
% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode
% This is a simple template for a LaTeX document using the "article" class.
% See "book", "report", "letter" for other types of document.
\documentclass[11pt, oneside]{article} % use larger type; default would be 10pt
%================
%PAKETE/PRÄAMBEL
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
%%% Examples of Article customizations
% These packages are optional, depending whether you want the features they provide.
% See the LaTeX Companion or other references for full information.
%%% PAGE DIMENSIONS
\usepackage{geometry} % to change the page dimensions
\geometry{a4paper, left=30mm,right=20mm,top=20mm,bottom =20mm} % or letterpaper (US) or a5paper or....
% \geometry{margin=2in} % for example, change the margins to 2 inches all round
% \geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information
\usepackage{graphicx} % support the \includegraphics command and options
\usepackage{amssymb} % \usepackage[pdftex]{graphicx}
% \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
%%% PACKAGES
\usepackage{booktabs} % for much better looking tables
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subfigure} % make it possible to include more than one captioned figure/table in a single float
\usepackage{german} %Deutsche impelementierungen (aka Inhaltsverzeichnis)
\usepackage[utf8]{inputenc}
%\usepackage[latin1]{inputenc}
%\usepackage[T1]{fontenc}
\usepackage{amssymb,amsmath}
\usepackage{hyperref}
\usepackage{caption} % keine unnötige begin/end {figure}
\usepackage{float} % lädt das Paket zum erzwingen der Grafikposition
\usepackage{color}
\usepackage{pdflscape} %\usepackage{lscape}
\bibliographystyle{alphadin}
\usepackage{url}
\usepackage{pdfpages}
\usepackage{appendix}
\usepackage{afterpage}
\usepackage{multicol}
\usepackage{epstopdf}
% These packages are all incorporated in the memoir class to one degree or another...
%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\pagestyle{fancy} % options: empty , plain , fancy
%\renewcommand{\headrulewidth}{0pt} % customise the layout...
\lhead{}\chead{}\rhead{}
\lfoot{}\cfoot{\thepage}\rfoot{}
%%% SECTION TITLE APPEARANCE Macht komischi anderi Schrift!!!!!!!!!!!!!!!!
%\usepackage{sectsty}
%\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)
%%% ToC (table of contents) APPEARANCE
\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
\usepackage[nottoc]{tocbibind}
\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!
\usepackage{fancyhdr,lastpage}
\pagestyle{fancy}
\fancyhf{}% Löschen der Vorbelegung
\fancyhead[L]{\small\nouppercase{\leftmark}}%10
\fancyhead[R]{\small Seite \normalsize\thepage}%
\fancyfoot[L]{\small Stans, 03.07.2015 \newline Raphael Egli}
\fancyfoot[R]{\small Zürcher Hochschule für Angewandte Wissenschaften \\ Bachelorarbeit}%
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
%\fancyhead[L]{Projektarbeit Holzbau}
%\fancyhead[R]{\small\nouppercase{\leftmark}}%10
%\fancyfoot[L]{\small HS13 \quad Raphael Egli}
%\fancyfoot[R]{\small Seite \normalsize\thepage}%
%\renewcommand{\headrulewidth}{0.4pt}
%\renewcommand{\footrulewidth}{0.3pt}
%%% END Article customizations
%================
%BEGINN DES DOKUMENTS
\title{}
\author{}
%\date{} % %\date{} Activate to display a given date or no date (if empty),
% otherwise the current date is printed
\begin{document}
%==========
%TITELSEITE
\begin{titlepage}
\sffamily
\begin{multicols} {2}
\raggedright
{\bfseries\large Studiengang} \\
{\bfseries\large Bauingenieurwesen}
\end{multicols}
{\Huge TITEL}
\end{titlepage}
\maketitle
%===========
%VORWORT
\thispagestyle{empty}
\newpage
\pagestyle{fancy}
%\pagestyle{plain} % No headers, just page numbers
\pagenumbering{roman} % Roman numerals
\setcounter{page}{1}
\subsection*{Preface}
\newpage
%============
%INHALTSVERZEICHNIGS
\tableofcontents
\newpage
\cleardoublepage
\pagenumbering{arabic}
\setcounter{page}{1}
\setcounter{secnumdepth}{5}
\section{1}
\subsection{2q3rwef}
\section{2}
\newpage
\section{3}
\newpage
\section{4}
\newpage
\begin{thebibliography}{------}
%\bibitem{sb1}
\end{thebibliography}
%\newpage
%\fancyhf{}%
%\addcontentsline{toc}{chapter}{\protect \numberline Abbildungsverzeichnis}
\addcontentsline{toc}{chapter}{\newline \protect Abbildungsverzeichnis\hfill}
\listoffigures
%\newpage
%\fancyhf{}%
%\addcontentsline{toc}{chapter}{\protect \numberline Tabellenverzeichnis}
\addcontentsline{toc}{chapter}{\newline \protect Tabellenverzeichnis\hfill}
\listoftables
\newpage
\fancyhf{}% Löschen der Vorbelegung
\setcounter{page}{58}
\addcontentsline{toc}{chapter}{\newline \protect Anhang \hfill}
\begin{appendix}
\section*{Anhang}
\end{appendix}
\end{document}
Hallo Zusammen
Ich habe schon einiges im Internet geforscht und auch die bisher beste Lösung mit [tt]\addcontentsline{toc}{chapter}{\newline \protect Tabellenverzeichnis\hfill}[/tt] gefunden.
Doch wie ihr im Beispiel sehen könnt, rückt es mir immer die Seitenzahlen im Inhaltsverzeichnis vom Tabellenverzeichnis, Abbildungsverzeichnis und Anhang ein wenig ein.
Hat da jemand eine Lösung dafür?
Für konstruktive Antworten bin ich euch sehr dankbar.
Gruess Basteli
[code]% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode
% This is a simple template for a LaTeX document using the "article" class.
% See "book", "report", "letter" for other types of document.
\documentclass[11pt, oneside]{article} % use larger type; default would be 10pt
%================
%PAKETE/PRÄAMBEL
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
%%% Examples of Article customizations
% These packages are optional, depending whether you want the features they provide.
% See the LaTeX Companion or other references for full information.
%%% PAGE DIMENSIONS
\usepackage{geometry} % to change the page dimensions
\geometry{a4paper, left=30mm,right=20mm,top=20mm,bottom =20mm} % or letterpaper (US) or a5paper or....
% \geometry{margin=2in} % for example, change the margins to 2 inches all round
% \geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information
\usepackage{graphicx} % support the \includegraphics command and options
\usepackage{amssymb} % \usepackage[pdftex]{graphicx}
% \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
%%% PACKAGES
\usepackage{booktabs} % for much better looking tables
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subfigure} % make it possible to include more than one captioned figure/table in a single float
\usepackage{german} %Deutsche impelementierungen (aka Inhaltsverzeichnis)
\usepackage[utf8]{inputenc}
%\usepackage[latin1]{inputenc}
%\usepackage[T1]{fontenc}
\usepackage{amssymb,amsmath}
\usepackage{hyperref}
\usepackage{caption} % keine unnötige begin/end {figure}
\usepackage{float} % lädt das Paket zum erzwingen der Grafikposition
\usepackage{color}
\usepackage{pdflscape} %\usepackage{lscape}
\bibliographystyle{alphadin}
\usepackage{url}
\usepackage{pdfpages}
\usepackage{appendix}
\usepackage{afterpage}
\usepackage{multicol}
\usepackage{epstopdf}
% These packages are all incorporated in the memoir class to one degree or another...
%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\pagestyle{fancy} % options: empty , plain , fancy
%\renewcommand{\headrulewidth}{0pt} % customise the layout...
\lhead{}\chead{}\rhead{}
\lfoot{}\cfoot{\thepage}\rfoot{}
%%% SECTION TITLE APPEARANCE Macht komischi anderi Schrift!!!!!!!!!!!!!!!!
%\usepackage{sectsty}
%\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)
%%% ToC (table of contents) APPEARANCE
\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
\usepackage[nottoc]{tocbibind}
\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!
\usepackage{fancyhdr,lastpage}
\pagestyle{fancy}
\fancyhf{}% Löschen der Vorbelegung
\fancyhead[L]{\small\nouppercase{\leftmark}}%10
\fancyhead[R]{\small Seite \normalsize\thepage}%
\fancyfoot[L]{\small Stans, 03.07.2015 \newline Raphael Egli}
\fancyfoot[R]{\small Zürcher Hochschule für Angewandte Wissenschaften \\ Bachelorarbeit}%
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
%\fancyhead[L]{Projektarbeit Holzbau}
%\fancyhead[R]{\small\nouppercase{\leftmark}}%10
%\fancyfoot[L]{\small HS13 \quad Raphael Egli}
%\fancyfoot[R]{\small Seite \normalsize\thepage}%
%\renewcommand{\headrulewidth}{0.4pt}
%\renewcommand{\footrulewidth}{0.3pt}
%%% END Article customizations
%================
%BEGINN DES DOKUMENTS
\title{}
\author{}
%\date{} % %\date{} Activate to display a given date or no date (if empty),
% otherwise the current date is printed
\begin{document}
%==========
%TITELSEITE
\begin{titlepage}
\sffamily
\begin{multicols} {2}
\raggedright
{\bfseries\large Studiengang} \\
{\bfseries\large Bauingenieurwesen}
\end{multicols}
{\Huge TITEL}
\end{titlepage}
\maketitle
%===========
%VORWORT
\thispagestyle{empty}
\newpage
\pagestyle{fancy}
%\pagestyle{plain} % No headers, just page numbers
\pagenumbering{roman} % Roman numerals
\setcounter{page}{1}
\subsection*{Preface}
\newpage
%============
%INHALTSVERZEICHNIGS
\tableofcontents
\newpage
\cleardoublepage
\pagenumbering{arabic}
\setcounter{page}{1}
\setcounter{secnumdepth}{5}
\section{1}
\subsection{2q3rwef}
\section{2}
\newpage
\section{3}
\newpage
\section{4}
\newpage
\begin{thebibliography}{------}
%\bibitem{sb1}
\end{thebibliography}
%\newpage
%\fancyhf{}%
%\addcontentsline{toc}{chapter}{\protect \numberline Abbildungsverzeichnis}
\addcontentsline{toc}{chapter}{\newline \protect Abbildungsverzeichnis\hfill}
\listoffigures
%\newpage
%\fancyhf{}%
%\addcontentsline{toc}{chapter}{\protect \numberline Tabellenverzeichnis}
\addcontentsline{toc}{chapter}{\newline \protect Tabellenverzeichnis\hfill}
\listoftables
\newpage
\fancyhf{}% Löschen der Vorbelegung
\setcounter{page}{58}
\addcontentsline{toc}{chapter}{\newline \protect Anhang \hfill}
\begin{appendix}
\section*{Anhang}
\end{appendix}
\end{document}
[/code]