Debian Codegraph @

texmf-dist/doc/lualatex/tango/examples/candide.tex

raw
1 % !TEX TS-program = LuaLaTeX
2 %
3 \documentclass[french,Output=SmallTablet,PubliClass=book,twoside,Numbers=OldStyle,FontSize=9pt]{tango}
4
5 \geometry{paperheight=18.5cm,paperwidth=11.2cm,heightrounded,top=1.2cm,bottom=2.8cm,headheight=14pt,headsep=12pt,footskip=13pt,inner=1.2cm,outer=2cm,}
6 %
7 \titleformat{\chapter}[display]{\filcenter\large\itshape\addfontfeature{RawFeature={-onum}}}
8 {\normalfont\Large\scshape\addfontfeature{RawFeature={+c2sc}} \chaptername\space\thechapter}{1em}{}
9 \titleformat{name=\chapter,numberless}[display]{\filcenter\large\itshape\addfontfeature{RawFeature={-onum}}}
10 {}{0em}{}%
11 \titlespacing{\chapter}{0pt}{20pt plus 8pt}{20pt plus 8pt}%
12 %
13 \newpagestyle{candide}{%
14 \sethead
15 [\addfontfeature{RawFeature=+onum}\thepage]
16 [\addfontfeature{RawFeature=+c2sc}\MakeUppercase\chaptertitlename\space\thechapter][] % even
17 {}{\addfontfeature{RawFeature=+c2sc}\MakeUppercase\chaptertitle}
18 {\addfontfeature{RawFeature=+onum}\thepage} % odd
19 }
20 \newpagestyle{candidetoc}{%
21 \sethead
22 [\addfontfeature{RawFeature=+onum}\thepage]
23 [\addfontfeature{RawFeature=+c2sc}\MakeUppercase\frenchcontentsname][] % even
24 {}{\addfontfeature{RawFeature=+c2sc}\MakeUppercase\frenchcontentsname}
25 {\addfontfeature{RawFeature=+onum}\thepage} % odd
26 }
27
28 \renewcommand\thechapter{\Roman{chapter}}
29 \titlecontents{chapter}
30 [3.5em] % ie, 1.5em (chapter) + 2.3em
31 {\normalfont}
32 {\contentslabel{3.5em}}
33 {\hspace*{-1.5em}}
34 {\titlerule*[1pc]{.}\contentspage}
35
36 %%%%%%%%%%%%
37 \pagestyle{candide}
38 %
39
40 \usepackage{lettrine}
41
42
43 \includeonly{Ch-1-15, Ch-16-30}
44
45 \hypersetup{pdfpagelayout=TwoPageRight}
46
47 \begin{document}
48
49
50
51 \include{Ch-1-15}
52 \include{Ch-16-30}
53 \backmatter
54 \pagestyle{candidetoc}
55 \tableofcontents
56
57 \end{document}
58
59
60
61