summaryrefslogtreecommitdiff
path: root/virtio-v1.0-csd01.tex
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-11-25 12:25:30 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-11-25 12:25:30 +0000
commit37797d7ad6edc0ce9a46be9ea582bd681c498cbd (patch)
treeb28a44dc41dfe87dc53cb26b1f0c16ebbae98d26 /virtio-v1.0-csd01.tex
parent21928105d72c2b349ae7309dafeedabf7ef6632f (diff)
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 <pawel.moll@arm.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@110 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'virtio-v1.0-csd01.tex')
-rw-r--r--virtio-v1.0-csd01.tex8
1 files changed, 4 insertions, 4 deletions
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