Debian Codegraph @

texmf-dist/doc/latex/yathesis/french/documentation/configuration/thesis.cfg

raw
1 % Title page changed because the documentation isn't a thesis!
2 \makeatletter
3 \renewpagestyle{titles}[]{%
4 \setcounter{secnumdepth}{-10}%
5 \newgeometry{centering,nomarginpar,bottom=1cm,top=1cm,headheight=\YAD@max@logoheight,hmargin=2cm,includeall}%
6 \sethead{}{}{}%
7 \setfootrule{0pt}%
8 \setfoot{}{}{}%
9 }%
10 \renewcommand{\maketitle}[1][]{%
11 \booltrue{YAD@maketitle@used}%
12 \yadsetup{#1}%
13 \setlength{\fboxsep}{10pt}%
14 \setlength{\YAD@titleboxwidth}{\linewidth-2\fboxsep-2\fboxrule}%
15 \pagestyle{titles}%
16 \renewcommand*{\do}[1]{%
17 \cleardoublepage%
18 \begingroup%
19 \expandafter\selectlanguage\expandafter{##1}%
20 \begin{lrbox}{\YAD@titlebox}
21 \ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
22 }{%
23 \tcbset{colback=white,boxsep=3pt,boxrule=0.4pt,arc=0mm}%
24 \ifthenelse{\equal{\cmdKV@YAD@frametitle}{shadowbox}}{%
25 \tcbset{enhanced,drop shadow southeast={black,opacity=1}}%
26 }{%
27 \ifthenelse{\equal{\cmdKV@YAD@frametitle}{ovalbox}}{%
28 \tcbset{arc=3mm}%
29 }{%
30 \ifthenelse{\equal{\cmdKV@YAD@frametitle}{fbox}}{%
31 }{%
32 \tcbset{code={\expandafter\pgfkeysalsofrom{\cmdKV@YAD@frametitle}}}%
33 }%
34 }%
35 }%
36 \begin{tcolorbox}
37 }%
38 \noindent%
39 \begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}
40 \onehalfspacing%
41 \noindent%
42 \par%
43 \centering%
44 \Huge\bfseries%
45 \printtitle%
46 \ifundef{\printsubtitle}{%
47 }{%
48 \ifdraft{}{\vspace*{\stretch{.15}}}%
49 \par%
50 \centering%
51 \Large\printsubtitle%
52 }%
53 \end{minipage}%
54 \ifthenelse{\equal{\cmdKV@YAD@frametitle}{none}}{%
55 }{%
56 \end{tcolorbox}
57 }%
58 \end{lrbox}
59 \settototalheight{\YAD@titleboxheight}{\YAD@titlebox}%
60 \setlength{\YAD@otherboxheight}{0.3\paperheight-\YAD@titleboxheight}%
61 \noindent%
62 \begin{center}
63 {%
64 \large%
65 \vspace*{\stretch{1}}%
66 \usebox{\YAD@titlebox}%
67 \par%
68 \bigskip%
69 \textbf{\printauthor}%
70 \par%
71 \bigskip%
72 \textbf{\printdate}%
73 \vspace*{\stretch{1}}%
74 }%
75 \end{center}
76 \endgroup%
77 \ifthenelse{\equal{\YAD@colophon@location}{verso-frontcover}}{%
78 \YAD@insert@colophon%
79 }{%
80 }%
81 \boolfalse{YAD@cover@page}%
82 }%
83 \expandafter\docsvlist{\YAD@mainlanguage}%
84 \ifbool{YAD@two@titles}{%
85 \booltrue{YAD@second@title}%
86 \ifthenelse{\equal{\YAD@mainlanguage}{french}}{%
87 \ifbool{YAD@nofrontcover}{%
88 \docsvlist{english}%
89 }{%
90 \docsvlist{french,english}%
91 }%
92 }{%
93 \ifbool{YAD@nofrontcover}{%
94 \docsvlist{french}%
95 }{%
96 \docsvlist{english,french}%
97 }%
98 }%
99 }{%
100 }%
101 \ifthenelse{\equal{\cmdKV@YAD@frametitle}{shadowbox}}{%
102 \let\tcb@shadow@prepare=\origtcb@shadow@prepare%
103 }{%
104 }%
105 \expandafter\selectlanguage\expandafter{\YAD@mainlanguage}%
106 \pagestyle{preliminary}%
107 }%
108 %
109 % Configuration pour faire figurer les 1re et dernière entrées d'index d'une
110 % page d'index en titre courant
111 \newcommand\MarkbothHack
112 {\let\ORIGttl@titlemarks\ttl@titlemarks
113 \let\ttl@titlemarks\relax
114 }
115 \newcommand\UndoMarkbothHack
116 {\clearpage
117 \markboth{}{}%
118 \let\ttl@titlemarks\ORIGttl@titlemarks
119 }
120 \newcommand\wordrange{%
121 \ifthenelse{%
122 \equal{\leftmark}{}%
123 }{%
124 \ifthenelse{%
125 \equal{\rightmark}{}%
126 }{%
127 % Both leftmark and rightmark empty => empty wordrange
128 }{%
129 (\rightmark)
130 % : leftmark vide, rightmark ? (leftmark=|\leftmark|, rightmark=|\rightmark|)%
131 }%
132 }{%
133 \ifthenelse{%
134 \equal{\rightmark}{\leftmark}%
135 }{%
136 % (\rightmark) :
137 % leftmark non vide, leftmark=rightmark (leftmark=|\leftmark|, rightmark=|\rightmark|)%
138 }{%
139 (\rightmark\ -- \leftmark)
140 % : leftmark non vide, leftmark!=rightmark (leftmark=|\leftmark|, rightmark=|\rightmark|)%
141 }%
142 }%
143 }
144 \newpagestyle{indexpagestyle}{%
145 \let\ORIGttl@titlemarks\ttl@titlemarks
146 \let\ttl@titlemarks\relax
147 %
148 \sethead[\thepage{}\hspace{.5cm}\wordrange]%
149 []%
150 [\YAD@chapter@header{}]%
151 {\YAD@chapter@header{}}%
152 {}%
153 {\wordrange\hspace{.5cm} \thepage{}}%
154 \headrule%
155 %
156 % \let\ttl@titlemarks\relax
157 % \sethead{\rightmark\ -- \leftmark}{}{}%
158 % \headrule
159 % \setfoot{}{\thepage}{}%
160 }%
161 \newcommand\UndoSideEffectOfIndexPageStyle
162 {\clearpage
163 \let\ttl@titlemarks\ORIGttl@titlemarks
164 }
165 %
166 \makeatother
167 \tcbset{index command name=\jobname-commands}
168 %
169 \makeindex[name=\jobname-commands,title=Index des commandes,extout=odx,extin=ond,columnseprule]
170 \makeindex[name=\jobname-changes,title=Historique des changements,extout=gdx,extin=gnd]
171 %
172 \renewcommand{\ttdefault}{lmtt}
173 %
174 \input{liminaires/fixed-footnotes}
175 %
176 \loadglsentries{glossaries/glossary}
177 \loadglsentries{glossaries/acronyms}
178 %
179 \addbibresource{yathesis-fr.bib}
180 %
181 \InputIfFileExists{translations}{}{}
182 %
183 % \InputIfFileExists{includeall-includeonly}{}{}
184 %
185 \tcbsetforeverylayer{autoparskip}%
186 %
187 \colophontext{%
188 Document intitulé \frquote{\printtitle}, écrit par \printauthor{},
189 achevé le \today{}, composé au moyen du système de préparation de document
190 \href{https://fr.wikipedia.org/wiki/LaTeX}{\LaTeX{}} et de la classe
191 \href{https://www.ctan.org/pkg/yathesis}{\textsf{yathesis}} dédiée aux
192 thèses préparées en France.%
193 }
194
195 %%% Local Variables:
196 %%% mode: latex
197 %%% End: