我想将 LoF、LoT 和参考书目纳入我的目录,不带“章节号”,但带页码。我找到了解决方案,但不适用于我使用的课程,即报告。
这是我目前拥有的:
这是我的代码,我尽可能地缩短它:
\documentclass[12pt,a4paper,twoside]{report}
%Seitenlayout
\usepackage[top=2.5cm, bottom=2cm, left=2.5cm, right=2.5cm,paper=a4paper]{geometry}
%Deutsche Umlaute
\usepackage{ngerman}
%Zitierungen in der richtigen Reihenfolge
\usepackage{cite}
%Längenangaben für den Abstand zwischen zwei Absätzen.
\usepackage{parskip}
%Zeilenabstand ändern
\usepackage[onehalfspacing]{setspace}
%Farbige Texte etc
\usepackage{color}
%Graphiken und Bilder
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{psfrag}
\usepackage{wrapfig}
%Tabellenumgebung
\usepackage{tabularx}
\usepackage{booktabs} %\toprule, \midrule, \bottomrule
%Mathematische Symbole und Zeichen
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathrsfs}
%Algorithm Package
\usepackage[ruled,vlined]{algorithm2e}
%Blindtext
\usepackage{blindtext}
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
% Makro Abstract
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
\newcommand{\Abstract}{
This is an abstract.\\
\textit{\textbf{Anmerkung:}\\
Der Abstract ist bei Arbeiten, die neben dem deutschen einen englischen Titel haben, verpflichtend.}
}
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
% Anfang von Dokumententext
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
\begin{document}
\pagenumbering{Roman}
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
% Einbettung des Abstracts
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
\chapter*{Abstract}
\chaptermark{Abstract}
\Abstract
\cleardoublepage
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
% Verzeichnisse
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
\tableofcontents
\listoffigures
\listoftables
\newpage
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
% Beginn des Inhalts
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
\pagenumbering{arabic}
\chapter{Einleitung}
\blindtext
\section{Dies ist ein Unterkapitel}
\blindtext
\section{Tabellen}
Hier ist eine Tabelle gegeben.
\begin{table}[th]
\centering
\begin{tabular}{l|c|r}
Ort & Temperatur & Luftfeuchtigkeit \\ \hline
Bochum & $16^\circ \text{C}$ & $60 \%$ \\
M\"unchen & $19^\circ \text{C}$ & $62 \%$ \\
Berlin & $14^\circ \text{C}$ & $63 \%$ \\
Frankfurt & $15^\circ \text{C}$ & $64 \%$ \\
\end{tabular} \caption[Darstellung der Temperatur und der Luftfeuchtigkeit am 22.09.2012]{Darstellung der Temperatur und der Luftfeuchtigkeit am 22.09.2012 an ausgew\"ahlten Orten in Deutschland. Die erste Spalte ist links ausgerichtet, die zweite zentriert und die dritte ist rechts ausgerichtet.}\label{tab:TempUndLuftfeuchtigkeit}
\end{table}
Tabelle \ref{tab:TempUndLuftfeuchtigkeit} kann mit dem Befehl \verb|\ref{EinEindeutigerName}| einfach referenziert werden.
\section{Abbildungen}
\begin{figure}[th]
\centering
\subfloat[]{\includegraphics[width = 0.45\textwidth]{./figures/pt1.eps}}
\caption{Diese Abbildung zeigt die Sprungantworten eines $\text{PT}_1$ und eines $\text{PT}_2$-Gliedes. }
\end{figure}
\section{Literaturverwaltung}
Beispiel: Der Artikel von Bemporad et al.~\cite{Bemporad2002} gibt eine gute \"Ubersicht \"uber explizite Modellpr\"adiktive Regelung.
Jones2006b \cite{Jones2006b}
%Bibliography
% \nocite{*} %Wird verwendet um eine Literaturquelle im Verzeichnis erscheinen zu lassen, ohne auf sie im Text zu verweisen.
\bibliographystyle{abbrvdin}
\bibliography{Masterarbeit_Bibliothek_CN}
\end{document}
在不久的将来,我还想加入词汇表和符号目录,但我还没有找到如何实现。也许有人能给我一些建议,我应该往哪个方向寻找?
答案1
使用tocbibind
包
\usepackage[notindex]{tocbibind}
这会将 ToC、LoF、LoT、参考书目添加到 ToC,但不添加索引(如果有)。包选项nottoc
本身禁用 ToC 的包含。阅读手册(> texdoc tocbibind
)了解更多信息。