From 37797d7ad6edc0ce9a46be9ea582bd681c498cbd Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Mon, 25 Nov 2013 12:25:30 +0000 Subject: virtio: LaTeX: change the way the dotted lines are added in the TOC Instead of using the tocloft package, which seems to collide with OASIS-style TOC headers, patch the report style. More hacky, less intrusive... Signed-off-by: Pawel Moll Signed-off-by: Michael S. Tsirkin git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@110 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- virtio-v1.0-csd01.tex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'virtio-v1.0-csd01.tex') diff --git a/virtio-v1.0-csd01.tex b/virtio-v1.0-csd01.tex index b5f8ac4..fe1c76f 100644 --- a/virtio-v1.0-csd01.tex +++ b/virtio-v1.0-csd01.tex @@ -33,9 +33,6 @@ \usepackage{xifthen} \usepackage[no-math]{fontspec} \usepackage{xltxtra} -\usepackage{tocloft} -\renewcommand{\cftdot}{\normalfont.} -\renewcommand{\cftchapdotsep}{4.5} \usepackage{etoolbox} \setmainfont[Mapping=tex-text]{Arial} \setromanfont{Arial} @@ -73,10 +70,13 @@ \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 +% toc hacks \makeatletter +% hyperref package: do not include the chapter/section number in the link \def\process@contentsline#1#2{#1{#2}\hyper@linkstart{link}{\Hy@tocdestname}} \patchcmd{\contentsline}{\hyper@linkstart{link}{\Hy@tocdestname}{#2}}{\process@contentsline#2}{}{} +% report style: add dotted lines between chapter names and page numbers +\patchcmd{\l@chapter}{\hfil}{\leaders\hbox{\normalfont$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill}{}{} \makeatother % main document -- cgit v1.2.3