Add \chapter* to toc
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
\chapterstartoc{List of Acronyms}
|
\chapter*{List of Acronyms}
|
||||||
\label{acronyms}
|
\label{acronyms}
|
||||||
|
|
||||||
\renewcommand{\glossarysection}[2][]{} % Remove the title of the glossary
|
\renewcommand{\glossarysection}[2][]{} % Remove the title of the glossary
|
||||||
|
|||||||
@@ -1 +1,4 @@
|
|||||||
\printbibliography[heading=bibintoc]
|
\chapter*{Bibliography}
|
||||||
|
\label{bibliography}
|
||||||
|
|
||||||
|
\printbibliography[heading=none]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
\chapterstartoc{List of Figures}
|
\chapter*{List of Figures}
|
||||||
\label{figures}
|
\label{figures}
|
||||||
|
|
||||||
{% Set the link color to black only for the list of figures
|
{% Set the link color to black only for the list of figures
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
\chapterstartoc{List of Tables}
|
\chapter*{List of Tables}
|
||||||
\label{tables}
|
\label{tables}
|
||||||
|
|
||||||
{% Set the link color to black only for the list of tables
|
{% Set the link color to black only for the list of tables
|
||||||
|
|||||||
@@ -6,6 +6,19 @@
|
|||||||
\cleardoublepage% Start on a right page
|
\cleardoublepage% Start on a right page
|
||||||
\includefrom{#1}{#2}% Include with relative paths \input in the chapter
|
\includefrom{#1}{#2}% Include with relative paths \input in the chapter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\NewCommandCopy{\oldchapter}{\chapter}
|
||||||
|
\RenewDocumentCommand{\chapter}{s o m}{% #1 = star (no number), #2 = short title, #3 = title
|
||||||
|
\IfBooleanTF{#1}{%
|
||||||
|
\oldchapter*{#3}% Starred chapter
|
||||||
|
\addcontentsline{toc}{chapter}{#3}% Add to the table of contents
|
||||||
|
}{%
|
||||||
|
\IfValueTF{#2}{%
|
||||||
|
\oldchapter[#2]{#3}% Chapter with short title
|
||||||
|
}{%
|
||||||
|
\oldchapter{#3}% Regular chapter
|
||||||
|
}%
|
||||||
|
}%
|
||||||
}
|
}
|
||||||
|
|
||||||
\newcommand{\noindentskip}{\bigskip\noindent} % Skip a line and remove the indent
|
\newcommand{\noindentskip}{\bigskip\noindent} % Skip a line and remove the indent
|
||||||
|
|||||||
Reference in New Issue
Block a user