OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

virtio message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [PATCH] 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>
---
 virtio-v1.0-csd01.tex | 8 ++++----
 1 file 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
-- 
1.8.3.2




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]