diff options
-rw-r--r-- | virtio-v1.0-csd01.tex | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/virtio-v1.0-csd01.tex b/virtio-v1.0-csd01.tex index 96f2b41..b5f8ac4 100644 --- a/virtio-v1.0-csd01.tex +++ b/virtio-v1.0-csd01.tex @@ -36,6 +36,7 @@ \usepackage{tocloft} \renewcommand{\cftdot}{\normalfont.} \renewcommand{\cftchapdotsep}{4.5} +\usepackage{etoolbox} \setmainfont[Mapping=tex-text]{Arial} \setromanfont{Arial} \setmonofont{Courier New} @@ -72,5 +73,11 @@ \titleformat{\paragraph}[hang]{\color{oasis1}\normalfont\normalsize\bfseries}{\color{oasis1}\theparagraph}{1em}{#1} \titleformat{\subparagraph}[hang]{\color{oasis1}\normalfont\normalsize\bfseries}{\color{oasis1}\thesubparagraph}{1em}{#1} +% hyperref toc hack - do not include the chapter/section number in the link +\makeatletter +\def\process@contentsline#1#2{#1{#2}\hyper@linkstart{link}{\Hy@tocdestname}} +\patchcmd{\contentsline}{\hyper@linkstart{link}{\Hy@tocdestname}{#2}}{\process@contentsline#2}{}{} +\makeatother + % main document \input{main.tex} |