Unbold sections in global toc
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
{
|
||||
\hypersetup{linkcolor=black}
|
||||
\renewcommand{\contentsname}{Table of Contents}
|
||||
\pdfbookmark[chapter]{\contentsname}{toc}
|
||||
\tableofcontents
|
||||
\hypersetup{linkcolor=black}
|
||||
|
||||
\renewcommand{\contentsname}{Table of Contents}
|
||||
\pdfbookmark[chapter]{\contentsname}{toc}
|
||||
|
||||
\renewcommand{\cftsecfont}{}% Unbold sections in ToC
|
||||
\tableofcontents
|
||||
}
|
||||
@@ -5,5 +5,5 @@ Compile `main.tex` using either `pdflatex` with `biblatex` or `lualatex` (recomm
|
||||
You may need to install the following packages:
|
||||
|
||||
```bash
|
||||
tlmgr install adjustbox babel babel-english biber biblatex bookmark booktabs caption changes csquotes emptypage enumitem etoc etoolbox fancyhdr fontaxes fontenc footmisc glossaries glossaries-english graphicx hyperref iftex import inconsolata libertinus libertinus-fonts libertinus-otf libertinus-type1 makecell mathtools microtype multirow nextpage pdflscape pdfpages setspace siunitx subfig tabularx textcomp titlesec truncate todonotes ulem upquote xcolor xstring
|
||||
tlmgr install adjustbox babel babel-english biber biblatex bookmark booktabs caption changes csquotes emptypage enumitem etoolbox fancyhdr fontaxes fontenc footmisc glossaries glossaries-english graphicx hyperref iftex import inconsolata libertinus libertinus-fonts libertinus-otf libertinus-type1 makecell mathtools microtype multirow nextpage pdflscape pdfpages setspace siunitx subfig tabularx textcomp titlesec truncate todonotes tocloft ulem upquote xcolor xstring
|
||||
```
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
% Formatting
|
||||
\usepackage[autostyle]{csquotes} % For quotes
|
||||
\usepackage[dvipsnames]{xcolor} % More colors
|
||||
\usepackage{tocloft}
|
||||
|
||||
% Footnotes
|
||||
\usepackage[hang]{footmisc}
|
||||
|
||||
@@ -6,29 +6,19 @@
|
||||
}
|
||||
|
||||
\usepackage{titletoc} % Local table of contents
|
||||
\titlecontents{section}
|
||||
[0pt] % left margin
|
||||
{\bfseries} % formatting
|
||||
{\thecontentslabel\quad} % label format
|
||||
{} % before code
|
||||
{\titlerule*[.8pc]{.}\hspace{0.2em}\contentspage} % dots and page
|
||||
|
||||
\titlecontents{subsection}
|
||||
[2.4em] % left margin
|
||||
{} % formatting
|
||||
{\thecontentslabel\quad} % label format
|
||||
{} % before code
|
||||
{\titlerule*[.8pc]{.}\hspace{0.2em}\contentspage} % dots and page
|
||||
|
||||
\newcommand{\chaptertoc}{% Print the table of contents for the chapter
|
||||
\hypersetup{linkcolor=black}%
|
||||
|
||||
\vspace{-1em}%
|
||||
\horizontalrule%
|
||||
\vspace{-1.5em}%
|
||||
\section*{Contents}% Add a section title
|
||||
\vspace{-0.5em}%
|
||||
|
||||
\startcontents% Start referencing the contents
|
||||
\renewcommand{\cftsecfont}{\bfseries}% Bold sections in local ToC
|
||||
\printcontents{}{1}{}% Print the contents
|
||||
|
||||
\horizontalrule%
|
||||
\vspace{2em}%
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user