Skip to content

Commit 8dab54e

Browse files
author
BenSt099
committed
added toc exp
1 parent 6e69e2a commit 8dab54e

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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}

0 commit comments

Comments
 (0)