File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ \documentclass [12pt,a4paper ]{article }
2+
3+ \usepackage {blindtext } % some example text
4+
5+ \renewcommand *\contentsname {Summary} % Change name of toc: Contents -> Summary
6+
7+ \usepackage {color }
8+
9+ \definecolor {lightblue}{RGB}{38, 33, 138}
10+
11+ \usepackage {setspace } % add more space in toc
12+
13+ \usepackage {hyperref } % should be last package in import
14+ % https://www.overleaf.com/learn/latex/Hyperlinks
15+ \hypersetup { % changing color of links
16+ colorlinks = true,
17+ linkcolor = lightblue,
18+ filecolor=magenta,
19+ urlcolor=blue,
20+ pdftitle={TOC - Example},
21+ pdfpagemode=FullScreen,
22+ }
23+
24+ \begin {document }
25+
26+ \doublespacing
27+ \tableofcontents
28+ \singlespacing
29+
30+ \section {First Section }
31+
32+ \subsection {First Subsection }
33+
34+ \blindtext
35+
36+ \addcontentsline {toc}{section}{Unnumbered Section}
37+
38+ \section* {Unnumbered Section }
39+
40+ \section {Second Section }
41+
42+ \pagebreak
43+
44+ \section {Third Section }
45+
46+
47+ \end {document }
You can’t perform that action at this time.
0 commit comments