summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/tango/examples/candide.tex
blob: bd3432e7bf539f9212af4709f515bcf3a4a7fe62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
% !TEX TS-program = LuaLaTeX
%
\documentclass[french,Output=SmallTablet,PubliClass=book,twoside,Numbers=OldStyle,FontSize=9pt]{tango}

\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,}
%
\titleformat{\chapter}[display]{\filcenter\large\itshape\addfontfeature{RawFeature={-onum}}}
{\normalfont\Large\scshape\addfontfeature{RawFeature={+c2sc}} \chaptername\space\thechapter}{1em}{}
\titleformat{name=\chapter,numberless}[display]{\filcenter\large\itshape\addfontfeature{RawFeature={-onum}}}
{}{0em}{}%
\titlespacing{\chapter}{0pt}{20pt plus 8pt}{20pt plus 8pt}%
%
\newpagestyle{candide}{%
 \sethead
 [\addfontfeature{RawFeature=+onum}\thepage]
[\addfontfeature{RawFeature=+c2sc}\MakeUppercase\chaptertitlename\space\thechapter][] % even
          {}{\addfontfeature{RawFeature=+c2sc}\MakeUppercase\chaptertitle}
          {\addfontfeature{RawFeature=+onum}\thepage} % odd
  }
  \newpagestyle{candidetoc}{%
  \sethead
 [\addfontfeature{RawFeature=+onum}\thepage]
[\addfontfeature{RawFeature=+c2sc}\MakeUppercase\frenchcontentsname][] % even
          {}{\addfontfeature{RawFeature=+c2sc}\MakeUppercase\frenchcontentsname}
          {\addfontfeature{RawFeature=+onum}\thepage} % odd
  }
  
  \renewcommand\thechapter{\Roman{chapter}}
  \titlecontents{chapter}
                [3.5em] % ie, 1.5em (chapter) + 2.3em
                 {\normalfont}
                  {\contentslabel{3.5em}}
                 {\hspace*{-1.5em}}
                 {\titlerule*[1pc]{.}\contentspage}

  %%%%%%%%%%%%
\pagestyle{candide}
%

\usepackage{lettrine}


\includeonly{Ch-1-15, Ch-16-30}

\hypersetup{pdfpagelayout=TwoPageRight}

\begin{document}



\include{Ch-1-15}
\include{Ch-16-30}
\backmatter
\pagestyle{candidetoc}
\tableofcontents

\end{document}