diff options
Diffstat (limited to 'macros/luatex/latex/tango/examples/candide.tex')
-rw-r--r-- | macros/luatex/latex/tango/examples/candide.tex | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/macros/luatex/latex/tango/examples/candide.tex b/macros/luatex/latex/tango/examples/candide.tex new file mode 100644 index 0000000000..bd3432e7bf --- /dev/null +++ b/macros/luatex/latex/tango/examples/candide.tex @@ -0,0 +1,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} + + + + |