Einige Inhalte werden mit dem Befehl „toc“ nicht angezeigt

Einige Inhalte werden mit dem Befehl „toc“ nicht angezeigt

Ich bin fast fertig mit meinem Dokument, jetzt stelle ich fest, dass „Danksagungen“ und andere Kapitel nicht im Inhaltsverzeichnis tocangezeigt werden können . In meinem Inhalt können jedoch alle Kapitel angezeigt werden.abstract

Irgendwelche Hilfe, bitte?

main.tex


\usepackage{hyperref}
\usepackage{natbib}
\usepackage{xpatch}
\usepackage{url}
\usepackage{enumitem}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage{caption}
\usepackage{subcaption}
\usepackage[a4paper, width=150mm, top=25mm, bottom=25mm, bindingoffset=6mm]{geometry}
\usepackage{ragged2e}

\makeatletter
\newcommand\NoWarnNat{
\xpatchcmd{\NAT@citexnum}{\PackageWarning}{\let\PackageWarning\@gobbletwo\PackageWarning}{}{}
\xpatchcmd{\NAT@citex}{\PackageWarning}{\let\PackageWarning\@gobbletwo\PackageWarning}{}{}
\xpatchcmd{\nocite}{\PackageWarning}{\let\PackageWarning\@gobbletwo\PackageWarning}{}{}
}
\makeatother


\NoWarnNat

%\author{Python Buddha}
\date{02 March 2020}

\begin{document}

\input{titlepage}

\tableofcontents

\listoffigures

\chapter*{Hingabe}


\chapter*{Erklärung}
Declaration was originally a self-published electronic pamphlet by Michael Hardt and Antonio Negri on the Occupy movement that was released as a "Kindle single" in May 2012. The book explores the new democratic politics of organization, representation, and resistance that have been inaugurated by the movement. It has since been published in paper form by Argo-Navis.

\chapter*{Bestätigung}

n data networking, telecommunications, and computer buses, an acknowledgement is a signal that is passed between communicating processes, computers, or devices to signify acknowledgement, or receipt of message, as part of a communications protocol


\chapter*{Zusammenfassung}
\input{chapters/abstract_v2}

\chapter*{Weisheiten}
\input{chapters/introduction_v2}

\chapter{nehmen}
\input{chapters/chapter1_v1}

\chapter{Suchen}
\input{chapters/chapter2_v1}

\chapter{die Stille}
\input{chapters/chapter3_v1}

\chapter{Einzelstimmen}
\input{chapters/chapter4_v1}

\chapter{Abkündigungen}
\input{chapters/chapter5_v1}

\appendix
\chapter{Appendix Title}
\input{mainchapters/appendix}

\bibliographystyle{apa}
\bibliography{/Users/pythonbuddha/Documents/Thesis/References.bib}
\end{document}

```

Antwort1

Dies liegt daran, dass nicht nummerierte Kapitel, Abschnitte usw. nicht direkt in das Inhaltsverzeichnis aufgenommen werden. Sie können sie jedoch manuell mit dem \addcontentslineBefehl einschließen. Dieser Befehl benötigt drei Argumente:

  1. Die Tabelle, in die der Inhalt aufgenommen werden muss; verwenden Sie es tocfür das Inhaltsverzeichnis.
  2. Der Inhaltstyp, z. B. , chapter, section, subsectionusw.
  3. Der Name des Inhalts, der in der Tabelle erscheinen soll.

Zum Beispiel,

\documentclass{book}

\begin{document}

\tableofcontents

\chapter{First chapter}
\chapter*{First unnumbered chapter}
\chapter*{Other unnumbered chapter}
\addcontentsline{toc}{chapter}{Other unnumbered chapter}
\chapter{Other chapter}

\end{document}

ergibt sich folgendes Inhaltsverzeichnis.

verwandte Informationen