Add bibliography and index to table of contents

This commit is contained in:
Antti H S Laaksonen 2017-02-26 14:07:53 +02:00
parent 81ca5287cb
commit 65186779bc
2 changed files with 41 additions and 34 deletions

BIN
book.pdf

Binary file not shown.

View File

@ -1,6 +1,6 @@
\documentclass[twoside,12pt,a4paper,english]{book} \documentclass[twoside,12pt,a4paper,english]{book}
%\includeonly{luku01,kirj} %\includeonly{chapter01,list}
\usepackage[english]{babel} \usepackage[english]{babel}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
@ -27,6 +27,8 @@
\usepackage{titlesec} \usepackage{titlesec}
\usepackage{skak}
\usetikzlibrary{patterns,snakes} \usetikzlibrary{patterns,snakes}
\pagestyle{plain} \pagestyle{plain}
@ -48,6 +50,7 @@
\author{\Large Antti Laaksonen} \author{\Large Antti Laaksonen}
\makeindex \makeindex
\usepackage[totoc]{idxlayout}
\titleformat{\subsubsection} \titleformat{\subsubsection}
{\normalfont\large\bfseries\sffamily}{\thesubsection}{1em}{} {\normalfont\large\bfseries\sffamily}{\thesubsection}{1em}{}
@ -64,7 +67,7 @@
\setcounter{tocdepth}{1} \setcounter{tocdepth}{1}
\tableofcontents \tableofcontents
\include{johdanto} \include{preface}
\mainmatter \mainmatter
\pagenumbering{arabic} \pagenumbering{arabic}
@ -73,41 +76,45 @@
\newcommand{\key}[1] {\textbf{#1}} \newcommand{\key}[1] {\textbf{#1}}
\part{Basic techniques} \part{Basic techniques}
\include{luku01} \include{chapter01}
\include{luku02} \include{chapter02}
\include{luku03} \include{chapter03}
\include{luku04} \include{chapter04}
\include{luku05} \include{chapter05}
\include{luku06} \include{chapter06}
\include{luku07} \include{chapter07}
\include{luku08} \include{chapter08}
\include{luku09} \include{chapter09}
\include{luku10} \include{chapter10}
\part{Graph algorithms} \part{Graph algorithms}
\include{luku11} \include{chapter11}
\include{luku12} \include{chapter12}
\include{luku13} \include{chapter13}
\include{luku14} \include{chapter14}
\include{luku15} \include{chapter15}
\include{luku16} \include{chapter16}
\include{luku17} \include{chapter17}
\include{luku18} \include{chapter18}
\include{luku19} \include{chapter19}
\include{luku20} \include{chapter20}
\part{Advanced topics} \part{Advanced topics}
\include{luku21} \include{chapter21}
\include{luku22} \include{chapter22}
\include{luku23} \include{chapter23}
\include{luku24} \include{chapter24}
\include{luku25} \include{chapter25}
\include{luku26} \include{chapter26}
\include{luku27} \include{chapter27}
\include{luku28} \include{chapter28}
\include{luku29} \include{chapter29}
\include{luku30} \include{chapter30}
\include{kirj}
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Bibliography}
\include{list}
\cleardoublepage \cleardoublepage
\printindex \printindex
\end{document}la \end{document}