0% found this document useful (0 votes)
169 views

The Algorithm For Bidirectional Typesetting

In this document we explain how to code and the intructions allow us to make distinct features which in turn make something awesome.

Uploaded by

Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
169 views

The Algorithm For Bidirectional Typesetting

In this document we explain how to code and the intructions allow us to make distinct features which in turn make something awesome.

Uploaded by

Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 599

The bidi Package

Source documentation for version 36.3

to my Master, Ferdowsi The Great

If you want to report any bugs or typos and corrections in the documentation, or ask for
any new features, or suggest any improvements, or ask any questions about the package,
then please use the issue tracker:
https://github.com/persiantex/bidi/issues
In doing so, please always explain your issue well enough, and always include a minimal
working example showing the issue.

Copyright (c) 2007–2020 Vafa Khalighi


Copyright (c) 2018–2020 bidi-tex GitHub Organization
Permission is granted to distribute and/or modify both the documentation and the code
under the conditions of the LATEX Project Public License, either version 1.3c of this license
or (at your option) any later version.
The bidi Package
Bidirectional typesetting in plain TEX and LATEX,
using XeTEX engine
Source documentation for version 36.3

Vafa Khalighi∗
May 17, 2020

Contents
1 File amsart-xetex-bidi.def 4 15 File bidi.tex 41

2 File adjmulticol-xetex-bidi.def 6 16 File bidi2in1.sty 43

3 File algorithm2e-xetex-bidi.def 7 17 File bidicode.sty 45

4 File amsbook-xetex-bidi.def 8 18 File bidiftnxtra.sty 47

5 File amsmath-xetex-bidi.def 10 19 File bidimoderncv.cls 51

6 File amstext-xetex-bidi.def 11 20 File bidi-perpage.sty 56

7 File amsthm-xetex-bidi.def 11 21 File biditools.sty 58

8 File array-xetex-bidi.def 11 22 File bidituftefloat.sty 97

9 File article-xetex-bidi.def 12 23 File bidituftesidenote.sty 109

10 File artikel1-xetex-bidi.def 16 24 File bidituftetoc.sty 120

11 File artikel2-xetex-bidi.def 21 25 File bidituftegeneralstructure.sty123

12 File artikel3-xetex-bidi.def 26 26 File bidituftehyperref.sty 125

13 File arydshln-xetex-bidi.def 32 27 File bidituftetitle.sty 126

14 File bidi.sty 34 28 File biditufte-handout.cls 129


∗ Thanks to the bidi-tex GitHub organization consisted of David Carlisle and other members of the LAT X team
E
to maintain the package in the period 2018–2020.

1
29 File biditufte-book.cls 129 57 File fancybox-xetex-bidi.def 226

30 File bidipoem.sty 130 58 File fancyhdr-xetex-bidi.def 226

31 File boek3-xetex-bidi.def 138 59 File fix2col-xetex-bidi.def 227

32 File boek-xetex-bidi.def 141 60 File fleqn-xetex-bidi.def 228

33 File bookest-xetex-bidi.def 145 61 File float-xetex-bidi.def 229

34 File book-xetex-bidi.def 146 62 File floatrow-xetex-bidi.def 229

35 File breqn-xetex-bidi.def 150 63 File flowfram-xetex-bidi.def 229

36 File cals-xetex-bidi.def 151 64 File footnote-xetex-bidi.def 232

37 File caption-xetex-bidi.def 152 65 File framed-xetex-bidi.def 239

38 File caption3-xetex-bidi.def 152 66 File ftnright-xetex-bidi.def 243

39 File colortbl-xetex-bidi.def 152 67 File graphicx-xetex-bidi.def 248

40 File color-xetex-bidi.def 153 68 File geometry-xetex-bidi.def 250

41 File combine-xetex-bidi.def 154 69 File hvfloat-xetex-bidi.def 251

42 File crop-xetex-bidi.def 154 70 File hyperref-xetex-bidi.def 257

43 File cutwin-xetex-bidi.def 156 71 File imsproc-xetex-bidi.def 270

44 File cuted-xetex-bidi.def 157 72 File leqno-xetex-bidi.def 272

45 File cvthemebidicasual.sty 166 73 File letter-xetex-bidi.def 272

46 File cvthemebidiclassic.sty 168 74 File lettrine-xetex-bidi.def 273

47 File dblfnote-xetex-bidi.def 170 75 File lineno-xetex-bidi.def 276

48 File diagbox-xetex-bidi.def 173 76 File listings-xetex-bidi.def 276

49 File draftwatermark-xetex-bidi.def176 77 File loadingorder-xetex-bidi.def 279

50 File eso-pic-xetex-bidi.def 176 78 File longtable-xetex-bidi.def 285

51 File empheq-xetex-bidi.def 177 79 File mathtools-xetex-bidi.def 287

52 File extarticle-xetex-bidi.def 180 80 File mdframed-xetex-bidi.def 287

53 File extbook-xetex-bidi.def 183 81 File bidi-media9.sty 289

54 File extletter-xetex-bidi.def 187 82 File memoir-xetex-bidi.def 301

55 File extrafootnotefeatures-xetex-bidi.def188
83 File midfloat-xetex-bidi.def 304

56 File extreport-xetex-bidi.def 222 84 File minitoc-xetex-bidi.def 309

2
85 File multicol-xetex-bidi.def 310 108File scrreprt-xetex-bidi.def 376

86 File multienum-xetex-bidi.def 314 109File sidecap-xetex-bidi.def 388

87 File natbib-xetex-bidi.def 316 110File soul-xetex-bidi.def 388

88 File newfloat-xetex-bidi.def 316 111File stabular-xetex-bidi.def 389


89 File ntheorem-xetex-bidi.def 317 112File subfigure-xetex-bidi.def 390
90 File ntheorem-hyper-xetex-bidi.def318
113File tabls-xetex-bidi.def 390
91 File overpic-xetex-bidi.def 318
114File tabularx-xetex-bidi.def 391
92 File pdfbase-xetex-bidi.def 319
115File tabulary-xetex-bidi.def 392
93 File pdfpages-xetex-bidi.def 319
116File tc-xetex-bidi.def 393
94 File pgfcorescopes.code-xetex-bidi.def320
117File tcolorbox-xetex-bidi.def 393
95 File picinpar-xetex-bidi.def 322
118File titlesec-xetex-bidi.def 394
96 File plain-xetex-bidi.def 324
119File titletoc-xetex-bidi.def 394
97 File pstricks-xetex-bidi.def 326
120File tocbibind-xetex-bidi.def 395
98 File quotchap-xetex-bidi.def 327
121File tocloft-xetex-bidi.def 397
99 File ragged2e-xetex-bidi.def 328
122File tocbasic-xetex-bidi.def 403
100File rapport1-xetex-bidi.def 330
123File tocstyle-xetex-bidi.def 416
101File rapport3-xetex-bidi.def 335
124File todonotes-xetex-bidi.def 421
102File refrep-xetex-bidi.def 340

103File report-xetex-bidi.def 344 125File wrapfig-xetex-bidi.def 424

104File rotating-xetex-bidi.def 348 126File xcolor-xetex-bidi.def 426

105File scrartcl-xetex-bidi.def 351 127File latex-xetex-bidi.def 428

106File scrbook-xetex-bidi.def 362 128File xltxtra-xetex-bidi.def 447

107File scrlettr-xetex-bidi.def 374 129Index 447

3
1 File amsart-xetex-bidi.def
1 \ProvidesFile{amsart-xetex-bidi.def}[2017/08/09 v1.1 bidi adaptations for amsart class for XeT
2 \def\@tocline#1#2#3#4#5#6#7{\relax
3 \ifnum #1>\c@tocdepth % then omit
4 \else
5 \par \addpenalty\@secpenalty\addvspace{#2}%
6 \begingroup \hyphenpenalty\@M
7 \@ifempty{#4}{%
8 \@tempdima\csname r@tocindent\number#1\endcsname\relax
9 }{%
10 \@tempdima#4\relax
11 }%
12 \parindent\z@ \if@RTL\rightskip\else\leftskip\fi#3\relax \advance\if@RTL\rightskip\else\le
13 \if@RTL\leftskip\else\rightskip\fi\@pnumwidth plus4em \parfillskip-\@pnumwidth
14 #5\leavevmode\hskip-\@tempdima #6\nobreak\relax
15 \hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
16 \nobreak
17 \endgroup
18 \fi}
19 \renewcommand\thesubsection {\thesection\@SepMark\arabic{subsection}}
20 \renewcommand\thesubsubsection {\thesubsection \@SepMark\arabic{subsubsection}}
21 \renewcommand\theparagraph {\thesubsubsection\@SepMark\arabic{paragraph}}
22 \renewcommand\thesubparagraph {\theparagraph\@SepMark\arabic{subparagraph}}
23 \def\part{\@startsection{part}{0}%
24 \z@{\linespacing\@plus\linespacing}{.5\linespacing}%
25 {\normalfont\bfseries\if@RTL\raggedleft\else\raggedright\fi}}
26 \def\right@footnoterule{%
27 \kern-.4\p@
28 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-5pc\relax \hrulefill }
29 \kern11\p@\kern-\footnotesep}
30 \def\left@footnoterule{\kern-.4\p@
31 \hrule\@width 5pc\kern11\p@\kern-\footnotesep}
32
33
34 \long\def\@footnotetext#1{%
35 \insert\footins{%
36 \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
37 \reset@font%
38 \bidi@@footnotetext@font% \normalfont\footnotesize
39 \interlinepenalty\interfootnotelinepenalty
40 \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
41 \floatingpenalty\@MM \hsize\columnwidth
42 \@parboxrestore \parindent\normalparindent \sloppy
43 \protected@edef\@currentlabel{%
44 \csname p@footnote\endcsname\@thefnmark}%
45 \@makefntext{%
46 \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
47
48 \long\def\@RTLfootnotetext#1{%

File amsart-xetex-bidi.def 4
49 \insert\footins{%
50 \@RTLtrue%
51 \reset@font%
52 \bidi@@RTLfootnotetext@font% \normalfont\footnotesize
53 \interlinepenalty\interfootnotelinepenalty
54 \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
55 \floatingpenalty\@MM \hsize\columnwidth
56 \@parboxrestore \parindent\normalparindent \sloppy
57 \protected@edef\@currentlabel{%
58 \csname p@footnote\endcsname\@thefnmark}%
59 \@makefntext{%
60 \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
61
62
63
64 \long\def\@LTRfootnotetext#1{%
65 \insert\footins{%
66 \@RTLfalse%
67 \reset@font%
68 \bidi@@LTRfootnotetext@font% \normalfont\footnotesize
69 \interlinepenalty\interfootnotelinepenalty
70 \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
71 \floatingpenalty\@MM \hsize\columnwidth
72 \@parboxrestore \parindent\normalparindent \sloppy
73 \protected@edef\@currentlabel{%
74 \csname p@footnote\endcsname\@thefnmark}%
75 \@makefntext{%
76 \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
77
78
79 \footdir@temp\footdir@ORG@bidi@amsart@footnotetext\@footnotetext{\bidi@footdir@footnote}%
80 \footdir@temp\footdir@ORG@bidi@amsart@RTLfootnotetext\@RTLfootnotetext{R}%
81 \footdir@temp\footdir@ORG@bidi@amsart@LTRfootnotetext\@LTRfootnotetext{L}%
82
83 \renewenvironment{thebibliography}[1]{%
84 \@bibtitlestyle
85 \normalfont\bibliofont\labelsep .5em\relax
86 \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
87 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
88 \bidi@@thebibliography@font@hook%
89 \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
90 \leftmargin\labelwidth \advance\leftmargin\labelsep
91 \usecounter{enumiv}}%
92 \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
93 \sfcode`\.=\@m
94 }{%
95 \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
96 \endlist
97 }
98 \def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi

File amsart-xetex-bidi.def 5
99 \columnseprule\z@ \columnsep 35\p@
100 \@indextitlestyle
101 \thispagestyle{plain}%
102 \let\item\@idxitem
103 \parindent\z@ \parskip\z@\@plus.3\p@\relax
104 \if@RTL\raggedleft\else\raggedright\fi
105 \hyphenpenalty\@M
106 \footnotesize}
107 \def\@idxitem{\par\hangindent \if@RTL-\fi2em}
108 \def\subitem{\par\hangindent \if@RTL-\fi2em\hspace*{1em}}
109 \def\subsubitem{\par\hangindent \if@RTL-\fi3em\hspace*{2em}}
110 \def\maketitle{\par
111 \@topnum\z@ % this prevents figures from falling at the top of page 1
112 \@setcopyright
113 \thispagestyle{firstpage}% this sets first page specifications
114 \uppercasenonmath\shorttitle
115 \ifx\@empty\shortauthors \let\shortauthors\shorttitle
116 \else \andify\shortauthors
117 \fi
118 \@maketitle@hook
119 \begingroup
120 \@maketitle
121 \toks@\@xp{\shortauthors}\@temptokena\@xp{\shorttitle}%
122 \toks4{\def\\{ \ignorespaces}}% defend against questionable usage
123 \edef\@tempa{%
124 \@nx\markboth{\the\toks4
125 \@nx\MakeUppercase{\the\toks@}}{\the\@temptokena}}%
126 \@tempa
127 \endgroup
128 \c@footnote\z@
129 \@cleartopmattertags
130 }

2 File adjmulticol-xetex-bidi.def
131 \ProvidesFile{adjmulticol-xetex-bidi.def}[2015/04/25 v0.1 bidi adaptations for adjmulticol pac
132 \def\adjmulticols#1#2#3{\col@number#1\relax
133 \def\@tempa{#2}%
134 \ifx\@tempa\@empty\adjmc@inner\z@\else\adjmc@inner#2\fi
135 \def\@tempa{#3}%
136 \ifx\@tempa\@empty\adjmc@outer\z@\else\adjmc@outer#3\fi
137 \ifnum\col@number<\@ne
138 \PackageWarning{adjmulticol}%
139 {Using `\number\col@number'
140 columns doesn't seem a good idea.^^J
141 I therefore use one columns instead}%
142 \col@number\@ne\fi
143 \ifnum\col@number>10
144 \PackageError{adjmulticol}%
145 {Too many columns}%

File adjmulticol-xetex-bidi.def 6
146 {Current implementation doesn't
147 support more than 10 columns.%
148 \MessageBreak
149 I therefore use 10 columns instead}%
150 \col@number10 \fi
151 \ifx\@footnotetext\mult@footnotetext\else
152 \let\orig@footnotetext\@footnotetext
153 \let\@footnotetext\mult@footnotetext
154 \fi
155 \ifx\@LTRfootnotetext\mult@LTRfootnotetext\else
156 \let\orig@LTRfootnotetext\@LTRfootnotetext
157 \let\@LTRfootnotetext\mult@LTRfootnotetext
158 \fi
159 \ifx\@RTLfootnotetext\mult@RTLfootnotetext\else
160 \let\orig@RTLfootnotetext\@RTLfootnotetext
161 \let\@RTLfootnotetext\mult@RTLfootnotetext
162 \fi
163 \@ifnextchar[\adjmult@cols{\adjmult@cols[]}}
164 \let\adjmc@page@sofar@orig=\page@sofar

3 File algorithm2e-xetex-bidi.def
165 \ProvidesFile{algorithm2e-xetex-bidi.def}[2018/09/23 v0.2 bidi adaptations for algorithm2e pac
166 \expandafter\ifx\csname algocf@within\endcsname\relax% if \algocf@within doesn't exist
167 \else% else
168 \renewcommand\thealgocf{\csname the\algocf@within\endcsname\@SepMark\@arabic\c@algocf}%
169 \fi
170 \@ifpackageloaded{color}{}{%
171 \bidi@patchcmd{\@algocf@start}{\bgroup}{%
172 \bgroup
173 \if@RTL
174 \beginR
175 \else
176 \beginL
177 \fi
178 }{}{}
179 \bidi@patchcmd{\@algocf@finish}{\egroup\end{lrbox}}{%
180 \if@RTL
181 \endR
182 \else
183 \endL
184 \fi
185 \egroup
186 \end{lrbox}%
187 }{}{}
188 \bidi@patchcmd{\algocf@makecaption}{\hbox}{%
189 \if@RTL
190 \hboxR
191 \else
192 \hboxL

File algorithm2e-xetex-bidi.def 7
193 \fi
194 }{}{}
195 }

4 File amsbook-xetex-bidi.def
196 \ProvidesFile{amsbook-xetex-bidi.def}[2017/08/09 v1.2 bidi adaptations for amsbook class for X
197 \def\@tocline#1#2#3#4#5#6#7{\relax
198 \ifnum #1>\c@tocdepth % then omit
199 \else
200 \par \addpenalty\@secpenalty\addvspace{#2}%
201 \begingroup \hyphenpenalty\@M
202 \@ifempty{#4}{%
203 \@tempdima\csname r@tocindent\number#1\endcsname\relax
204 }{%
205 \@tempdima#4\relax
206 }%
207 \parindent\z@ \if@RTL\rightskip\else\leftskip\fi#3\relax \advance\if@RTL\rightskip\else\le
208 \if@RTL\leftskip\else\rightskip\fi\@pnumwidth plus4em \parfillskip-\@pnumwidth
209 #5\leavevmode\hskip-\@tempdima #6\nobreak\relax
210 \hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
211 \nobreak
212 \endgroup
213 \fi}
214 \renewcommand\thesubsection {\thesection\@SepMark\arabic{subsection}}
215 \renewcommand\thesubsubsection {\thesubsection \@SepMark\arabic{subsubsection}}
216 \renewcommand\theparagraph {\thesubsubsection\@SepMark\arabic{paragraph}}
217 \renewcommand\thesubparagraph {\theparagraph\@SepMark\arabic{subparagraph}}
218 \def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
219 \columnseprule\z@ \columnsep 35\p@
220 \@indextitlestyle
221 \thispagestyle{plain}%
222 \let\item\@idxitem
223 \parindent\z@ \parskip\z@\@plus.3\p@\relax
224 \if@RTL\raggedleft\else\raggedright\fi
225 \hyphenpenalty\@M
226 \footnotesize}
227 \def\@idxitem{\par\hangindent \if@RTL-\fi2em}
228 \def\subitem{\par\hangindent \if@RTL-\fi2em\hspace*{1em}}
229 \def\subsubitem{\par\hangindent \if@RTL-\fi3em\hspace*{2em}}
230 \def\right@footnoterule{%
231 \kern-.4\p@
232 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-5pc\relax \hrulefill }
233 \kern11\p@\kern-\footnotesep}
234 \def\left@footnoterule{\kern-.4\p@
235 \hrule\@width 5pc\kern11\p@\kern-\footnotesep}
236
237 \long\def\@footnotetext#1{%
238 \insert\footins{%
239 \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%

File amsbook-xetex-bidi.def 8
240 \reset@font%
241 \bidi@@footnotetext@font% \normalfont\footnotesize
242 \interlinepenalty\interfootnotelinepenalty
243 \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
244 \floatingpenalty\@MM \hsize\columnwidth
245 \@parboxrestore \parindent\normalparindent \sloppy
246 \protected@edef\@currentlabel{%
247 \csname p@footnote\endcsname\@thefnmark}%
248 \@makefntext{%
249 \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
250
251 \long\def\@RTLfootnotetext#1{%
252 \insert\footins{%
253 \@RTLtrue%
254 \reset@font%
255 \bidi@@RTLfootnotetext@font% \normalfont\footnotesize
256 \interlinepenalty\interfootnotelinepenalty
257 \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
258 \floatingpenalty\@MM \hsize\columnwidth
259 \@parboxrestore \parindent\normalparindent \sloppy
260 \protected@edef\@currentlabel{%
261 \csname p@footnote\endcsname\@thefnmark}%
262 \@makefntext{%
263 \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
264
265
266 \long\def\@LTRfootnotetext#1{%
267 \insert\footins{%
268 \@RTLfalse%
269 \reset@font%
270 \bidi@@LTRfootnotetext@font% \normalfont\footnotesize
271 \interlinepenalty\interfootnotelinepenalty
272 \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
273 \floatingpenalty\@MM \hsize\columnwidth
274 \@parboxrestore \parindent\normalparindent \sloppy
275 \protected@edef\@currentlabel{%
276 \csname p@footnote\endcsname\@thefnmark}%
277 \@makefntext{%
278 \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
279
280
281
282 \footdir@temp\footdir@ORG@bidi@amsbook@footnotetext\@footnotetext{\bidi@footdir@footnote}%
283 \footdir@temp\footdir@ORG@bidi@amsbook@RTLfootnotetext\@RTLfootnotetext{R}%
284 \footdir@temp\footdir@ORG@bidi@amsbook@LTRfootnotetext\@LTRfootnotetext{L}%
285
286 \renewenvironment{thebibliography}[1]{%
287 \@bibtitlestyle
288 \normalfont\bibliofont\labelsep .5em\relax
289 \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty

File amsbook-xetex-bidi.def 9
290 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
291 \bidi@@thebibliography@font@hook%
292 \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
293 \leftmargin\labelwidth \advance\leftmargin\labelsep
294 \usecounter{enumiv}}%
295 \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
296 \sfcode`\.=\@m
297 }{%
298 \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
299 \endlist
300 }
301 \def\@makechapterhead#1{\global\topskip 7.5pc\relax
302 \begingroup
303 \fontsize{\@xivpt}{18}\bfseries\centering
304 \ifnum\c@secnumdepth>\m@ne
305 \leavevmode \hskip-\if@RTL\rightskip\else\leftskip\fi
306 \rlap{\vbox to\z@{\vss
307 \centerline{\normalsize\mdseries
308 \uppercase\@xp{\chaptername}\enspace\thechapter}
309 \vskip 3pc}}\hskip\if@RTL\rightskip\else\leftskip\fi\fi
310 #1\par \endgroup
311 \skip@34\p@ \advance\skip@-\normalbaselineskip
312 \vskip\skip@ }
313 \def\maketitle{\par
314 \@topnum\z@ % this prevents figures from falling at the top of page 1
315 \begingroup
316 \@maketitle
317 \endgroup
318 \c@footnote\z@
319 \def\do##1{\let##1\relax}%
320 \do\maketitle \do\@maketitle \do\title \do\@xtitle \do\@title
321 \do\author \do\@xauthor \do\address \do\@xaddress
322 \do\email \do\@xemail \do\curraddr \do\@xcurraddr
323 \do\dedicatory \do\@dedicatory \do\thanks \do\thankses
324 \do\keywords \do\@keywords \do\subjclass \do\@subjclass
325 }

5 File amsmath-xetex-bidi.def
326 \ProvidesFile{amsmath-xetex-bidi.def}[2020/05/16 v1.2 bidi adaptations for amsmath package for
327 \let\veqno=\eqno
328 \iftagsleft@ \let\veqno=\leqno \fi
329 \renewcommand{\numberwithin}[3][\arabic]{%
330 \@ifundefined{c@#2}{\@nocounterr{#2}}{%
331 \@ifundefined{c@#3}{\@nocnterr{#3}}{%
332 \@addtoreset{#2}{#3}%
333 \@xp\xdef\csname the#2\endcsname{%
334 \@xp\@nx\csname the#3\endcsname \@nx\@SepMark\@nx#1{#2}}}}%
335 }
336 \def\tagform@#1{\maketag@@@{\if@nonlatin\beginR\fi(\kern\z@\ignorespaces#1\unskip\@@italiccorr

File amsmath-xetex-bidi.def 10
337
338 \bidi@patchcmd\math@cr@@@align\place@tag{%
339 \place@tag
340 \else
341 \place@tag
342 }{}{}
343

6 File amstext-xetex-bidi.def
344 \ProvidesFile{amstext-xetex-bidi.def}[2016/09/12 v0.2 bidi adaptations for amstext package for
345 \def\textdef@#1#2#3{\hbox{{%
346 \everymath{#1}%
347 \let\f@size#2\selectfont
348 \if@nonlatin\beginR\fi#3\if@nonlatin\endR\fi}}}

7 File amsthm-xetex-bidi.def
349 \ProvidesFile{amsthm-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for amsthm package for X
350 \def\@thmcountersep{\@SepMark}

8 File array-xetex-bidi.def
351 \ProvidesFile{array-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for array package for XeT
352 \def\@testpach{\@chclass
353 \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
354 \ifnum \@lastchclass=7 5 \else
355 \ifnum \@lastchclass=8 \tw@ \else
356 \ifnum \@lastchclass=9 \thr@@
357 \else \z@
358 \ifnum \@lastchclass = 10 \else
359 \edef\@nextchar{\expandafter\string\@nextchar}%
360 \@chnum
361 \if \@nextchar c\z@ \else
362 \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
363 \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
364 \z@ \@chclass
365 \if\@nextchar |\@ne \else
366 \if \@nextchar !6 \else
367 \if \@nextchar @7 \else
368 \if \@nextchar <8 \else
369 \if \@nextchar >9 \else
370 10
371 \@chnum
372 \if \@nextchar m\thr@@\else
373 \if \@nextchar p4 \else
374 \if \@nextchar b5 \else
375 \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
376 \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
377 \def\@tabular{%

File array-xetex-bidi.def 11
378 \leavevmode
379 \hbox \bgroup\if@RTLtab\beginR \fi $\col@sep\tabcolsep \let\d@llarbegin\begingroup
380 \let\d@llarend\endgroup
381 \@tabarray}
382 \def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup}
383 \expandafter\let\csname endtabular*\endcsname=\endtabular
384 \def\@array[#1]#2{%
385 \@tempdima \ht \strutbox
386 \advance \@tempdima by\extrarowheight
387 \setbox \@arstrutbox \hbox{\vrule
388 \@height \arraystretch \@tempdima
389 \@depth \arraystretch \dp \strutbox
390 \@width \z@}%
391 \begingroup
392 \@mkpream{#2}%
393 \xdef\@preamble{\noexpand \ialign \@halignto
394 \bgroup \@arstrut \@preamble
395 \tabskip \z@ \cr}%
396 \endgroup
397 \@arrayleft
398 \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi \fi
399 \bgroup
400 \let \@sharp ##\let \protect \relax
401 \lineskip \z@
402 \baselineskip \z@
403 \m@th
404 \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if@RTLtab\hbox\bgroup\beginR\@hboxRcon
405 \def\@tabarray{\@ifnextchar[{\@array}{\@array[c]}}
406 \def\endarray{\crcr \egroup\if@RTLtab\egroup\endR\egroup\fi \egroup \@arrayright \gdef\@preamb
407 \def\array{\col@sep\arraycolsep
408 \def\d@llarbegin{$}\let\d@llarend\d@llarbegin\gdef\@halignto{}%
409 \@RTLtabfalse\@tabarray}

9 File article-xetex-bidi.def
410 \ProvidesFile{article-xetex-bidi.def}[2017/06/09 v0.6 bidi adaptations for standard article cl
411 \if@titlepage
412 \renewcommand\maketitle{\begin{titlepage}%
413 \let\footnotesize\small
414 \let\right@footnoterule\relax
415 \let\left@footnoterule\relax
416 \let\textwidth@footnoterule\relax
417 \let \footnote \thanks
418 \let \LTRfootnote \LTRthanks
419 \let \RTLfootnote \RTLthanks
420 \null\vfil
421 \vskip 60\p@
422 \begin{center}%
423 {\LARGE \@title \par}%
424 \vskip 3em%

File article-xetex-bidi.def 12
425 {\large
426 \lineskip .75em%
427 \begin{tabular}[t]{c}%
428 \@author
429 \end{tabular}\par}%
430 \vskip 1.5em%
431 {\large \@date \par}% % Set date in \large size.
432 \end{center}\par
433 \@thanks
434 \vfil\null
435 \end{titlepage}%
436 \setcounter{footnote}{0}%
437 \global\let\thanks\relax
438 \global\let\LTRthanks\relax
439 \global\let\RTLthanks\relax
440 \global\let\maketitle\relax
441 \global\let\@thanks\@empty
442 \global\let\@author\@empty
443 \global\let\@date\@empty
444 \global\let\@title\@empty
445 \global\let\title\relax
446 \global\let\author\relax
447 \global\let\date\relax
448 \global\let\and\relax
449 }
450 \else
451 \renewcommand\maketitle{\par
452 \begingroup
453 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
454 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
455 \long\def\@makefntext##1{\parindent 1em\noindent
456 \hb@[email protected]{%
457 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
458 \if@twocolumn
459 \ifnum \col@number=\@ne
460 \@maketitle
461 \else
462 \twocolumn[\@maketitle]%
463 \fi
464 \else
465 \newpage
466 \global\@topnum\z@ % Prevents figures from going at top of page.
467 \@maketitle
468 \fi
469 \thispagestyle{plain}\@thanks
470 \endgroup
471 \setcounter{footnote}{0}%
472 \global\let\thanks\relax
473 \global\let\LTRthanks\relax
474 \global\let\RTLthanks\relax

File article-xetex-bidi.def 13
475 \global\let\maketitle\relax
476 \global\let\@maketitle\relax
477 \global\let\@thanks\@empty
478 \global\let\@author\@empty
479 \global\let\@date\@empty
480 \global\let\@title\@empty
481 \global\let\title\relax
482 \global\let\author\relax
483 \global\let\date\relax
484 \global\let\and\relax
485 }
486 \def\@maketitle{%
487 \newpage
488 \null
489 \vskip 2em%
490 \begin{center}%
491 \let \footnote \thanks
492 \let \LTRfootnote \LTRthanks
493 \let \RTLfootnote \RTLthanks
494 {\LARGE \@title \par}%
495 \vskip 1.5em%
496 {\large
497 \lineskip .5em%
498 \begin{tabular}[t]{c}%
499 \@author
500 \end{tabular}\par}%
501 \vskip 1em%
502 {\large \@date}%
503 \end{center}%
504 \par
505 \vskip 1.5em}
506 \fi
507 \renewcommand*\l@part[2]{%
508 \ifnum \c@tocdepth >-2\relax
509 \addpenalty\@secpenalty
510 \addvspace{2.25em \@plus\p@}%
511 \setlength\@tempdima{3em}%
512 \begingroup
513 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
514 \parfillskip -\@pnumwidth
515 {\leavevmode
516 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
517 \nobreak
518 \if@compatibility
519 \global\@nobreaktrue
520 \everypar{\global\@nobreakfalse\everypar{}}%
521 \fi
522 \endgroup
523 \fi}
524 \renewcommand*\l@section[2]{%

File article-xetex-bidi.def 14
525 \ifnum \c@tocdepth >\z@
526 \addpenalty\@secpenalty
527 \addvspace{1.0em \@plus\p@}%
528 \setlength\@tempdima{1.5em}%
529 \begingroup
530 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
531 \parfillskip -\@pnumwidth
532 \leavevmode \bfseries
533 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
534 \hskip -\if@RTL\rightskip\else\leftskip\fi
535 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
536 \endgroup
537 \fi}
538 \renewcommand\left@footnoterule{%
539 \kern-3\p@
540 \hrule\@width.4\columnwidth
541 \kern2.6\p@}
542 \renewcommand\right@footnoterule{%
543 \kern-3\p@
544 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
545 \kern2.6\p@}
546 \renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
547 \renewcommand\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
548 \renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
549 \renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
550 \def\@part[#1]#2{%
551 \ifnum \c@secnumdepth >\m@ne
552 \refstepcounter{part}%
553 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
554 \else
555 \addcontentsline{toc}{part}{#1}%
556 \fi
557 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
558 \interlinepenalty \@M
559 \normalfont
560 \ifnum \c@secnumdepth >\m@ne
561 \Large\bfseries \partname\nobreakspace\thepart
562 \par\nobreak
563 \fi
564 \huge \bfseries #2%
565 \markboth{}{}\par}%
566 \nobreak
567 \vskip 3ex
568 \@afterheading}
569 \renewenvironment{thebibliography}[1]
570 {\section*{\refname}%
571 \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
572 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
573 \bidi@@thebibliography@font@hook%
574 \list{\@biblabel{\@arabic\c@enumiv}}%

File article-xetex-bidi.def 15
575 {\settowidth\labelwidth{\@biblabel{#1}}%
576 \leftmargin\labelwidth
577 \advance\leftmargin\labelsep
578 \@openbib@code
579 \usecounter{enumiv}%
580 \let\p@enumiv\@empty
581 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
582 \sloppy
583 \clubpenalty4000
584 \@clubpenalty \clubpenalty
585 \widowpenalty4000%
586 \sfcode`\.\@m}
587 {\def\@noitemerr
588 {\@latex@warning{Empty `thebibliography' environment}}%
589 \endlist}
590 \renewenvironment{theindex}
591 {\if@twocolumn
592 \@restonecolfalse
593 \else
594 \@restonecoltrue
595 \fi
596 \columnseprule \z@
597 \columnsep 35\p@
598 \twocolumn[\section*{\indexname}]%
599 \@mkboth{\MakeUppercase\indexname}%
600 {\MakeUppercase\indexname}%
601 \thispagestyle{plain}\parindent\z@
602 \parskip\z@ \@plus .3\p@\relax
603 \let\item\@idxitem}
604 {\if@restonecol\onecolumn\else\clearpage\fi}

10 File artikel1-xetex-bidi.def
605 \ProvidesFile{artikel1-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for artikel1 class for
606 \renewenvironment{theindex}{%
607 \if@twocolumn
608 \@restonecolfalse
609 \else
610 \@restonecoltrue
611 \fi
612 \columnseprule \z@
613 \columnsep 35\p@
614 \twocolumn[\section*{\indexname}]%
615 \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
616 \thispagestyle{plain}\parindent\z@
617 \parskip\z@ \@plus .3\p@\relax
618 \let\item\@idxitem
619 }{%
620 \if@restonecol\onecolumn\else\clearpage\fi}
621 \renewcommand*\head@style{%

File artikel1-xetex-bidi.def 16
622 \interlinepenalty \@M
623 \hyphenpenalty=\@M \exhyphenpenalty=\@M
624 \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
625 \if@titlepage
626 \renewenvironment{abstract}{%
627 \titlepage
628 \null\vfil
629 \section*{\SectFont\abstractname}
630 \noindent\ignorespaces}
631 {\par\vfil\null\endtitlepage}
632 \else
633 \renewenvironment{abstract}{%
634 \if@twocolumn
635 \section*{\abstractname}%
636 \else
637 \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
638 \section*{\small\SectFont\abstractname}%
639 \noindent\ignorespaces
640 \fi}
641 {\if@twocolumn\else\par\egroup\fi}
642 \fi
643 \renewcommand*\@regtocline[3]{%
644 \ifnum #1>\c@tocdepth
645 \else
646 \vskip\z@\@plus.2\p@
647 {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
648 \if@RTL\rightskip\else\leftskip\fi\unitindent
649 \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
650 \parfillskip\z@
651 \@tempdima\unitindent
652 \parindent\z@
653 \leavevmode
654 \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
655 \hskip 1em \nobreak{\slshape #3}\par
656 }%
657 \fi}
658 \if@oldtoc
659 \renewcommand*\l@part[2]{%
660 \ifnum \c@tocdepth >-2\relax
661 \addpenalty\@secpenalty
662 \addvspace{2.25em \@plus\p@}%
663 \begingroup
664 \setlength\@tempdima{3em}%
665 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
666 \parfillskip -\@pnumwidth
667 {\leavevmode
668 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
669 \nobreak
670 \if@compatibility
671 \global\@nobreaktrue

File artikel1-xetex-bidi.def 17
672 \everypar{\global\@nobreakfalse\everypar{}}%
673 \fi
674 \endgroup
675 \fi}
676 \else
677 \renewcommand*\l@part{%
678 \ifnum \c@tocdepth >-2\relax
679 \addpenalty\@secpenalty
680 \addvspace{2.25em \@plus \p@}%
681 \@regtocline{0}%
682 \fi}
683 \fi
684 \if@oldtoc
685 \renewcommand*\l@section[2]{%
686 \addpenalty\@secpenalty
687 \addvspace{1.0em \@plus\p@}%
688 \setlength\@tempdima{1.5em}%
689 \begingroup
690 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
691 \parfillskip -\@pnumwidth
692 \leavevmode \bfseries
693 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
694 \hskip -\if@RTL\rightskip\else\leftskip\fi
695 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
696 \endgroup}
697 \else
698 \renewcommand*\l@section{\@regtocline{1}}
699 \fi
700 \renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
701 \renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
702 \renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
703 \renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
704 \renewenvironment{thebibliography}[1]
705 {\section*{\refname}%
706 \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
707 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
708 \bidi@@thebibliography@font@hook%
709 \list{\@biblabel{\@arabic\c@enumiv}}%
710 {\settowidth\labelwidth{\@biblabel{#1}}%
711 \leftmargin\labelwidth
712 \advance\leftmargin\labelsep
713 \@openbib@code
714 \usecounter{enumiv}%
715 \let\p@enumiv\@empty
716 \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
717 \sloppy\clubpenalty4000\widowpenalty4000%
718 \sfcode`\.\@m}
719 {\def\@noitemerr
720 {\@latex@warning{Empty `thebibliography' environment}}%
721 \endlist}

File artikel1-xetex-bidi.def 18
722 \renewcommand*\left@footnoterule{%
723 \kern-3\p@
724 \kern.5\baselineskip
725 \hrule\@width\unitindent
726 \kern.4\baselineskip
727 }
728 \renewcommand*\right@footnoterule{%
729 \kern-3\p@
730 \kern.5\baselineskip
731 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
732 \kern.4\baselineskip}
733 \if@titlepage
734 \renewcommand*\TitleFont{\rmfamily}
735 \renewcommand*\maketitle{%
736 \begin{titlepage}%
737 \let\footnotesize\small
738 \let\right@footnoterule\relax
739 \let\left@footnoterule\relax
740 \let\textwidth@footnoterule\relax
741 \let \footnote \thanks
742 \long\def\@makefntext##1{\parindent\z@
743 \def\labelitemi{\textendash}\@revlabeltrue
744 \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
745 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
746 \if@compatibility\setcounter{page}{0}\fi
747 \null\vfil
748 \vskip 60\p@
749 \begin{center}%
750 \TitleFont
751 {\LARGE \def\\{\penalty -\@M}
752 \if@allcaps
753 \expandafter\uc@nothanks\@title\thanks\relax
754 \else
755 \@title
756 \fi\par}%
757 \vskip 3em%
758 {\large
759 \lineskip .75em \parindent\z@
760 \begin{tabular}[t]{c}%
761 \if@allcaps
762 \expandafter\uc@authornothanks\@author\and\relax
763 \else
764 \@author
765 \fi
766 \end{tabular}\par}%
767 \vskip 1.5em%
768 {\large
769 \if@allcaps
770 \uppercase\expandafter{\@date}%
771 \else

File artikel1-xetex-bidi.def 19
772 \@date
773 \fi\par}%
774 \end{center}\par
775 \@thanks
776 \vfil\null
777 \end{titlepage}%
778 \setcounter{footnote}{0}%
779 \global\let\thanks\relax
780 \global\let\maketitle\relax
781 \global\let\@thanks\@empty
782 \global\let\@author\@empty
783 \global\let\@title\@empty
784 \global\let\@date\@empty
785 \global\let\title\relax
786 \global\let\author\relax
787 \global\let\date\relax
788 \global\let\and\relax
789 }
790 \def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
791 \def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
792 \futurelet\@tempa\uc@ax}
793 \def\uc@ax{%
794 \ifx\@tempa\relax
795 \else
796 \\ \andname \\ \expandafter\uc@authornothanks
797 \fi}
798 \def\uc@tx{\ifx\@tempa\relax
799 \else \expandafter\uc@ty \fi}
800 \def\uc@ty#1{\thanks{#1}\uc@nothanks}
801 \else
802 \renewcommand*\maketitle{\par
803 \begingroup
804 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
805 \def\@makefnmark{\rlap{%
806 \@textsuperscript{\normalfont\@thefnmark}}}%
807 \long\def\@makefntext{\@xmakefntext{%
808 \@textsuperscript{\normalfont\@thefnmark}}}%
809 \if@twocolumn
810 \ifnum \col@number=\@ne
811 \@maketitle
812 \else
813 \twocolumn[\@maketitle]%
814 \fi
815 \else
816 \newpage
817 \global\@topnum\z@
818 \@maketitle
819 \fi
820 \thispagestyle{plain}\@thanks
821 \endgroup

File artikel1-xetex-bidi.def 20
822 \setcounter{footnote}{0}%
823 \global\let\thanks\relax
824 \global\let\maketitle\relax
825 \global\let\@maketitle\relax
826 \global\let\@thanks\@empty
827 \global\let\@author\@empty
828 \global\let\@title\@empty
829 \global\let\@date\@empty
830 \global\let\title\relax
831 \global\let\author\relax
832 \global\let\date\relax
833 \global\let\and\relax
834 }
835 \def\@maketitle{%
836 \newpage
837 \null
838 \vskip 2em%
839 \begin{center}%
840 \let \footnote \thanks
841 {\LARGE \TitleFont \@title \par}%
842 \vskip 1.5em%
843 {\large \TitleFont
844 \lineskip .5em%
845 \begin{tabular}[t]{c}%
846 \@author
847 \end{tabular}\par}%
848 \vskip 1em%
849 {\large \TitleFont \@date}%
850 \end{center}%
851 \par
852 \vskip 1.5em}
853 \fi

11 File artikel2-xetex-bidi.def
854 \ProvidesFile{artikel2-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for artikel2 class for
855 \renewenvironment{theindex}{%
856 \if@twocolumn
857 \@restonecolfalse
858 \else
859 \@restonecoltrue
860 \fi
861 \columnseprule \z@
862 \columnsep 35\p@
863 \twocolumn[\section*{\indexname}]%
864 \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
865 \thispagestyle{plain}\parindent\z@
866 \parskip\z@ \@plus .3\p@\relax
867 \let\item\@idxitem
868 }{%

File artikel2-xetex-bidi.def 21
869 \if@restonecol\onecolumn\else\clearpage\fi}
870 \renewcommand*\@regtocline[3]{%
871 \ifnum #1>\c@tocdepth
872 \else
873 \vskip\z@\@plus.2\p@
874 {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
875 \if@RTL\rightskip\else\leftskip\fi\unitindent
876 \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
877 \parfillskip\z@
878 \@tempdima\unitindent
879 \advance\@tempdima by \othermargin
880 \parindent\z@
881 \leavevmode
882 \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
883 \hskip 1em \nobreak{\slshape #3}\par
884 }%
885 \fi}
886 \if@oldtoc
887 \renewcommand*\l@section[2]{%
888 \addpenalty\@secpenalty
889 \addvspace{1.0em \@plus\p@}%
890 \setlength\@tempdima{1.5em}%
891 \begingroup
892 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
893 \parfillskip -\@pnumwidth
894 \leavevmode \bfseries
895 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
896 \hskip -\if@RTL\rightskip\else\leftskip\fi
897 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
898 \endgroup}
899 \else
900 \renewcommand*\l@section{\@regtocline{1}}
901 \fi
902 \if@oldtoc
903 \renewcommand*\l@part[2]{%
904 \ifnum \c@tocdepth >-2\relax
905 \addpenalty\@secpenalty
906 \addvspace{2.25em \@plus\p@}%
907 \begingroup
908 \setlength\@tempdima{3em}%
909 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
910 \parfillskip -\@pnumwidth
911 {\leavevmode
912 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
913 \nobreak
914 \if@compatibility
915 \global\@nobreaktrue
916 \everypar{\global\@nobreakfalse\everypar{}}%
917 \fi
918 \endgroup

File artikel2-xetex-bidi.def 22
919 \fi}
920 \else
921 \renewcommand*\l@part{%
922 \ifnum \c@tocdepth >-2\relax
923 \addpenalty\@secpenalty
924 \addvspace{2.25em \@plus \p@}%
925 \@regtocline{0}%
926 \fi}
927 \fi
928 \renewcommand*\head@style{%
929 \interlinepenalty \@M
930 \hyphenpenalty=\@M \exhyphenpenalty=\@M
931 \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
932 \if@titlepage
933 \renewenvironment{abstract}{%
934 \titlepage
935 \null\vfil
936 \section*{\SectFont\abstractname}%
937 \noindent\ignorespaces}
938 {\par\vfil\null\endtitlepage}
939 \else
940 \renewenvironment{abstract}{%
941 \if@twocolumn
942 \section*{\abstractname}%
943 \else
944 \section*{\hskip\unitindent\small\SectFont\abstractname}%
945 \list{}{\setlength\listparindent{\unitindent}%
946 \setlength\parindent {\z@}%
947 \setlength\leftmargin {\unitindent}%
948 \setlength\rightmargin {\unitindent}%
949 \setlength\parsep {\z@}}%
950 \item[]%
951 \fi}
952 {\if@twocolumn\else\par\endlist\fi}
953 \fi
954 \renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
955 \renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
956 \renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
957 \renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
958 \renewcommand*\left@footnoterule{%
959 \kern-3\p@
960 \hrule\@width 3\unitindent
961 \kern 2.6\p@
962 }
963 \renewcommand*\right@footnoterule{%
964 \kern-3\p@
965 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-3\unitindent\relax \hrulefill }
966 \kern 2.6\p@}
967 \renewenvironment{thebibliography}[1]
968 {\section*{\refname}%

File artikel2-xetex-bidi.def 23
969 \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
970 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
971 \bidi@@thebibliography@font@hook%
972 \list{\@biblabel{\@arabic\c@enumiv}}%
973 {\settowidth\labelwidth{\@biblabel{#1}}%
974 \leftmargin\labelwidth
975 \advance\leftmargin\labelsep
976 \@openbib@code
977 \usecounter{enumiv}%
978 \let\p@enumiv\@empty
979 \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
980 \sloppy\clubpenalty4000\widowpenalty4000%
981 \sfcode`\.\@m}
982 {\def\@noitemerr
983 {\@latex@warning{Empty `thebibliography' environment}}%
984 \endlist}
985 \if@titlepage
986 \renewcommand*\TitleFont{\rmfamily}
987 \renewcommand*\maketitle{%
988 \begin{titlepage}%
989 \let\footnotesize\small
990 \let\right@footnoterule\relax
991 \let\left@footnoterule\relax
992 \let\textwidth@footnoterule\relax
993 \let \footnote \thanks
994 \long\def\@makefntext##1{\parindent\z@
995 \def\labelitemi{\textendash}\@revlabeltrue
996 \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
997 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
998 \if@compatibility\setcounter{page}{0}\fi
999 \null\vfil
1000 \vskip 60\p@
1001 \begin{center}%
1002 \TitleFont
1003 {\LARGE \def\\{\penalty -\@M}
1004 \if@allcaps
1005 \expandafter\uc@nothanks\@title\thanks\relax
1006 \else
1007 \@title
1008 \fi\par}%
1009 \vskip 3em%
1010 {\large
1011 \lineskip .75em \parindent\z@
1012 \begin{tabular}[t]{c}%
1013 \if@allcaps
1014 \expandafter\uc@authornothanks\@author\and\relax
1015 \else
1016 \@author
1017 \fi
1018 \end{tabular}\par}%

File artikel2-xetex-bidi.def 24
1019 \vskip 1.5em%
1020 {\large
1021 \if@allcaps
1022 \uppercase\expandafter{\@date}%
1023 \else
1024 \@date
1025 \fi\par}%
1026 \end{center}\par
1027 \@thanks
1028 \vfil\null
1029 \end{titlepage}%
1030 \setcounter{footnote}{0}%
1031 \global\let\thanks\relax
1032 \global\let\maketitle\relax
1033 \global\let\@thanks\@empty
1034 \global\let\@author\@empty
1035 \global\let\@title\@empty
1036 \global\let\@date\@empty
1037 \global\let\title\relax
1038 \global\let\author\relax
1039 \global\let\date\relax
1040 \global\let\and\relax
1041 }
1042 \def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
1043 \def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
1044 \futurelet\@tempa\uc@ax}
1045 \def\uc@ax{%
1046 \ifx\@tempa\relax
1047 \else
1048 \\ \andname \\ \expandafter\uc@authornothanks
1049 \fi}
1050 \def\uc@tx{\ifx\@tempa\relax
1051 \else \expandafter\uc@ty \fi}
1052 \def\uc@ty#1{\thanks{#1}\uc@nothanks}
1053 \else
1054 \renewcommand*\maketitle{\par
1055 \begingroup
1056 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
1057 \long\def\@makefntext##1{\parindent\z@
1058 \def\labelitemi{\textendash}%
1059 \leavevmode\hb@[email protected]\unitindent{%
1060 \@textsuperscript{\normalfont\@thefnmark}\hfil}##1}
1061 \if@twocolumn
1062 \ifnum \col@number=\@ne
1063 \@maketitle
1064 \else
1065 \twocolumn[\@maketitle]%
1066 \fi
1067 \else
1068 \newpage

File artikel2-xetex-bidi.def 25
1069 \global\@topnum\z@
1070 \@maketitle
1071 \fi
1072 \thispagestyle{plain}\@thanks
1073 \endgroup
1074 \setcounter{footnote}{0}%
1075 \global\let\thanks\relax
1076 \global\let\maketitle\relax
1077 \global\let\@maketitle\relax
1078 \global\let\@thanks\@empty
1079 \global\let\@author\@empty
1080 \global\let\@title\@empty
1081 \global\let\@date\@empty
1082 \global\let\title\relax
1083 \global\let\author\relax
1084 \global\let\date\relax
1085 \global\let\and\relax
1086 }
1087 \def\@maketitle{%
1088 \newpage
1089 \null
1090 \vskip 2em%
1091 \begin{center}%
1092 \let \footnote \thanks
1093 {\LARGE \TitleFont \@title \par}%
1094 \vskip 1.5em%
1095 {\large \TitleFont
1096 \lineskip .5em%
1097 \begin{tabular}[t]{c}%
1098 \@author
1099 \end{tabular}\par}%
1100 \vskip 1em%
1101 {\large \TitleFont \@date}%
1102 \end{center}%
1103 \par
1104 \vskip 1.5em}
1105 \fi

12 File artikel3-xetex-bidi.def
1106 \ProvidesFile{artikel3-xetex-bidi.def}[2017/06/09 v0.5 bidi adaptations for artikel3 class for
1107 \renewenvironment{theindex}{%
1108 \if@twocolumn
1109 \@restonecolfalse
1110 \else
1111 \@restonecoltrue
1112 \fi
1113 \columnseprule \z@
1114 \columnsep 35\p@
1115 \twocolumn[\section*{\indexname}]%

File artikel3-xetex-bidi.def 26
1116 \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
1117 \thispagestyle{plain}\parindent\z@
1118 \parskip\z@ \@plus .3\p@\relax
1119 \let\item\@idxitem
1120 }{%
1121 \if@restonecol\onecolumn\else\clearpage\fi}
1122 \renewcommand*\head@style{%
1123 \interlinepenalty \@M
1124 \hyphenpenalty=\@M \exhyphenpenalty=\@M
1125 \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
1126 \renewcommand*\@regtocline[3]{%
1127 \ifnum #1>\c@tocdepth
1128 \else
1129 \vskip\z@\@plus.2\p@
1130 {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
1131 \if@RTL\rightskip\else\leftskip\fi\unitindent
1132 \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
1133 \parfillskip\z@
1134 \@tempdima\unitindent
1135 \parindent\z@
1136 \leavevmode
1137 \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
1138 \hskip 1em \nobreak{\slshape #3}\par
1139 }%
1140 \fi}
1141 \if@oldtoc
1142 \renewcommand*\l@part[2]{%
1143 \ifnum \c@tocdepth >-2\relax
1144 \addpenalty\@secpenalty
1145 \addvspace{2.25em \@plus\p@}%
1146 \begingroup
1147 \setlength\@tempdima{3em}%
1148 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
1149 \parfillskip -\@pnumwidth
1150 {\leavevmode
1151 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
1152 \nobreak
1153 \if@compatibility
1154 \global\@nobreaktrue
1155 \everypar{\global\@nobreakfalse\everypar{}}%
1156 \fi
1157 \endgroup
1158 \fi}
1159 \else
1160 \renewcommand*\l@part{%
1161 \ifnum \c@tocdepth >-2\relax
1162 \addpenalty\@secpenalty
1163 \addvspace{2.25em \@plus \p@}%
1164 \@regtocline{0}%
1165 \fi}

File artikel3-xetex-bidi.def 27
1166 \fi
1167
1168 \if@oldtoc
1169 \renewcommand*\l@section[2]{%
1170 \addpenalty\@secpenalty
1171 \addvspace{1.0em \@plus\p@}%
1172 \setlength\@tempdima{1.5em}%
1173 \begingroup
1174 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
1175 \parfillskip -\@pnumwidth
1176 \leavevmode \bfseries
1177 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
1178 \hskip -\if@RTL\rightskip\else\leftskip\fi
1179 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
1180 \endgroup}
1181 \else
1182 \renewcommand*\l@section{\@regtocline{1}}
1183 \fi
1184 \if@titlepage
1185 \renewenvironment{abstract}{%
1186 \titlepage
1187 \null\vfil
1188 \section*{\SectFont\abstractname}%
1189 \noindent\ignorespaces}
1190 {\par\vfil\null\endtitlepage}
1191 \else
1192 \renewenvironment{abstract}{%
1193 \if@twocolumn
1194 \section*{\abstractname}%
1195 \else
1196 \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
1197 \section*{\small\SectFont\abstractname}%
1198 \noindent\ignorespaces
1199 \fi}
1200 {\if@twocolumn\else\par\egroup\fi}
1201 \fi
1202 \renewcommand*\left@footnoterule{%
1203 \kern-3\p@
1204 \kern.5\baselineskip
1205 \hrule\@width\unitindent
1206 \kern.4\baselineskip
1207 }
1208 \renewcommand*\right@footnoterule{%
1209 \kern-3\p@
1210 \kern.5\baselineskip
1211 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
1212 \kern.4\baselineskip}
1213 \renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
1214 \renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
1215 \renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}

File artikel3-xetex-bidi.def 28
1216 \renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
1217 \renewenvironment{thebibliography}[1]
1218 {\section*{\refname}%
1219 \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
1220 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
1221 \bidi@@thebibliography@font@hook%
1222 \list{\@biblabel{\@arabic\c@enumiv}}%
1223 {\settowidth\labelwidth{\@biblabel{#1}}%
1224 \leftmargin\labelwidth
1225 \advance\leftmargin\labelsep
1226 \@openbib@code
1227 \usecounter{enumiv}%
1228 \let\p@enumiv\@empty
1229 \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
1230 \sloppy\clubpenalty4000\widowpenalty4000%
1231 \sfcode`\.\@m}
1232 {\def\@noitemerr
1233 {\@latex@warning{Empty `thebibliography' environment}}%
1234 \endlist}
1235 \if@titlepage
1236 \renewcommand*\TitleFont{\rmfamily}
1237 \renewcommand*\maketitle{%
1238 \begin{titlepage}%
1239 \let\footnotesize\small
1240 \let\right@footnoterule\relax
1241 \let\left@footnoterule\relax
1242 \let\textwidth@footnoterule\relax
1243 \let \footnote \thanks
1244 \long\def\@makefntext##1{\parindent\z@
1245 \def\labelitemi{\textendash}\@revlabeltrue
1246 \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
1247 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
1248 \if@compatibility\setcounter{page}{0}\fi
1249 \null\vfil
1250 \vskip 60\p@
1251 \begin{center}%
1252 \TitleFont
1253 {\LARGE \def\\{\penalty -\@M}
1254 \if@allcaps
1255 \expandafter\uc@nothanks\@title\thanks\relax
1256 \else
1257 \@title
1258 \fi\par}%
1259 \vskip 3em%
1260 {\large
1261 \lineskip .75em \parindent\z@
1262 \begin{tabular}[t]{c}%
1263 \if@allcaps
1264 \expandafter\uc@authornothanks\@author\and\relax
1265 \else

File artikel3-xetex-bidi.def 29
1266 \@author
1267 \fi
1268 \end{tabular}\par}%
1269 \vskip 1.5em%
1270 {\large
1271 \if@allcaps
1272 \uppercase\expandafter{\@date}%
1273 \else
1274 \@date
1275 \fi\par}%
1276 \end{center}\par
1277 \@thanks
1278 \vfil\null
1279 \end{titlepage}%
1280 \setcounter{footnote}{0}%
1281 \global\let\thanks\relax
1282 \global\let\maketitle\relax
1283 \global\let\@thanks\@empty
1284 \global\let\@author\@empty
1285 \global\let\@title\@empty
1286 \global\let\@date\@empty
1287 \global\let\title\relax
1288 \global\let\author\relax
1289 \global\let\date\relax
1290 \global\let\and\relax
1291 }
1292 \def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
1293 \def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
1294 \futurelet\@tempa\uc@ax}
1295 \def\uc@ax{%
1296 \ifx\@tempa\relax
1297 \else
1298 \\ \andname \\ \expandafter\uc@authornothanks
1299 \fi}
1300 \def\uc@tx{\ifx\@tempa\relax
1301 \else \expandafter\uc@ty \fi}
1302 \def\uc@ty#1{\thanks{#1}\uc@nothanks}
1303 \else
1304 \renewcommand*\maketitle{\par
1305 \begingroup
1306 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
1307 \def\@makefnmark{\rlap{%
1308 \@textsuperscript{\normalfont\@thefnmark}}}%
1309 \long\def\@makefntext{\@xmakefntext{%
1310 \@textsuperscript{\normalfont\@thefnmark}}}%
1311 \if@twocolumn
1312 \ifnum \col@number=\@ne
1313 \@maketitle
1314 \else
1315 \twocolumn[\@maketitle]%

File artikel3-xetex-bidi.def 30
1316 \fi
1317 \else
1318 \newpage
1319 \global\@topnum\z@
1320 \@maketitle
1321 \fi
1322 \thispagestyle{plain}\@thanks
1323 \endgroup
1324 \setcounter{footnote}{0}%
1325 \global\let\thanks\relax
1326 \global\let\maketitle\relax
1327 \global\let\@maketitle\relax
1328 \global\let\@thanks\@empty
1329 \global\let\@author\@empty
1330 \global\let\@title\@empty
1331 \global\let\@date\@empty
1332 \global\let\title\relax
1333 \global\let\author\relax
1334 \global\let\date\relax
1335 \global\let\and\relax
1336 }
1337 \def\@maketitle{%
1338 \newpage
1339 \null
1340 \vskip 2em%
1341 \if@titlecentered
1342 \begin{center}%
1343 \let \footnote \thanks
1344 {\LARGE \TitleFont \@title \par}%
1345 \vskip 1.5em%
1346 {\large \TitleFont
1347 \lineskip .5em%
1348 \begin{tabular}[t]{c}%
1349 \@author
1350 \end{tabular}\par}%
1351 \vskip 1em%
1352 {\large \TitleFont \@date}%
1353 \end{center}%
1354 \else
1355 {\LARGE \TitleFont \head@style \@title \par} \vskip 1.5em
1356 {\large \TitleFont \lineskip .5em \tabcolsep\z@
1357 \def\and{%%% \begin{tabular} has already started
1358 \end{tabular}\hskip 1em plus .17fil
1359 \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi}%% \end{tabula
1360 \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi\@author\end{tabular}\pa
1361 \vskip 1em {\large \TitleFont \@date}
1362 \fi
1363 \par
1364 \vskip 1.5em}
1365 \fi

File artikel3-xetex-bidi.def 31
13 File arydshln-xetex-bidi.def
1366 \ProvidesFile{arydshln-xetex-bidi.def}[2010/08/01 v0.2 bidi adaptations for arydshln package f
1367 \def\endarray{\adl@endarray \egroup \adl@arrayrestore \if@RTLtab\egroup\endR\egroup\fi\egroup}
1368 \def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup}
1369 \expandafter\let\csname endtabular*\endcsname\endtabular
1370 \let\adl@array\@array
1371 \def\@array{\adl@everyvbox\everyvbox
1372 \everyvbox{\adl@arrayinit \the\adl@everyvbox \everyvbox\adl@everyvbox}%
1373 \ifadl@inactive \adl@inactivate \else \adl@activate \fi
1374 \let\adl@noalign\noalign
1375 \adl@array}
1376 \ifadl@usingarypkg
1377 \def\@testpach{\@chclass
1378 \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
1379 \ifnum \@lastchclass=7 5 \else
1380 \ifnum \@lastchclass=8 \tw@ \else
1381 \ifnum \@lastchclass=9 \thr@@
1382 \else \z@
1383 \ifnum \@lastchclass = 10 \else
1384 \edef\@nextchar{\expandafter\string\@nextchar}%
1385 \@chnum
1386 \if \@nextchar c\z@ \else
1387 \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
1388 \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
1389 \z@ \@chclass
1390 \if\@nextchar |\@ne \let\@arrayrule\adl@arrayrule \else
1391 \if\@nextchar :\@ne \let\@arrayrule\adl@arraydashrule \else
1392 \if\@nextchar ;\@ne \let\@arrayrule\adl@argarraydashrule \else
1393 \if \@nextchar !6 \else
1394 \if \@nextchar @7 \else
1395 \if \@nextchar <8 \else
1396 \if \@nextchar >9 \else
1397 10
1398 \@chnum
1399 \if \@nextchar m\thr@@\else
1400 \if \@nextchar p4 \else
1401 \if \@nextchar b5 \else
1402 \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi \fi \fi
1403 \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
1404
1405 \def\@classz{\@classx
1406 \@tempcnta \count@
1407 \prepnext@tok
1408 \@addtopreamble{\ifcase \@chnum
1409 \hfil
1410 \adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or
1411 \hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or
1412 \hfil\hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\or
1413 \setbox\adl@box\hbox \adl@startmbox{\@nextchar}\insert@column

File arydshln-xetex-bidi.def 32
1414 \adl@endmbox\or
1415 \setbox\adl@box\vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or
1416 \setbox\adl@box\vbox \@startpbox{\@nextchar}\insert@column \@endpbox
1417 \fi}\prepnext@tok}
1418 \def\adl@class@start{4}
1419 \def\adl@class@iiiorvii{7}
1420
1421 \else
1422 \def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4\relax \else
1423 \ifnum \@lastchclass=\thr@@ 5\relax \else
1424 \z@ \if #1c\@chnum \z@ \else
1425 \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else
1426 \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else
1427 \@chclass
1428 \if #1|\@ne \let\@arrayrule\adl@arrayrule \else
1429 \if #1:\@ne \let\@arrayrule\adl@arraydashrule \else
1430 \if #1;\@ne \let\@arrayrule\adl@argarraydashrule \else
1431 \if #1@\tw@ \else
1432 \if #1p\thr@@ \else \z@ \@preamerr 0\fi
1433 \fi \fi \fi \fi \fi \fi \fi \fi \fi}
1434
1435 \def\@arrayclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or
1436 \or \or \@addamp \or
1437 \@acolampacol \or \@firstampfalse \@acol \fi
1438 \edef\@preamble{\@preamble
1439 \ifcase \@chnum
1440 \hfil\adl@putlrc{$\relax\@sharp$}\hfil
1441 \or \adl@putlrc{$\relax\@sharp$}\hfil
1442 \or \hfil\adl@putlrc{$\relax\@sharp$}\fi}}
1443 \def\@tabclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or
1444 \or \or \@addamp \or
1445 \@acolampacol \or \@firstampfalse \@acol \fi
1446 \edef\@preamble{\@preamble
1447 \ifcase \@chnum
1448 \hfil\adl@putlrc{\@sharp\unskip}\hfil
1449 \or \adl@putlrc{\@sharp\unskip}\hfil
1450 \or \hfil\hskip\z@ \adl@putlrc{\@sharp\unskip}\fi}}
1451 \def\adl@class@start{6}
1452 \def\adl@class@iiiorvii{3}
1453 \fi
1454 \@ifpackageloaded{colortbl}{%
1455 \def\adl@inactivate{\adl@org@inactivate \let\CT@setup\adl@CT@setup}
1456 \def\adl@activate{\adl@org@activate \let\CT@setup\adl@act@CT@setup
1457 \let\@endpbox\adl@org@endpbox}
1458 \let\adl@CT@setup\CT@setup
1459 \def\CT@setup{\adl@CT@setup
1460 \@tempdima\ht\z@ \advance\@tempdima\minrowclearance
1461 \ifdim\adl@height<\@tempdima \global\adl@height\@tempdima \fi
1462 \ifdim\adl@depth<\dp\z@ \global\adl@depth\dp\z@\fi}
1463 \let\adl@act@CT@setup\CT@setup

File arydshln-xetex-bidi.def 33
1464 \def\@classz{\@classx
1465 \@tempcnta\count@ \prepnext@tok
1466 \expandafter\CT@extract\the\toks\@tempcnta\columncolor!\@nil
1467 \expandafter\adl@extract@arc\the\toks\@tempcnta\arrayrulecolor!\@nil
1468 \expandafter\adl@extract@drsc
1469 \the\toks\@tempcnta\doublerulesepcolor!\@nil
1470 \expandafter\adl@extract@dgc\the\toks\@tempcnta\dashgapcolor!\@nil
1471 \@addtopreamble{\if@RTL\beginL\fi%
1472 \setbox\z@\hbox\bgroup\bgroup\if@RTL\beginR\fi
1473 \ifcase \@chnum
1474 \hskip\stretch{.5}\kern\z@
1475 \d@llarbegin
1476 \insert@column
1477 \d@llarend\hskip\stretch{.5}%
1478 \or \d@llarbegin \insert@column \d@llarend \hfill
1479 \or \hfill \kern\z@ \d@llarbegin \insert@column \d@llarend
1480 \or $\vcenter
1481 \@startpbox{\@nextchar}\insert@column \@endpbox $%
1482 \or \vtop \@startpbox{\@nextchar}\insert@column \@endpbox
1483 \or \vbox \@startpbox{\@nextchar}\insert@column \@endpbox
1484 \fi
1485 \if@RTL\endR\fi\egroup\egroup
1486 \begingroup
1487 \CT@setup
1488 \CT@column@color
1489 \CT@row@color
1490 \CT@cell@color
1491 \CT@do@color
1492 \endgroup
1493 \@tempdima\ht\z@
1494 \advance\@tempdima\minrowclearance
1495 \vrule\@height\@tempdima\@width\z@
1496 \unhbox\z@\if@RTL\endL\fi}%
1497 \prepnext@tok}
1498 \let\adl@act@classz\@classz
1499 \let\adl@org@classz\@classz
1500 }{}

14 File bidi.sty
1501 \NeedsTeXFormat{LaTeX2e}
1502 \def\bididate{2020/05/17}
1503 \def\bidi@version{36.3}
1504 \ProvidesPackage{bidi}[\bididate\space v\bidi@version\space
1505 Bidirectional typesetting in plain TeX and LaTeX]
1506 \edef\@bidi@info{****************************************************^^J%
1507 * ^^J%
1508 * bidi package (Bidirectional typesetting in^^J%
1509 * plain TeX and LaTeX, using XeTeX engine)^^J%
1510 * ^^J%

File bidi.sty 34
1511 * Description: A convenient interface for^^J%
1512 * typesetting bidirectional texts in plain TeX^^J%
1513 * and LaTeX. The package includes adaptations^^J%
1514 * for use with many other commonly-used packages.^^J%
1515 * ^^J%
1516 * Copyright (c) 2007--2020 Vafa Khalighi^^J%
1517 * Copyright (c) 2018--2020 bidi-tex GitHub organization^^J%
1518 * ^^J%
1519 * v\bidi@version, \bididate^^J%
1520 * ^^J%
1521 * License: LaTeX Project Public License, version^^J%
1522 * 1.3c or higher (your choice)^^J%
1523 * ^^J%
1524 * Location on CTAN: /macros/xetex/latex/bidi^^J%
1525 * ^^J%
1526 * Issue tracker: https://github.com/persiantex/bidi/issues^^J%
1527 * ^^J%
1528 * Primary author of bidi package: Vafa Khalighi.^^J%
1529 * ^^J%
1530 ****************************************************}
1531 \typeout{\@bidi@info}
1532 \edef\bidi@everyjob{\the\everyjob}
1533 \everyjob{\bidi@everyjob\typeout{\@bidi@info}}
1534 \newcommand*{\bidiversion}{\ensuremath\bidi@version}
1535 \newcommand*{\IfbidiPackageVersionLater}[1]{%
1536 \ifdim\bidi@version pt > #1 pt %
1537 \expandafter\@firstoftwo
1538 \else
1539 \expandafter\@secondoftwo
1540 \fi}
1541 \newcommand*{\IfbidiPackageVersionBefore}[1]{%
1542 \ifdim\bidi@version pt < #1 pt %
1543 \expandafter\@firstoftwo
1544 \else
1545 \expandafter\@secondoftwo
1546 \fi}
1547 \newcommand*{\IfbidiPackageVersion}[1]{%
1548 \ifdim\bidi@version pt = #1 pt %
1549 \expandafter\@firstoftwo
1550 \else
1551 \expandafter\@secondoftwo
1552 \fi}
1553 \RequirePackage{iftex}
1554 \RequireXeTeX
1555 \RequirePackage{biditools}
1556 \RequirePackage{zref-abspage}
1557 \RequirePackage{auxhook}
1558 \RequirePackage{ltxcmds}
1559 \RequirePackage{xkeyval}
1560 \eqnewif{\if@RTLmain}{\if@rlmain}

File bidi.sty 35
1561 \eqnewif{\if@RTL}{\if@rl}
1562 \newif\if@nonlatin
1563 \newif\if@bidi@perpage@footnote
1564 \newcommand*{\setlatin}{\@nonlatinfalse}
1565 \newcommand*{\setnonlatin}{\@nonlatintrue}
1566 \eqnewif{\if@RTLtab}{\if@tab@rl}
1567 \newif\if@hboxRconstruct
1568 \newif\if@bidi@pdfencrypt
1569 \newcommand*{\setRTLtable}{\@RTLtabtrue}
1570 \newcommand*{\setLTRtable}{\@RTLtabfalse}
1571 \newif\if@bidi@pdfm@mark
1572 \newif\if@RTLmarginpar
1573 \newif\if@LTRmarginpar
1574 \newif\if@LTRbibitems
1575 \newif\if@RTLbibitems
1576 \newif\if@extrafootnotefeatures
1577 \newif\if@RTLcolumnfootnotes
1578 \eqnewif{\if@RTL@footnote}{\if@rl@footnote}
1579 \newif\if@bidi@list@minipage@parbox
1580 \newif\if@bidi@list@minipage@parbox@not@nob
1581 \newcommand*{\@bidi@pdfcreator}{%
1582 The bidi package, v\bidi@version, \bididate
1583 }
1584 \newcommand*{\@bidi@pdfproducer}{%
1585 The bidi package, v\bidi@version, \bididate
1586 }
1587 \newcommand*{\@bidi@pdfcustomproperties}{%
1588 This is the bidi package, Version \bidi@version,
1589 Released May 17, 2020.
1590 }
1591 \@RTLmainfalse
1592 \AtBeginDocument{%
1593 \if@RTLmain\else
1594 \if@RTL\@RTLmaintrue%
1595 \else\@RTLmainfalse%
1596 \fi%
1597 \fi%
1598 }
1599 \let\n@xt=\
1600 \bidi@newrobustcmd*{\LRE}{\protect\pLRE}%
1601 \def\pLRE{\protect\afterassignment\moreLRE \let\n@xt= }
1602 \bidi@newrobustcmd*{\RLE}{\protect\pRLE}
1603 \def\pRLE{\protect\afterassignment\moreRLE \let\n@xt= }
1604 \def\bracetext{\ifcat\n@xt{\else\ifcat\n@xt}\fi
1605 \errmessage{Missing left brace has been substituted}\fi \bgroup}
1606 \newinsert\@bidi@copyins@
1607 \skip\@bidi@copyins@=12\p@
1608 \dimen\@bidi@copyins@=40pc
1609 \count\@bidi@copyins@=1000
1610 \newcommand*{\@bidi@inslogo@}{\insert\@bidi@copyins@{\@bidi@logo@}}

File bidi.sty 36
1611 \newcommand*{\@bidi@logo@hb@xt@columnwidth}{%
1612 \if@RTLmain
1613 \if@twocolumn
1614 \hboxR to \columnwidth
1615 \else
1616 \hboxR to \textwidth
1617 \fi
1618 \else
1619 \if@twocolumn
1620 \hboxL to \columnwidth
1621 \else
1622 \hboxL to \textwidth
1623 \fi
1624 \fi
1625 }
1626 \newcommand*{\@bidi@logo}[1]{%
1627 \toks@{%
1628 \setbox\z@\hbox{%
1629 \special{%
1630 pdf:image width 50pt height 50pt (#1)%
1631 }
1632 }%
1633 \dp\z@\z@
1634 \ht\z@=50pt
1635 \wd\z@=50pt
1636 \beginL
1637 \lower20pt\box\z@
1638 \endL
1639 }%
1640 \the\toks@
1641 }
1642 \newcommand*{\@bidi@logo@}{%
1643 \@bidi@logo@hb@xt@columnwidth
1644 {\hss\LRE{\bfseries Typeset by the \textsf{bidi}
1645 package\quad\@bidi@logo{bidi-logo.pdf}}}}
1646 \define@key{bidi@pdfencrypt}{userpassword}[]{%
1647 \def\bidi@pdfencrypt@userpassword{#1}%
1648 }
1649 \define@key{bidi@pdfencrypt}{ownerpassword}[]{%
1650 \def\bidi@pdfencrypt@ownerpassword{#1}%
1651 }
1652 \define@key{bidi@pdfencrypt}{keylength}[128]{%
1653 \def\bidi@pdfencrypt@keylength{#1}%
1654 }
1655 \define@key{bidi@pdfencrypt}{permissionflags}[2052]{%
1656 \def\bidi@pdfencrypt@permissionflags{#1}%
1657 }
1658 \newcommand*{\pdfencryptsetup}{\setkeys{bidi@pdfencrypt}}
1659 \@onlypreamble\pdfencryptsetup
1660 \input{latex-xetex-bidi.def}

File bidi.sty 37
1661 \input{loadingorder-xetex-bidi.def}
1662 \define@choicekey{bidi.sty}{RTLdocument}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
1663 \ifcase\bidi@tempb\relax
1664 \@RTLtrue
1665 \or
1666 \@RTLfalse
1667 \fi}
1668 \define@choicekey{bidi.sty}{documentdirection}[\bidi@tempa\bidi@tempb]{righttoleft,lefttoright
1669 \ifcase\bidi@tempb\relax
1670 \@RTLtrue
1671 \or
1672 \@RTLfalse
1673 \fi}
1674 \define@choicekey{bidi.sty}{tabledirection}[\bidi@tempa\bidi@tempb]{righttoleft,lefttoright}{%
1675 \ifcase\bidi@tempb\relax
1676 \@RTLtabtrue
1677 \or
1678 \@RTLtabfalse
1679 \fi}
1680 \define@choicekey{bidi.sty}{script}[\bidi@tempa\bidi@tempb]{latin,nonlatin}[latin]{%
1681 \ifcase\bidi@tempb\relax
1682 \@nonlatinfalse
1683 \or
1684 \@nonlatintrue
1685 \fi}
1686 \define@choicekey{bidi.sty}{rldocument}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
1687 \ifcase\bidi@tempb\relax
1688 \@RTLtrue
1689 \or
1690 \@RTLfalse
1691 \fi}
1692 \define@choicekey{bidi.sty}{footnoterule}[\bidi@tempa\bidi@tempb]{automatic,left,right,split,t
1693 \ifcase\bidi@tempb\relax
1694 \autofootnoterule
1695 \or
1696 \leftfootnoterule
1697 \or
1698 \rightfootnoterule
1699 \or
1700 \SplitFootnoteRule
1701 \or
1702 \textwidthfootnoterule
1703 \fi}
1704 \define@choicekey{bidi.sty}{footnotedirection}[\bidi@tempa\bidi@tempb]{righttoleft,lefttoright
1705 \ifcase\bidi@tempb\relax
1706 \@RTL@footnotetrue
1707 \or
1708 \@RTL@footnotefalse
1709 \fi}
1710 \define@choicekey{bidi.sty}{debugfootnotedirection}[\bidi@tempa\bidi@tempb]{on,off}[on]{%

File bidi.sty 38
1711 \ifcase\bidi@tempb\relax
1712 \footdir@debugtrue
1713 \or
1714 \footdir@debugfalse
1715 \fi}
1716 \define@choicekey{bidi.sty}{extrafootnotefeatures}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
1717 \ifcase\bidi@tempb\relax
1718 \@extrafootnotefeaturestrue
1719 \or
1720 \@extrafootnotefeaturesfalse
1721 \fi}
1722
1723 \define@choicekey{bidi.sty}{DetectColumn}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
1724 \ifcase\bidi@tempb\relax
1725 \def\bidi@firstcolumn@status@write{%
1726 \protected@write\@auxout{}%
1727 {\string\bidi@column@status
1728 {1}}}%
1729 \def\bidi@lastcolumn@status@write{%
1730 \protected@write\@auxout{}%
1731 {\string\bidi@column@status{2}}}%
1732 \or
1733 \let\bidi@firstcolumn@status@write\relax
1734 \let\bidi@lastcolumn@status@write\relax
1735 \fi}
1736
1737 \define@choicekey{bidi.sty}{logo}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
1738 \ifcase\bidi@tempb\relax
1739 \AtBeginDocument{\@bidi@inslogo@}%
1740 \or
1741 \let\@bidi@logo@\@empty \let\@bidi@inslogo@\@empty
1742 \fi}
1743
1744 \define@choicekey{bidi.sty}{pdfinfo}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
1745 \ifcase\bidi@tempb\relax
1746 \@bidi@pdfm@marktrue
1747 \or
1748 \@bidi@pdfm@markfalse
1749 \fi}
1750
1751 % The `perpagefootnote' option is documented in UK TeX FAQ at
1752 % <https://texfaq.org/FAQ-footnpp> (see last paragraph)
1753
1754 \define@choicekey{bidi.sty}{perpagefootnote}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
1755 \ifcase\bidi@tempb\relax
1756 \@bidi@perpage@footnotetrue
1757 \or
1758 \@bidi@perpage@footnotefalse
1759 \fi}
1760

File bidi.sty 39
1761 \ExecuteOptionsX{%
1762 DetectColumn=off%
1763 }
1764
1765 \ProcessOptionsX
1766
1767 \pdfencryptsetup{%
1768 userpassword,%
1769 ownerpassword,%
1770 keylength,%
1771 permissionflags%
1772 }
1773
1774 \if@extrafootnotefeatures
1775 \input{extrafootnotefeatures-xetex-bidi.def}
1776 \fi
1777 \newcount\bidi@digits
1778 \XeTeXinterchartokenstate=\@ne
1779 \newXeTeXintercharclass\bidi@digits@charclass
1780 \newXeTeXintercharclass\bidi@sepmark@charclass
1781 \XeTeXcharclass `\. \bidi@sepmark@charclass
1782 \XeTeXcharclass `\- \bidi@sepmark@charclass
1783 \bidi@digits=`\0 \loop \XeTeXcharclass \bidi@digits \bidi@digits@charclass \ifnum\bidi@digits<
1784 \bidi@digits=`\� \loop \XeTeXcharclass \bidi@digits \bidi@digits@charclass \ifnum\bidi@digits<
1785 \bidi@digits=`\� \loop \XeTeXcharclass \bidi@digits \bidi@digits@charclass \ifnum\bidi@digits<
1786 \XeTeXinterchartoks \bidi@sepmark@charclass \bidi@digits@charclass = {\DigitsDotDashInterChar
1787 \newcommand*{\DigitsDotDashInterCharToks}{\if@nonlatin\char"200F \fi}
1788 \bidi@AtEndPreamble{%
1789 \if@bidi@perpage@footnote
1790 \RequirePackage{bidi-perpage}%
1791 \ResetCounterPerPage{footnote}%
1792 \fi
1793 \ifx\bidi@pdfencrypt@ownerpassword\bidi@empty
1794 \ifx\bidi@pdfencrypt@userpassword\bidi@empty
1795 \@bidi@pdfencryptfalse
1796 \else
1797 \@bidi@pdfencrypttrue
1798 \fi
1799 \else
1800 \@bidi@pdfencrypttrue
1801 \fi
1802 \if@bidi@pdfencrypt
1803 \special{pdf:encrypt
1804 userpw (\bidi@pdfencrypt@userpassword)
1805 ownerpw (\bidi@pdfencrypt@ownerpassword)
1806 length \bidi@pdfencrypt@keylength
1807 perm \bidi@pdfencrypt@permissionflags
1808 }%
1809 \fi
1810 }

File bidi.sty 40
1811 \AtEndDocument{%
1812 \special{pdf:%
1813 docinfo<<%
1814 \if@bidi@pdfm@mark
1815 /Creator(\@bidi@pdfcreator)%
1816 /Producer(\@bidi@pdfproducer)%
1817 \fi
1818 /BIDI.Fullbanner(\@bidi@pdfcustomproperties)%
1819 \if@bidi@csdef{@xepersian@pdfcustomproperties}{%
1820 /XEPERSIAN.Fullbanner(\@xepersian@pdfcustomproperties)%
1821 }{}%
1822 >>%
1823 }%
1824 }

15 File bidi.tex
1825 \def\bididate{2020/05/17}
1826 \catcode`@=11
1827 \def\bidi@version{36.3}
1828 \let \protect \relax
1829 \newlinechar`\^^J
1830 \edef\@bidi@info{****************************************************^^J%
1831 * ^^J%
1832 * bidi package (Bidirectional typesetting in^^J%
1833 * plain TeX and LaTeX, using XeTeX engine)^^J%
1834 * ^^J%
1835 * Description: A convenient interface for^^J%
1836 * typesetting bidirectional texts in plain TeX^^J%
1837 * and LaTeX. The package includes adaptations^^J%
1838 * for use with many other commonly-used packages.^^J%
1839 * ^^J%
1840 * Copyright (c) 2007--2020 Vafa Khalighi^^J%
1841 * Copyright (c) 2018--2020 bidi-tex GitHub organization^^J%
1842 * ^^J%
1843 * v\bidi@version, \bididate^^J%
1844 * ^^J%
1845 * License: LaTeX Project Public License, version^^J%
1846 * 1.3c or higher (your choice)^^J%
1847 * ^^J%
1848 * Location on CTAN: /macros/xetex/latex/bidi^^J%
1849 * ^^J%
1850 * Issue tracker: https://github.com/persiantex/bidi/issues^^J%
1851 * ^^J%
1852 * Primary author of bidi package: Vafa Khalighi.^^J%
1853 * ^^J%
1854 ****************************************************}
1855 \message{\@bidi@info}
1856 \edef\bidi@everyjob{\the\everyjob}
1857 \everyjob{\bidi@everyjob\message{\@bidi@info}}

File bidi.tex 41
1858 \def\bidiversion{%
1859 \relax
1860 \ifmmode
1861 \bidi@version
1862 \else
1863 $\bidi@version$
1864 \fi
1865 }
1866 \input iftex.sty
1867 \RequireXeTeX
1868 \newif\if@bidi@pdfm@mark
1869 \newif\if@RTLmain
1870 \newif\if@RTL
1871 \newif\if@hboxRconstruct
1872 \newif\if@sentdir
1873 \newif\if@RTL@footnote
1874 \@RTLmainfalse
1875 \def\setRTLmain{%
1876 \if@RTLmain\else
1877 \if@RTL\@RTLmaintrue%
1878 \else\@RTLmainfalse%
1879 \fi%
1880 \fi%
1881 }
1882 \let\n@xt=\
1883 \protected\def\LRE{\protect\pLRE}%
1884 \def\pLRE{\protect\afterassignment\moreLRE \let\n@xt= }
1885 \protected\def\RLE{\protect\pRLE}
1886 \def\pRLE{\protect\afterassignment\moreRLE \let\n@xt= }
1887 \def\bracetext{\ifcat\n@xt{\else\ifcat\n@xt}\fi
1888 \errmessage{Missing left brace has been substituted}\fi \bgroup}
1889 \newinsert\@bidi@copyins@
1890 \skip\@bidi@copyins@=12\p@
1891 \dimen\@bidi@copyins@=40pc
1892 \count\@bidi@copyins@=1000
1893 \def\@bidi@inslogo@{\insert\@bidi@copyins@{\@bidi@logo@}}
1894 \def\@bidi@logo@hb@xt@{%
1895 \if@RTLmain
1896 \hboxR to
1897 \else
1898 \hboxL to
1899 \fi
1900 }
1901 \def\@bidi@logo#1{%
1902 \toks@{%
1903 \setbox\z@\hbox{%
1904 \special{%
1905 pdf:image width 50pt height 50pt (#1)%
1906 }
1907 }%

File bidi.tex 42
1908 \dp\z@\z@
1909 \ht\z@=50pt
1910 \wd\z@=50pt
1911 \beginL
1912 \lower20pt\box\z@
1913 \endL
1914 }%
1915 \the\toks@
1916 }
1917 \def\@bidi@logo@{\@bidi@logo@hb@xt@\hsize{\hss\LRE{\bf Typeset by the bidi package\quad\@bidi@
1918 \def\nobidilogo{\let\@bidi@logo@\@empty \let\@bidi@inslogo@\@empty}
1919 \def\@bidi@pdfcreator{%
1920 The bidi package, v\bidi@version, \bididate
1921 }
1922 \def\@bidi@pdfproducer{%
1923 The bidi package, v\bidi@version, \bididate
1924 }
1925 \def\@bidi@pdfcustomproperties{%
1926 This is the bidi package, Version \bidi@version,
1927 Released May 17, 2020.
1928 }
1929 \def\bidi@pdfm@mark{%
1930 \special{pdf:%
1931 docinfo<<%
1932 \if@bidi@pdfm@mark
1933 /Creator(\@bidi@pdfcreator)%
1934 /Producer(\@bidi@pdfproducer)%
1935 \fi
1936 /BIDI.Fullbanner(\@bidi@pdfcustomproperties)%
1937 >>%
1938 }%
1939 }
1940 \def\bidipdfinfoon{\@bidi@pdfm@marktrue}
1941 \def\bidipdfinfooff{\@bidi@pdfm@markfalse}
1942 \input plain-xetex-bidi.def
1943 \@bidi@inslogo@
1944 \outer\def\bye{\par\vfill\supereject\bidi@pdfm@mark\end}
1945 \catcode`@=12
1946 \bidipdfinfoon

16 File bidi2in1.sty
1947 \NeedsTeXFormat{LaTeX2e}
1948 \ProvidesPackage{bidi2in1}
1949 \pagestyle{plain}
1950 \newcount\evenpage
1951 \newcount\oddpage
1952 \twocolumn
1953 \def\@oddfoot{\evenpage=\thepage%
1954 \multiply\evenpage by 2%

File bidi2in1.sty 43
1955 \oddpage=\the\evenpage%
1956 \advance\oddpage by -1%
1957 \hfil\the\evenpage\hfil\hfil\the\oddpage\hfil}%
1958 \def\@evenfoot{\evenpage=\thepage%
1959 \multiply\evenpage by 2%
1960 \oddpage=\the\evenpage%
1961 \advance\oddpage by -1%
1962 \hfil\the\oddpage\hfil\hfil\the\evenpage\hfil}%
1963 \textwidth 9.49in
1964 \textheight 6.7in
1965 \columnsep 0.9in
1966 \columnseprule 0.125pt
1967 \headheight 0cm
1968 \topmargin 0in
1969 \marginparwidth 0in
1970 \marginparsep 0in
1971 \hoffset 0.05in % Corrected
1972 \voffset -0.5in %top margin space is 1.0in by default
1973 \oddsidemargin 0in
1974 \evensidemargin 0in
1975 \headsep 0cm
1976 \topskip 0cm
1977 \parskip 0.15in %
1978 \headsep 0pt
1979 \special{papersize=11.69in,8.26in}
1980 \renewcommand\maketitle{\par
1981 \begingroup
1982 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
1983 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
1984 \long\def\@makefntext##1{\parindent 1em\noindent
1985 \hb@[email protected]{%
1986 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
1987 \@maketitle
1988 \@thanks
1989 \endgroup
1990 \setcounter{footnote}{0}%
1991 \global\let\thanks\relax
1992 \global\let\maketitle\relax
1993 \global\let\@maketitle\relax
1994 \global\let\@thanks\@empty
1995 \global\let\@author\@empty
1996 \global\let\@date\@empty
1997 \global\let\@title\@empty
1998 \global\let\title\relax
1999 \global\let\author\relax
2000 \global\let\date\relax
2001 \global\let\and\relax
2002 }

File bidi2in1.sty 44
17 File bidicode.sty
2003 \NeedsTeXFormat{LaTeX2e}
2004 \ProvidesPackage{bidicode}
2005 \RequirePackage{xcolor}
2006 \RequirePackage{showexpl}
2007 \definecolor{hellgelb}{rgb}{1,1,0.85}
2008 \definecolor{colKeys}{rgb}{0,0,1}
2009 \definecolor{colIdentifier}{rgb}{0,0,0}
2010 \definecolor{colComments}{rgb}{1,0,0}
2011 \definecolor{colString}{rgb}{0,0.5,0}
2012 \lstset{
2013 language=[LaTeX]TEX,
2014 float=hbp,
2015 basicstyle=\ttfamily\small,
2016 identifierstyle=\color{colIdentifier},
2017 keywordstyle=\color{colKeys},
2018 stringstyle=\color{colString},
2019 commentstyle=\color{colComments},
2020 backgroundcolor=\color{hellgelb},
2021 columns=flexible,
2022 tabsize=4,
2023 extendedchars=true,
2024 showspaces=false,
2025 showstringspaces=false,
2026 numbers=left,
2027 numbersep=0.9em,
2028 numberstyle=\tiny, %
2029 frame=single,
2030 captionpos=b,
2031 xleftmargin=1em,
2032 breaklines=true,
2033 breakautoindent=false,
2034 breakindent=0pt,
2035 escapeinside=**,
2036 pos=r,
2037 explpreset={%
2038 xleftmargin=1em,columns=flexible,language=[LaTeX]TEX},
2039 morekeywords={setLTR,setLR,setRTL,setRL,LRE,LR,RLE,RL,lr,bidiversion,bididate}
2040 }
2041 \newcommand\HLON{%
2042 \gdef\lst@alloverstyle##1{%
2043 \fboxrule=0pt
2044 \fboxsep=0pt
2045 \fcolorbox{hellgelb}{hellgelb}{\bfseries\strut##1}%
2046 }}
2047 \newcommand\HLOFF{%
2048 \xdef\lst@alloverstyle##1{##1}%
2049 }
2050 \newcommand\Larg [1]{{\normalfont\itshape#1\/}}

File bidicode.sty 45
2051 \newcommand\Larga[1]{$\langle$\Larg{#1}$\rangle$}
2052 \newcommand\Largb[1]{\lcb\Larg{#1}\rcb}
2053 \newcommand\Largs[1]{\lsb\Larg{#1}\rsb}
2054 \newcommand\Largr[1]{\lrb\Larg{#1}\rrb}
2055 \newcommand\LBEG[1]{{\normalfont\ttfamily\bs{}begin\lcb#1\rcb}}
2056 \newcommand\LEND[1]{{\normalfont\ttfamily\bs{}end\lcb#1\rcb}}
2057
2058 \DeclareRobustCommand\bs{{\normalfont\ttfamily\symbol{92}}}
2059 \DeclareRobustCommand\lcb{{\normalfont\ttfamily\char`\{}}
2060 \DeclareRobustCommand\rcb{{\normalfont\ttfamily\char`\}}}
2061 \DeclareRobustCommand\lsb{{\normalfont\ttfamily[}}
2062 \DeclareRobustCommand\rsb{{\normalfont\ttfamily]}}
2063 \DeclareRobustCommand\lrb{{\normalfont\ttfamily(}}
2064 \DeclareRobustCommand\rrb{{\normalfont\ttfamily)}}
2065
2066 \def\Lcs#1{\nxLcs{#1}}
2067 \def\LcsStar#1{\nxLcs{#1}\OptArg*{*}}
2068 \def\nxLcs#1{\texttt{\symbol{92}#1}}
2069
2070 \def\Coordx#1{$x_{#1}$}
2071 \def\Coordy#1{$y_{#1}$}
2072 \def\Coordz#1{$z_{#1}$}
2073 \def\Coord#1{\Coordx{#1},\kern 1pt\Coordy{#1}}
2074 \def\Coordn{\Coordx{n},\kern 1pt\Coordy{n}}
2075 \def\CoordIII#1{\Coordx{#1},\kern 1pt\Coordy{#1},\kern 1pt\Coordz{#1}}
2076 \def\CAny{\Coordx{},\kern 1pt\Coordy{}}
2077 \def\CIIIAny{\Coordx{},\kern 1pt\Coordy{},\kern 1pt\Coordz{}}
2078 \def\coord#1{(\Coordx{#1},\kern 1pt\Coordy{#1})}
2079 \def\coordn{(\Coordx{n},\kern 1pt\Coordy{n})}
2080 \def\coordiii#1{(\Coordx{#1},\kern 1pt\Coordy{#1},\kern 1pt\Coordz{#1})}
2081 \def\coordx#1{($x_{#1}$)}
2082 \def\coordy#1{($y_{#1}$)}
2083 \def\coordz#1{($z_{#1}$)}
2084 \def\cAny{(\Coordx{},\kern 1pt\Coordy{})}
2085 \def\ciiiAny{(\Coordx{},\kern 1pt\Coordy{},\kern 1pt\Coordz{})}
2086
2087 \newsavebox{\boxdef}
2088 \newenvironment{BDef}
2089 {\begin{lrbox}\boxdef
2090 \def\arraystretch{1.0}
2091 \begin{tabular}{@{}l@{}l@{}l@{}}
2092 }
2093 {\end{tabular}\end{lrbox}
2094
2095 {\BCmd\fbox{\usebox\boxdef}\endBCmd}
2096 \aftergroup\@afterindentfalse\aftergroup\@afterheading
2097 }
2098
2099 \newenvironment{BDef*}
2100 {\begin{lrbox}\boxdef

File bidicode.sty 46
2101 \def\arraystretch{1.0}
2102 \begin{tabular}{@{}l@{}l@{}l@{}}
2103 }
2104 {\end{tabular}\end{lrbox}
2105 {\begin{BCmd*}\fbox{\usebox\boxdef}\end{BCmd*}}
2106 \aftergroup\@afterindentfalse\aftergroup\@afterheading
2107 }
2108 \newenvironment{BCmd}{
2109 \@beginparpenalty-\@lowpenalty
2110 \topsep\BDefaboveskip
2111 \fboxsep3pt
2112 \flushleft}
2113 {\@endparpenalty\@M
2114 \@topsepadd\BDefbelowskip
2115 \endflushleft}
2116
2117 \newenvironment{BCmd*}{
2118 \@beginparpenalty\@M
2119 \topsep\BDefinlineskip
2120 \fboxsep3pt
2121 \flushleft}
2122 {\@endparpenalty5000
2123 \endflushleft}
2124
2125 \newskip\BDefaboveskip
2126 \newskip\BDefbelowskip
2127 \newskip\BDefinlineskip
2128 \setlength\BDefaboveskip{10pt plus 4pt}
2129 \setlength\BDefbelowskip{6pt}
2130 \setlength\BDefinlineskip{6pt}
2131
2132 \def\OptArgs{\colorbox{black!20}{\texttt{[Options]}}\kern1pt}
2133 \def\OptArg{\@ifnextchar*\OptArg@i{\OptArg@ii*}}
2134 \def\OptArg@i*#1{\colorbox{black!20}{\texttt{#1}}\kern1pt}
2135 \def\OptArg@ii*#1{\colorbox{black!20}{\texttt{[#1]}}\kern1pt}

18 File bidiftnxtra.sty
2136 \NeedsTeXFormat{LaTeX2e}
2137 \ProvidesPackage{bidiftnxtra}
2138 \newtoks\bidi@p@ftn
2139 \let\FN@sf@@footnote\footnote
2140 \let\FN@sf@@LTRfootnote\LTRfootnote
2141 \let\FN@sf@@RTLfootnote\RTLfootnote
2142 \def\footnote{\ifx\protect\@typeset@protect
2143 \expandafter\FN@sf@@footnote
2144 \else
2145 \expandafter\FN@sf@gobble@opt
2146 \fi
2147 }

File bidiftnxtra.sty 47
2148 \def\LTRfootnote{\ifx\protect\@typeset@protect
2149 \expandafter\FN@sf@@LTRfootnote
2150 \else
2151 \expandafter\FN@sf@gobble@opt
2152 \fi
2153 }
2154 \def\RTLfootnote{\ifx\protect\@typeset@protect
2155 \expandafter\FN@sf@@RTLfootnote
2156 \else
2157 \expandafter\FN@sf@gobble@opt
2158 \fi
2159 }
2160 \edef\FN@sf@gobble@opt{\noexpand\protect
2161 \expandafter\noexpand\csname FN@sf@gobble@opt \endcsname}
2162 \expandafter\def\csname FN@sf@gobble@opt \endcsname{%
2163 \@ifnextchar[%]
2164 \FN@sf@gobble@twobracket
2165 \@gobble
2166 }
2167 \def\FN@sf@gobble@twobracket[#1]#2{}
2168 \let\FN@sf@@footnotemark\footnotemark
2169 \def\footnotemark{\ifx\protect\@typeset@protect
2170 \expandafter\FN@sf@@footnotemark
2171 \else
2172 \expandafter\FN@sf@gobble@optonly
2173 \fi
2174 }
2175 \edef\FN@sf@gobble@optonly{\noexpand\protect
2176 \expandafter\noexpand\csname FN@sf@gobble@optonly \endcsname}
2177 \expandafter\def\csname FN@sf@gobble@optonly \endcsname{%
2178 \@ifnextchar[%]
2179 \FN@sf@gobble@bracket
2180 {}%
2181 }
2182 \def\FN@sf@gobble@bracket[#1]{}
2183 \def\@tabular{%
2184 \leavevmode \hbox \bgroup
2185 \let\@footnotetext\bidi@p@ftntext
2186 \let\@LTRfootnotetext\bidi@p@LTRftntext
2187 \let\@RTLfootnotetext\bidi@p@RTLftntext
2188 \let\@xfootnotenext\bidi@p@xftntext
2189 \let\@xfootnote\bidi@p@xfootnote
2190 \let\@xLTRfootnotenext\bidi@p@xLTRftntext
2191 \let\@xLTRfootnote\bidi@p@xLTRfootnote
2192 \let\@xRTLfootnotenext\bidi@p@xRTLftntext
2193 \let\@xRTLfootnote\bidi@p@xRTLfootnote
2194 \if@RTLtab\beginR \fi
2195 $\let\@acol\@tabacol
2196 \let\@classz\@tabclassz
2197 \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}

File bidiftnxtra.sty 48
2198 \def\endtabular{\crcr\egroup\if@RTLtab\egroup\endR\egroup\fi
2199 \egroup $\if@RTLtab\endR\fi\egroup
2200 \ifx\@captype\@undefined
2201 \global\bidi@p@ftn\expandafter{\expandafter}\the\bidi@p@ftn\fi}
2202 \long\def\bidi@p@ftntext#1{%
2203 \edef\@tempy{\the\bidi@p@ftn\noexpand\footnotetext[\the\csname c@\@mpfn\endcsname]}%
2204 \global\bidi@p@ftn\expandafter{\@tempy{#1}}}%
2205 \long\def\bidi@p@LTRftntext#1{%
2206 \edef\@tempyi{\the\bidi@p@ftn\noexpand\LTRfootnotetext[\the\csname c@\@mpfn\endcsname]}%
2207 \global\bidi@p@ftn\expandafter{\@tempyi{#1}}}%
2208 \long\def\bidi@p@RTLftntext#1{%
2209 \edef\@tempyii{\the\bidi@p@ftn\noexpand\RTLfootnotetext[\the\csname c@\@mpfn\endcsname]}%
2210 \global\bidi@p@ftn\expandafter{\@tempyii{#1}}}%
2211
2212
2213 \long\def\bidi@p@xftntext[#1]#2{%
2214 \global\bidi@p@ftn\expandafter{\the\bidi@p@ftn\footnotetext[#1]{#2}}}
2215
2216 \long\def\bidi@p@xLTRftntext[#1]#2{%
2217 \global\bidi@p@ftn\expandafter{\the\bidi@p@ftn\LTRfootnotetext[#1]{#2}}}
2218
2219 \long\def\bidi@p@xRTLftntext[#1]#2{%
2220 \global\bidi@p@ftn\expandafter{\the\bidi@p@ftn\RTLfootnotetext[#1]{#2}}}
2221
2222
2223 \def\bidi@p@xfootnote[#1]{%
2224 \begingroup
2225 \csname c@\@mpfn\endcsname #1\relax
2226 \unrestored@protected@xdef\@thefnmark{\thempfn}%
2227 \endgroup
2228 \@footnotemark\bidi@p@xftntext[#1]}
2229
2230
2231 \def\bidi@p@xLTRfootnote[#1]{%
2232 \begingroup
2233 \csname c@\@mpfn\endcsname #1\relax
2234 \unrestored@protected@xdef\@thefnmark{\thempfn}%
2235 \endgroup
2236 \@footnotemark\bidi@p@xLTRftntext[#1]}
2237
2238
2239 \def\bidi@p@xRTLfootnote[#1]{%
2240 \begingroup
2241 \csname c@\@mpfn\endcsname #1\relax
2242 \unrestored@protected@xdef\@thefnmark{\thempfn}%
2243 \endgroup
2244 \@footnotemark\bidi@p@xRTLftntext[#1]}
2245
2246 \def\@xfloat #1[#2]{%
2247 \@nodocument

File bidiftnxtra.sty 49
2248 \def \@captype {#1}%
2249 \def \@fps {#2}%
2250 \@onelevel@sanitize \@fps
2251 \def \reserved@b {!}%
2252 \ifx \reserved@b \@fps
2253 \@fpsadddefault
2254 \else
2255 \ifx \@fps \@empty
2256 \@fpsadddefault
2257 \fi
2258 \fi
2259 \ifhmode
2260 \@bsphack
2261 \@floatpenalty -\@Mii
2262 \else
2263 \@floatpenalty-\@Miii
2264 \fi
2265 \ifinner
2266 \@parmoderr\@floatpenalty\z@
2267 \else
2268 \@next\@currbox\@freelist
2269 {%
2270 \@tempcnta \sixt@@n
2271 \expandafter \@tfor \expandafter \reserved@a
2272 \expandafter :\expandafter =\@fps
2273 \do
2274 {%
2275 \if \reserved@a h%
2276 \ifodd \@tempcnta
2277 \else
2278 \advance \@tempcnta \@ne
2279 \fi
2280 \fi
2281 \if \reserved@a t%
2282 \@setfpsbit \tw@
2283 \fi
2284 \if \reserved@a b%
2285 \@setfpsbit 4%
2286 \fi
2287 \if \reserved@a p%
2288 \@setfpsbit 8%
2289 \fi
2290 \if \reserved@a !%
2291 \ifnum \@tempcnta>15
2292 \advance\@tempcnta -\sixt@@n\relax
2293 \fi
2294 \fi
2295 }%
2296 \@tempcntb \csname ftype@\@captype \endcsname
2297 \multiply \@tempcntb \@xxxii

File bidiftnxtra.sty 50
2298 \advance \@tempcnta \@tempcntb
2299 \global \count\@currbox \@tempcnta
2300 }%
2301 \@fltovf
2302 \fi
2303 \global \setbox\@currbox
2304 \color@vbox
2305 \normalcolor
2306 \vbox \bgroup
2307 \let\@footnotetext\bidi@p@ftntext
2308 \let\@LTRfootnotetext\bidi@p@LTRftntext
2309 \let\@RTLfootnotetext\bidi@p@RTLftntext
2310 \let\@xfootnotenext\bidi@p@xftntext
2311 \let\@xfootnote\bidi@p@xfootnote
2312 \let\@xLTRfootnotenext\bidi@p@xLTRftntext
2313 \let\@xLTRfootnote\bidi@p@xLTRfootnote
2314 \let\@xRTLfootnotenext\bidi@p@xRTLftntext
2315 \let\@xRTLfootnote\bidi@p@xRTLfootnote
2316 \hsize\columnwidth
2317 \@parboxrestore
2318 \@floatboxreset
2319 }
2320 \def \@endfloatbox{%
2321 \par\vskip\z@skip %% \par\vskip\z@ added 15 Dec 87
2322 \@minipagefalse
2323 \outer@nobreak
2324 \egroup %% end of vbox
2325 \global\bidi@p@ftn\expandafter{\expandafter}\the\bidi@p@ftn
2326 \color@endbox
2327 }

19 File bidimoderncv.cls
2328 \NeedsTeXFormat{LaTeX2e}
2329 \ProvidesClass{bidimoderncv}
2330 \newif\if@DEBUG\@DEBUGfalse
2331 \DeclareOption{a4paper}{
2332 \setlength\paperheight{297mm}
2333 \setlength\paperwidth{210mm}}
2334 \DeclareOption{a5paper}{
2335 \setlength\paperheight{210mm}
2336 \setlength\paperwidth{148mm}}
2337 \DeclareOption{b5paper}{
2338 \setlength\paperheight{250mm}
2339 \setlength\paperwidth{176mm}}
2340 \DeclareOption{letterpaper}{
2341 \setlength\paperheight{11in}
2342 \setlength\paperwidth{8.5in}}
2343 \DeclareOption{legalpaper}{
2344 \setlength\paperheight{14in}

File bidimoderncv.cls 51
2345 \setlength\paperwidth{8.5in}}
2346 \DeclareOption{executivepaper}{
2347 \setlength\paperheight{10.5in}
2348 \setlength\paperwidth{7.25in}}
2349 \DeclareOption{landscape}{
2350 \setlength\@tempdima{\paperheight}
2351 \setlength\paperheight{\paperwidth}
2352 \setlength\paperwidth{\@tempdima}}
2353 \newcommand\@ptsize{}
2354 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
2355 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
2356 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
2357 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
2358 \DeclareOption{final}{\setlength\overfullrule{0pt}}
2359 \newif\if@colour\@colourtrue
2360 \DeclareOption{nocolour}{\@colourfalse}
2361 \ExecuteOptions{a4paper,11pt,colour,final}
2362 \ProcessOptions\relax
2363 \input{size1\@ptsize.clo}
2364 \RequirePackage{color}
2365 \RequirePackage{graphicx}
2366 \RequirePackage{ifthen}
2367 \RequirePackage{marvosym}
2368 \addtolength{\oddsidemargin}{-54pt}
2369 \addtolength{\textwidth}{109pt}
2370 \addtolength{\topmargin}{-70pt}
2371 \addtolength{\textheight}{122pt}
2372 \addtolength{\marginparsep}{-5pt}
2373 \addtolength{\marginparwidth}{-10pt}
2374 \RequirePackage{url}
2375 \RequirePackage{hyperref}
2376 \hypersetup{%
2377 breaklinks,
2378 baseurl = http://,%
2379 pdfborder = 0 0 0,%
2380 pdfpagemode = UseNone,%
2381 pdfstartpage = 1}
2382 \AtEndOfClass{%
2383 \AtBeginDocument{%
2384 \hypersetup{%
2385 pdfauthor = \@firstname~\@familyname,%
2386 pdftitle = \@title,%
2387 pdfsubject = \@firstname~\@familyname,%
2388 pdfkeywords = \@resumename~\@firstname~\@familyname}}}
2389 \urlstyle{tt}
2390 \RequirePackage{fancyhdr}
2391 \fancypagestyle{plain}{%
2392 \renewcommand{\headrulewidth}{0pt}
2393 \renewcommand{\footrulewidth}{0pt}
2394 \fancyhf{}}

File bidimoderncv.cls 52
2395 \pagestyle{plain}
2396 \setlength\lineskip{1\p@}
2397 \setlength\normallineskip{1\p@}
2398 \renewcommand\baselinestretch{}
2399 \setlength{\parindent}{0pt}
2400 \setlength{\parskip}{0pt}
2401 \setlength\columnsep{10\p@}
2402 \setlength\columnseprule{0\p@}
2403 \pagestyle{empty}
2404 \pagenumbering{arabic}
2405 \raggedbottom
2406 \onecolumn
2407 \providecommand*{\listitemsymbol}{\textbullet}
2408 \providecommand*{\addresssymbol}{}
2409 \providecommand*{\mobilesymbol}{\Mobilefone}
2410 \providecommand*{\phonesymbol}{\Telefon}
2411 \providecommand*{\faxsymbol}{\FAX}
2412 \providecommand*{\emailsymbol}{\Letter}
2413 \definecolor{firstnamecolor}{rgb}{0,0,0}
2414 \def\firstnamecolour#1{\gdef\@firstnamecolour{\addfontfeature{Color=#1}}}
2415 \def\familynamecolour#1{\gdef\@familynamecolour{\addfontfeature{Color=#1}}}
2416 \def\titlecolour#1{\gdef\@titlecolour{\addfontfeature{Color=#1}}}
2417 \def\addresscolour#1{\gdef\@addresscolour{\addfontfeature{Color=#1}}}
2418 \def\quotecolour#1{\gdef\@quotecolour{\addfontfeature{Color=#1}}}
2419 \def\sectiontitlecolour#1{\gdef\@sectiontitlecolour{\addfontfeature{Color=#1}}}
2420 \definecolor{sectionrectanglecolor}{rgb}{0,0,0}
2421 \def\subsectioncolour#1{\gdef\@subsectioncolour{\addfontfeature{Color=#1}}}
2422 \def\hintcolour#1{\gdef\@hintcolour{\addfontfeature{Color=#1}}}
2423 \providecommand*{\firstnamefont}{}
2424 \providecommand*{\familynamefont}{}
2425 \providecommand*{\titlefont}{}
2426 \providecommand*{\addressfont}{}
2427 \providecommand*{\quotefont}{}
2428 \providecommand*{\sectionfont}{}
2429 \providecommand*{\subsectionfont}{}
2430 \providecommand*{\hintfont}{\small}
2431 \providecommand*{\firstnamestyle}[1]{{\firstnamefont\@firstnamecolour#1}}
2432 \providecommand*{\familynamestyle}[1]{{\familynamefont\@familynamecolour#1}}
2433 \providecommand*{\titlestyle}[1]{{\titlefont\@titlecolour#1}}
2434 \providecommand*{\addresstyle}[1]{{\addressfont\@addresscolour#1}}
2435 \providecommand*{\quotestyle}[1]{{\quotefont\@quotecolour#1}}
2436 \providecommand*{\sectionstyle}[1]{{\sectionfont\@sectiontitlecolour#1}}
2437 \providecommand*{\subsectionstyle}[1]{{\subsectionfont\@subsectioncolour#1}}
2438 \providecommand*{\hintstyle}[1]{{\hintfont\@hintcolour#1}}
2439 \newcommand*{\cvtheme}[2][]{
2440 \def\@cvtheme{#2}
2441 \def\@cvthemeoptions{#1}}
2442 \cvtheme{bidi-casual}
2443 \AtBeginDocument{\RequirePackage[\@cvthemeoptions]{cvtheme\@cvtheme}}
2444 \newcommand*{\resumename}[1]{\def\@resumename{#1}}

File bidimoderncv.cls 53
2445 \newcommand*{\firstname}[1]{\def\@firstname{#1}}
2446 \newcommand*{\familyname}[1]{\def\@familyname{#1}}
2447 \renewcommand*{\title}[1]{\def\@title{#1}}
2448 \newcommand*{\address}[1]{\def\@address{#1}}
2449 \newcommand*{\mobile}[1]{\def\@mobile{#1}}
2450 \newcommand*{\phone}[1]{\def\@phone{#1}}
2451 \renewcommand*{\fax}[1]{\def\@fax{#1}}
2452 \newcommand*{\email}[1]{\def\@email{#1}}
2453 \newcommand*{\extrainfo}[1]{\def\@extrainfo{#1}}
2454 \def\@photowidth{0pt}
2455 \newcommand*{\photo}[2][64pt]{\def\@photowidth{#1}\def\@photo{#2}}
2456 \newcommand*{\quote}[1]{\def\@quote{#1}}
2457 \newlength{\quotewidth}
2458 \newlength{\hintscolumnwidth}
2459 \newlength{\separatorcolumnwidth}
2460 \setlength{\separatorcolumnwidth}{0.025\textwidth}
2461 \newlength{\maincolumnwidth}
2462 \newlength{\doubleitemmaincolumnwidth}
2463 \newlength{\listitemsymbolwidth}
2464 \settowidth{\listitemsymbolwidth}{\listitemsymbol{}~}
2465 \newlength{\listitemmaincolumnwidth}
2466 \newlength{\listdoubleitemmaincolumnwidth}
2467 \newcommand*{\recomputethemelengths}{}
2468 \newcommand*{\recomputelengths}{%
2469 \setlength{\quotewidth}{0.65\textwidth}%
2470 \setlength{\maincolumnwidth}{\textwidth}%
2471 \addtolength{\maincolumnwidth}{-\separatorcolumnwidth}%
2472 \addtolength{\maincolumnwidth}{-\hintscolumnwidth}%
2473 \setlength{\listitemmaincolumnwidth}{\maincolumnwidth}%
2474 \addtolength{\listitemmaincolumnwidth}{-\listitemsymbolwidth}%
2475 \setlength{\doubleitemmaincolumnwidth}{\maincolumnwidth}%
2476 \addtolength{\doubleitemmaincolumnwidth}{-\hintscolumnwidth}%
2477 \addtolength{\doubleitemmaincolumnwidth}{-\separatorcolumnwidth}%
2478 \setlength{\doubleitemmaincolumnwidth}{0.5\doubleitemmaincolumnwidth}%
2479 \setlength{\listdoubleitemmaincolumnwidth}{\maincolumnwidth}%
2480 \addtolength{\listdoubleitemmaincolumnwidth}{-\listitemsymbolwidth}%
2481 \setlength{\listdoubleitemmaincolumnwidth}{0.475\listdoubleitemmaincolumnwidth}%
2482 \renewcommand{\headwidth}{\textwidth}%
2483 \recomputethemelengths}
2484 \setlength{\hintscolumnwidth}{0.15\textwidth}
2485 \recomputelengths
2486 \title{}
2487 \renewcommand*{\maketitle}{}
2488 \newcommand*{\section}[1]{%
2489 \vspace*{2.5ex \@plus 1ex \@minus .2ex}%
2490 \phantomsection{}%
2491 \addcontentsline{toc}{part}{#1}%
2492 \parbox[m]{\hintscolumnwidth}{\bidi@raggedleft\hintfont{\leavevmode\color{sectionrectangleco
2493 \hspace{\separatorcolumnwidth}%
2494 \parbox[m]{\maincolumnwidth}{\sectionstyle{#1}}\\[1ex]}

File bidimoderncv.cls 54
2495 \newcommand*{\subsection}[1]{%
2496 \cvline[0.45em]{}{\subsectionstyle{#1}}}
2497 \newcommand*{\cvline}[3][.25em]{%
2498 \begin{tabular}{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@
2499 \bidi@raggedleft\hintfont{#2} &{#3}%
2500 \end{tabular}\\[#1]}
2501 \newcommand*{\cvdoubleitem}[4]{%
2502 \cvline{#1}{\begin{minipage}[t]{\doubleitemmaincolumnwidth}#2\end{minipage}%
2503 \hfill%
2504 \begin{minipage}[t]{\hintscolumnwidth}\bidi@raggedleft\hintfont{#3}\end{minipage}\hspace*{\se
2505 \newcommand*{\cvlistitem}[2][\listitemsymbol{}]{%
2506 \cvline[0pt]{}{#1~\begin{minipage}[t]{\listitemmaincolumnwidth}#2\end{minipage}}}
2507 \newcommand*{\cvlistdoubleitem}[3][\listitemsymbol{}]{%
2508 \cvline[0pt]{}{#1~\begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#2\end{minipage}%
2509 \hfill%
2510 \ifthenelse{\equal{#3}{}}%
2511 {}%
2512 {#1~\begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#3\end{minipage}}}}
2513 \newcommand*{\cventry}[6]{%
2514 \cvline{#1}{%
2515 {\bfseries#2}%
2516 \ifx#3\else{, {\slshape#3}}\fi%
2517 \ifx#4\else{, #4}\fi%
2518 \ifx#5\else{, #5}\fi%
2519 .%
2520 \ifx#6\else{\newline{}\begin{minipage}[t]{\linewidth}\small#6\end{minipage}}\fi
2521 }}%
2522 \newcommand*{\cvlanguage}[3]{%
2523 \cvline{#1}{\begin{minipage}[t]{.225\maincolumnwidth}\textbf{#2}\end{minipage}\hfill\begin{m
2524 \newcommand*{\cvcomputer}[4]{%
2525 \cvdoubleitem{#1}{\small#2}{#3}{\small#4}}
2526 \newcommand*{\link}[2][]{%
2527 \ifthenelse{\equal{#1}{}}%
2528 {\href{#2}{#2}}%
2529 {\href{#2}{#1}}}
2530 \newcommand*{\httplink}[2][]{%
2531 \ifthenelse{\equal{#1}{}}%
2532 {\href{http://#2}{#2}}%
2533 {\href{http://#2}{#1}}}
2534 \newcommand*{\emaillink}[2][]{%
2535 \ifthenelse{\equal{#1}{}}%
2536 {\href{mailto:#2}{#2}}%
2537 {\href{mailto:#2}{#1}}}
2538 \newif\if@displaypagenumbers\@displaypagenumberstrue
2539 \newcommand*{\nopagenumbers}{\@displaypagenumbersfalse}
2540 \AtBeginDocument{%
2541 \if@displaypagenumbers%
2542 \@ifundefined{r@lastpage}{}{%
2543 \ifthenelse{\pageref{lastpage} > 1}{%
2544 \fancypagestyle{plain}{%

File bidimoderncv.cls 55
2545 \fancyfoot[r]{\beginL\addressfont\@quotecolour\footnotesize\thepage\beginL/\endL\pager
2546 \pagestyle{plain}}{}}%
2547 \AtEndDocument{\label{lastpage}}%
2548 \fi}
2549 \newlength{\bibindent}
2550 \setlength{\bibindent}{1.5em}
2551 \newcommand*{\bibliographyitemlabel}{\includegraphics{bidi-bibitem.pdf}}
2552 \newenvironment{thebibliography}[1]%
2553 {%
2554 \section{\refname}%
2555 \small%
2556 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
2557 \bidi@@thebibliography@font@hook%
2558 \begin{list}{\bibliographyitemlabel}%
2559 {%
2560 \setlength{\topsep}{0pt}%
2561 \setlength{\labelwidth}{\hintscolumnwidth}%
2562 \setlength{\labelsep}{\separatorcolumnwidth}%
2563 \leftmargin\labelwidth%
2564 \advance\leftmargin\labelsep%
2565 \@openbib@code%
2566 \usecounter{enumiv}%
2567 \let\p@enumiv\@empty%
2568 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
2569 \sloppy\clubpenalty4000\widowpenalty4000%
2570 }%
2571 {%
2572 \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
2573 \end{list}%
2574 }
2575 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
2576 \let\@openbib@code\@empty

20 File bidi-perpage.sty
2577 \NeedsTeXFormat{LaTeX2e}
2578 \ProvidesPackage{bidi-perpage}[2018/10/04 v0.4 Reset counter(s) on every page]
2579 \newcount\bidi@page@count
2580 \bidi@page@count\@ne
2581 \newcommand*{\ResetCounterPerPage}[2][\z@]{%
2582 \if@bidi@csundef{bidi@stepcounterhook@@#2}{%
2583 \expandafter\gdef\csname bidi@stepcounterhook@@#2\endcsname{}%
2584 }{}%
2585 \if@bidi@csundef{if@bidi@reset@#2@rerun}{%
2586 \expandafter\newif\csname if@bidi@reset@#2@rerun\endcsname
2587 }{}%
2588 \if@bidi@csundef{bidi@#2@count}{%
2589 \expandafter\newcount\csname bidi@#2@count\endcsname
2590 }{}%
2591 \csname bidi@#2@count\endcsname\z@

File bidi-perpage.sty 56
2592 \if@bidi@csundef{bidi@previous@page@@#2@count}{%
2593 \expandafter\newcount\csname
2594 bidi@previous@page@@#2@count\endcsname
2595 }{}%
2596 \csname bidi@previous@page@@#2@count\endcsname\z@
2597 \if@bidi@csundef{bidi@reset@#2@perpage}{%
2598 \bidi@AfterEndDocumentCheckLabelsRerun{%
2599 \csname if@bidi@reset@#2@rerun\endcsname
2600 \PackageWarningNoLine{bidi-perpage}{%
2601 Counter `#2' may not have been reset per page.
2602 Rerun to reset counter `#2' per page%
2603 }%
2604 \fi
2605 }%
2606 }{}%
2607 \expandafter\gdef\csname bidi@reset@#2@perpage\endcsname{%
2608 \global\advance\csname bidi@#2@count\endcsname\@ne
2609 \if@filesw
2610 \edef\@tempa{%
2611 \write\@auxout{%
2612 \string\bidi@counter@page{#2}%
2613 {\number\csname bidi@#2@count\endcsname}%
2614 {\noexpand\number\noexpand\bidi@page@count}%
2615 }%
2616 }%
2617 \@tempa
2618 \fi
2619 \begingroup\expandafter\expandafter\expandafter\endgroup
2620 \expandafter\ifx\csname bidi@#2@@\number\csname
2621 bidi@#2@count\endcsname\endcsname\relax
2622 \global\csname @bidi@reset@#2@reruntrue\endcsname
2623 \else
2624 \global\csname @bidi@reset@#2@rerunfalse\endcsname
2625 \expandafter\@tempcnta\csname bidi@#2@@\number
2626 \csname bidi@#2@count\endcsname\endcsname\relax
2627 \ifnum\@tempcnta=\csname
2628 bidi@previous@page@@#2@count\endcsname
2629 \else
2630 \global\csname
2631 bidi@previous@page@@#2@count\endcsname\@tempcnta
2632 \global\csname c@#2\endcsname#1\relax
2633 \fi
2634 \fi
2635 }%
2636 \expandafter\bidi@gappto\csname
2637 bidi@stepcounterhook@@#2\endcsname{%
2638 \csname bidi@reset@#2@perpage\endcsname
2639 }%
2640 }
2641 \def\bidi@counter@page#1#2#3{\bidi@namegdef{bidi@#1@@#2}{#3}}

File bidi-perpage.sty 57
2642 \bidi@AtEndOutputPage{%
2643 \global\advance\bidi@page@count\@ne
2644 }

21 File biditools.sty
2645 \NeedsTeXFormat{LaTeX2e}
2646 \ProvidesPackage{biditools}[2020/05/13 v2 Programming tools for bidi package]
2647 \providecommand{\@bidi@saveprimitive}[2]{\begingroup\escapechar`\\\relax
2648 \edef\@tempa{\string#1}\edef\@tempb{\meaning#1}%
2649 \ifx\@tempa\@tempb \global\let#2#1%
2650 \else
2651 \edef\@tempb{\meaning#2}%
2652 \ifx\@tempa\@tempb
2653 \else
2654 \@latex@error{Unable to properly define \string#2; primitive
2655 \noexpand#1no longer primitive}\@eha
2656 \fi
2657 \fi
2658 \endgroup}
2659 \newtoks\@bidi@envbody
2660 \newtoks\@bidi@emptytoks
2661 \def\bidi@addto@envbody#1{\global\@bidi@envbody\expandafter{\the\@bidi@envbody#1}}
2662 \def\bidi@collect@body#1{%
2663 \@bidi@envbody{\expandafter#1\expandafter{\the\@bidi@envbody}}%
2664 \edef\bidi@process@envbody{\the\@bidi@envbody\noexpand\end{\@currenvir}}%
2665 \@bidi@envbody\@bidi@emptytoks \def\begin@bidi@stack{b}%
2666 \begingroup
2667 \expandafter\let\csname\@currenvir\endcsname\bidi@collect@@body
2668 \edef\bidi@process@envbody{\expandafter\noexpand\csname\@currenvir\endcsname}%
2669 \bidi@process@envbody
2670 }
2671 \def\bidi@push@begins#1\begin#2{%
2672 \ifx\end#2\else b\expandafter\bidi@push@begins\fi
2673 }
2674 \def\bidi@collect@@body#1\end#2{%
2675 \edef\begin@bidi@stack{\bidi@push@begins#1\begin\end \expandafter\@gobble\begin@bidi@stack}%
2676 \ifx\@empty\begin@bidi@stack
2677 \endgroup
2678 \@checkend{#2}%
2679 \bidi@addto@envbody{#1}%
2680 \else
2681 \bidi@addto@envbody{#1\end{#2}}%
2682 \fi
2683 \bidi@process@envbody % A little tricky! Note the grouping
2684 }
2685 \long\def\bidi@addto@long@envbody#1{\global\@bidi@envbody\expandafter{\the\@bidi@envbody#1}}
2686 \long\def\bidi@collect@long@body#1{%
2687 \@bidi@envbody{\expandafter#1\expandafter{\the\@bidi@envbody}}%
2688 \edef\bidi@process@envbody{\the\@bidi@envbody\noexpand\end{\@currenvir}}%

File biditools.sty 58
2689 \@bidi@envbody\@bidi@emptytoks \def\begin@bidi@stack{b}%
2690 \begingroup
2691 \expandafter\let\csname\@currenvir\endcsname\bidi@collect@long@@body
2692 \edef\bidi@process@envbody{\expandafter\noexpand\csname\@currenvir\endcsname}%
2693 \bidi@process@envbody
2694 }
2695 \long\def\bidi@push@long@begins#1\begin#2{%
2696 \ifx\end#2\else b\expandafter\bidi@push@long@begins\fi
2697 }
2698 \long\def\bidi@collect@long@@body#1\end#2{%
2699 \edef\begin@bidi@stack{\bidi@push@long@begins#1\begin\end \expandafter\@gobble\begin@bidi@st
2700 \ifx\@empty\begin@bidi@stack
2701 \endgroup
2702 \@checkend{#2}%
2703 \bidi@addto@long@envbody{#1}%
2704 \else
2705 \bidi@addto@long@envbody{#1\end{#2}}%
2706 \fi
2707 \bidi@process@envbody % A little tricky! Note the grouping
2708 }
2709 \long\def\bidi@new@ifnextchar#1#2#3{%
2710 \let\reserved@d= #1%
2711 \def\reserved@a{#2}\def\reserved@b{#3}%
2712 \futurelet\@let@token\bidi@new@ifnch
2713 }
2714 \def\bidi@new@ifnch{%
2715 \ifx\@let@token\reserved@d \let\reserved@b\reserved@a \fi
2716 \reserved@b
2717 }
2718 \def\bidi@matrix@check#1{%
2719 \expandafter\ifx\csname\@currenvir\endcsname#1%
2720 \else\bidi@matrix@error#1%
2721 \expandafter\@gobble
2722 \fi
2723 }
2724 \def\bidi@matrix@error#1{%
2725 \PackageError{biditools}{%
2726 Old form `\string#1' should be \string\begin{\expandafter\@gobble\string#1}%
2727 }{%
2728 `\string#1{...}' is old bidi package syntax whose use is
2729 ill-advised in the old versions of bidi package.%
2730 }%
2731 }
2732 \def\@tagsextension{clo}
2733 \def\@definitionfileextension{def}
2734 \def\@texfileextension{tex}
2735 \def\@iftagsloaded{\@ifl@aded\@tagsextension}
2736 \def\@ifdefinitionfileloaded{\@ifl@aded\@definitionfileextension}
2737 \def\@iftexfileloaded{\@ifl@aded\@texfileextension}
2738 \def\eqnewif#1#2{%

File biditools.sty 59
2739 \count@\escapechar \escapechar\m@ne
2740 \let#1\iffalse
2741 \let#2\iffalse
2742 \eq@if#1#2\iftrue
2743 \eq@if#1#2\iffalse
2744 \escapechar\count@}
2745 \def\eq@if#1#2#3{%
2746 \expandafter\def\csname\expandafter\@gobbletwo\string#1%
2747 \expandafter\@gobbletwo\string#3\endcsname
2748 {\let#1#3%
2749 \let#2#3}%
2750 \expandafter\def\csname\expandafter\@gobbletwo\string#2%
2751 \expandafter\@gobbletwo\string#3\endcsname
2752 {\let#2#3%
2753 \let#1#3}}
2754 \newcommand*{\SetBoolean}[2]{%
2755 \lowercase{\def\@tempa{#2}}%
2756 \@ifundefined{@tempswa\@tempa}%
2757 {\PackageError{biditools}%
2758 {You can only set a boolean to `true' or `false'}\@ehc}%
2759 {\@ifundefined{#1\@tempa}%
2760 {\PackageError{biditools}{Boolean #1 undefined}\@ehc}%
2761 {\csname#1\@tempa\endcsname}}}
2762 \newcommand*{\GlobalSetBoolean}[2]{%
2763 \lowercase{\def\@tempa{#2}}%
2764 \@ifundefined{@tempswa\@tempa}%
2765 {\PackageError{biditools}%
2766 {You can only set a boolean to `true' or `false'}\@ehc}%
2767 {\@ifundefined{#1\@tempa}%
2768 {\PackageError{biditools}{Boolean #1 undefined}\@ehc}%
2769 {\global\csname#1\@tempa\endcsname}}}
2770 \newcommand*{\SetatBoolean}[2]{%
2771 \lowercase{\def\@tempa{#2}}%
2772 \@ifundefined{@tempswa\@tempa}%
2773 {\PackageError{biditools}%
2774 {You can only set a boolean to `true' or `false'}\@ehc}%
2775 {\@ifundefined{@#1\@tempa}%
2776 {\PackageError{biditools}{Boolean @#1 undefined}\@ehc}%
2777 {\csname @#1\@tempa\endcsname}}}
2778 \newcommand*{\GlobalSetatBoolean}[2]{%
2779 \lowercase{\def\@tempa{#2}}%
2780 \@ifundefined{@tempswa\@tempa}%
2781 {\PackageError{biditools}%
2782 {You can only set a boolean to `true' or `false'}\@ehc}%
2783 {\@ifundefined{@#1\@tempa}%
2784 {\PackageError{biditools}{Boolean @#1 undefined}\@ehc}%
2785 {\global\csname @#1\@tempa\endcsname}}}
2786 \def\@bidi@removefromreset#1#2{{%
2787 \expandafter\let\csname c@#1\endcsname\@bidi@removefromreset
2788 \def\@elt##1{%

File biditools.sty 60
2789 \expandafter\ifx\csname c@##1\endcsname\@bidi@removefromreset
2790 \else
2791 \noexpand\@elt{##1}%
2792 \fi}%
2793 \expandafter\xdef\csname cl@#2\endcsname{%
2794 \csname cl@#2\endcsname}}}
2795 \newcommand*{\ifRtoL}{%
2796 \if@RTL
2797 \expandafter\@firstoftwo
2798 \else
2799 \expandafter\@secondoftwo
2800 \fi}
2801 \newcommand*{\ifLtoR}{%
2802 \if@RTL
2803 \expandafter\@secondoftwo
2804 \else
2805 \expandafter\@firstoftwo
2806 \fi}
2807 \newcommand*{\ifRtoLtable}{%
2808 \if@RTLtab
2809 \expandafter\@firstoftwo
2810 \else
2811 \expandafter\@secondoftwo
2812 \fi}
2813 \newcommand*{\ifLtoRtable}{%
2814 \if@RTLtab
2815 \expandafter\@secondoftwo
2816 \else
2817 \expandafter\@firstoftwo
2818 \fi}
2819 \newcommand*{\ifRtoLhboxconstruct}{%
2820 \if@hboxRconstruct
2821 \expandafter\@firstoftwo
2822 \else
2823 \expandafter\@secondoftwo
2824 \fi}
2825 \newcommand*{\ifLtoRhboxconstruct}{%
2826 \if@hboxRconstruct
2827 \expandafter\@secondoftwo
2828 \else
2829 \expandafter\@firstoftwo
2830 \fi}
2831 \newcommand*{\iflatin}{%
2832 \if@nonlatin
2833 \expandafter\@secondoftwo
2834 \else
2835 \expandafter\@firstoftwo
2836 \fi}
2837 \newcommand*{\ifnonlatin}{%
2838 \if@nonlatin

File biditools.sty 61
2839 \expandafter\@firstoftwo
2840 \else
2841 \expandafter\@secondoftwo
2842 \fi}
2843
2844 \newcommand*{\bidi@@convert@dimen@t@unit}[2]{%
2845 \strip@pt\dimexpr #1*65536/\dimexpr 1#2\relax #2}
2846
2847 \newcommand*{\bidi@@convert@dimen@t@pt}[1]{%
2848 \dimexpr #1*65536/\dimexpr 1pt\relax}
2849
2850 \newcommand*{\if@bidi@csdef}[1]{%
2851 \ifcsname#1\endcsname
2852 \expandafter\@firstoftwo
2853 \else
2854 \expandafter\@secondoftwo
2855 \fi}
2856 \newcommand*{\if@bidi@csundef}[1]{%
2857 \ifcsname#1\endcsname
2858 \expandafter\ifx\csname#1\endcsname\relax
2859 \expandafter\expandafter
2860 \expandafter\@firstoftwo
2861 \else
2862 \expandafter\expandafter
2863 \expandafter\@secondoftwo
2864 \fi
2865 \else
2866 \expandafter\@firstoftwo
2867 \fi}
2868 \newcommand{\if@bidi@def}[1]{%
2869 \ifdefined#1%
2870 \expandafter\@firstoftwo
2871 \else
2872 \expandafter\@secondoftwo
2873 \fi}
2874 \newcommand{\if@bidi@undef}[1]{%
2875 \ifdefined#1%
2876 \ifx#1\relax
2877 \expandafter\expandafter
2878 \expandafter\@firstoftwo
2879 \else
2880 \expandafter\expandafter
2881 \expandafter\@secondoftwo
2882 \fi
2883 \else
2884 \expandafter\@firstoftwo
2885 \fi}
2886 \newcommand{\if@bidi@blank}[1]{% from url.sty
2887 \bidi@ifblank@i#1&&\@secondoftwo\@firstoftwo:}
2888 \long\def\bidi@ifblank@i#1#2&#3#4#5:{#4}

File biditools.sty 62
2889 \newcommand{\bidi@notblank}[1]{%
2890 \bidi@ifblank@i#1&&\@firstoftwo\@secondoftwo:}
2891 \newcommand{\if@bidi@defmacro}{}
2892 \long\edef\if@bidi@defmacro#1{%
2893 \noexpand\expandafter\noexpand\bidi@ifdefmacro
2894 \noexpand\meaning#1\detokenize{macro}:&}
2895 \edef\bidi@ifdefmacro{%
2896 \def\noexpand\bidi@ifdefmacro##1\detokenize{macro}:##2&}
2897 \bidi@ifdefmacro{\bidi@notblank{#2}}
2898 \newcommand*{\if@bidi@csmacro}[1]{%
2899 \if@bidi@csdef{#1}
2900 {\expandafter\if@bidi@defmacro\csname#1\endcsname}
2901 {\@secondoftwo}}
2902 \newcommand{\if@bidi@defprimitive}[1]{%
2903 \ifprimitive#1%
2904 \expandafter\@firstoftwo
2905 \else
2906 \expandafter\@secondoftwo
2907 \fi}
2908 \newcommand{\if@bidi@csprimitive}[1]{%
2909 \begingroup\expandafter\expandafter\expandafter\endgroup%
2910 \expandafter\ifprimitive\csname#1\endcsname%
2911 \expandafter\@firstoftwo
2912 \else
2913 \expandafter\@secondoftwo
2914 \fi}
2915 \newcommand*{\bidi@csdefcs}[2]{%
2916 \expandafter\@ifdefinable \csname#1\endcsname{%
2917 \expandafter\def\csname#1\expandafter\endcsname{\csname#2\endcsname}}}
2918 \newcommand*{\bidi@csletcs}[2]{%
2919 \expandafter\@ifdefinable \csname#1\endcsname{%
2920 \expandafter\let\csname#1\expandafter\endcsname\csname#2\endcsname}}
2921 \newcommand*{\bidi@cslet}[2]{%
2922 \expandafter\@ifdefinable \csname#1\endcsname{%
2923 \expandafter\let\csname#1\endcsname#2}}
2924 \newcommand{\bidi@namelongdef}[1]{%
2925 \long\expandafter\def\csname #1\endcsname}
2926 \def\bidi@ensure@newcommand{\@star@or@long\bidi@ensure@new@command}
2927 \def\bidi@ensure@new@command#1{%
2928 \begingroup \escapechar\m@ne\xdef\@gtempa{{\string#1}}\endgroup
2929 \expandafter\if@bidi@csundef\@gtempa
2930 {\new@command#1}{\relax%
2931 \let\@ifdefinable\@rc@ifdefinable%
2932 \new@command#1}}
2933 \def\bidi@ensure@newlength#1{\if@bidi@undef#1{\newskip#1}{}}
2934
2935 \protected\def\bidi@error{\PackageError{bidi}}
2936 \protected\def\bidi@warning{\PackageWarning{bidi}}
2937 \protected\def\bidi@info{\PackageInfo{bidi}}
2938

File biditools.sty 63
2939 \def\bidi@pos#1#2#3#4{\bidi@namegdef{bidi@#1pos@@#2@#3}{#4}}
2940
2941 \newcount\bidi@poscount
2942
2943 \newcommand*{\WriteStartXPostoaux}{%
2944 \global\advance\bidi@poscount\@ne
2945 \edef\@tempa{%
2946 \write\@auxout{%
2947 \string\bidi@pos{x}{start}{\number\bidi@poscount}{\noexpand\number\noexpand\pdflastxpo
2948 }%
2949 }%
2950 \ifvmode
2951 \leavevmode
2952 \fi
2953 \if@RTL
2954 \if@filesw
2955 \@tempa
2956 \fi
2957 \pdfsavepos
2958 \else
2959 \pdfsavepos
2960 \if@filesw
2961 \@tempa
2962 \fi
2963 \fi
2964 \if@bidi@csundef{bidi@xpos@@start@\number\bidi@poscount}{%
2965 \PackageWarningNoLine{biditools}{%
2966 The start x position `\number\bidi@poscount' is not known yet.
2967 Rerun to get this x position%
2968 }%
2969 }{}%
2970 }
2971
2972 \newcommand*{\WriteEndXPostoaux}{%
2973 \edef\@tempa{%
2974 \write\@auxout{%
2975 \string\bidi@pos{x}{end}{\number\bidi@poscount}{\noexpand\number\noexpand\pdflastxpo
2976 }%
2977 }%
2978 \if@RTL
2979 \if@filesw
2980 \@tempa
2981 \fi
2982 \pdfsavepos
2983 \else
2984 \pdfsavepos
2985 \if@filesw
2986 \@tempa
2987 \fi
2988 \fi

File biditools.sty 64
2989 \if@bidi@csundef{bidi@xpos@@end@\number\bidi@poscount}{%
2990 \PackageWarningNoLine{biditools}{%
2991 The end x position `\number\bidi@poscount' is not known yet.
2992 Rerun to get this x position%
2993 }%
2994 }{}%
2995 }
2996
2997 \newcommand*{\WriteStartYPostoaux}{%
2998 \global\advance\bidi@poscount\@ne
2999 \edef\@tempa{%
3000 \write\@auxout{%
3001 \string\bidi@pos{y}{start}{\number\bidi@poscount}{\noexpand\number\noexpand\pdflastypo
3002 }%
3003 }%
3004 \ifvmode
3005 \leavevmode
3006 \fi
3007 \if@RTL
3008 \if@filesw
3009 \@tempa
3010 \fi
3011 \pdfsavepos
3012 \else
3013 \pdfsavepos
3014 \if@filesw
3015 \@tempa
3016 \fi
3017 \fi
3018 \if@bidi@csundef{bidi@ypos@@start@\number\bidi@poscount}{%
3019 \PackageWarningNoLine{biditools}{%
3020 The start y position `\number\bidi@poscount' is not known yet.
3021 Rerun to get this y position%
3022 }%
3023 }{}%
3024 }
3025
3026 \newcommand*{\WriteEndYPostoaux}{%
3027 \edef\@tempa{%
3028 \write\@auxout{%
3029 \string\bidi@pos{y}{end}{\number\bidi@poscount}{\noexpand\number\noexpand\pdflastypo
3030 }%
3031 }%
3032 \if@RTL
3033 \if@filesw
3034 \@tempa
3035 \fi
3036 \pdfsavepos
3037 \else
3038 \pdfsavepos

File biditools.sty 65
3039 \if@filesw
3040 \@tempa
3041 \fi
3042 \fi
3043 \if@bidi@csundef{bidi@ypos@@end@\number\bidi@poscount}{%
3044 \PackageWarningNoLine{biditools}{%
3045 The end y position `\number\bidi@poscount' is not known yet.
3046 Rerun to get this y position%
3047 }%
3048 }{}%
3049 }
3050
3051 \newcommand*{\WriteStartXYPostoaux}{%
3052 \global\advance\bidi@poscount\@ne
3053 \edef\@tempa{%
3054 \write\@auxout{%
3055 \string\bidi@pos{x}{start}{\number\bidi@poscount}{\noexpand\number\noexpand\pdflastxpo
3056 }%
3057 \write\@auxout{%
3058 \string\bidi@pos{y}{start}{\number\bidi@poscount}{\noexpand\number\noexpand\pdflastypo
3059 }%
3060 }%
3061 \ifvmode
3062 \leavevmode
3063 \fi
3064 \if@RTL
3065 \if@filesw
3066 \@tempa
3067 \fi
3068 \pdfsavepos
3069 \else
3070 \pdfsavepos
3071 \if@filesw
3072 \@tempa
3073 \fi
3074 \fi
3075 \if@bidi@csundef{bidi@xpos@@start@\number\bidi@poscount}{%
3076 \PackageWarningNoLine{biditools}{%
3077 The start x position `\number\bidi@poscount' is not known yet.
3078 Rerun to get this x position%
3079 }%
3080 }{}%
3081 \if@bidi@csundef{bidi@ypos@@start@\number\bidi@poscount}{%
3082 \PackageWarningNoLine{biditools}{%
3083 The start y position `\number\bidi@poscount' is not known yet.
3084 Rerun to get this y position%
3085 }%
3086 }{}%
3087 }
3088

File biditools.sty 66
3089 \newcommand*{\WriteEndXYPostoaux}{%
3090 \edef\@tempa{%
3091 \write\@auxout{%
3092 \string\bidi@pos{x}{end}{\number\bidi@poscount}{\noexpand\number\noexpand\pdflastxpo
3093 }%
3094 \write\@auxout{%
3095 \string\bidi@pos{y}{end}{\number\bidi@poscount}{\noexpand\number\noexpand\pdflastypo
3096 }%
3097 }%
3098 \if@RTL
3099 \if@filesw
3100 \@tempa
3101 \fi
3102 \pdfsavepos
3103 \else
3104 \pdfsavepos
3105 \if@filesw
3106 \@tempa
3107 \fi
3108 \fi
3109 \if@bidi@csundef{bidi@xpos@@end@\number\bidi@poscount}{%
3110 \PackageWarningNoLine{biditools}{%
3111 The end x position `\number\bidi@poscount' is not known yet.
3112 Rerun to get this x position%
3113 }%
3114 }{}%
3115 \if@bidi@csundef{bidi@ypos@@end@\number\bidi@poscount}{%
3116 \PackageWarningNoLine{biditools}{%
3117 The end y position `\number\bidi@poscount' is not known yet.
3118 Rerun to get this y position%
3119 }%
3120 }{}%
3121 }
3122
3123 \newcommand*{\currentposxwidth}{%
3124 \if@bidi@csundef{bidi@xpos@@end@\number\bidi@poscount}{\z@}
3125 {%
3126 \ifnum\csname bidi@xpos@@start@\number\bidi@poscount
3127 \endcsname < \csname bidi@xpos@@end@\number\bidi@poscount
3128 \endcsname
3129 \dimexpr \csname bidi@xpos@@end@\number\bidi@poscount
3130 \endcsname sp - \csname bidi@xpos@@start@\number\bidi@poscount
3131 \endcsname sp\relax
3132 \else
3133 \dimexpr \csname bidi@xpos@@start@\number\bidi@poscount
3134 \endcsname sp - \csname bidi@xpos@@end@\number\bidi@poscount
3135 \endcsname sp\relax
3136 \fi
3137 }%
3138 }

File biditools.sty 67
3139
3140 \newcommand*{\currentposyheight}{%
3141 \if@bidi@csundef{bidi@ypos@@end@\number\bidi@poscount}{\z@}
3142 {%
3143 \dimexpr \csname bidi@ypos@@start@\number\bidi@poscount
3144 \endcsname sp - \csname bidi@ypos@@end@\number\bidi@poscount
3145 \endcsname sp\relax
3146 }%
3147 }
3148
3149
3150
3151 \newcommand*{\setbaselineskip}[1]{%
3152 \linespread{\strip@pt\dimexpr\numexpr\dimexpr#1\relax*65536/\dimexpr\baselineskip\relax\re
3153 \selectfont
3154 }
3155
3156
3157 \newcommand*{\bidi@newrobustcmd}{}
3158 \protected\def\bidi@newrobustcmd{\@star@or@long\bidi@new@command}
3159
3160 \def\bidi@new@command#1{\@testopt{\bidi@newcommand#1}0}
3161
3162 \def\bidi@newcommand#1[#2]{%
3163 \@ifnextchar[%]
3164 {\bidi@xargdef#1[#2]}
3165 {\ifx\l@ngrel@x\relax
3166 \let\l@ngrel@x\protected
3167 \else
3168 \protected\def\l@ngrel@x{\protected\long}%
3169 \fi
3170 \@argdef#1[#2]}}
3171
3172 \long\def\bidi@xargdef#1[#2][#3]#4{%
3173 \@ifdefinable#1{%
3174 \expandafter\protected
3175 \expandafter\def
3176 \expandafter#1%
3177 \expandafter{%
3178 \expandafter\@testopt
3179 \csname\string#1\endcsname{#3}}%
3180 \expandafter\@yargdef\csname\string#1\endcsname\tw@{#2}{#4}}}
3181
3182 \bidi@newrobustcmd*{\bidi@renewrobustcmd}{\@star@or@long\bidi@renew@command}
3183
3184 \def\bidi@renew@command#1{%
3185 \if@bidi@undef{#1}
3186 {\bidi@error{\string#1 undefined}\@ehc}
3187 {}%
3188 \let\@ifdefinable\@rc@ifdefinable

File biditools.sty 68
3189 \bidi@new@command#1}
3190
3191
3192
3193 \bidi@newrobustcmd*{\bidi@providerobustcmd}{\@star@or@long\bidi@provide@command}
3194
3195 \def\bidi@provide@command#1{%
3196 \if@bidi@undef{#1}
3197 {\def\reserved@a{\bidi@new@command#1}}
3198 {\def\reserved@a{\bidi@renew@command\reserved@a}}%
3199 \reserved@a}
3200
3201 \newcommand*{\bidi@csuse}[1]{%
3202 \ifcsname#1\endcsname
3203 \csname#1\expandafter\endcsname
3204 \fi}
3205
3206 \newcommand{\bidi@expandonce}[1]{%
3207 \unexpanded\expandafter{#1}}
3208
3209 \def\bidi@protected{%
3210 \let\@@protect\protect
3211 \let\protect\@unexpandable@protect
3212 \afterassignment\restore@protect}
3213
3214 \bidi@newrobustcmd{\bidi@appto}[2]{%
3215 \if@bidi@undef{#1}
3216 {\edef#1{\unexpanded{#2}}}
3217 {\edef#1{\bidi@expandonce#1\unexpanded{#2}}}}
3218 \bidi@newrobustcmd{\bidi@eappto}[2]{%
3219 \if@bidi@undef{#1}
3220 {\edef#1{#2}}
3221 {\edef#1{\bidi@expandonce#1#2}}}
3222 \bidi@newrobustcmd{\bidi@gappto}[2]{%
3223 \if@bidi@undef{#1}
3224 {\xdef#1{\unexpanded{#2}}}
3225 {\xdef#1{\bidi@expandonce#1\unexpanded{#2}}}}
3226 \bidi@newrobustcmd{\bidi@xappto}[2]{%
3227 \if@bidi@undef{#1}
3228 {\xdef#1{#2}}
3229 {\xdef#1{\bidi@expandonce#1#2}}}
3230
3231 \bidi@newrobustcmd*{\bidi@protected@eappto}{\bidi@protected\bidi@eappto}
3232 \bidi@newrobustcmd*{\bidi@protected@xappto}{\bidi@protected\bidi@xappto}
3233
3234
3235
3236 \bidi@newrobustcmd{\bidi@preto}[2]{%
3237 \if@bidi@undef{#1}
3238 {\edef#1{\unexpanded{#2}}}

File biditools.sty 69
3239 {\edef#1{\unexpanded{#2}\bidi@expandonce#1}}}
3240 \bidi@newrobustcmd{\bidi@epreto}[2]{%
3241 \if@bidi@undef{#1}
3242 {\edef#1{#2}}
3243 {\edef#1{#2\bidi@expandonce#1}}}
3244 \bidi@newrobustcmd{\bidi@gpreto}[2]{%
3245 \if@bidi@undef{#1}
3246 {\xdef#1{\unexpanded{#2}}}
3247 {\xdef#1{\unexpanded{#2}\bidi@expandonce#1}}}
3248 \bidi@newrobustcmd{\bidi@xpreto}[2]{%
3249 \if@bidi@undef{#1}
3250 {\xdef#1{#2}}
3251 {\xdef#1{#2\bidi@expandonce#1}}}
3252
3253 \bidi@newrobustcmd*{\bidi@protected@epreto}{\bidi@protected\bidi@epreto}
3254 \bidi@newrobustcmd*{\bidi@protected@xpreto}{\bidi@protected\bidi@xpreto}
3255
3256
3257
3258 \bidi@newrobustcmd*{\bidi@csappto}[1]{\expandafter\bidi@appto\csname#1\endcsname}
3259 \bidi@newrobustcmd*{\bidi@cseappto}[1]{\expandafter\bidi@eappto\csname#1\endcsname}
3260 \bidi@newrobustcmd*{\bidi@csgappto}[1]{\expandafter\bidi@gappto\csname#1\endcsname}
3261 \bidi@newrobustcmd*{\bidi@csxappto}[1]{\expandafter\bidi@xappto\csname#1\endcsname}
3262 \bidi@newrobustcmd*{\bidi@protected@cseappto}{\bidi@protected\bidi@cseappto}
3263 \bidi@newrobustcmd*{\bidi@protected@csxappto}{\bidi@protected\bidi@csxappto}
3264
3265
3266
3267 \bidi@newrobustcmd*{\bidi@cspreto}[1]{\expandafter\bidi@preto\csname#1\endcsname}
3268 \bidi@newrobustcmd*{\bidi@csepreto}[1]{\expandafter\bidi@epreto\csname#1\endcsname}
3269 \bidi@newrobustcmd*{\bidi@csgpreto}[1]{\expandafter\bidi@gpreto\csname#1\endcsname}
3270 \bidi@newrobustcmd*{\bidi@csxpreto}[1]{\expandafter\bidi@xpreto\csname#1\endcsname}
3271 \bidi@newrobustcmd*{\bidi@protected@csepreto}{\bidi@protected\bidi@csepreto}
3272 \bidi@newrobustcmd*{\bidi@protected@csxpreto}{\bidi@protected\bidi@csxpreto}
3273
3274
3275
3276 \bidi@newrobustcmd{\if@bidi@patchable}{%
3277 \bidi@dbg@trce\if@bidi@patchable
3278 \begingroup
3279 \@makeother\#%
3280 \@ifstar\bidi@ifpatchable@i\bidi@ifpatchable}
3281
3282 \long\def\bidi@ifpatchable#1#2{%
3283 \endgroup
3284 \bidi@dbg@init#1%
3285 \if@bidi@undef{#1}
3286 {\bidi@dbg@fail{def}\@secondoftwo}
3287 {\bidi@dbg@info{def}%
3288 \if@bidi@defmacro{#1}

File biditools.sty 70
3289 {\bidi@dbg@info{mac}%
3290 \bidi@ifscanable{#1}
3291 {\bidi@ifhashcheck{#2}
3292 {\bidi@dbg@info{tok}%
3293 \bidi@ifpattern#1{#2}
3294 {\bidi@dbg@info{pat}%
3295 \bidi@dbg@info{pos}\@firstoftwo}
3296 {\bidi@dbg@fail{pat}\@secondoftwo}}
3297 {\bidi@dbg@fail{hsh}\@secondoftwo}}
3298 {\bidi@dbg@fail{tok}\@secondoftwo}}
3299 {\bidi@dbg@fail{mac}\@secondoftwo}}}
3300
3301 \long\def\bidi@ifpatchable@i#1{%
3302 \endgroup
3303 \bidi@dbg@init#1%
3304 \if@bidi@undef{#1}
3305 {\bidi@dbg@fail{def}\@secondoftwo}
3306 {\bidi@dbg@info{def}%
3307 \if@bidi@defmacro{#1}
3308 {\bidi@dbg@info{mac}%
3309 \if@bidi@defparam{#1}
3310 {\bidi@dbg@info{prm}%
3311 \bidi@ifscanable{#1}
3312 {\bidi@dbg@info{tok}%
3313 \bidi@dbg@info{pos}\@firstoftwo}
3314 {\bidi@dbg@fail{tok}\@secondoftwo}}
3315 {\bidi@dbg@info{prl}%
3316 \if@bidi@defprotected{#1}
3317 {\bidi@dbg@info{pro}}
3318 {}%
3319 \bidi@dbg@info{pos}\@firstoftwo}}
3320 {\bidi@dbg@fail{mac}\@secondoftwo}}}
3321
3322 \bidi@newrobustcmd*{\bidi@patchcmd}{%
3323 \bidi@dbg@trce\bidi@patchcmd
3324 \begingroup
3325 \@makeother\#%
3326 \bidi@@patchcmd}
3327
3328 \newcommand{\bidi@@patchcmd}[4][########1]{%
3329 \bidi@ifpatchable#2{#3}
3330 {\bidi@dbg@succ{ret}%
3331 \begingroup
3332 \edef\bidi@resrvda{%
3333 \def\noexpand\bidi@resrvda####1\detokenize{macro:}####2->####3&{%
3334 #1\def\string\bidi@resrvda\space####2{\noexpand\bidi@resrvdb####3&}}%
3335 \def\noexpand\bidi@resrvdb####1\detokenize{#3}####2&{%
3336 ####1\detokenize{#4}####2}%
3337 \edef\noexpand\bidi@resrvda{%
3338 \noexpand\bidi@resrvda\meaning#2&}}%

File biditools.sty 71
3339 \bidi@resrvda
3340 \bidi@patchcmd@scantoks\bidi@resrvda
3341 \let#2\bidi@resrvda
3342 \bidi@undef\bidi@resrvda
3343 \@firstoftwo}
3344 {\@secondoftwo}}
3345
3346 \def\bidi@patchcmd@scantoks#1{%
3347 \edef\bidi@resrvda{\endgroup
3348 \unexpanded{\makeatletter\scantokens}{#1}%
3349 \catcode\number`\@=\the\catcode`\@\relax}%
3350 \bidi@resrvda}
3351
3352 \newcommand\bidi@isloaded[2][]{
3353 \expandafter\ifx\csname if@bidi@#2loaded@\endcsname\relax
3354 \expandafter\newif\csname if@bidi@#2loaded@\endcsname
3355 \fi
3356 \@ifpackageloaded{#2}
3357 {\csname @bidi@#2loaded@true\endcsname #1}
3358 {\csname @bidi@#2loaded@false\endcsname}}
3359
3360 \protected\def\bidi@ifscanable#1{%
3361 \begingroup
3362 \edef\bidi@resrvda{%
3363 \def\noexpand\bidi@resrvda####1\detokenize{macro}:####2->####3&{%
3364 ####1\def\string\bidi@resrvda####2{####3}}%
3365 \edef\noexpand\bidi@resrvda{\noexpand\bidi@resrvda\meaning#1&}}%
3366 \bidi@resrvda
3367 \makeatletter
3368 \scantokens\expandafter{\bidi@resrvda}%
3369 \expandafter\endgroup\ifx#1\bidi@resrvda
3370 \expandafter\@firstoftwo
3371 \else
3372 \expandafter\@secondoftwo
3373 \fi}
3374
3375
3376 \protected\long\def\bidi@ifhashcheck#1{%
3377 \begingroup
3378 \edef\bidi@resrvda{\detokenize{#1}}%
3379 \expandafter\endgroup
3380 \expandafter\bidi@ifhashcheck@i\meaning\bidi@resrvda&}
3381
3382 \edef\bidi@ifhashcheck@i#1&{%
3383 \noexpand\expandafter
3384 \noexpand\bidi@ifhashcheck@ii
3385 \noexpand\strip@prefix#1\string#\string#&}
3386
3387 \edef\bidi@ifhashcheck@ii{%
3388 \def\noexpand\bidi@ifhashcheck@ii##1\string#\string###2&}

File biditools.sty 72
3389 \bidi@ifhashcheck@ii{\if@bidi@blank{#2}}
3390
3391
3392 \protected\long\def\bidi@ifpattern#1#2{%
3393 \begingroup
3394 \edef\bidi@resrvda{%
3395 \def\noexpand\bidi@resrvda####1\detokenize{#2}####2&{%
3396 \endgroup\noexpand\noexpand\noexpand\if@bidi@blank{####2}}%
3397 \edef\noexpand\bidi@resrvda{\noexpand\bidi@resrvda
3398 \expandafter\strip@prefix\meaning#1\detokenize{#2}&}%
3399 \noexpand\bidi@resrvda}
3400 \bidi@resrvda\@secondoftwo\@firstoftwo}
3401
3402
3403 \newcommand{\if@bidi@defparam}{}
3404 \long\edef\if@bidi@defparam#1{%
3405 \noexpand\expandafter\noexpand\bidi@ifdefparam
3406 \noexpand\meaning#1\detokenize{macro}:->&}
3407 \edef\bidi@ifdefparam{%
3408 \def\noexpand\bidi@ifdefparam##1\detokenize{macro}:##2->##3&}
3409 \bidi@ifdefparam{\bidi@notblank{#2}}
3410
3411
3412 \newcommand{\if@bidi@defprotected}{}
3413 \long\edef\if@bidi@defprotected#1{%
3414 \noexpand\expandafter\noexpand\bidi@ifdefprotected
3415 \noexpand\meaning#1\string\protected&}
3416 \edef\bidi@ifdefprotected{%
3417 \def\noexpand\bidi@ifdefprotected##1\string\protected##2&}
3418 \bidi@ifdefprotected{\bidi@notblank{#2}}
3419
3420
3421 \bidi@newrobustcmd{\bidi@undef}[1]{\let#1\bidi@undefined}
3422
3423 \let\bidi@dbg@trce\@gobble
3424 \let\bidi@dbg@init\@gobble
3425 \let\bidi@dbg@info\@gobble
3426 \let\bidi@dbg@succ\@gobble
3427 \let\bidi@dbg@fail\@gobble
3428
3429
3430
3431 \bidi@newrobustcmd*{\bidi@apptocmd}{%
3432 \bidi@dbg@trce\bidi@apptocmd
3433 \begingroup
3434 \@makeother\#%
3435 \bidi@hooktocmd\bidi@append}
3436
3437
3438

File biditools.sty 73
3439 \bidi@newrobustcmd*{\bidi@pretocmd}{%
3440 \bidi@dbg@trce\bidi@pretocmd
3441 \begingroup
3442 \@makeother\#%
3443 \bidi@hooktocmd\bidi@prepend}
3444
3445 \long\def\bidi@hooktocmd#1#2#3{%
3446 \endgroup
3447 \bidi@dbg@init#2%
3448 \if@bidi@undef{#2}
3449 {\bidi@dbg@fail{def}\@secondoftwo}
3450 {\bidi@dbg@info{def}%
3451 \if@bidi@defmacro{#2}
3452 {\bidi@dbg@info{mac}%
3453 \if@bidi@defparam{#2}
3454 {\bidi@dbg@info{prm}%
3455 \bidi@ifscanable{#2}
3456 {\bidi@ifhashcheck{#3}
3457 {\bidi@dbg@info{tok}%
3458 \bidi@dbg@succ{ret}%
3459 \bidi@hooktocmd@i#1#2{#3}%
3460 \@firstoftwo}
3461 {\bidi@dbg@fail{hsh}\@secondoftwo}}
3462 {\bidi@dbg@fail{tok}\@secondoftwo}}
3463 {\bidi@dbg@info{prl}%
3464 \if@bidi@defprotected{#2}
3465 {\bidi@dbg@info{pro}%
3466 \bidi@dbg@succ{red}%
3467 \protected}
3468 {\bidi@dbg@succ{red}}%
3469 \edef#2{#1{\bidi@expandonce#2}{\unexpanded{#3}}}%
3470 \@firstoftwo}}
3471 {\bidi@dbg@fail{mac}\@secondoftwo}}}
3472
3473 \long\def\bidi@hooktocmd@i#1#2#3{%
3474 \begingroup
3475 \edef\bidi@resrvda{%
3476 \def\noexpand\bidi@resrvda####1\detokenize{macro}:####2->####3&{%
3477 ####1\def\string\bidi@resrvda\space####2{#1{####3}{\detokenize{#3}}}}%
3478 \edef\noexpand\bidi@resrvda{%
3479 \noexpand\bidi@resrvda\meaning#2&}}%
3480 \bidi@resrvda
3481 \bidi@patchcmd@scantoks\bidi@resrvda
3482 \let#2\bidi@resrvda
3483 \bidi@undef\bidi@resrvda}
3484
3485 \long\def\bidi@append#1#2{#1#2}
3486 \long\def\bidi@prepend#1#2{#2#1}
3487
3488 \bidi@newrobustcmd*{\bidi@AtEndPreamble}{\bidi@gappto\bidi@endpreamblehook}

File biditools.sty 74
3489 \newcommand*{\bidi@endpreamblehook}{}
3490
3491 \bidi@newrobustcmd*{\bidi@BeforeOutputPageShipOut}{\bidi@gappto\bidi@beforeoutputpageshipoutho
3492 \newcommand*{\bidi@beforeoutputpageshipouthook}{}
3493
3494 \bidi@newrobustcmd*{\bidi@BeforeHeader}{\bidi@gappto\bidi@beforeheaderhook}
3495 \newcommand*{\bidi@beforeheaderhook}{}
3496
3497 \bidi@newrobustcmd*{\bidi@BeforeOutputBoxOutputPage}{\bidi@gappto\bidi@beforeoutputboxoutputpa
3498 \newcommand*{\bidi@beforeoutputboxoutputpagehook}{}
3499
3500 \bidi@newrobustcmd*{\bidi@AfterOutputBoxOutputPage}{\bidi@gappto\bidi@afteroutputboxoutputpage
3501 \newcommand*{\bidi@afteroutputboxoutputpagehook}{}
3502
3503 \bidi@newrobustcmd*{\bidi@BeforeFooter}{\bidi@gappto\bidi@beforefooterhook}
3504 \newcommand*{\bidi@beforefooterhook}{}
3505
3506 \bidi@newrobustcmd*{\bidi@AfterFooter}{\bidi@gappto\bidi@afterfooterhook}
3507 \newcommand*{\bidi@afterfooterhook}{}
3508
3509
3510 \bidi@newrobustcmd*{\bidi@AfterOutputPageShipOut}{\bidi@gappto\bidi@afteroutputpageshipouthook
3511 \newcommand*{\bidi@afteroutputpageshipouthook}{}
3512
3513 \bidi@newrobustcmd*{\bidi@AtEndOutputPage}{\bidi@gappto\bidi@atendoutputpagehook}
3514 \newcommand*{\bidi@atendoutputpagehook}{}
3515
3516 \bidi@preto\document{%
3517 \endgroup
3518 \let\bidi@AtEndPreamble\@firstofone
3519 \bidi@endpreamblehook
3520 \protected\def\bidi@AtEndPreamble{\@notprerr\@gobble}%
3521 \bidi@undef\bidi@endpreamblehook
3522 \begingroup}
3523
3524 \bidi@newrobustcmd*{\bidi@AfterPreamble}{\AtBeginDocument}
3525 \bidi@AtEndPreamble{\let\bidi@AfterPreamble\@firstofone}
3526
3527 \bidi@newrobustcmd*{\bidi@AfterEndPreamble}{\bidi@gappto\bidi@afterendpreamblehook}
3528 \newcommand*{\bidi@afterendpreamblehook}{}
3529
3530 \bidi@appto\document{%
3531 \let\bidi@AfterEndPreamble\@firstofone
3532 \bidi@afterendpreamblehook
3533 \protected\def\bidi@AfterEndPreamble{\@notprerr\@gobble}%
3534 \bidi@undef\bidi@afterendpreamblehook
3535 \ignorespaces}
3536
3537 \bidi@newrobustcmd*{\bidi@AfterEndDocumentCheckLabelsRerun}{\bidi@gappto\bidi@afterenddocument
3538 \newcommand*{\bidi@afterenddocumentchecklabelsrerunhook}{}

File biditools.sty 75
3539
3540 \bidi@patchcmd\enddocument
3541 {\fi\endgroup}
3542 {\let\bidi@AfterEndDocumentCheckLabelsRerun\@firstofone
3543 \bidi@afterenddocumentchecklabelsrerunhook
3544 \fi\endgroup}
3545 {}
3546 {\PackageWarning{biditools}{Patching `\string\enddocument' failed}}
3547
3548 \AtEndDocument{\let\bidi@AfterEndPreamble\@gobble}
3549
3550 \bidi@newrobustcmd*{\bidi@AfterLastShipout}{\bidi@gappto\bidi@afterlastshipouthook}
3551 \newcommand*{\bidi@afterlastshipouthook}{}
3552
3553 \bidi@patchcmd\enddocument
3554 {\clearpage}
3555 {\clearpage
3556 \let\bidi@AfterLastShipout\@firstofone
3557 \bidi@afterlastshipouthook}
3558 {}
3559 {\let\bidi@clearpage\clearpage
3560 \def\clearpage{%
3561 \bidi@clearpage
3562 \let\bidi@AfterLastShipout\@firstofone
3563 \bidi@afterlastshipouthook}}
3564
3565 \bidi@newrobustcmd*{\bidi@AfterEndDocument}{\bidi@gappto\bidi@afterenddocumenthook}
3566 \newcommand*{\bidi@afterenddocumenthook}{}
3567
3568 \bidi@patchcmd\enddocument
3569 {\deadcycles}
3570 {\let\bidi@AfterEndDocument\@firstofone
3571 \bidi@afterenddocumenthook
3572 \deadcycles}
3573 {}
3574 {\let\bidi@@end\@@end
3575 \def\@@end{%
3576 \let\bidi@AfterEndDocument\@firstofone
3577 \bidi@afterenddocumenthook
3578 \bidi@@end}}
3579
3580 \bidi@newrobustcmd{\bidi@AtBeginEnvironment}[1]{%
3581 \bidi@csgappto{@bidi@begin@#1@hook}}
3582
3583 % Patch \begin<space> and \end<space> in newer LaTeX releases
3584 % \begin and \end in older ones.
3585 \expandafter\bidi@patchcmd\csname begin\ifcsname begin \endcsname\space\fi\endcsname
3586 {\csname #1\endcsname}
3587 {\bidi@csuse{@bidi@begin@#1@hook}%
3588 \csname #1\endcsname}

File biditools.sty 76
3589 {}
3590 {\bidi@warning{%
3591 Patching '\string\begin' failed!\MessageBreak
3592 '\string\bidi@AtBeginEnvironment' will not work\@gobble}}
3593
3594
3595
3596 \bidi@newrobustcmd{\bidi@AtEndEnvironment}[1]{%
3597 \bidi@csgappto{@bidi@end@#1@hook}}
3598
3599 \expandafter\bidi@patchcmd\csname end\ifcsname end \endcsname\space\fi\endcsname
3600 {\csname end#1\endcsname}
3601 {\bidi@csuse{@bidi@end@#1@hook}%
3602 \csname end#1\endcsname}
3603 {}
3604 {\bidi@warning{%
3605 Patching '\string\end' failed!\MessageBreak
3606 '\string\bidi@AtEndEnvironment' will not work\@gobble}}
3607
3608
3609
3610 \bidi@newrobustcmd{\bidi@BeforeBeginEnvironment}[1]{%
3611 \bidi@csgappto{@bidi@beforebegin@#1@hook}}
3612
3613 \expandafter\bidi@pretocmd\csname begin\ifcsname begin \endcsname\space\fi\endcsname
3614 {\bidi@csuse{@bidi@beforebegin@#1@hook}}
3615 {}
3616 {\bidi@warning{%
3617 Patching '\string\begin' failed!\MessageBreak
3618 '\string\bidi@BeforeBeginEnvironment' will not work\@gobble}}
3619
3620 \bidi@newrobustcmd{\bidi@AfterEndEnvironment}[1]{%
3621 \bidi@csgappto{@bidi@afterend@#1@hook}}
3622
3623 \expandafter\bidi@patchcmd\csname end\ifcsname end \endcsname\space\fi\endcsname
3624 {\if@ignore}
3625 {\bidi@csuse{@bidi@afterend@#1@hook}%
3626 \if@ignore}
3627 {}
3628 {\bidi@warning{%
3629 Patching '\string\end' failed!\MessageBreak
3630 '\string\bidi@AfterEndEnvironment' will not work\@gobble}}
3631
3632 \def\bidi@namedef#1{\expandafter\def\csname #1\endcsname}
3633 \def\bidi@namegdef#1{\expandafter\gdef\csname #1\endcsname}
3634 \def\bidi@nameedef#1{\expandafter\edef\csname #1\endcsname}
3635 \def\bidi@namexdef#1{\expandafter\xdef\csname #1\endcsname}
3636
3637 % From David Carlisle:
3638 % The \@stpelt redefinition below belongs to Heiko Oberdiek

File biditools.sty 77
3639 % See also https://github.com/ho-tex/oberdiek/issues/26
3640
3641 \let\@bidi@stepcounter\stepcounter
3642 \let\@bidi@@stpelt\@stpelt
3643
3644 \def\@stpelt#1{%
3645 \ifcsname bidi@reset@#1@perpage\endcsname
3646 \begingroup
3647 \let\stepcounter\@bidi@stepcounter
3648 \@bidi@@stpelt{#1}%
3649 \endgroup
3650 \expandafter\@gobbletwo
3651 \fi
3652 \@bidi@@stpelt{#1}%
3653 }
3654
3655 \bidi@pretocmd\stepcounter
3656 {%
3657 \if@bidi@csundef{bidi@stepcounterhook@@#1}{}{%
3658 \csname bidi@stepcounterhook@@#1\endcsname
3659 }%
3660 }{}%
3661 {\PackageWarning{biditools}{Patching `\string\stepcounter' failed}}
3662
3663 \chardef\bidi@backslash`\\
3664 \def\bidics#1{\texttt{\char\bidi@backslash#1}}
3665
3666 % anonymous control sequences
3667 \newcount\bidi@tempcountb
3668 \newtoks\bidi@temptoksa
3669 \newtoks\bidi@temptoksb
3670
3671 % Catcode (re)storing
3672 %
3673 \def\bidi@storecatcode#1%
3674 {\escapechar\m@ne
3675 \bidi@csarg\edef{bidi@restorecatcode\string#1}%
3676 {\catcode`\string#1=
3677 \the\catcode\expandafter`\string#1}%
3678 \catcode\expandafter`\string#1=12\relax
3679 \escapechar`\\\relax}
3680 \def\bidi@restorecatcode#1%
3681 {\escapechar\m@ne
3682 \csname bidi@restorecatcode\string#1\endcsname
3683 \escapechar`\\\relax}
3684
3685 % Construct a control sequence inside \edef
3686 %
3687 \def\bidi@csname#1{\expandafter\noexpand\csname#1\endcsname}
3688

File biditools.sty 78
3689 % Construct a control sequence out of #2, and give it to #1
3690 %
3691 \def\bidi@csarg#1#2{\expandafter#1\csname#2\endcsname}
3692
3693 % Pick an escapecharacter
3694 % this presumes that its argument is a character.
3695 %
3696 \def\bidi@pickescape#1{\ifnum`#1=\escapechar\else#1\fi}
3697
3698 % Equality of strings.
3699 % the fast approach: does not work in expansion-only environment.
3700 %
3701 \def\bidi@EqualString#1#2{00\fi\def\bidi@eqs@a{#1}\def\bidi@eqs@b{#2}%
3702 \ifx\bidi@eqs@a\bidi@eqs@b}
3703
3704 % Test by expansion only
3705 %
3706 \def\bidi@EqualStringX#1#2{00\fi
3707 \csname if\@bidi@EqualStringX#1&$#2&$\endcsname}
3708 \def\@bidi@EqualStringX#1#2$#3#4${\ifx#1#3%
3709 \ifx#1&true\else\bidi@hop@ES\@bidi@EqualStringX#2$#4$\fi
3710 \else false\fi}
3711 \def\bidi@hop@ES#1\fi#2\fi{\fi\fi#1}
3712
3713 % Lexicographic ordering
3714 % note the use of \def
3715 % also note the characters 0,127,255 that are used,
3716 % these are not supposed to appear in the strings
3717 %
3718 {\catcode0=12 \catcode255=12 \catcode127=12
3719 \gdef\bidi@StringBeforeNC#1#2{00\fi
3720 \bidi@CharsBefore#1^^@^^?#2^^ff^^?}
3721 \gdef\bidi@CharsBeforeNC#1#2^^?#3#4^^?{%
3722 \ifcat#1\relax\def\bidi@next{\bidi@CharsBefore#2^^@^^?#3#4^^ff^^?}%
3723 \else\ifcat#3\relax\def\bidi@next{\bidi@CharsBefore#1#2^^@^^?#4^^ff^^?}%
3724 \else\ifnum\lccode`#1<\lccode`#3
3725 \def\bidi@next{\csname iftrue\endcsname}%
3726 \else\ifnum\lccode`#1>\lccode`#3
3727 \def\bidi@next{\csname iffalse\endcsname}%
3728 \else\def\bidi@next{\bidi@CharsBefore#2^^?#4^^?}%
3729 \fi \fi \fi \fi
3730 \bidi@next}
3731 \gdef\bidi@StringBefore#1#2{00\fi
3732 \bidi@CharsBefore#1^^@^^?#2^^ff^^?}
3733 \gdef\bidi@CharsBefore#1#2^^?#3#4^^?{%
3734 \ifnum`#1<`#3
3735 \def\bidi@next{\csname iftrue\endcsname}%
3736 \else\ifnum`#1>`#3
3737 \def\bidi@next{\csname iffalse\endcsname}%
3738 \else\def\bidi@next{\bidi@CharsBefore#2^^?#4^^?}%

File biditools.sty 79
3739 \fi\fi
3740 \bidi@next}
3741 }
3742
3743 % Null argument test
3744 %
3745 \def\bidi@empty{}
3746 \def\bidi@ifempty#1{00\fi\expandafter\ifx\csname bidi@#1@null\endcsname\bidi@@null}
3747 \def\bidi@ifEmptyX#1{\expandafter\ifx\csname bidi@#1@null\endcsname\bidi@@null}
3748 %\def\bidi@ifEmpty#1{\def\bidi@cs@a{#1}\ifx\bidi@cs@a\bidi@empty}
3749 \def\bidi@IsEmptyList#1{00\fi\def\bidi@cs@a{#1}\ifx\cs@a\bidi@empty}
3750
3751 % Next character test
3752 %
3753 \def\bidi@NextChar#1#2#3{00\fi
3754 \let\bidi@nxt@ch#1\def\bidi@nxt@a{#2}\def\bidi@nxt@b{#3}%
3755 \futurelet\bidi@nxt@c\@bidi@ifnxtc}
3756 \def\bidi@ifNextChar#1#2#3{%
3757 \let\bidi@nxt@ch#1\def\bidi@nxt@a{#2}\def\bidi@nxt@b{#3}%
3758 \futurelet\bidi@nxt@c\@bidi@ifnxtc}
3759 \def\@bidi@ifnxtc{\ifx\bidi@nxt@ch\bidi@nxt@c \expandafter\bidi@nxt@a
3760 \else \expandafter\bidi@nxt@b \fi}
3761
3762 % Test for defined-ness of string as control sequence.
3763 % works inside \edef
3764 %
3765 \def\bidi@undefinedcs#1{00\fi\bidi@csarg\ifx{#1}\relax}
3766
3767 % Define uniquely defined dummy macros,
3768 % usually to serve as bumper blocks at the end of a list
3769 %
3770 \newcount\bidi@dummies
3771 \def\DefNewDummy#1{
3772 \if\bidi@undefinedcs{#1}\bidi@csarg\edef{#1}{bidi@dum\the\bidi@dummies}
3773 \advance\bidi@dummies\@ne
3774 \else
3775 \bidi@error{Attempt at second definition of `#1'}
3776 \fi}
3777
3778 % string case statement
3779 % use: \bidi@switch \iftest{...} in:
3780 % item1 action1
3781 % ...
3782 % itemn actionn
3783 % default defaultaction [optional]
3784 % \endbidi@switch
3785 % inspired by Jonathan Fine: Some Basic Control Macros
3786 % Tugboat 12 #4
3787 %
3788 \let\@bidi@fi\fi \let\endbidi@switch\relax \DefNewDummy{bidi@default}

File biditools.sty 80
3789 \def\bidi@switch@exit #1 \@bidi@fi #2 \endbidi@switch {\fi #1}
3790 \def\bidi@switch #1#2#3{\bidi@csarg\ifx{#2}\bidi@default\bidi@switch@exit #3 \@bidi@fi
3791 #1{#2}\bidi@switch@exit #3 \@bidi@fi
3792 \bidi@switch {#1}
3793 }
3794 % this version puts the test object in {}
3795 \def\bidi@oswitch #1 in: #2 #3; {\bidi@csarg\ifx{#2}\bidi@default\bidi@switch@exit #3 \@bidi@f
3796 #1{#2}\bidi@switch@exit #3 \@bidi@fi
3797 \bidi@switch #1 in:
3798 }
3799 % this version assumes that the test object is just one character
3800 \def\bidi@cswitch #1 in: #2 #3; {\bidi@csarg\ifx{#2}\bidi@default\bidi@switch@exit #3 \@bidi@f
3801 #1#2\bidi@switch@exit #3 \@bidi@fi
3802 \bidi@cswitch #1 in:
3803 }
3804 % this version assumes that the test object can have an optional space
3805 \def\bidi@bswitch #1 in: #2 #3; {\bidi@csarg\ifx{#2}\bidi@default\bidi@switch@exit #3 \@bidi@f
3806 #1#2 \bidi@switch@exit #3 \@bidi@fi
3807 \bidi@bswitch #1 in:
3808 }
3809 % this version can cope with significant spaces at the start of #3;
3810 % #2 is macro argument
3811 \def\bidi@mswitch #1 in: #2:#3; {\bidi@csarg\ifx{#2}\bidi@default\bidi@switch@exit #3 \@bidi@f
3812 #1{#2}\bidi@switch@exit #3 \@bidi@fi
3813 \bidi@mswitch #1 in:
3814 }
3815 % idem; #2 does not have to be enclosed in braces
3816 \def\bidi@fswitch #1 in: #2:#3; {\bidi@csarg\ifx{#2}\bidi@default\bidi@switch@exit #3 \@bidi@f
3817 #1#2 \bidi@switch@exit #3 \@bidi@fi
3818 \bidi@fswitch #1 in:
3819 }
3820
3821 % Routines for taking the value of a string:
3822 % if the string is defined as control sequence
3823 % take the value of that, otherwise take the string itself
3824
3825 % String or value of control sequence
3826 %
3827 \def\bidi@w@w#1{\if\bidi@undefinedcs{#1}#1\else \the\csname#1\endcsname\fi}
3828
3829 % String or control sequence
3830 %
3831 \def\@bidi@ww#1{\if\bidi@undefinedcs{#1}#1\else \csname#1\endcsname \fi}
3832
3833 % String or \noexpand-ed control sequence;
3834 % for use in \edef
3835 %
3836 \newif\ifbidi@in@label
3837 \def\@bidi@w@w#1{\if\bidi@undefinedcs{#1}#1\else
3838 \ifbidi@in@label\noexpand\protect\fi \bidi@csname{#1}\fi}

File biditools.sty 81
3839 \newtoks\bidi@are@these@correct
3840 \def\bidi@t@w@w#1{%
3841 \if\bidi@undefinedcs{#1}#1%
3842 \ifdefining\bidi@append@to@list\bidi@are@these@correct{#1 }\fi
3843 \else
3844 \ifin@label\noexpand\protect\fi \bidi@csname{#1}\fi}
3845
3846 % List Manipulation ................
3847 % this assumes that #1 is a list of tokens, #2 is the name of a list
3848 %
3849 % Names of lists (and of items to pop into) are given as strings;
3850 % not as control sequences.
3851 %
3852 \newtoks\bidi@toks@lista \newtoks\bidi@toks@listb
3853 % basic append/prepend macro
3854 \long\def\@bidi@append@to@cslist#1#2#3{\begingroup\bidi@toks@lista=#2{#3}%
3855 \global#1=\expandafter\expandafter\expandafter{\expandafter\the\expandafter#1\the\bidi@toks@
3856 \long\def\@bidi@prepend@to@cslist#1#2#3{\begingroup\bidi@toks@lista=#2{#3}%
3857 \global#1=\expandafter\expandafter\expandafter{\expandafter\the\expandafter\bidi@toks@lista\
3858 \def\@bidi@append@to@list{\bidi@csarg\@bidi@append@to@cslist}
3859 \def\@bidi@prepend@to@list{\bidi@csarg\@bidi@prepend@to@cslist}
3860 % variations:
3861 \long\def\bidi@append@to@list#1#2{\@bidi@append@to@list{#1}{}{#2}}
3862 \long\def\bidi@prepend@to@list#1#2{\@bidi@prepend@to@list{#1}{}{#2}}
3863 \def\bidi@append@list@to@list#1#2{%
3864 \@bidi@append@to@list{#1}{\expandafter\expandafter\expandafter}{\expandafter\the\csname#2\en
3865 \def\bidi@prepend@list@to@list#1#2{%
3866 \@bidi@prepend@to@list{#1}{\expandafter\expandafter\expandafter}{\expandafter\the\csname#2\e
3867 \def\bidi@append@cslist@to@cslist#1#2{%
3868 \@bidi@append@to@cslist{#1}\expandafter{\the#2}}
3869 \def\bidi@prepend@cslist@to@cslist#1#2{%
3870 \@bidi@prepend@to@cslist{#1}\expandafter{\the#2}}
3871 \def\bidi@append@toks@cs@to@list#1#2{\@bidi@append@to@list{#1}\expandafter{\the#2}}
3872 \def\bidi@prepend@toks@cs@to@list#1#2{\@bidi@prepend@to@list{#1}\expandafter{\the#2}}
3873
3874 \let\bidi@willbeunhskip\unhskip
3875
3876 % A few list macros for the user
3877 \def\NewTokenList:#1 {\bidi@csarg\newtoks{#1}\global\csname#1\endcsname{}}
3878 \def\EmptyTokenList:#1 {\global\csname#1\endcsname{}}
3879 \long\def\AppendToTokenList:#1=#2 {\@bidi@append@to@list{#1}{}{#2}}
3880 \long\def\PrependToTokenList:#1=#2 {\@bidi@prepend@to@list{#1}{}{#2}}
3881 \def\TheTokenList:#1 {\let\bidi@oldwbuskip\bidi@willbeunhskip \let\bidi@willbeunhskip\@empty
3882 \if\bidi@undefinedcs{#1}\bidi@error{Token List <#1> undefined}
3883 \else\bidi@csarg\the{#1}\fi
3884 \let\bidi@willbeunhskip\bidi@oldwbuskip}
3885
3886 \def\bidi@del@tok@from@list#1#2{\begingroup
3887 \long\def\bidi@cs@liste##1#2##2\bidi@tok@SM
3888 {\bidi@toks@lista{##1}\bidi@toks@listb{##2}%

File biditools.sty 82
3889 \edef\bidi@cs@listb{\global\bidi@csname{#1}=
3890 {\the\bidi@toks@lista\the\bidi@toks@listb}}%
3891 \bidi@cs@listb}%
3892 \edef\bidi@cs@lista{\noexpand\bidi@cs@liste{}\expandafter\the\csname#1\endcsname\noexpand\
3893 \bidi@cs@lista \endgroup}
3894 \def\bidi@in@front@of@list#1{\bidi@csarg{\let\expandafter\bidi@cs@lista}{#1}%
3895 \bidi@in@front@of@cslist\bidi@cs@lista}
3896 \long\def\bidi@in@front@of@cslist#1#2{\begingroup\bidi@toks@lista={#2}%
3897 \global#1=\expandafter\expandafter\expandafter{\expandafter\the\expandafter\bidi@toks@lista
3898 \endgroup}
3899 \long\def\bidi@local@in@front@of@list#1#2{\bidi@toks@lista={#2}%
3900 \csname#1\endcsname\expandafter\expandafter\expandafter\expandafter\expandafter\expandafte
3901 {\expandafter\expandafter\expandafter\the\expandafter\expandafter\expandafter\
3902 \expandafter\the\csname#1\endcsname}%
3903 }
3904 \def\bidi@set@list#1{\bidi@csarg{\let\expandafter\bidi@cs@lista}{#1}%
3905 \bidi@set@cslist\bidi@cs@lista}
3906 \long\def\bidi@set@cslist#1#2{\begingroup\bidi@toks@lista={#2}%
3907 \global#1=\expandafter{\the\bidi@toks@lista}\endgroup}
3908
3909 %%%%%%%%%%%%%%%% Stack macros
3910 %
3911 % push in terms of prepending of lists
3912 \def\bidi@push@cs@onto@cs#1#2{\@bidi@prepend@to@cslist#1\expandafter{\expandafter\\\expandafte
3913 \def\bidi@push@onto#1{\bidi@csarg\bidi@push@onto@cs{#1}}
3914 \def\bidi@push@onto@cs#1#2{\@bidi@prepend@to@cslist#1{}{\\{#2}}}
3915 \def\bidi@local@push@onto#1#2{\let\\=\relax
3916 \bidi@local@in@front@of@list{#1}{\\{#2}}}
3917 % pop via auxiliary macro: #1 is result, #2 is stack
3918 % two cs arguments
3919 \def\bidi@pop@cs@into#1#2{\edef\bidi@cs@e
3920 {\noexpand\@@bidi@popinto\noexpand#1\noexpand#2\the#2\noexpand\@@bidi@pop}\bidi@cs@e}
3921 % two string arguments
3922 \def\bidi@pop@into#1#2{\edef\bidi@cs@e
3923 {\noexpand\@@bidi@popinto\bidi@csname{#1}\bidi@csname{#2}\bidi@csarg\the{#2}\noexpand\@@bid
3924 \long\def\@@bidi@popinto#1#2\\#3#4\@@bidi@pop{#1{#3}#2{#4}}
3925 \def\bidi@copy@stacktop#1#2{%
3926 \edef\bidi@cs@e{\noexpand\@bidi@copy@stacktop
3927 {#1}\bidi@csarg\the{#2}\noexpand\@@bidi@pop}%
3928 \bidi@cs@e}
3929 \def\@bidi@copy@stacktop#1\\#2#3\@@bidi@pop{\csname#1\endcsname#2\relax}
3930 \newcount\bidi@stack@length \newtoks\bidi@empty@stack \bidi@empty@stack{\\{}}
3931 \def\bidi@length@of@stack#1{\bidi@csarg\bidi@length@of@csstack{#1}}
3932 \def\bidi@length@of@csstack#1{\def\\##1{\advance\bidi@stack@length\@ne}%
3933 \bidi@stack@length\m@ne \the#1}
3934 % turn a stack upside down
3935 \def\bidi@invert@csstack#1{\bidi@length@of@csstack{#1}%
3936 \bidi@tempcountb\z@ \bidi@temptoksa\bidi@empty@stack
3937 \loop\ifnum\bidi@tempcountb<\bidi@stack@length
3938 \bidi@pop@cs@into\bidi@temptoksb#1\advance\bidi@stack@length\m@ne

File biditools.sty 83
3939 \bidi@push@cs@onto@cs\bidi@temptoksa\bidi@temptoksb
3940 % \bidi@append@cslist@to@cslist\bidi@temptoksb\bidi@temptoksa% append a to b
3941 % \bidi@temptoksa\bidi@temptoksb
3942 \repeat% copy b to a
3943 #1\bidi@temptoksa \bidi@temptoksa\bidi@empty@toks}
3944 % invert a stack into a list
3945 \def\bidi@x@stack@to@list#1{\bidi@length@of@stack{#1}%
3946 \bidi@tempcountb\z@ \bidi@temptoksa\bidi@empty@toks
3947 \loop\ifnum\bidi@tempcountb<\bidi@stack@length
3948 \bidi@pop@into{bidi@temptoksb}{#1}\advance\bidi@stack@length\m@ne
3949 \bidi@append@list@to@list{bidi@temptoksb}{bidi@temptoksa}\repeat
3950 \csname#1\endcsname\bidi@temptoksa \bidi@temptoksa\bidi@empty@toks}
3951
3952
3953 % General loop macro:
3954 % \looprepeat
3955 % \forvariable{<var>} \fromvalue{<start>} \bystep{<step>} \tovalue{<end>} \downtovalue{<end>
3956 % \untilcondition{<cond>} \whilecondition{<cond>}
3957 % \doloopbody { <loop body> }
3958 % where all control sequences in between \looprepeat and \doloopbody are optional.
3959 %
3960 % var: characters to form a control sequence;
3961 % after \forvariable{index} you can access the loop counter as \index.
3962 % This is a count register; to print it use \number\index.
3963 % start,step,end: integers with obvious relations to the loop counter;
3964 % start and step have a default value of 1
3965 % cond: (sequence of commands ending in) any TeX \if... test.
3966 %
3967 % Count down instead of up with \downtovalue; the increment given in \bystep
3968 % is always positive, and is added or subtracted accordingly.
3969 %
3970 % Tests: \untilcondition is evaluated at the end of the loop body; \whilecondition
3971 % at the beginning of the loop body.
3972 %
3973 % Exit from middle of loop: \breaklooprepeat
3974 % use this at any place in the loop; in case of a conditional use
3975 % \ifsomething ... \expandafter \breaklooprepeat \fi
3976 %
3977 % Note that the line ends do not cause spaces in the output.
3978 %
3979 % Technical details:
3980 % The loop body is not executed in a group: the braces are those
3981 % of a token list.
3982 % The `forvariable' variable is \let to a \count register.
3983
3984
3985
3986 % Auxiliary stuff
3987 \def\bidi@looprepeat@csarg#1#2{\expandafter#1\csname#2\endcsname}
3988 \def\bidi@looprepeat@csromannumeral#1{\csname #1\romannumeral\bidi@looprepeat@depth\endcsname}

File biditools.sty 84
3989 \def\bidi@looprepeat@csargromannumeral#1#2{\expandafter#1\csname#2\romannumeral\bidi@looprepea
3990
3991 \newcount\bidi@looprepeat@depth
3992 \let\endlooprepeat\relax \def\bidi@csprotect{}
3993 % Trace switches may later be defined by PAC_utils
3994 \let\bidi@looprepeat@traceinit\relax \let\bidi@looprepeat@traceexit\relax
3995
3996 % Main repeatloop macro
3997 % - go to next level and allocate unique counter/toks if this is the
3998 % first time we visit this level
3999 % - setup: gather bounds and termination conditions
4000 % - scoop up body in token list; after the assignment define and
4001 % execute body
4002 \def\looprepeat#1\doloopbody{\bidi@looprepeat@traceinit % exit in \breakrepeatloop
4003 \advance\bidi@looprepeat@depth\@ne\relax
4004 \bidi@looprepeat@csargromannumeral\ifx{bidi@looprepeat@count}\relax
4005 \bidi@looprepeat@csargromannumeral{\csname newcount\expandafter\endcsname}{bidi@looprepeat
4006 \bidi@looprepeat@csargromannumeral{\csname newtoks\expandafter\endcsname}{bidi@looprepeat@
4007 \bidi@looprepeat@csargromannumeral{\csname newtoks\expandafter\endcsname}{bidi@looprepeat@
4008 \bidi@looprepeat@csargromannumeral{\csname newtoks\expandafter\endcsname}{bidi@looprepeat@
4009 \fi \bidi@looprepeat@zero \def\bidi@looprepeat@sign{}\def\bidi@looprepeat@comp{>}\bidi@loopr
4010 \edef\bidi@looprepeat@tmp
4011 {\def\bidi@looprepeat@csargromannumeral\noexpand{bidi@looprepeat@looprepeat}{\bidi@loopre
4012 \afterassignment\bidi@looprepeat@dxbody\bidi@looprepeat@csromannumeral{bidi@looprepeat@toks}
4013
4014 % Define and execute loop body
4015 % This is done with an \edef to construct the actual sequence
4016 \def\bidi@looprepeat@dxbody{\bidi@looprepeat@csargromannumeral\edef{bidi@looprepeat@body}{%
4017 \bidi@looprepeat@csargromannumeral\the{bidi@looprepeat@wtest}%
4018 \noexpand\the\bidi@looprepeat@csargromannumeral\noexpand{bidi@looprepeat@toks}%
4019 \bidi@looprepeat@csargromannumeral\the{bidi@looprepeat@utest}%
4020 \global\bidi@looprepeat@csargromannumeral\advance{bidi@looprepeat@count} by \bidi@looprepe
4021 \noexpand\endlooprepeat
4022 \bidi@looprepeat@csargromannumeral\noexpand{bidi@looprepeat@looprepeat}}%
4023 \bidi@looprepeat@csromannumeral{bidi@looprepeat@body}\ignorespaces}
4024
4025 % Stop test
4026 %% In order to stop, issue a
4027 % \breaklooprepeat which scoops up the rest of the body and exits
4028 \def\breaklooprepeat#1\endlooprepeat{\bidi@looprepeat@zero\bidi@looprepeat@csargromannumeral\l
4029 \advance\bidi@looprepeat@depth\m@ne \bidi@looprepeat@traceexit
4030 }
4031
4032
4033 % Setup
4034 % gather bounds and termination conditions
4035 \def\bidi@looprepeat@setup#1{%
4036 \begingroup
4037 \def\forvariable##1{%
4038 \edef\bidi@looprepeat@tmp{%

File biditools.sty 85
4039 \global\let\bidi@looprepeat@csarg\noexpand{##1}\bidi@looprepeat@csromannumeral{bidi@lo
4040 \bidi@looprepeat@tmp}%
4041 \def\fromvalue##1{\bidi@looprepeat@csargromannumeral\global{bidi@looprepeat@count}##1\igno
4042 \def\tovalue##1{%
4043 \edef\bidi@looprepeat@tmp{\global\bidi@looprepeat@csargromannumeral\noexpand{bidi@loopre
4044 {\bidi@looprepeat@csargromannumeral\the{bidi@looprepeat@wtest}%
4045 \noexpand\ifnum\bidi@looprepeat@csargromannumeral\noexpand{bidi@looprepeat@count}\bidi
4046 \noexpand\expandafter \noexpand\breaklooprepeat
4047 \noexpand\fi}\ignorespaces}%
4048 \bidi@looprepeat@tmp}%
4049 \def\downtovalue##1{%
4050 \gdef\bidi@looprepeat@sign{-}\gdef\bidi@looprepeat@comp{<}\tovalue{##1}\ignorespaces}%
4051 \def\bystep##1{\ifnum##1<0 \bidi@error{LOOPREPEAT: increment has to be a positive value}\@
4052 \bidi@looprepeat@csargromannumeral\gdef{bidi@looprepeat@inc}{-##1}\else
4053 \bidi@looprepeat@csargromannumeral\gdef{bidi@looprepeat@inc}{##1}\fi\ignorespac
4054 \def\untilcondition##1{%
4055 \edef\bidi@looprepeat@tmp{\global\bidi@looprepeat@csargromannumeral\noexpand{bidi@loopre
4056 {\noexpand##1\relax
4057 \noexpand\expandafter \noexpand\breaklooprepeat \noexpand\fi}\ignorespaces}%
4058 \bidi@looprepeat@tmp}%
4059 \def\whilecondition##1{%
4060 \edef\bidi@looprepeat@tmp{\global\bidi@looprepeat@csargromannumeral\noexpand{bidi@loopre
4061 {\noexpand##1\relax \noexpand\else
4062 \noexpand\expandafter \noexpand\breaklooprepeat \noexpand\fi}\ignorespaces}%
4063 \bidi@looprepeat@tmp}%
4064 \fromvalue{\@ne}\bystep{\@ne}#1%
4065 \endgroup}
4066 \def\bidi@looprepeat@zero
4067 {\bidi@looprepeat@csromannumeral{bidi@looprepeat@toks}{}\bidi@looprepeat@csromannumeral{bid
4068 \bidi@looprepeat@csargromannumeral\def{bidi@looprepeat@body}{}}
4069
4070 %\tracingmacros2
4071 %\newcount\tmpcount % used in some examples below
4072
4073 %\looprepeat \forvariable{i}
4074 % \bystep{2}
4075 % \doloopbody {%
4076 % \ifnum\i=13 \expandafter\breaklooprepeat \fi
4077 % \number\i{} %
4078 %}%
4079
4080 %\looprepeat \forvariable{iii}
4081 % \tovalue{8}
4082 % \doloopbody {}
4083 %After loop: \number\iii%
4084
4085 %\looprepeat \forvariable{i}
4086 % \fromvalue{10}
4087 % \bystep{2}
4088 % \downtovalue{0}

File biditools.sty 86
4089 % \doloopbody {\number\i{} }
4090
4091 %\looprepeat \forvariable{x} \whilecondition{\ifnum\x<7}
4092 % \doloopbody {\number\x{} }
4093
4094 %\looprepeat \tovalue{3} \doloopbody {Hello world! }
4095
4096 %\looprepeat \forvariable{j}
4097 % \untilcondition{\tmpcount\j \divide\tmpcount by 37 \noexpand\ifnum\tmpcount=1}
4098 % \doloopbody {\number\j{} }
4099
4100 %\looprepeat \forvariable{i} \bystep{2} \tovalue{10} \doloopbody
4101 % {\looprepeat \forvariable{j} \fromvalue{\i} \bystep{3} \tovalue{18}
4102 % \doloopbody {(\number\i.\number\j) }
4103 % }
4104
4105 % infinite loop
4106 %\looprepeat \doloopbody {}
4107
4108 \renewcommand{\InputIfFileExists}[2]{%
4109 \begingroup\expandafter\expandafter\expandafter\endgroup
4110 \expandafter\ifx\csname #1-@bidi@alias\endcsname\relax
4111 \expandafter\@secondoftwo
4112 \else
4113 \bidi@replacefile@msg{\csname #1-@bidi@alias\endcsname}{#1}%
4114 \expandafter\@firstoftwo
4115 \fi
4116 {%
4117 \expandafter\InputIfFileExists\expandafter{\csname
4118 #1-@bidi@alias\endcsname}{#2}%
4119 }%
4120 {\IfFileExists{#1}{%
4121 \bidi@load@hook{before}{#1}%
4122 #2\@addtofilelist{#1}%
4123 \@@input \@filef@und
4124 \bidi@load@hook{after}{#1}%
4125 }}%
4126 }
4127
4128 \newcommand*{\bidi@@loadwithoptions}{}
4129 \newcommand*{\bidi@loadwithoptions}{}
4130 \let\bidi@loadwithoptions\@loadwithoptions
4131
4132 \renewcommand*{\@loadwithoptions}[3]{%
4133 \begingroup\expandafter\expandafter\expandafter\endgroup
4134 \expandafter\ifx\csname #3.#1-@bidi@aliasname\endcsname\relax
4135 \def\bidi@@loadwithoptions{\bidi@loadwithoptions{#1}{#2}{#3}}%
4136 \else
4137 \bidi@replacefile@msg{\csname #3.#1-@bidi@aliasname\endcsname.#1}{#3.#1}%
4138 \def\bidi@@loadwithoptions{%

File biditools.sty 87
4139 \@loadwithoptions{#1}{#2}{\csname #3.#1-@bidi@aliasname\endcsname}%
4140 }%
4141 \fi
4142 \bidi@@loadwithoptions
4143 }
4144
4145 \newcommand*{\bidi@onefilewithoptions}{}
4146 \let\bidi@onefilewithoptions\@onefilewithoptions
4147 \def\@onefilewithoptions#1[#2][#3]#4{%
4148 \begingroup\expandafter\expandafter\expandafter\endgroup
4149 \expandafter\ifx\csname #1.#4-@bidi@aliasname\endcsname\relax
4150 \def\bidi@@onefilewithoptions{\bidi@onefilewithoptions{#1}}%
4151 \else
4152 \bidi@replacefile@msg{\csname #1.#4-@bidi@aliasname\endcsname.#4}{#1.#4}%
4153 \edef\bidi@@onefilewithoptions{%
4154 \noexpand\@onefilewithoptions{\csname #1.#4-@bidi@aliasname\endcsname}}%
4155 \fi
4156 \bidi@@onefilewithoptions[{#2}][{#3}]{#4}%
4157 \bidi@load@hook{lateafter}{#1.#4}%
4158 }
4159
4160 \newcommand*{\bidi@ReplaceInput}[2]{%
4161 \expandafter\edef\csname #1-@bidi@alias\endcsname{#2}%
4162 }
4163
4164 \newcommand*{\bidi@UnReplaceInput}[1]{%
4165 \ifcsname #1-@bidi@alias\endcsname
4166 \expandafter\let\csname #1-@bidi@alias\endcsname\relax
4167 \fi
4168 }
4169
4170 \newcommand*{\@bidi@replacefilewithext}[3]{%
4171 \expandafter\edef\csname #1.#3-@bidi@aliasname\endcsname{#2}%
4172 }
4173 \newcommand*{\bidi@ReplacePackage}[2]{%
4174 \@bidi@replacefilewithext{#1}{#2}\@pkgextension
4175 }
4176 \newcommand*{\bidi@ReplaceClass}[2]{%
4177 \@bidi@replacefilewithext{#1}{#2}\@clsextension
4178 }
4179 \newcommand*{\@bidi@unreplacefilewithext}[2]{%
4180 \ifcsname #1.#2-@bidi@aliasname\endcsname
4181 \expandafter\let\csname #1.#2-@bidi@aliasname\endcsname\relax
4182 \fi
4183 }
4184 \newcommand*{\bidi@UnReplacePackage}[1]{%
4185 \@bidi@unreplacefilewithext{#1}\@pkgextension
4186 }
4187 \newcommand*{\bidi@UnReplaceClass}[1]{%
4188 \@bidi@unreplacefilewithext{#1}\@clsextension

File biditools.sty 88
4189 }
4190 \newcommand*{\bidi@replacefile@msg}[2]{%
4191 \PackageInfo{biditools}{inputing `#1' instead of `#2'}%
4192 }
4193
4194 \newcommand*{\bidi@load@hook}[2]{%
4195 \@ifundefined{#2-@#1}{}{%
4196 \@nameuse{#2-@#1}%
4197 \expandafter\let\csname #2-@#1\endcsname=\relax}}
4198 \newcommand*{\bidi@set@load@hook}[2]{%
4199 \@ifundefined{#2-@#1}{\@namedef{#2-@#1}{}}{}%
4200 \expandafter\g@addto@macro\csname #2-@#1\endcsname}
4201 \newcommand*{\bidi@BeforeFile}{\bidi@set@load@hook{before}}
4202 \newcommand*{\bidi@AfterFile}{\bidi@set@load@hook{after}}
4203 \newcommand*{\bidi@BeforeClass}[1]{%
4204 \bidi@set@load@hook{before}{#1.\@clsextension}}
4205 \newcommand*{\bidi@AfterClass}{%
4206 \@ifstar {\@s@bidi@AfterClass}{%
4207 \@ifnextchar +\@@bidi@AfterClass{%
4208 \@ifnextchar !\@@@bidi@AfterClass\@bidi@AfterClass
4209 }%
4210 }%
4211 }
4212
4213 \newcommand*{\@@@bidi@AfterClass}[2]{%
4214 \begingroup\ifx\csname #2.\@clsextension-h@@k\endcsname\relax
4215 \aftergroup\@s@bidi@AfterClass
4216 \else
4217 \aftergroup\bidi@AfterAtEndOfClass
4218 \fi
4219 \endgroup{#2}%
4220 }
4221
4222 \newcommand*{\bidi@AfterAtEndOfClass}[1]{%
4223 \bidi@set@load@hook{lateafter}{#1.\@clsextension}}
4224 \newcommand*{\@@bidi@AfterClass}[2]{%
4225 \begingroup
4226 \expandafter\ifx\csname #2.\@clsextension-h@@k\endcsname\relax
4227 \aftergroup\@s@bidi@AfterClass
4228 \else
4229 \aftergroup\@bidi@AfterClass
4230 \fi
4231 \endgroup{#2}%
4232 }
4233
4234 \newcommand*{\@bidi@AfterClass}[1]{%
4235 \bidi@set@load@hook{after}{#1.\@clsextension}}
4236 \newcommand*{\@s@bidi@AfterClass}[1]{%
4237 \begingroup
4238 \@ifclassloaded{#1}{%

File biditools.sty 89
4239 \aftergroup\@secondoftwo
4240 }{%
4241 \aftergroup\@bidi@AfterClass
4242 }%
4243 \endgroup
4244 {#1}%
4245 }
4246
4247
4248 \newcommand*{\bidi@BeforePackage}[1]{%
4249 \bidi@set@load@hook{before}{#1.\@pkgextension}}
4250 \newcommand*{\bidi@AfterPackage}{%
4251 \@ifstar {\@s@bidi@AfterPackage}{%
4252 \@ifnextchar +\@@bidi@AfterPackage{%
4253 \@ifnextchar !\@@@bidi@AfterPackage\@bidi@AfterPackage
4254 }%
4255 }%
4256 }
4257 \newcommand*{\@@@bidi@AfterPackage}[2]{%
4258 \begingroup\ifx\csname #2.\@pkgextension-h@@k\endcsname\relax
4259 \aftergroup\@s@bidi@AfterPackage
4260 \else
4261 \aftergroup\bidi@AfterAtEndOfPackage
4262 \fi
4263 \endgroup{#2}%
4264 }
4265 \newcommand*{\bidi@AfterAtEndOfPackage}[1]{%
4266 \bidi@set@load@hook{lateafter}{#1.\@pkgextension}}
4267 \newcommand*{\@@bidi@AfterPackage}[2]{%
4268 \begingroup
4269 \expandafter\ifx\csname #2.\@pkgextension-h@@k\endcsname\relax
4270 \aftergroup\@s@bidi@AfterPackage
4271 \else
4272 \aftergroup\@bidi@AfterPackage
4273 \fi
4274 \endgroup{#2}%
4275 }
4276 \newcommand*{\@bidi@AfterPackage}[1]{%
4277 \bidi@set@load@hook{after}{#1.\@pkgextension}}
4278 \newcommand*{\@s@bidi@AfterPackage}[1]{%
4279 \begingroup
4280 \@ifpackageloaded{#1}{%
4281 \aftergroup\@secondoftwo
4282 }{%
4283 \aftergroup\@bidi@AfterPackage
4284 }%
4285 \endgroup
4286 {#1}%
4287 }
4288

File biditools.sty 90
4289 \newcommand*{\bidi@excludedpackages}{}
4290 \let\bidi@excludedpackages\@empty
4291 \newcommand*{\bidi@saved@RequirePackage}{}
4292 \newcommand*{\bidi@PreventPackageFromLoading}{%
4293 \@ifstar{\@bidi@PreventPackageFromLoading\PackageInfo}%
4294 {\@bidi@PreventPackageFromLoading\PackageWarning}%
4295 }
4296 \newcommand*{\@bidi@PreventPackageFromLoading}[1]{%
4297 \@ifnextchar [%]
4298 {\@@bidi@PreventPackageFromLoading#1}{\@@bidi@PreventPackageFromLoading#1[]}%
4299 }
4300 \newcommand*{\@@bidi@PreventPackageFromLoading}{}
4301
4302 \def\@@bidi@PreventPackageFromLoading#1[#2]#3{%
4303 \edef\reserved@b{\zap@space#3 \@empty}%
4304 \ifx \reserved@b\@empty
4305 #1{biditools}{%
4306 \string\bidi@PreventPackageFromLoading\space with empty packages\MessageBreak
4307 argument ignored%
4308 }%
4309 \else
4310 \ifx\bidi@excludedpackages\@empty
4311 \let\bidi@saved@RequirePackage\RequirePackage
4312 \let\RequirePackage\bidi@RequirePackage
4313 \def\reserved@a##1##{%
4314 \@latex@error
4315 {\noexpand \usepackage before \string\documentclass}%
4316 {\noexpand \usepackage may only appear in the document
4317 preamble, i.e.,\MessageBreak
4318 between \noexpand\documentclass and
4319 \string\begin{document}.}%
4320 \@gobble}%
4321 \ifx\reserved@a\usepackage\else
4322 \ifx\usepackage\bidi@saved@RequirePackage\else
4323 \PackageWarning{biditools}{%
4324 Maybe serious problem: unexpected definition of\MessageBreak
4325 \string\usepackage
4326 }%
4327 \fi
4328 \let\usepackage\RequirePackage
4329 \fi
4330 \fi
4331 \expandafter\@for \expandafter\reserved@a\expandafter:\expandafter=%
4332 \reserved@b\do {%
4333 \ifx\reserved@a\@empty
4334 #1{biditools}{%
4335 empty package argument for
4336 \string\bidi@PreventPackageFromLoading\MessageBreak
4337 ignored%
4338 }%

File biditools.sty 91
4339 \else
4340 \expandafter\@ifpackageloaded\expandafter{\reserved@a}{%
4341 #1{biditools}{%
4342 package `\reserved@a' already loaded.\MessageBreak
4343 Cannot prevent it from beeing loaded%
4344 }%
4345 }{%
4346 \edef\bidi@excludedpackages{\bidi@excludedpackages,%
4347 \reserved@a}%
4348 \if\relax\detokenize{#2}\relax\else
4349 \@ifundefined{bidi@exclude@package@\reserved@a @do}{%
4350 \@namedef{bidi@exclude@package@\reserved@a @do}{}%
4351 }{}%
4352 \expandafter\def
4353 \csname bidi@exclude@package@\reserved@a
4354 @do\expandafter\expandafter\expandafter\endcsname
4355 \expandafter\expandafter\expandafter{%
4356 \csname bidi@exclude@package@\reserved@a @do\endcsname
4357 #2%
4358 }%
4359 \fi
4360 }%
4361 \fi
4362 }%
4363 \ifx\bidi@excludedpackages\@empty
4364 \bidi@ResetPreventPackageFromLoading
4365 \fi
4366 \fi
4367 }
4368
4369 \@onlypreamble\bidi@PreventPackageFromLoading
4370 \newcommand*{\bidi@ResetPreventPackageFromLoading}{%
4371 \let\bidi@excludedpackages\@empty
4372 \ifx\RequirePackage\bidi@RequirePackage
4373 \ifx\usepackage\RequirePackage
4374 \let\usepackage\bidi@saved@RequirePackage
4375 \fi
4376 \let\RequirePackage\bidi@saved@RequirePackage
4377 \fi
4378 }
4379 \@onlypreamble\bidi@ResetPreventPackageFromLoading
4380 \newcommand*{\bidi@StorePreventPackageFromLoading}[1]{%
4381 \let#1\bidi@excludedpackages
4382 }
4383 \@onlypreamble\bidi@StorePreventPackageFromLoading
4384 \newcommand*{\bidi@UnPreventPackageFromLoading}{%
4385 \@ifstar {\@tempswatrue\@bidi@UnPreventPackageFromLoading}%
4386 {\@tempswafalse\@bidi@UnPreventPackageFromLoading}%
4387 }
4388

File biditools.sty 92
4389 \newcommand*{\@bidi@UnPreventPackageFromLoading}[1]{%
4390 \edef\reserved@b{\zap@space#1 \@empty}%
4391 \if@tempswa
4392 \@for\reserved@a:=\reserved@b\do {%
4393 \ifx\reserved@a\@empty \else
4394 \ifcsname bidi@exclude@package@\reserved@a @do\endcsname
4395 \expandafter\let
4396 \csname bidi@exclude@package@\reserved@a @do\endcsname
4397 \undefined
4398 \fi
4399 \fi
4400 }%
4401 \fi
4402 \ifcsname bidi@excludedpackages\endcsname
4403 \let\reserved@a\bidi@excludedpackages
4404 \let\bidi@excludedpackages\@empty
4405 \expandafter\@for\expandafter\reserved@c
4406 \expandafter:\expandafter=\reserved@a
4407 \do{%
4408 \ifx\reserved@c\@empty\else
4409 \@expandtwoargs\in@{,\reserved@c,}{,\reserved@b,}%
4410 \ifin@
4411 \else
4412 \edef\bidi@excludedpackages{%
4413 \bidi@excludedpackages,\reserved@c
4414 }%
4415 \fi
4416 \fi
4417 }%
4418 \ifx\bidi@excludedpackages\@empty\bidi@ResetPreventPackageFromLoading\fi
4419 \fi
4420 }
4421
4422
4423 \newcommand*{\bidi@RequirePackage}[2][]{%
4424 \let\reserved@c\@empty
4425 \let\reserved@d\@empty
4426 \edef\reserved@b{\zap@space#2 \@empty}%
4427 \expandafter\@for\expandafter\reserved@b\expandafter:\expandafter=\reserved@b
4428 \do {%
4429 \begingroup
4430 \@tempswatrue
4431 \@for\reserved@a:=\bidi@excludedpackages\do {%
4432 \ifx\reserved@a\reserved@b
4433 \@tempswafalse
4434 \fi
4435 }%
4436 \if@tempswa
4437 \xdef\reserved@c{\reserved@c,\reserved@b}%
4438 \else

File biditools.sty 93
4439 \ifx\reserved@b\@empty\else
4440 \PackageInfo{biditools}{Excluding package `\reserved@b'\MessageBreak
4441 from loading}%
4442 \@ifundefined{bidi@exclude@package@\reserved@b @do}{%
4443 }{%
4444 \expandafter\g@addto@macro\expandafter\reserved@d
4445 \csname bidi@exclude@package@\reserved@b @do\endcsname
4446 }%
4447 \fi
4448 \fi
4449 \endgroup
4450 }%
4451 \ifx\reserved@c\@empty
4452 \let\reserved@a\bidi@gobbleopt
4453 \else
4454 \edef\reserved@a{\noexpand\bidi@saved@RequirePackage[#1]{%
4455 \expandafter\@gobble\reserved@c\@empty}}%
4456 \fi
4457 \expandafter\reserved@d
4458 \reserved@a
4459 }
4460
4461 \newcommand{\bidi@gobbleopt}[1][]{}
4462 \AtEndDocument{%
4463 \let\bidi@saved@checkend=\@checkend
4464 \renewcommand*{\@checkend}[1]{%
4465 \def\reserved@a{#1}\def\reserved@b{document}%
4466 \bidi@saved@checkend{#1}%
4467 \ifx\reserved@a\reserved@b
4468 \let\bidi@saved@clearpage=\clearpage
4469 \renewcommand*{\clearpage}{\bidi@saved@clearpage
4470 \bidi@hook@bcma
4471 \bidi@restore@newpage
4472 \let\clearpage=\bidi@saved@clearpage}%
4473 \fi%
4474 \let\bidi@saved@dofilelist\@dofilelist
4475 \def\@dofilelist{%
4476 \bidi@hook@acma
4477 \let\@dofilelist\bidi@saved@dofilelist
4478 \bidi@saved@dofilelist
4479 }%
4480 }%
4481 }
4482
4483
4484 \newcommand*{\bidi@saved@checkend}{}
4485 \newcommand*{\bidi@saved@dofilelist}{}
4486 \newcommand*{\bidi@redefine@newpage}{%
4487 \let\bidi@saved@newpage\newpage
4488 \def\bidi@restore@newpage{%

File biditools.sty 94
4489 \renewcommand*{\newpage}{%
4490 \PackageWarningNoLine{%
4491 biditools%
4492 }{%
4493 \string\newpage\space at main aux file!\MessageBreak
4494 You have output material at the main aux file.\MessageBreak
4495 Note, that the \string\bidi@BeforeClosingMainAux\space commands\MessageBreak
4496 are processed before the output from aux file%
4497 }%
4498 \let\newpage\bidi@saved@newpage
4499 \newpage
4500 }%
4501 }%
4502 \renewcommand*{\newpage}{%
4503 \PackageError{%
4504 biditools%
4505 }{%
4506 \string\newpage\space at \string\bidi@BeforeClosingMainAux
4507 }{%
4508 You should never use \string\newpage\space or
4509 \string\clear(double)page or other output material at the\MessageBreak
4510 argument of \string\bidi@BeforeClosingMainAux!\MessageBreak
4511 If you'll continue, the \string\newpage\space will be ignored to
4512 avoid corruption of\MessageBreak
4513 every prior use of \string\bidi@BeforeClosingMainAux.
4514 }%
4515 }%
4516 }
4517
4518 \newcommand*{\bidi@restore@newpage}{}
4519 \newcommand*{\bidi@hook@bcma}{}
4520 \newcommand*{\bidi@hook@acma}{}
4521 \newcommand*{\bidi@BeforeClosingMainAux}{%
4522 \ifx\bidi@hook@bcma\@empty
4523 \gdef\bidi@hook@bcma{%
4524 \renewcommand*{\bidi@BeforeClosingMainAux}[1]{####1}%
4525 \let\protected@write\bidi@protected@immediate@write
4526 \bidi@redefine@newpage
4527 }%
4528 \fi
4529 \g@addto@macro\bidi@hook@bcma%
4530 }
4531
4532 \newcommand*{\bidi@AfterReadingMainAux}{%
4533 \ifx\bidi@hook@acma\@empty
4534 \gdef\bidi@hook@acma{%
4535 \renewcommand*{\bidi@AfterReadingMainAux}[1]{####1}%
4536 \let\protected@write\bidi@protected@immediate@write
4537 }%
4538 \fi

File biditools.sty 95
4539 \g@addto@macro\bidi@hook@acma%
4540 }
4541
4542 \long\def\bidi@protected@immediate@write#1#2#3{%
4543 \begingroup
4544 #2%
4545 \let\protect\@unexpandable@protect
4546 \edef\reserved@a{\immediate\write#1{#3}}%
4547 \reserved@a
4548 \endgroup
4549 \if@nobreak\ifvmode\nobreak\fi\fi
4550 }
4551
4552 \def\bidi@patch@counter{0}%
4553 \if@bidi@csundef{numexpr}{%
4554 \def\bidi@patch@stepcounter{%
4555 \begingroup
4556 \count@\bidi@patch@counter\relax
4557 \advance\count@\@ne\relax
4558 \edef\x{\endgroup
4559 \noexpand\def\noexpand\bidi@patch@counter{\the\count@}%
4560 }%
4561 \x
4562 }%
4563 }{%
4564 \def\bidi@patch@stepcounter{%
4565 \edef\bidi@patch@counter{%
4566 \the\numexpr\bidi@patch@counter+\@ne\relax
4567 }%
4568 }%
4569 }
4570 \def\bidi@patch@list{}
4571 \def\bidi@patch@Add{%
4572 \bidi@appto\bidi@patch@list
4573 }
4574 \def\bidi@patch@AfterPackage#1{%
4575 \@ifpackageloaded{#1}{%
4576 \@firstofone
4577 }{%
4578 \@bidi@patch@AfterPackage{#1}%
4579 }%
4580 }
4581 \def\@bidi@patch@AfterPackage#1{%
4582 \edef\bidi@patch@temp{#1}%
4583 \bidi@patch@stepcounter
4584 \expandafter\bidi@patch@@AfterPackage
4585 \csname @bidi@patch@\bidi@patch@counter\expandafter\endcsname{%
4586 \bidi@patch@temp
4587 }%
4588 }

File biditools.sty 96
4589 \def\bidi@patch@@AfterPackage#1#2#3{%
4590 \begingroup
4591 \toks@{#3}%
4592 \xdef\bidi@patch@gtemp{%
4593 \noexpand\@ifpackageloaded{#2}{%
4594 \noexpand\let\noexpand#1\noexpand\relax
4595 \the\toks@
4596 }{}%
4597 }%
4598 \endgroup
4599 \let#1\bidi@patch@gtemp
4600 \bidi@patch@Add#1%
4601 \bidi@patch@try{bidi@AfterPackage}{#2}#1%
4602 }
4603
4604 \def\bidi@patch@try#1#2#3{%
4605 \if@bidi@csundef{#1}{}{%
4606 \csname #1\endcsname{#2}{#3}%
4607 }%
4608 }
4609
4610 \AtBeginDocument{\bidi@patch@list}
4611
4612 \bidi@AtEndPreamble{\bidi@patch@list}%
4613
4614 \bidi@AfterEndPreamble{%
4615 \let\bidi@patch@OrgIfPackageLoaded\@ifpackageloaded
4616 \let\bidi@patch@OrgIfPackageLater\@ifpackagelater
4617 \let\bidi@patch@OrgIfClassLoaded\@ifclassloaded
4618 \let\bidi@patch@OrgIfClassLater\@ifclasslater
4619 \bidi@patch@list
4620 \let\@ifpackageloaded\bidi@patch@OrgIfPackageLoaded
4621 \let\@ifpackagelater\bidi@patch@OrgIfPackageLater
4622 \let\@ifclassloaded\bidi@patch@OrgIfClassLoaded
4623 \let\@ifclasslater\bidi@patch@OrgIfClassLater
4624 }%

22 File bidituftefloat.sty
4625 \NeedsTeXFormat{LaTeX2e}
4626 \ProvidesPackage{bidituftefloat}[2017/05/19 v0.2
4627 bidi implementation of tufte float]
4628 \RequirePackage{xifthen}
4629 \newcommand{\@bidituftefloat@pkgname}{bidituftefloat}
4630 \newcommand{\bidituftefloatError}[2]{\PackageError{\@bidituftefloat@pkgname}{#1}{#2}}
4631 \newcommand{\bidituftefloatDebugInfoNL}[1]{\ifthenelse{\boolean{@bidituftefloat@debug}}{\bidit
4632 \newcommand{\bidituftefloatInfoNL}[1]{\PackageInfo{\@bidituftefloat@pkgname}{#1\@gobble}}
4633 \newboolean{@bidituftefloat@reversegeometry}
4634 \setboolean{@bidituftefloat@reversegeometry}{false}
4635 \DeclareOption{reversegeometry}{\setboolean{@bidituftefloat@reversegeometry}{true}}

File bidituftefloat.sty 97
4636 \newboolean{@bidituftefloat@afourpaper}
4637 \DeclareOption{a4paper}{\setboolean{@bidituftefloat@afourpaper}{true}}
4638 \newboolean{@bidituftefloat@bfivepaper}
4639 \DeclareOption{b5paper}{\setboolean{@bidituftefloat@bfivepaper}{true}}
4640 \newboolean{@bidituftefloat@symmetric}
4641 \newboolean{@bidituftefloat@twoside}
4642 \DeclareOption{twoside}{%
4643 \@twosidetrue \@mparswitchtrue%
4644 \setboolean{@bidituftefloat@twoside}{true}%
4645 \setboolean{@bidituftefloat@symmetric}{true}%
4646 }
4647 \DeclareOption{oneside}{%
4648 \@twosidefalse \@mparswitchfalse%
4649 \setboolean{@bidituftefloat@twoside}{false}%
4650 \setboolean{@bidituftefloat@symmetric}{false}%
4651 }
4652 \@ifclassloaded{book}{\ExecuteOptions{twoside}}{}
4653 \newboolean{@bidituftefloat@debug}
4654 \newcommand*{\@bidituftefloat@caption@justification}{\@bidituftefloat@justification@autodetect
4655 \ProcessOptions
4656 %% Globally sets the length
4657 \newcommand*{\gsetlength}[2]{%
4658 \setlength{#1}{#2}%
4659 \global#1=#1\relax%
4660 }
4661
4662 %% Set the font sizes and baselines to match bidituftefloat's books
4663 \renewcommand\normalsize{%
4664 \@setfontsize\normalsize\@xpt{14}%
4665 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
4666 \abovedisplayshortskip \z@ \@plus3\p@
4667 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
4668 \belowdisplayskip \abovedisplayskip
4669 \let\@listi\@listI}
4670 \normalbaselineskip=14pt
4671 \normalsize
4672 \renewcommand\footnotesize{%
4673 \@setfontsize\footnotesize\@viiipt{10}%
4674 \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
4675 \abovedisplayshortskip \z@ \@plus\p@
4676 \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
4677 \def\@listi{\leftmargin\leftmargini
4678 \topsep 3\p@ \@plus\p@ \@minus\p@
4679 \parsep 2\p@ \@plus\p@ \@minus\p@
4680 \itemsep \parsep}%
4681 \belowdisplayskip \abovedisplayskip
4682 }
4683 %% Paragraph indentation and separation for marginal text
4684 \newcommand{\@bidituftefloat@margin@par}{%
4685 \setlength{\RaggedRightParindent}{0.5pc}%

File bidituftefloat.sty 98
4686 \setlength{\JustifyingParindent}{0.5pc}%
4687 \setlength{\parindent}{0.5pc}%
4688 \setlength{\parskip}{0pt}%
4689 }
4690 \RequirePackage{ragged2e}
4691 \ifthenelse{\boolean{@bidituftefloat@reversegeometry}}{%
4692 \RequirePackage[letterpaper,right=1in,top=1in,headsep=2\baselineskip,textwidth=26pc,marginpars
4693 \ifthenelse{\boolean{@bidituftefloat@afourpaper}}
4694 {\geometry{a4paper,right=24.8mm,top=27.4mm,headsep=2\baselineskip,textwidth=107mm,marginpars
4695 {}
4696 \ifthenelse{\boolean{@bidituftefloat@bfivepaper}}
4697 {\geometry{paperwidth=176mm,paperheight=250mm,right=14.66mm,top=13.88mm,textwidth=102.66mm,m
4698 {}}{%
4699 \RequirePackage[letterpaper,left=1in,top=1in,headsep=2\baselineskip,textwidth=26pc,marginparse
4700 \ifthenelse{\boolean{@bidituftefloat@afourpaper}}
4701 {\geometry{a4paper,left=24.8mm,top=27.4mm,headsep=2\baselineskip,textwidth=107mm,marginparse
4702 {}
4703 \ifthenelse{\boolean{@bidituftefloat@bfivepaper}}
4704 {\geometry{paperwidth=176mm,paperheight=250mm,left=14.66mm,top=13.88mm,textwidth=102.66mm,ma
4705 {}}
4706 \ifthenelse{\boolean{@bidituftefloat@symmetric}}
4707 {}
4708 {\geometry{asymmetric}}% forces internal LaTeX `twoside'
4709 \setlength\marginparpush{10pt}
4710 %% Font for margin items
4711 \newcommand{\@bidituftefloat@marginfont}{\normalfont\footnotesize}
4712 \newcommand*{\@bidituftefloat@caption@font}{\@bidituftefloat@marginfont}
4713 \newcommand*{\setcaptionfont}[1]{\renewcommand*{\@bidituftefloat@caption@font}{#1}}
4714 \newcommand{\@bidituftefloat@justification}{\justifying}%
4715 \setlength\abovedisplayskip{6pt plus 2pt minus 4pt}
4716 \setlength\belowdisplayskip{6pt plus 2pt minus 4pt}
4717 \newboolean{@bidituftefloat@changepage}
4718 \IfFileExists{changepage.sty}{%
4719 \bidituftefloatDebugInfoNL{Found changepage.sty}
4720 \RequirePackage[strict]{changepage}
4721 \setboolean{@bidituftefloat@changepage}{true}
4722 }{%
4723 \bidituftefloatDebugInfoNL{Found chngpage.sty}
4724 \RequirePackage[strict]{chngpage}
4725 \setboolean{@bidituftefloat@changepage}{false}
4726 }
4727 \newboolean{@bidituftefloat@odd@page}
4728 \setboolean{@bidituftefloat@odd@page}{true}
4729 \newcommand*{\@bidituftefloat@checkoddpage}{%
4730 \checkoddpage%
4731 \ifthenelse{\boolean{@bidituftefloat@changepage}}{%
4732 \ifoddpage%
4733 \setboolean{@bidituftefloat@odd@page}{true}%
4734 \else%
4735 \setboolean{@bidituftefloat@odd@page}{false}%

File bidituftefloat.sty 99
4736 \fi%
4737 }{%
4738 \ifcpoddpage%
4739 \setboolean{@bidituftefloat@odd@page}{true}%
4740 \else%
4741 \setboolean{@bidituftefloat@odd@page}{false}%
4742 \fi%
4743 }%
4744 }
4745 \newlength{\@bidituftefloat@overhang}% used by the fullwidth environment and the running heads
4746 \newlength{\@bidituftefloat@fullwidth}
4747 \newlength{\@bidituftefloat@caption@fill}
4748 \newcommand{\bidituftefloatRecalculate}{%
4749 \setlength{\@bidituftefloat@overhang}{\marginparwidth}
4750 \addtolength{\@bidituftefloat@overhang}{\marginparsep}
4751
4752 \setlength{\@bidituftefloat@fullwidth}{\textwidth}
4753 \addtolength{\@bidituftefloat@fullwidth}{\marginparsep}
4754 \addtolength{\@bidituftefloat@fullwidth}{\marginparwidth}
4755
4756 \setlength{\@bidituftefloat@caption@fill}{\textwidth}
4757 \addtolength{\@bidituftefloat@caption@fill}{\marginparsep}
4758 }
4759 \AtBeginDocument{\bidituftefloatRecalculate}
4760 \RequirePackage{optparams}% provides multiple optional arguments for commands
4761 \RequirePackage{placeins}
4762 \newsavebox{\@bidituftefloat@margin@floatbox}
4763 \newenvironment{@bidituftefloat@margin@float}[2][-1.2ex]%
4764 {\FloatBarrier% process all floats before this point so the figure/table numbers stay in ord
4765 \begin{lrbox}{\@bidituftefloat@margin@floatbox}%
4766 \begin{minipage}{\marginparwidth}%
4767 \@bidituftefloat@caption@font%
4768 \def\@captype{#2}%
4769 \hbox{}\vspace*{#1}%
4770 \@bidituftefloat@caption@justification%
4771 \@bidituftefloat@margin@par%
4772 \noindent%
4773 }
4774 {\end{minipage}%
4775 \end{lrbox}%
4776 \marginpar{\usebox{\@bidituftefloat@margin@floatbox}}%
4777 }
4778 \newenvironment{marginfigure}[1][-1.2ex]%
4779 {\begin{@bidituftefloat@margin@float}[#1]{figure}}
4780 {\end{@bidituftefloat@margin@float}}
4781 \newenvironment{margintable}[1][-1.2ex]%
4782 {\begin{@bidituftefloat@margin@float}[#1]{table}}
4783 {\end{@bidituftefloat@margin@float}}
4784 \newcommand*{\@bidituftefloat@justification@autodetect}{\justifying}%
4785

File bidituftefloat.sty 100


4786 \newcommand{\@bidituftefloat@float@debug@info}{}% contains debug info generated as the float i
4787 \newcommand{\@bidituftefloat@float@debug}[1]{% adds debug info to the queue for output
4788 \ifthenelse{\equal{\@bidituftefloat@float@debug@info}{}}%
4789 {\def\@bidituftefloat@float@debug@info{#1}}%
4790 {\g@addto@macro\@bidituftefloat@float@debug@info{\MessageBreak#1}}%
4791 }
4792 \newcommand{\floatalignment}{x}% holds the current float alignment (t, b, h, p)
4793 \newcommand{\setfloatalignment}[1]{\global\def\floatalignment{#1}\@bidituftefloat@float@debug{
4794 \newboolean{@bidituftefloat@float@recto}
4795 \newcommand{\forcerectofloat}{\GlobalSetBoolean{@bidituftefloat@float@recto}{true}\@bidituftef
4796 \newcommand{\forceversofloat}{\GlobalSetBoolean{@bidituftefloat@float@recto}{false}\@biditufte
4797 \newsavebox{\@bidituftefloat@figure@box}
4798 \newsavebox{\@bidituftefloat@caption@box}
4799 \let\@bidituftefloat@orig@float\@float
4800 \let\@bidituftefloat@orig@endfloat\end@float
4801 \newlength{\@bidituftefloat@caption@vertical@offset}
4802 \setlength{\@bidituftefloat@caption@vertical@offset}{0pt}
4803 \newcommand{\@bidituftefloat@stored@shortcaption}{}
4804 \newcommand{\@bidituftefloat@stored@caption}{}
4805 \newcommand{\@bidituftefloat@stored@label}{}
4806 \long\def\@bidituftefloat@caption[#1][#2]#3{%
4807 \ifthenelse{\isempty{#1}}%
4808 {\gdef\@bidituftefloat@stored@shortcaption{#3}}%
4809 {\gdef\@bidituftefloat@stored@shortcaption{#1}}%
4810 \gsetlength{\@bidituftefloat@caption@vertical@offset}{-#2}% we want a positive offset to low
4811 \gdef\@bidituftefloat@stored@caption{#3}%
4812 }
4813 \newcommand{\@bidituftefloat@label}[1]{%
4814 \gdef\@bidituftefloat@stored@label{#1}%
4815 }
4816 \newcommand{\@bidituftefloat@fps}{}
4817 \newboolean{@bidituftefloat@float@star}
4818 \newlength{\@bidituftefloat@float@contents@width}
4819 \newenvironment{@bidituftefloat@float}[3][htbp]%
4820 {% begin @bidituftefloat@float
4821 % Should this float be full-width or just text-width?
4822 \ifthenelse{\equal{#3}{star}}%
4823 {\GlobalSetBoolean{@bidituftefloat@float@star}{true}}%
4824 {\GlobalSetBoolean{@bidituftefloat@float@star}{false}}%
4825 % Check page side (recto/verso) and store detected value -- can be overriden in environmen
4826 \@bidituftefloat@checkoddpage%
4827 \ifthenelse{\boolean{@bidituftefloat@odd@page}}%
4828 {\GlobalSetBoolean{@bidituftefloat@float@recto}{true}\@bidituftefloat@float@debug{Detect
4829 {\GlobalSetBoolean{@bidituftefloat@float@recto}{false}\@bidituftefloat@float@debug{Detec
4830 % If the float placement specifier is 'b' and only 'b', then bottom-align the mini-pages,
4831 \renewcommand{\@bidituftefloat@fps}{#1}%
4832 \@bidituftefloat@float@debug{Allowed positions: [#1]}%
4833 \ifthenelse{\equal{#1}{b}\OR\equal{#1}{B}}%
4834 {\renewcommand{\floatalignment}{b}\@bidituftefloat@float@debug{Presumed position: [botto
4835 {\renewcommand{\floatalignment}{t}\@bidituftefloat@float@debug{Presumed position: [top]}

File bidituftefloat.sty 101


4836 % Capture the contents of the \caption and \label commands to use later
4837 \global\let\@bidituftefloat@orig@caption\caption%
4838 \global\let\@bidituftefloat@orig@label\label%
4839 \renewcommand{\caption}{\optparams{\@bidituftefloat@caption}{[][0pt]}}%
4840 \renewcommand{\label}[1]{\@bidituftefloat@label{##1}}%
4841 % Handle subfigure package compatibility
4842 \ifthenelse{\boolean{@bidituftefloat@packages@subfigure}}{%
4843 \bidi@patchcmd{\subfigure}{%
4844 \let\subfig@oldlabel=\label
4845 }{%
4846 \let\subfig@oldlabel=\@bidituftefloat@orig@label
4847 }
4848 {}
4849 {}
4850 \let\subtable=\subfigure
4851 }{}% subfigure package is not loaded
4852 \@bidituftefloat@orig@float{#2}[#1]%
4853 \ifthenelse{\boolean{@bidituftefloat@float@star}}%
4854 {\setlength{\@bidituftefloat@float@contents@width}{\@bidituftefloat@fullwidth}}%
4855 {\setlength{\@bidituftefloat@float@contents@width}{\textwidth}}%
4856 \begin{lrbox}{\@bidituftefloat@figure@box}%
4857 \begin{minipage}[\floatalignment]{\@bidituftefloat@float@contents@width}\hbox{}%
4858 }{% end @bidituftefloat@float
4859 \par\hbox{}\vspace{-\baselineskip}\ifthenelse{\prevdepth>0}{\vspace{-\prevdepth}}{}% ali
4860 \end{minipage}%
4861 \end{lrbox}%
4862 % build the caption box
4863 \begin{lrbox}{\@bidituftefloat@caption@box}%
4864 \begin{minipage}[\floatalignment]{\marginparwidth}\hbox{}%
4865 \ifthenelse{\NOT\equal{\@bidituftefloat@stored@caption}{}}{\@bidituftefloat@orig@capti
4866 \ifthenelse{\NOT\equal{\@bidituftefloat@stored@label}{}}{\@bidituftefloat@orig@label{\
4867 \par\vspace{-\prevdepth}%% TODO: DOUBLE-CHECK FOR SAFETY
4868 \end{minipage}%
4869 \end{lrbox}%
4870 % now typeset the stored boxes
4871 \begin{fullwidth}%
4872 \begin{minipage}[\floatalignment]{\linewidth}%
4873 \ifthenelse{\boolean{@bidituftefloat@float@star}}%
4874 {\@bidituftefloat@float@fullwidth[\@bidituftefloat@caption@vertical@offset]{\@biditu
4875 {\@bidituftefloat@float@textwidth[\@bidituftefloat@caption@vertical@offset]{\@biditu
4876 \end{minipage}%
4877 \end{fullwidth}%
4878 \@bidituftefloat@orig@endfloat% end original LaTeX float environment
4879 % output debug info
4880 \ifthenelse{\boolean{@bidituftefloat@debug}}{%
4881 \typeout{^^J^^J----------- bidituftefloat package float information ----------}%
4882 \ifthenelse{\equal{\@bidituftefloat@stored@label}{}}%
4883 {\typeout{Warning: Float unlabeled!}}%
4884 {\typeout{Float label: [\@bidituftefloat@stored@label]}}%
4885 \typeout{Page number: [\thepage]}%

File bidituftefloat.sty 102


4886 \def\MessageBreak{^^J}%
4887 \typeout{\@bidituftefloat@float@debug@info}%
4888 \ifthenelse{\boolean{@bidituftefloat@symmetric}}%
4889 {\typeout{Symmetric: [true]}}%
4890 {\typeout{Symmetric: [false]}}%
4891 \typeout{----------------------------------------------------^^J^^J}%
4892 }{}%
4893 % reset commands and temp boxes and captions
4894 \gdef\@bidituftefloat@float@debug@info{}%
4895 \let\caption\@bidituftefloat@orig@caption%
4896 \let\label\@bidituftefloat@orig@label%
4897 \begin{lrbox}{\@bidituftefloat@figure@box}\hbox{}\end{lrbox}%
4898 \begin{lrbox}{\@bidituftefloat@caption@box}\hbox{}\end{lrbox}%
4899 \gdef\@bidituftefloat@stored@shortcaption{}%
4900 \gdef\@bidituftefloat@stored@caption{}%
4901 \gdef\@bidituftefloat@stored@label{}%
4902 \gsetlength{\@bidituftefloat@caption@vertical@offset}{0pt}% reset caption offset
4903 }
4904 \newcommand{\@bidituftefloat@float@textwidth}[3][0pt]{%
4905 \ifthenelse{\NOT\boolean{@bidituftefloat@symmetric}\OR\boolean{@bidituftefloat@float@recto}}
4906 % asymmetric or page is odd, so caption is on the right
4907 \hbox{%
4908 \usebox{#2}%
4909 \hspace{\marginparsep}%
4910 \smash{\raisebox{#1}{\usebox{#3}}}%
4911 }
4912 \@bidituftefloat@float@debug{Caption position: [right]}%
4913 }{% symmetric pages and page is even, so caption is on the left
4914 \hbox{%
4915 \smash{\raisebox{#1}{\usebox{#3}}}%
4916 \hspace{\marginparsep}%
4917 \usebox{#2}%
4918 }
4919 \@bidituftefloat@float@debug{Caption position: [left]}%
4920 }%
4921 }
4922 \newcommand{\@bidituftefloat@float@fullwidth}[3][0pt]{%
4923 \ifthenelse{\equal{\floatalignment}{b}}%
4924 {% place caption above figure
4925 \ifthenelse{\NOT\boolean{@bidituftefloat@symmetric}\OR\boolean{@bidituftefloat@float@rec
4926 {\hfill\smash{\raisebox{#1}{\usebox{#3}}}\par\usebox{#2}\@bidituftefloat@float@debug{C
4927 {\smash{\raisebox{#1}{\usebox{#3}}}\hfill\par\usebox{#2}\@bidituftefloat@float@debug{C
4928 }{% place caption below figure
4929 \ifthenelse{\NOT\boolean{@bidituftefloat@symmetric}\OR\boolean{@bidituftefloat@float@rec
4930 {\usebox{#2}\par\hfill\smash{\raisebox{#1}{\usebox{#3}}}\@bidituftefloat@float@debug{C
4931 {\usebox{#2}\par\smash{\raisebox{#1}{\usebox{#3}}}\hfill\@bidituftefloat@float@debug{C
4932 }%
4933 }
4934 \renewenvironment{figure}[1][htbp]%
4935 {\ifvmode\else\unskip\fi\begin{@bidituftefloat@float}[#1]{figure}{}}

File bidituftefloat.sty 103


4936 {\end{@bidituftefloat@float}}
4937 \renewenvironment{table}[1][htbp]
4938 {\ifvmode\else\unskip\fi\begin{@bidituftefloat@float}[#1]{table}{}}
4939 {\end{@bidituftefloat@float}}
4940 \renewenvironment{figure*}[1][htbp]%
4941 {\ifvmode\else\unskip\fi\begin{@bidituftefloat@float}[#1]{figure}{star}}
4942 {\end{@bidituftefloat@float}}
4943 \renewenvironment{table*}[1][htbp]%
4944 {\ifvmode\else\unskip\fi\begin{@bidituftefloat@float}[#1]{table}{star}}
4945 {\end{@bidituftefloat@float}}
4946 \newenvironment{fullwidth}
4947 {\ifthenelse{\boolean{@bidituftefloat@symmetric}}%
4948 {\ifthenelse{\boolean{@bidituftefloat@changepage}}{\begin{adjustwidth*}{}{-\@biditufteflo
4949 {\begin{adjustwidth}{}{-\@bidituftefloat@overhang}}%
4950 }%
4951 {\ifthenelse{\boolean{@bidituftefloat@symmetric}}%
4952 {\ifthenelse{\boolean{@bidituftefloat@changepage}}{\end{adjustwidth*}}{\end{adjustwidth}}}
4953 {\end{adjustwidth}}%
4954 }
4955 \long\def\@caption#1[#2]#3{%
4956 \par%
4957 \addcontentsline{\csname ext@#1\endcsname}{#1}%
4958 {\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}%
4959 \begingroup%
4960 \@parboxrestore%
4961 \if@minipage%
4962 \@setminipage%
4963 \fi%
4964 \@bidituftefloat@caption@font\@bidituftefloat@caption@justification%
4965 \noindent\csname fnum@#1\endcsname: \ignorespaces#3\par%
4966 %\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
4967 \endgroup}
4968 %%
4969 % Turns newlines into spaces. Based on code from the `titlesec' package.
4970 \DeclareRobustCommand{\@biditufteheading@newlinetospace}{%
4971 \@ifstar{\@biditufteheading@newlinetospace@i}{\@biditufteheading@newlinetospace@i}%
4972 }
4973 \def\@biditufteheading@newlinetospace@i{%
4974 \ifdim\lastskip>\z@\else\space\fi
4975 \ignorespaces%
4976 }
4977 \DeclareRobustCommand{\newlinetospace}[1]{%
4978 \let\@biditufteheading@orig@cr\\% save the original meaning of \\
4979 \def\\{\@biditufteheading@newlinetospace}% turn \\ and \\* into \space
4980 \let\newline\\% turn \newline into \space
4981 #1%
4982 \let\\\@biditufteheading@orig@cr% revert to original meaning of \\
4983 }
4984 \RequirePackage{fancyhdr}
4985 \pagestyle{fancy}

File bidituftefloat.sty 104


4986 \AtBeginDocument{%
4987 \ifthenelse{\boolean{@bidituftefloat@symmetric}}
4988 {\fancyhfoffset[LE,RO]{\@bidituftefloat@overhang}}
4989 {\fancyhfoffset[RE,RO]{\@bidituftefloat@overhang}}
4990 }
4991 % The running heads/feet don't have rules
4992 \renewcommand{\headrulewidth}{0pt}
4993 \renewcommand{\footrulewidth}{0pt}
4994 % The 'fancy' page style is the default style for all pages.
4995 \fancyhf{} % clear header and footer fields
4996 \ifthenelse{\boolean{@bidituftefloat@symmetric}}
4997 {\fancyhead[LE]{\thepage\quad\textsl{\newlinetospace{\plainauthor}}}%
4998 \fancyhead[RO]{\textsl{\newlinetospace{\plaintitle}}\quad\thepage}}%
4999 {\fancyhead[RE,RO]{\textsl{\newlinetospace{\plaintitle}}\quad\thepage}}%
5000 % The `plain' page style is used on chapter opening pages.
5001 % In Tufte's /Beautiful Evidence/ he never puts page numbers at the
5002 % bottom of pages -- the folios are unexpressed.
5003 \fancypagestyle{plain}{
5004 \fancyhf{} % clear header and footer fields
5005 % Uncomment the following five lines of code if you want the opening page
5006 % of the chapter to express the folio in the lower outside corner.
5007 % \ifthenelse{\boolean{@bidituftefloat@symmetric}}
5008 % {\fancyfoot[LE,RO]{\thepage}}
5009 % {\fancyfoot[RE,RO]{\thepage}}
5010 }
5011 % The `empty' page style suppresses all headers and footers.
5012 % It's used on title pages and `intentionally blank' pages.
5013 \fancypagestyle{empty}{
5014 \fancyhf{} % clear header and footer fields
5015 }
5016 \def\morefloats{% provides a total of 52 floats
5017 \ifthenelse{\isundefined{\bx@S}}{%
5018 \bidituftefloatDebugInfoNL{Adding 34 more float slots.}
5019 \newinsert\bx@S
5020 \newinsert\bx@T
5021 \newinsert\bx@U
5022 \newinsert\bx@V
5023 \newinsert\bx@W
5024 \newinsert\bx@X
5025 \newinsert\bx@Y
5026 \newinsert\bx@Z
5027 \newinsert\bx@a
5028 \newinsert\bx@b
5029 \newinsert\bx@c
5030 \newinsert\bx@d
5031 \newinsert\bx@e
5032 \newinsert\bx@f
5033 \newinsert\bx@g
5034 \newinsert\bx@h
5035 \newinsert\bx@i

File bidituftefloat.sty 105


5036 \newinsert\bx@j
5037 \newinsert\bx@k
5038 \newinsert\bx@l
5039 \newinsert\bx@m
5040 \newinsert\bx@n
5041 \newinsert\bx@o
5042 \newinsert\bx@p
5043 \newinsert\bx@q
5044 \newinsert\bx@r
5045 \newinsert\bx@s
5046 \newinsert\bx@t
5047 \newinsert\bx@u
5048 \newinsert\bx@v
5049 \newinsert\bx@w
5050 \newinsert\bx@x
5051 \newinsert\bx@y
5052 \newinsert\bx@z
5053 \gdef\@freelist{\@elt\bx@A\@elt\bx@B\@elt\bx@C\@elt\bx@D\@elt\bx@E
5054 \@elt\bx@F\@elt\bx@G\@elt\bx@H\@elt\bx@I\@elt\bx@J
5055 \@elt\bx@K\@elt\bx@L\@elt\bx@M\@elt\bx@N
5056 \@elt\bx@O\@elt\bx@P\@elt\bx@Q\@elt\bx@R
5057 \@elt\bx@S\@elt\bx@T\@elt\bx@U\@elt\bx@V
5058 \@elt\bx@W\@elt\bx@X\@elt\bx@Y\@elt\bx@Z
5059 \@elt\bx@a\@elt\bx@b\@elt\bx@c\@elt\bx@d\@elt\bx@e
5060 \@elt\bx@f\@elt\bx@g\@elt\bx@h\@elt\bx@i\@elt\bx@j
5061 \@elt\bx@k\@elt\bx@l\@elt\bx@m\@elt\bx@n
5062 \@elt\bx@o\@elt\bx@p\@elt\bx@q\@elt\bx@r
5063 \@elt\bx@s\@elt\bx@t\@elt\bx@u\@elt\bx@v
5064 \@elt\bx@w\@elt\bx@x\@elt\bx@y\@elt\bx@z}%
5065 }{% we've already added another 34 floats, so we'll add 26 more, but that's it!
5066 \ifthenelse{\isundefined{\bx@AA}}{%
5067 \bidituftefloatDebugInfoNL{Adding 26 more float slots.}
5068 \newinsert\bx@AA
5069 \newinsert\bx@BB
5070 \newinsert\bx@CC
5071 \newinsert\bx@DD
5072 \newinsert\bx@EE
5073 \newinsert\bx@FF
5074 \newinsert\bx@GG
5075 \newinsert\bx@HH
5076 \newinsert\bx@II
5077 \newinsert\bx@JJ
5078 \newinsert\bx@KK
5079 \newinsert\bx@LL
5080 \newinsert\bx@MM
5081 \newinsert\bx@NN
5082 \newinsert\bx@OO
5083 \newinsert\bx@PP
5084 \newinsert\bx@QQ
5085 \newinsert\bx@RR

File bidituftefloat.sty 106


5086 \newinsert\bx@SS
5087 \newinsert\bx@TT
5088 \newinsert\bx@UU
5089 \newinsert\bx@VV
5090 \newinsert\bx@WW
5091 \newinsert\bx@XX
5092 \newinsert\bx@YY
5093 \newinsert\bx@ZZ
5094 \gdef\@freelist{\@elt\bx@A\@elt\bx@B\@elt\bx@C\@elt\bx@D\@elt\bx@E
5095 \@elt\bx@F\@elt\bx@G\@elt\bx@H\@elt\bx@I\@elt\bx@J
5096 \@elt\bx@K\@elt\bx@L\@elt\bx@M\@elt\bx@N
5097 \@elt\bx@O\@elt\bx@P\@elt\bx@Q\@elt\bx@R
5098 \@elt\bx@S\@elt\bx@T\@elt\bx@U\@elt\bx@V
5099 \@elt\bx@W\@elt\bx@X\@elt\bx@Y\@elt\bx@Z
5100 \@elt\bx@a\@elt\bx@b\@elt\bx@c\@elt\bx@d\@elt\bx@e
5101 \@elt\bx@f\@elt\bx@g\@elt\bx@h\@elt\bx@i\@elt\bx@j
5102 \@elt\bx@k\@elt\bx@l\@elt\bx@m\@elt\bx@n
5103 \@elt\bx@o\@elt\bx@p\@elt\bx@q\@elt\bx@r
5104 \@elt\bx@s\@elt\bx@t\@elt\bx@u\@elt\bx@v
5105 \@elt\bx@w\@elt\bx@x\@elt\bx@y\@elt\bx@z
5106 \@elt\bx@AA\@elt\bx@BB\@elt\bx@CC\@elt\bx@DD\@elt\bx@EE
5107 \@elt\bx@FF\@elt\bx@GG\@elt\bx@HH\@elt\bx@II\@elt\bx@JJ
5108 \@elt\bx@KK\@elt\bx@LL\@elt\bx@MM\@elt\bx@NN
5109 \@elt\bx@OO\@elt\bx@PP\@elt\bx@QQ\@elt\bx@RR
5110 \@elt\bx@SS\@elt\bx@TT\@elt\bx@UU\@elt\bx@VV
5111 \@elt\bx@WW\@elt\bx@XX\@elt\bx@YY\@elt\bx@ZZ}%
5112 }{%
5113 \bidituftefloatError{You may only call \string\morefloats\space twice. See the\MessageBr
5114 {There are already 78 float slots allocated. Try using \string\FloatBarrier\space or\M
5115 }%
5116 }%
5117 }
5118 \newboolean{@bidituftefloat@packages@subfigure}
5119 \setboolean{@bidituftefloat@packages@subfigure}{false}
5120 \AtBeginDocument{%
5121 \@ifpackageloaded{subfigure}
5122 {\GlobalSetBoolean{@bidituftefloat@packages@subfigure}{true}}
5123 {\GlobalSetBoolean{@bidituftefloat@packages@subfigure}{false}}%
5124 }
5125 \AtBeginDocument{%
5126 \@ifpackageloaded{float}{%
5127 % Save the redefined float environment (instead of the LaTeX float environment)
5128 \let\@bidituftefloat@orig@float\@float
5129 \let\@bidituftefloat@orig@endfloat\end@float
5130
5131 % Define Tuftian float styles (with the caption in the margin)
5132 \newcommand{\floatc@bidituftefloatplain}[2]{%
5133 \begin{lrbox}{\@bidituftefloat@caption@box}%
5134 \begin{minipage}[\floatalignment]{\marginparwidth}\hbox{}%
5135 \@bidituftefloat@caption@font{\@fs@cfont #1:} #2\par%

File bidituftefloat.sty 107


5136 \end{minipage}%
5137 \end{lrbox}%
5138 \smash{\hspace{\@bidituftefloat@caption@fill}\usebox{\@bidituftefloat@caption@box}}%
5139 }
5140 \newcommand{\fs@bidituftefloatplain}{%
5141 \def\@fs@cfont{\@bidituftefloat@caption@font}%
5142 \let\@fs@capt\floatc@bidituftefloatplain%
5143 \def\@fs@pre{}%
5144 \def\@fs@post{}%
5145 \def\@fs@mid{}%
5146 \let\@fs@iftopcapt\iftrue%
5147 }
5148 \let\fs@bidituftefloatplaintop=\fs@bidituftefloatplain
5149 \let\floatc@bidituftefloatplaintop=\floatc@bidituftefloatplain
5150 \newcommand\floatc@bidituftefloatruled[2]{%
5151 {\@fs@cfont #1} #2\par%
5152 }
5153 \newcommand\fs@bidituftefloatruled{%
5154 \def\@fs@cfont{\@bidituftefloat@caption@font}%
5155 \let\@fs@capt\floatc@bidituftefloatplain%
5156 \def\@fs@pre{\hrule height.8pt depth0pt width\textwidth \kern2pt}%
5157 \def\@fs@post{\kern2pt\hrule width\textwidth\relax}%
5158 \def\@fs@mid{}%
5159 \let\@fs@iftopcapt\iftrue%
5160 }
5161 \newcommand\fs@bidituftefloatboxed{%
5162 \def\@fs@cfont{}%
5163 \let\@fs@capt\floatc@bidituftefloatplain%
5164 \def\@fs@pre{%
5165 \setbox\@currbox\vbox{\hbadness10000
5166 \moveleft3.4pt\vbox{\advance\hsize by6.8pt
5167 \hrule \hbox to\hsize{\vrule\kern3pt
5168 \vbox{\kern3pt\box\@currbox\kern3pt}\kern3pt\vrule}\hrule}}
5169 }%
5170 \def\@fs@mid{\kern2pt}%
5171 \def\@fs@post{}%
5172 \let\@fs@iftopcapt\iftrue%
5173 }
5174 }{%
5175 % Nothing to do
5176 }
5177 }
5178 \AtBeginDocument{%
5179 \@ifpackageloaded{algorithm}{%
5180 % Set the float style to the Tuftian version
5181 \ifthenelse{\equal{\ALG@floatstyle}{plain}\OR\equal{\ALG@floatstyle}{ruled}\OR\equal{\ALG@
5182 \bidituftefloatInfoNL{Switching algorithm float style from \ALG@floatstyle\MessageBreak
5183 \floatstyle{bidituftefloat\ALG@floatstyle}%
5184 \restylefloat{algorithm}%
5185 }{}%

File bidituftefloat.sty 108


5186 }{%
5187 % Nothing to do
5188 }
5189 }
5190 \PassOptionsToPackage{caption=false}{subfig}

23 File bidituftesidenote.sty
5191 \NeedsTeXFormat{LaTeX2e}
5192 \ProvidesPackage{bidituftesidenote}[2017/08/09 v0.4
5193 bidi implementation of tufte sidenote]
5194 \RequirePackage{xifthen}
5195 \RequirePackage{ragged2e}
5196 \RequirePackage{setspace}
5197 \RequirePackage{biditools}
5198 \def\bidituftesidenotemarginpar{%
5199 \ifhmode
5200 \@bsphack
5201 \@floatpenalty -\@Mii
5202 \else
5203 \@floatpenalty-\@Miii
5204 \fi
5205 \ifinner
5206 \@parmoderr
5207 \@floatpenalty\z@
5208 \else
5209 \@next\@currbox\@freelist{}{}%
5210 \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
5211 {\@floatpenalty\z@
5212 \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
5213 \fi
5214 \@ifnextchar [\@bidituftesidenotexmpar\@bidituftesidenoteympar}
5215 \long\def\@bidituftesidenotexmpar[#1]#2{%
5216 \@bidituftesidenotesavemarbox\@marbox{#1}%
5217 \@bidituftesidenotesavemarbox\@currbox{#2}%
5218 \@xympar}
5219 \long\def\@bidituftesidenoteympar#1{%
5220 \@bidituftesidenotesavemarbox\@marbox{#1}%
5221 \global\setbox\@currbox\copy\@marbox
5222 \@xympar}
5223 \long\def \@bidituftesidenotesavemarbox #1#2{%
5224 \global\setbox #1%
5225 \color@vbox
5226 \vtop{%
5227 \hsize\marginparwidth
5228 \@parboxrestore
5229 \@bidituftesidenotemarginparreset
5230 #2%
5231 \@minipagefalse
5232 \outer@nobreak

File bidituftesidenote.sty 109


5233 }%
5234 \color@endbox
5235 }
5236 \def \@bidituftesidenotemarginparreset {%
5237 \reset@font
5238 \normalsize
5239 \@minipagetrue
5240 \everypar{\@minipagefalse\everypar{}\if@RTL@footnote\beginR\else\beginL\fi}%
5241 }
5242 \def\LTRbidituftesidenotemarginpar{%
5243 \ifhmode
5244 \@bsphack
5245 \@floatpenalty -\@Mii
5246 \else
5247 \@floatpenalty-\@Miii
5248 \fi
5249 \ifinner
5250 \@parmoderr
5251 \@floatpenalty\z@
5252 \else
5253 \@next\@currbox\@freelist{}{}%
5254 \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
5255 {\@floatpenalty\z@
5256 \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
5257 \fi
5258 \@ifnextchar [\@LTRbidituftesidenotexmpar\@LTRbidituftesidenoteympar}
5259 \long\def\@LTRbidituftesidenotexmpar[#1]#2{%
5260 \@LTRbidituftesidenotesavemarbox\@marbox{#1}%
5261 \@LTRbidituftesidenotesavemarbox\@currbox{#2}%
5262 \@xympar}
5263 \long\def\@LTRbidituftesidenoteympar#1{%
5264 \@LTRbidituftesidenotesavemarbox\@marbox{#1}%
5265 \global\setbox\@currbox\copy\@marbox
5266 \@xympar}
5267 \long\def \@LTRbidituftesidenotesavemarbox #1#2{%
5268 \global\setbox #1%
5269 \color@vbox
5270 \vtop{%
5271 \hsize\marginparwidth
5272 \@parboxrestore
5273 \@LTRbidituftesidenotemarginparreset
5274 #2%
5275 \@minipagefalse
5276 \outer@nobreak
5277 }%
5278 \color@endbox
5279 }
5280 \def \@LTRbidituftesidenotemarginparreset {%
5281 \reset@font
5282 \normalsize

File bidituftesidenote.sty 110


5283 \@minipagetrue
5284 \everypar{\@minipagefalse\everypar{}\beginL}%
5285 }
5286 \def\RTLbidituftesidenotemarginpar{%
5287 \ifhmode
5288 \@bsphack
5289 \@floatpenalty -\@Mii
5290 \else
5291 \@floatpenalty-\@Miii
5292 \fi
5293 \ifinner
5294 \@parmoderr
5295 \@floatpenalty\z@
5296 \else
5297 \@next\@currbox\@freelist{}{}%
5298 \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
5299 {\@floatpenalty\z@
5300 \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
5301 \fi
5302 \@ifnextchar [\@RTLbidituftesidenotexmpar\@RTLbidituftesidenoteympar}
5303 \long\def\@RTLbidituftesidenotexmpar[#1]#2{%
5304 \@RTLbidituftesidenotesavemarbox\@marbox{#1}%
5305 \@RTLbidituftesidenotesavemarbox\@currbox{#2}%
5306 \@xympar}
5307 \long\def\@RTLbidituftesidenoteympar#1{%
5308 \@RTLbidituftesidenotesavemarbox\@marbox{#1}%
5309 \global\setbox\@currbox\copy\@marbox
5310 \@xympar}
5311 \long\def \@RTLbidituftesidenotesavemarbox #1#2{%
5312 \global\setbox #1%
5313 \color@vbox
5314 \vtop{%
5315 \hsize\marginparwidth
5316 \@parboxrestore
5317 \@RTLbidituftesidenotemarginparreset
5318 #2%
5319 \@minipagefalse
5320 \outer@nobreak
5321 }%
5322 \color@endbox
5323 }
5324 \def \@RTLbidituftesidenotemarginparreset {%
5325 \reset@font
5326 \normalsize
5327 \@minipagetrue
5328 \everypar{\@minipagefalse\everypar{}\beginR}%
5329 }
5330 \newcommand*{\@bidituftesidenote@marginfont}{\normalfont\footnotesize}
5331 \newcommand*{\@bidituftesidenote@LTRmarginfont}{\normalfont\footnotesize}
5332 \newcommand*{\@bidituftesidenote@RTLmarginfont}{\normalfont\footnotesize}

File bidituftesidenote.sty 111


5333 \newcommand*{\@bidituftesidenote@sidenote@font}{\@bidituftesidenote@marginfont}
5334 \newcommand*{\@bidituftesidenote@LTRsidenote@font}{\@bidituftesidenote@LTRmarginfont}
5335 \newcommand*{\@bidituftesidenote@RTLsidenote@font}{\@bidituftesidenote@RTLmarginfont}
5336 \newcommand*{\@bidituftesidenote@marginnote@font}{\@bidituftesidenote@marginfont}
5337 \newcommand*{\@bidituftesidenote@LTRmarginnote@font}{\@bidituftesidenote@LTRmarginfont}
5338 \newcommand*{\@bidituftesidenote@RTLmarginnote@font}{\@bidituftesidenote@RTLmarginfont}
5339 \newcommand*{\@bidituftesidenote@citation@font}{\@bidituftesidenote@marginfont}
5340 \newcommand*{\@bidituftesidenote@LTRcitation@font}{\@bidituftesidenote@LTRmarginfont}
5341 \newcommand*{\@bidituftesidenote@RTLcitation@font}{\@bidituftesidenote@RTLmarginfont}
5342 \newcommand*{\setsidenotefont}[1]{\renewcommand*{\@bidituftesidenote@sidenote@font}{#1}}
5343 \newcommand*{\setLTRsidenotefont}[1]{\renewcommand*{\@bidituftesidenote@LTRsidenote@font}{#1}}
5344 \newcommand*{\setRTLsidenotefont}[1]{\renewcommand*{\@bidituftesidenote@RTLsidenote@font}{#1}}
5345 \newcommand*{\setmarginnotefont}[1]{\renewcommand*{\@bidituftesidenote@marginnote@font}{#1}}
5346 \newcommand*{\setLTRmarginnotefont}[1]{\renewcommand*{\@bidituftesidenote@LTRmarginnote@font}{
5347 \newcommand*{\setRTLmarginnotefont}[1]{\renewcommand*{\@bidituftesidenote@RTLmarginnote@font}{
5348 \newcommand*{\setcitationfont}[1]{\renewcommand*{\@bidituftesidenote@citation@font}{#1}}
5349 \newcommand*{\setLTRcitationfont}[1]{\renewcommand*{\@bidituftesidenote@LTRcitation@font}{#1}}
5350 \newcommand*{\setRTLcitationfont}[1]{\renewcommand*{\@bidituftesidenote@RTLcitation@font}{#1}}
5351 \newcommand*{\@bidituftesidenote@sidenote@justification}{\@bidituftesidenote@justification@aut
5352 \newcommand*{\@bidituftesidenote@marginnote@justification}{\@bidituftesidenote@justification@a
5353 \newcommand*{\@bidituftesidenote@citation@justification}{\@bidituftesidenote@justification@aut
5354 \newcommand*{\@bidituftesidenote@justification@autodetect}{\justifying}%
5355 \newcommand{\@bidituftesidenote@margin@par}{%
5356 \setlength{\RaggedRightParindent}{0.5pc}%
5357 \setlength{\JustifyingParindent}{0.5pc}%
5358 \setlength{\parindent}{0.5pc}%
5359 \setlength{\parskip}{0pt}%
5360 }
5361 %%
5362 % Globally sets the length
5363 \@ifundefined{gsetlength}{%
5364 \newcommand*{\gsetlength}[2]{%
5365 \setlength{#1}{#2}%
5366 \global#1=#1\relax%
5367 }%
5368 }{}
5369
5370 %%
5371 % A function that removes leading and trailling spaces from the supplied macro.
5372 % Based on code written by Michael Downes (See ``Around the Bend'', #15.)
5373 % Executing \@bidituftesidenote@trim@spaces\xyzzy will result in the contents of \xyzzy
5374 % being trimmed of leading and trailing white space.
5375 \catcode`\Q=3
5376 \def\@bidituftesidenote@trim@spaces#1{%
5377 % Use grouping to emulate a multi-token afterassignment queue
5378 \begingroup%
5379 % Put `\toks 0 {' into the afterassignment queue
5380 \aftergroup\toks\aftergroup0\aftergroup{%
5381 % Apply \trimb to the replacement text of #1, adding a leading
5382 % \noexpand to prevent brace stripping and to serve another purpose

File bidituftesidenote.sty 112


5383 % later.
5384 \expandafter\@bidituftesidenote@trim@b\expandafter\noexpand#1Q Q}%
5385 % Transfer the trimmed text back into #1.
5386 \edef#1{\the\toks0}%
5387 }
5388 % \trimb removes a trailing space if present, then calls \@bidituftesidenote@trim@c to
5389 % clean up any leftover bizarre Qs, and trim a leading space. In
5390 % order for \trimc to work properly we need to put back a Q first.
5391 \def\@bidituftesidenote@trim@b#1 Q{\@bidituftesidenote@trim@c#1Q}
5392 % Execute \vfuzz assignment to remove leading space; the \noexpand
5393 % will now prevent unwanted expansion of a macro or other expandable
5394 % token at the beginning of the trimmed text. The \endgroup will feed
5395 % in the \aftergroup tokens after the \vfuzz assignment is completed.
5396 \def\@bidituftesidenote@trim@c#1Q#2{\afterassignment\endgroup \vfuzz\the\vfuzz#1}
5397 \catcode`\Q=11
5398 %%
5399 % Citations should go in the margin as sidenotes
5400
5401 \RequirePackage{natbib}
5402 \RequirePackage{bibentry} % allows bibitems to be typeset outside thebibliography envir
5403 % Redefine the \BR@b@bibitem command to fix a bug with bibentry+chicago style
5404 \renewcommand\BR@b@bibitem[2][]{%
5405 \ifthenelse{\isempty{#1}}%
5406 {\BR@bibitem{#2}}%
5407 {\BR@bibitem[#1]{#2}}%
5408 \BR@c@bibitem{#2}%
5409 }
5410 \bidi@AtEndPreamble{\nobibliography*} % pre-loads the bibliography keys
5411 %%
5412 % Normal \cite behavior
5413 \newcounter{@bidituftesidenote@num@bibkeys}%
5414 \newcommand{\@bidituftesidenote@normal@cite}[2][0pt]{%
5415 % Snag the last bibentry in the list for later comparison
5416 \let\@temp@last@bibkey\@empty%
5417 \@for\@temp@bibkey:=#2\do{\let\@temp@last@bibkey\@temp@bibkey}%
5418 \sidenote[][#1]{%
5419 % Loop through all the bibentries, separating them with semicolons and spaces
5420 \normalsize\normalfont\@bidituftesidenote@citation@font%
5421 \setcounter{@bidituftesidenote@num@bibkeys}{0}%
5422 \@for\@temp@bibkeyx:=#2\do{%
5423 \ifthenelse{\equal{\@temp@last@bibkey}{\@temp@bibkeyx}}%
5424 {\ifthenelse{\equal{\value{@bidituftesidenote@num@bibkeys}}{0}}{}{and\ }%
5425 \@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
5426 \bibentry{\@temp@bibkeyx}}%
5427 {\@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
5428 \bibentry{\@temp@bibkeyx};\ }%
5429 \stepcounter{@bidituftesidenote@num@bibkeys}%
5430 }%
5431 }%
5432 }

File bidituftesidenote.sty 113


5433 \newcommand{\@biditufteLTRsidenote@normal@cite}[2][0pt]{%
5434 % Snag the last bibentry in the list for later comparison
5435 \let\@temp@last@bibkey\@empty%
5436 \@for\@temp@bibkey:=#2\do{\let\@temp@last@bibkey\@temp@bibkey}%
5437 \LTRsidenote[][#1]{%
5438 % Loop through all the bibentries, separating them with semicolons and spaces
5439 \normalsize\normalfont\@bidituftesidenote@LTRcitation@font%
5440 \setcounter{@bidituftesidenote@num@bibkeys}{0}%
5441 \@for\@temp@bibkeyx:=#2\do{%
5442 \ifthenelse{\equal{\@temp@last@bibkey}{\@temp@bibkeyx}}%
5443 {\ifthenelse{\equal{\value{@bidituftesidenote@num@bibkeys}}{0}}{}{and\ }%
5444 \@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
5445 \bibentry{\@temp@bibkeyx}}%
5446 {\@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
5447 \bibentry{\@temp@bibkeyx};\ }%
5448 \stepcounter{@bidituftesidenote@num@bibkeys}%
5449 }%
5450 }%
5451 }
5452 \newcommand{\@biditufteRTLsidenote@normal@cite}[2][0pt]{%
5453 % Snag the last bibentry in the list for later comparison
5454 \let\@temp@last@bibkey\@empty%
5455 \@for\@temp@bibkey:=#2\do{\let\@temp@last@bibkey\@temp@bibkey}%
5456 \RTLsidenote[][#1]{%
5457 % Loop through all the bibentries, separating them with semicolons and spaces
5458 \normalsize\normalfont\@bidituftesidenote@citation@font%
5459 \setcounter{@bidituftesidenote@num@bibkeys}{0}%
5460 \@for\@temp@bibkeyx:=#2\do{%
5461 \ifthenelse{\equal{\@temp@last@bibkey}{\@temp@bibkeyx}}%
5462 {\ifthenelse{\equal{\value{@bidituftesidenote@num@bibkeys}}{0}}{}{and\ }%
5463 \@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
5464 \bibentry{\@temp@bibkeyx}}%
5465 {\@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
5466 \bibentry{\@temp@bibkeyx};\ }%
5467 \stepcounter{@bidituftesidenote@num@bibkeys}%
5468 }%
5469 }%
5470 }
5471 %%
5472 % Macros for holding the list of cite keys until after the \sidenote
5473 \gdef\@bidituftesidenote@citations{}% list of cite keys
5474 \newcommand\@bidituftesidenote@add@citation[1]{\relax% adds a new bibkey to the list of cite k
5475 \ifx\@bidituftesidenote@citations\@empty\else
5476 \g@addto@macro\@bidituftesidenote@citations{,}% separate by commas
5477 \fi
5478 \g@addto@macro\@bidituftesidenote@citations{#1}
5479 }
5480 \newcommand{\@bidituftesidenote@print@citations}[1][0pt]{% puts the citations in a margin note
5481 % Snag the last bibentry in the list for later comparison
5482 \let\@temp@last@bibkey\@empty%

File bidituftesidenote.sty 114


5483 \@for\@temp@bibkey:=\@bidituftesidenote@citations\do{\let\@temp@last@bibkey\@temp@bibkey}%
5484 \marginpar{%
5485 \hbox{}\vspace*{#1}%
5486 \@bidituftesidenote@citation@font%
5487 \@bidituftesidenote@citation@justification%
5488 \@bidituftesidenote@margin@par% use parindent and parskip settings for marginal text
5489 \vspace*{-1\baselineskip}%
5490 % Loop through all the bibentries, separating them with semicolons and spaces
5491 \setcounter{@bidituftesidenote@num@bibkeys}{0}%
5492 \@for\@temp@bibkeyx:=\@bidituftesidenote@citations\do{%
5493 \ifthenelse{\equal{\@temp@last@bibkey}{\@temp@bibkeyx}}%
5494 {\ifthenelse{\equal{\value{@bidituftesidenote@num@bibkeys}}{0}}{}{and\ }%
5495 \@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
5496 \bibentry{\@temp@bibkeyx}}%
5497 {\@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
5498 \bibentry{\@temp@bibkeyx};\ }%
5499 \stepcounter{@bidituftesidenote@num@bibkeys}%
5500 }%
5501 }%
5502 }
5503 %%
5504 % \cite behavior when executed within a sidenote
5505 \newcommand{\@bidituftesidenote@sidenote@citations}{}% contains list of \cites in sidenote
5506 \newcommand{\@bidituftesidenote@infootnote@cite}[1]{%
5507 \@bidituftesidenote@add@citation{#1}
5508 }
5509 %%
5510 % Set the default \cite style. This is set and reset by the \sidenote command.
5511 \let\cite\@bidituftesidenote@normal@cite
5512 \let\LTRcite\@biditufteLTRsidenote@normal@cite
5513 \let\RTLcite\@biditufteRTLsidenote@normal@cite
5514 %%
5515 % Transform existing \footnotes into \sidenotes
5516 % Sidenote: ``Where God meant footnotes to go.'' ---bidituftesidenote
5517 \RequirePackage{optparams}% for our new sidenote commands -- provides multiple optional argume
5518 \providecommand{\footnotelayout}{\@bidituftesidenote@sidenote@font\@bidituftesidenote@sidenote
5519 \renewcommand{\footnotelayout}{\@bidituftesidenote@sidenote@font\@bidituftesidenote@sidenote@j
5520 % Override footmisc's definition to set the sidenote marks (numbers) inside the
5521 % sidenote's text block.
5522 \bidi@patch@AfterPackage{bidi}{\long\def\@makefntext#1{\@textsuperscript{\@bidituftesidenote@s
5523 % Set the in-text footnote mark in the same typeface as the body text itself.
5524 \bidi@patch@AfterPackage{bidi}{\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\footnotesi
5525 \providecommand*{\multiplefootnotemarker}{3sp}
5526 \providecommand*{\multfootsep}{,}
5527 \bidi@patch@AfterPackage{bidi}{%
5528 \renewcommand{\@footnotemark}{%
5529 \leavevmode%
5530 \ifhmode%
5531 \edef\@x@sf{\the\spacefactor}%
5532 \@bidituftesidenote@check@multiple@sidenotes%

File bidituftesidenote.sty 115


5533 \nobreak%
5534 \fi%
5535 \@makefnmark%
5536 \ifhmode\spacefactor\@x@sf\fi%
5537 \relax%
5538 }%
5539 }
5540 \newcommand{\@bidituftesidenote@check@multiple@sidenotes}{%
5541 \ifdim\lastkern=\multiplefootnotemarker\relax%
5542 \edef\@x@sf{\the\spacefactor}%
5543 \unkern%
5544 \textsuperscript{\multfootsep}%
5545 \spacefactor\@x@sf\relax%
5546 \fi
5547 }
5548 \bidi@patch@AfterPackage{bidi}{%
5549 \renewcommand\@footnotetext[2][0pt]{%
5550 \bidituftesidenotemarginpar{%
5551 \hbox{}\vspace*{#1}%
5552 \def\baselinestretch {\setspace@singlespace}%
5553 \reset@font%
5554 \bidi@@footnotetext@font% \reset@font\footnotesize%
5555 \@bidituftesidenote@margin@par% use parindent and parskip settings for marginal text
5556 \vspace*{-1\baselineskip}\noindent%
5557 \protected@edef\@currentlabel{%
5558 \csname p@footnote\endcsname\@thefnmark%
5559 }%
5560 \color@begingroup%
5561 \@makefntext{%
5562 \ignorespaces#2%
5563 }%
5564 \color@endgroup%
5565 }%
5566 }%
5567 \renewcommand\@LTRfootnotetext[2][0pt]{%
5568 \LTRbidituftesidenotemarginpar{%
5569 \hbox{}\vspace*{#1}%
5570 \def\baselinestretch {\setspace@singlespace}%
5571 \reset@font%
5572 \bidi@@LTRfootnotetext@font% \reset@font\footnotesize%
5573 \@bidituftesidenote@margin@par% use parindent and parskip settings for marginal text
5574 \vspace*{-1\baselineskip}\noindent%
5575 \protected@edef\@currentlabel{%
5576 \csname p@footnote\endcsname\@thefnmark%
5577 }%
5578 \color@begingroup%
5579 \@makefntext{%
5580 \ignorespaces#2%
5581 }%
5582 \color@endgroup%

File bidituftesidenote.sty 116


5583 }%
5584 }%
5585 \renewcommand\@RTLfootnotetext[2][0pt]{%
5586 \RTLbidituftesidenotemarginpar{%
5587 \hbox{}\vspace*{#1}%
5588 \def\baselinestretch {\setspace@singlespace}%
5589 \reset@font%
5590 \bidi@@RTLfootnotetext@font% \reset@font\footnotesize%
5591 \@bidituftesidenote@margin@par% use parindent and parskip settings for marginal text
5592 \vspace*{-1\baselineskip}\noindent%
5593 \protected@edef\@currentlabel{%
5594 \csname p@footnote\endcsname\@thefnmark%
5595 }%
5596 \color@begingroup%
5597 \@makefntext{%
5598 \ignorespaces#2%
5599 }%
5600 \color@endgroup%
5601 }%
5602 }%
5603 }
5604 %
5605 % Define \sidenote command. Can handle \cite.
5606 \newlength{\@bidituftesidenote@sidenote@vertical@offset}
5607 \setlength{\@bidituftesidenote@sidenote@vertical@offset}{0pt}
5608 % #1 = footnote num, #2 = vertical offset, #3 = footnote text
5609 \long\def\@bidituftesidenote@sidenote[#1][#2]#3{%
5610 \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
5611 \gdef\@bidituftesidenote@citations{}% clear out any old citations
5612 \ifthenelse{\NOT\isempty{#2}}{%
5613 \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{#2}%
5614 }{%
5615 \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{0pt}%
5616 }%
5617 \ifthenelse{\isempty{#1}}{%
5618 % no specific footnote number provided
5619 \stepcounter\@mpfn%
5620 \protected@xdef\@thefnmark{\thempfn}%
5621 \@footnotemark\@footnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
5622 }{%
5623 % specific footnote number provided
5624 \begingroup%
5625 \csname c@\@mpfn\endcsname #1\relax%
5626 \unrestored@protected@xdef\@thefnmark{\thempfn}%
5627 \endgroup%
5628 \@footnotemark\@footnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
5629 }%
5630 \@bidituftesidenote@print@citations% print any citations
5631 \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite comman
5632 \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRci

File bidituftesidenote.sty 117


5633 \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLci
5634 \unskip\ignorespaces% remove extra white space
5635 \kern-\multiplefootnotemarker% remove \kern left behind by sidenote
5636 \kern\multiplefootnotemarker\relax% add new \kern here to replace the one we yanked
5637 }
5638 \long\def\@LTRbidituftesidenote@sidenote[#1][#2]#3{%
5639 \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
5640 \gdef\@bidituftesidenote@citations{}% clear out any old citations
5641 \ifthenelse{\NOT\isempty{#2}}{%
5642 \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{#2}%
5643 }{%
5644 \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{0pt}%
5645 }%
5646 \ifthenelse{\isempty{#1}}{%
5647 % no specific footnote number provided
5648 \stepcounter\@mpfn%
5649 \protected@xdef\@thefnmark{\thempfn}%
5650 \@footnotemark\@LTRfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
5651 }{%
5652 % specific footnote number provided
5653 \begingroup%
5654 \csname c@\@mpfn\endcsname #1\relax%
5655 \unrestored@protected@xdef\@thefnmark{\thempfn}%
5656 \endgroup%
5657 \@footnotemark\@LTRfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
5658 }%
5659 \@bidituftesidenote@print@citations% print any citations
5660 \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite comman
5661 \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRci
5662 \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLci
5663 \unskip\ignorespaces% remove extra white space
5664 \kern-\multiplefootnotemarker% remove \kern left behind by sidenote
5665 \kern\multiplefootnotemarker\relax% add new \kern here to replace the one we yanked
5666 }
5667 \long\def\@RTLbidituftesidenote@sidenote[#1][#2]#3{%
5668 \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
5669 \gdef\@bidituftesidenote@citations{}% clear out any old citations
5670 \ifthenelse{\NOT\isempty{#2}}{%
5671 \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{#2}%
5672 }{%
5673 \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{0pt}%
5674 }%
5675 \ifthenelse{\isempty{#1}}{%
5676 % no specific footnote number provided
5677 \stepcounter\@mpfn%
5678 \protected@xdef\@thefnmark{\thempfn}%
5679 \@footnotemark\@RTLfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
5680 }{%
5681 % specific footnote number provided
5682 \begingroup%

File bidituftesidenote.sty 118


5683 \csname c@\@mpfn\endcsname #1\relax%
5684 \unrestored@protected@xdef\@thefnmark{\thempfn}%
5685 \endgroup%
5686 \@footnotemark\@RTLfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
5687 }%
5688 \@bidituftesidenote@print@citations% print any citations
5689 \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite comman
5690 \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRci
5691 \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLci
5692 \unskip\ignorespaces% remove extra white space
5693 \kern-\multiplefootnotemarker% remove \kern left behind by sidenote
5694 \kern\multiplefootnotemarker\relax% add new \kern here to replace the one we yanked
5695 }
5696 \newcommand{\sidenote}{\optparams{\@bidituftesidenote@sidenote}{[][0pt]}}
5697 \newcommand{\LTRsidenote}{\optparams{\@LTRbidituftesidenote@sidenote}{[][0pt]}}
5698 \newcommand{\RTLsidenote}{\optparams{\@RTLbidituftesidenote@sidenote}{[][0pt]}}
5699 \bidi@patch@AfterPackage{bidi}{%
5700 \renewcommand{\footnote}{\optparams{\@bidituftesidenote@sidenote}{[][0pt]}}%
5701 \renewcommand{\LTRfootnote}{\optparams{\@LTRbidituftesidenote@sidenote}{[][0pt]}}%
5702 \renewcommand{\RTLfootnote}{\optparams{\@RTLbidituftesidenote@sidenote}{[][0pt]}}%
5703 }
5704 %%
5705 % Sidenote without the footnote mark
5706 \newcommand\marginnote[2][0pt]{%
5707 \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
5708 \gdef\@bidituftesidenote@citations{}% clear out any old citations
5709 \bidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote@marginnote@font\@bidituft
5710 \@bidituftesidenote@print@citations% print any citations
5711 \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite comman
5712 \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRci
5713 \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLci
5714 }
5715 \newcommand\LTRmarginnote[2][0pt]{%
5716 \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
5717 \gdef\@bidituftesidenote@citations{}% clear out any old citations
5718 \LTRbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote@LTRmarginnote@font\@bi
5719 \@bidituftesidenote@print@citations% print any citations
5720 \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite comman
5721 \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRci
5722 \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLci
5723 }
5724 \newcommand\RTLmarginnote[2][0pt]{%
5725 \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
5726 \gdef\@bidituftesidenote@citations{}% clear out any old citations
5727 \RTLbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote@RTLmarginnote@font\@bi
5728 \@bidituftesidenote@print@citations% print any citations
5729 \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite comman
5730 \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRci
5731 \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLci
5732 }

File bidituftesidenote.sty 119


24 File bidituftetoc.sty
5733 \NeedsTeXFormat{LaTeX2e}
5734 \ProvidesPackage{bidituftetoc}[2011/06/17 v0.1
5735 bidi implementation of tufte toc]
5736 \RequirePackage{titlesec,titletoc,xifthen,biditools}
5737 \newcommand{\@bidituftetoc@pkgname}{bidituftetoc}
5738 \newcommand{\bidituftetocError}[2]{\PackageError{\@bidituftetoc@pkgname}{#1}{#2}}
5739 %%
5740 % Turn off section numbering
5741 \setcounter{secnumdepth}{-1}
5742 \newboolean{@bidituftetoc@toc}
5743 \setboolean{@bidituftetoc@toc}{true}
5744 \DeclareOption{notoc}{\setboolean{@bidituftetoc@toc}{false}}
5745 \DeclareOption{toc}{\setboolean{@bidituftetoc@toc}{true}}
5746 \ProcessOptions
5747 %%
5748 % Make Tuftian-style section headings and TOC formatting
5749 \bidi@patch@AfterPackage{bidi}{%
5750 \titleformat{\chapter}%
5751 [display]% shape
5752 {\relax\ifthenelse{\NOT\boolean{@bidituftefloat@symmetric}}{\begin{fullwidth}}{}}% format ap
5753 {\itshape\huge\thechapter}% label
5754 {0pt}% horizontal separation between label and title body
5755 {\huge\rmfamily\itshape}% before the title body
5756 [\ifthenelse{\NOT\boolean{@bidituftefloat@symmetric}}{\end{fullwidth}}{}]% after the title b
5757 \titleformat{\section}%
5758 [hang]% shape
5759 {\normalfont\Large\itshape}% format applied to label+text
5760 {\thesection}% label
5761 {1em}% horizontal separation between label and title body
5762 {}% before the title body
5763 []% after the title body
5764 \titleformat{\subsection}%
5765 [hang]% shape
5766 {\normalfont\large\itshape}% format applied to label+text
5767 {\thesubsection}% label
5768 {1em}% horizontal separation between label and title body
5769 {}% before the title body
5770 []% after the title body
5771 \titleformat{\paragraph}%
5772 [runin]% shape
5773 {\normalfont\itshape}% format applied to label+text
5774 {\theparagraph}% label
5775 {1em}% horizontal separation between label and title body
5776 {}% before the title body
5777 []% after the title body
5778 \titlespacing*{\chapter}{0pt}{50pt}{40pt}
5779 \titlespacing*{\section}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
5780 \titlespacing*{\subsection}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus.2ex}

File bidituftetoc.sty 120


5781 }
5782 % Subsubsection and following section headings shouldn't be used.
5783 % See Bringhurst's _The Elements of Typography_, section 4.2.2.
5784 \renewcommand\subsubsection{%
5785 \bidituftetocError{\noexpand\subsubsection is undefined by this class.%
5786 \MessageBreak See Robert Bringhurst's _The Elements of
5787 \MessageBreak Typographic Style_, section 4.2.2.
5788 \MessageBreak \noexpand\subsubsection was used}
5789 {From Bringhurst's _The Elements of Typographic Style_, section 4.2.2: Use as
5790 \MessageBreak many levels of headings as you need, no more and no fewer. Also see the man
5791 \MessageBreak related threads on Ask E.T. at http://www.edwardbidituftetoc.com/.}
5792 }
5793 \renewcommand\subparagraph{%
5794 \bidituftetocError{\noexpand\subparagraph is undefined by this class.%
5795 \MessageBreak See Robert Bringhurst's _The Elements of
5796 \MessageBreak Typographic Style_, section 4.2.2.
5797 \MessageBreak \noexpand\subparagraph was used}
5798 {From Bringhurst's _The Elements of Typographic Style_, section 4.2.2: Use as
5799 \MessageBreak many levels of headings as you need, no more and no fewer. Also see the man
5800 \MessageBreak related threads on Ask E.T. at http://www.edwardbidituftetoc.com/.}
5801 }
5802 % Formatting for main TOC (printed in front matter)
5803 % {section} [left] {above} {before w/label} {before w/o label} {filler + page} [after]
5804 \ifthenelse{\boolean{@bidituftetoc@toc}}{%
5805 \bidi@patch@AfterPackage{bidi}{%
5806 \titlecontents{part}% FIXME
5807 [0em] % distance from left margin
5808 {\vspace{1.5\baselineskip}\begin{fullwidth}\LARGE\rmfamily\itshape} % above (global format
5809 {\contentslabel{2em}} % before w/label (label = ``II'')
5810 {} % before w/o label
5811 {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
5812 [\end{fullwidth}] % after
5813 \titlecontents{chapter}%
5814 [0em] % distance from left margin
5815 {\vspace{1.5\baselineskip}\begin{fullwidth}\LARGE\rmfamily\itshape} % above (global format
5816 {\hspace*{0em}\contentslabel{2em}} % before w/label (label = ``2'')
5817 {\hspace*{0em}} % before w/o label
5818 {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
5819 [\end{fullwidth}] % after
5820 \titlecontents{section}% FIXME
5821 [0em] % distance from left margin
5822 {\vspace{0\baselineskip}\begin{fullwidth}\Large\rmfamily\itshape} % above (global formatti
5823 {\hspace*{2em}\contentslabel{2em}} % before w/label (label = ``2.6'')
5824 {\hspace*{2em}} % before w/o label
5825 {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
5826 [\end{fullwidth}] % after
5827 \titlecontents{subsection}% FIXME
5828 [0em] % distance from left margin
5829 {\vspace{0\baselineskip}\begin{fullwidth}\large\rmfamily\itshape} % above (global formatti
5830 {\hspace*{4em}\contentslabel{4em}} % before w/label (label = ``2.6.1'')

File bidituftetoc.sty 121


5831 {\hspace*{4em}} % before w/o label
5832 {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
5833 [\end{fullwidth}] % after
5834 \titlecontents{paragraph}% FIXME
5835 [0em] % distance from left margin
5836 {\vspace{0\baselineskip}\begin{fullwidth}\normalsize\rmfamily\itshape} % above (global for
5837 {\hspace*{6em}\contentslabel{2em}} % before w/label (label = ``2.6.0.0.1'')
5838 {\hspace*{6em}} % before w/o label
5839 {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
5840 [\end{fullwidth}] % after
5841 }%
5842 }{}
5843 %%
5844 % Format lists of figures/tables
5845 \renewcommand\listoffigures{%
5846 \@ifundefined{chapter}%
5847 {\section*{\listfigurename}}%
5848 {\chapter*{\listfigurename}}%
5849 % \begin{fullwidth}%
5850 \@starttoc{lof}%
5851 % \end{fullwidth}%
5852 }
5853 \renewcommand\listoftables{%
5854 \@ifundefined{chapter}%
5855 {\section*{\listtablename}}%
5856 {\chapter*{\listtablename}}%
5857 % \begin{fullwidth}%
5858 \@starttoc{lot}%
5859 % \end{fullwidth}%
5860 }
5861 \newcommand{\@bidituftetoc@lof@line}[2]{%
5862 % #1 is the figure/table number and its caption text
5863 % #2 is the page number on which the figure/table appears
5864 \leftskip 0.0em
5865 \rightskip 0em
5866 \parfillskip 0em plus 1fil
5867 \parindent 0.0em
5868 \@afterindenttrue
5869 \interlinepenalty\@M
5870 \leavevmode
5871 \@tempdima 2.0em
5872 \if@RTL\advance\rightskip\@tempdima\else\advance\leftskip\@tempdima\fi
5873 \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
5874 {#1}\nobreak\qquad\nobreak#2%
5875 \par%
5876 }
5877 \renewcommand*\l@figure{\@bidituftetoc@lof@line}
5878 \let\l@table\l@figure

File bidituftetoc.sty 122


25 File bidituftegeneralstructure.sty
5879 \NeedsTeXFormat{LaTeX2e}
5880 \ProvidesPackage{bidituftegeneralstructure}[2011/06/18 v0.1
5881 bidi implementation of tufte general structure]
5882 \renewcommand\small{%
5883 \@setfontsize\small\@ixpt{12}%
5884 \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
5885 \abovedisplayshortskip \z@ \@plus2\p@
5886 \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
5887 \def\@listi{\leftmargin\leftmargini
5888 \topsep 4\p@ \@plus2\p@ \@minus2\p@
5889 \parsep 2\p@ \@plus\p@ \@minus\p@
5890 \itemsep \parsep}%
5891 \belowdisplayskip \abovedisplayskip
5892 }
5893 \renewcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
5894 \renewcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
5895 \renewcommand\large{\@setfontsize\large\@xipt{15}}
5896 \renewcommand\Large{\@setfontsize\Large\@xiipt{16}}
5897 \renewcommand\LARGE{\@setfontsize\LARGE\@xivpt{18}}
5898 \renewcommand\huge{\@setfontsize\huge\@xxpt{30}}
5899 \renewcommand\Huge{\@setfontsize\Huge{24}{36}}
5900 \setlength\leftmargini {1pc}
5901 \setlength\leftmarginii {1pc}
5902 \setlength\leftmarginiii {1pc}
5903 \setlength\leftmarginiv {1pc}
5904 \setlength\leftmarginv {1pc}
5905 \setlength\leftmarginvi {1pc}
5906 \setlength\labelsep {.5pc}
5907 \setlength\labelwidth {\leftmargini}
5908 \addtolength\labelwidth{-\labelsep}
5909 \setlength{\parindent}{1.0pc}%
5910 \setlength{\parskip}{0pt}%
5911 \RequirePackage{ragged2e}
5912 \setlength{\RaggedRightRightskip}{\z@ plus 0.08\hsize}
5913 % Paragraph indentation and separation for normal text
5914 \newcommand{\@bidituftegeneralstructure@reset@par}{%
5915 \setlength{\RaggedRightParindent}{1.0pc}%
5916 \setlength{\JustifyingParindent}{1.0pc}%
5917 \setlength{\parindent}{1pc}%
5918 \setlength{\parskip}{0pt}%
5919 }
5920 \@bidituftegeneralstructure@reset@par
5921 % Require paralist package for tighter lists
5922 \RequirePackage{paralist}
5923 % Add rightmargin to compactenum
5924 \def\@compactenum@{%
5925 \expandafter\list\csname label\@enumctr\endcsname{%
5926 \usecounter{\@enumctr}%

File bidituftegeneralstructure.sty 123


5927 \rightmargin=2em% added this
5928 \parsep\plparsep
5929 \itemsep\plitemsep
5930 \topsep\pltopsep
5931 \partopsep\plpartopsep
5932 \def\makelabel##1{\hss\llap{##1}}}}
5933 %%
5934 % An environment for paragraph-style section
5935 \providecommand\newthought[1]{%
5936 \addvspace{1.0\baselineskip plus 0.5ex minus 0.2ex}%
5937 \noindent\textbf{#1}%
5938 }
5939 %%
5940 % Redefine the display environments (quote, quotation, etc.)
5941 \renewenvironment{verse}
5942 {\let\\\@centercr
5943 \list{}{\itemsep \z@
5944 \itemindent -1pc%
5945 \listparindent\itemindent
5946 \rightmargin \leftmargin
5947 \advance\leftmargin 1pc}%
5948 \small%
5949 \item\relax}
5950 {\endlist}
5951 \renewenvironment{quotation}
5952 {\list{}{\listparindent 1pc%
5953 \itemindent \listparindent
5954 \rightmargin \leftmargin
5955 \parsep \z@ \@plus\p@}%
5956 \small%
5957 \item\relax\noindent\ignorespaces}
5958 {\endlist}
5959 \renewenvironment{quote}
5960 {\list{}{\rightmargin\leftmargin}%
5961 \small%
5962 \item\relax}
5963 {\endlist}
5964 % Italicize description run-in headings (instead of the default bold)
5965 \renewcommand*\descriptionlabel[1]{\hspace\labelsep\normalfont\em #1}
5966 %%
5967 % Redefine \bibsection to not mark the running heads.
5968 % (Code modified from natbib.sty.)
5969 \@ifundefined{chapter}%
5970 {\renewcommand\bibsection{\section*{\refname}}}
5971 {\@ifundefined{NAT@sectionbib}%
5972 {\renewcommand\bibsection{\chapter{\bibname}}}
5973 {\renewcommand\bibsection{\section*{\bibname}}}}
5974 \RequirePackage{multicol}
5975 \renewenvironment{theindex}{%
5976 \@ifundefined{chapter}%

File bidituftegeneralstructure.sty 124


5977 {\section*{\indexname}}%
5978 {\chapter{\indexname}}%
5979 \begin{fullwidth}%
5980 \small%
5981 \parskip0pt%
5982 \parindent0pt%
5983 \let\item\@idxitem%
5984 \begin{multicols}{3}%
5985 }{%
5986 \end{multicols}%
5987 \end{fullwidth}%
5988 }
5989 \AtBeginDocument{%
5990 \renewcommand\@idxitem{\par\hangindent \if@RTL-\fi2em}%
5991 \renewcommand\subitem{\par\hangindent \if@RTL-\fi3em\hspace*{1em}}%
5992 \renewcommand\subsubitem{\par\hangindent \if@RTL-\fi4em\hspace*{2em}}}
5993 \renewcommand\indexspace{\par\addvspace{1.0\baselineskip plus 0.5ex minus 0.2ex}\relax}%
5994 \newcommand{\lettergroup}[1]{}% swallow the letter heading in the index

26 File bidituftehyperref.sty
5995 \NeedsTeXFormat{LaTeX2e}
5996 \ProvidesPackage{bidituftehyperref}[2011/06/18 v0.1
5997 bidi implementation of tufte hyperref]
5998 %%
5999 % Color
6000 \RequirePackage[usenames,dvipsnames,svgnames]{xcolor}%
6001 \newboolean{@bidituftehyperref@loadhyper}
6002 \setboolean{@bidituftehyperref@loadhyper}{true}
6003 \DeclareOption{hyper}{\setboolean{@bidituftehyperref@loadhyper}{true}}
6004 \DeclareOption{nohyper}{\setboolean{@bidituftehyperref@loadhyper}{false}}
6005 \ProcessOptions
6006 %% Loads the hyperref package and sets some default options.
6007 \newcommand{\bidituftehyperrefLoadHyperref}{%
6008 \RequirePackage[hyperfootnotes=false,colorlinks=true]{hyperref}
6009 \hypersetup{%
6010 bookmarksdepth = section,
6011 citecolor = DarkGreen,
6012 linkcolor = DarkBlue,
6013 % pagecolor = DarkBlue,
6014 urlcolor = DarkGreen,
6015 }%
6016 }
6017 \ifthenelse{\boolean{@bidituftehyperref@loadhyper}}{%
6018 \bidituftehyperrefLoadHyperref%
6019 }{% hyperfootnotes override our modifications to the \footnote* and \@footnote* commands.
6020 \PassOptionsToPackage{hyperfootnotes=false}{hyperref}
6021 }

File bidituftehyperref.sty 125


27 File bidituftetitle.sty
6022 \NeedsTeXFormat{LaTeX2e}
6023 \ProvidesPackage{bidituftetitle}[2011/06/18 v0.1
6024 bidi implementation of tufte title]
6025 \RequirePackage{biditools}
6026 %%
6027 % `titlepage' option -- creates a full title page with \maketitle
6028 \newboolean{@bidituftetitle@titlepage}
6029 \DeclareOption{titlepage}{\setboolean{@bidituftetitle@titlepage}{true}}
6030 \DeclareOption{notitlepage}{\setboolean{@bidituftetitle@titlepage}{false}}
6031 % Default `book' and `handout' options
6032 \@ifclassloaded{book}{%
6033 \ExecuteOptions{titlepage}}{%
6034 \@ifclassloaded{article}{%
6035 \ExecuteOptions{notitlepage}}%
6036 {}}
6037 \ProcessOptions
6038 %%
6039 % Modified \title, \author, and \date commands. These store the
6040 % (footnote-less) values in \plaintitle, \plainauthor, and \thedate, respectively.
6041 \newcommand{\plaintitle}{}% plain-text-only title
6042 \newcommand{\plainauthor}{}% plain-text-only author
6043 \newcommand{\plainpublisher}{}% plain-text-only publisher
6044 \newcommand{\thanklesstitle}{}% full title text minus \thanks{}
6045 \newcommand{\thanklessauthor}{}% full author text minus \thanks{}
6046 \newcommand{\thanklesspublisher}{}% full publisher minus \thanks{}
6047 \newcommand{\@publisher}{}% full publisher with \thanks{}
6048 \newcommand{\thedate}{\today}
6049 \bidi@patch@AfterPackage{bidi}{%
6050 \renewcommand{\thanks}[1]{\footnote{#1}}
6051 \renewcommand{\LTRthanks}[1]{\LTRfootnote{#1}}
6052 \renewcommand{\RTLthanks}[1]{\RTLfootnote{#1}}
6053 }
6054 \renewcommand{\title}[2][]{%
6055 \gdef\@title{#2}%
6056 \begingroup%
6057 % TODO store contents of \thanks command
6058 \renewcommand{\thanks}[1]{}% swallow \thanks contents
6059 \renewcommand{\LTRthanks}[1]{}% swallow \LTRthanks contents
6060 \renewcommand{\RTLthanks}[1]{}% swallow \RTLthanks contents
6061 \protected@xdef\thanklesstitle{#2}%
6062 \endgroup%
6063 \ifthenelse{\isempty{#1}}%
6064 {\renewcommand{\plaintitle}{\thanklesstitle}}% use thankless title
6065 {\renewcommand{\plaintitle}{#1}}% use provided plain-text title
6066 \@ifundefined{hypersetup}%
6067 {}% hyperref is not loaded; do nothing
6068 {\hypersetup{pdftitle={\plaintitle}}}% set the PDF metadata title
6069 }

File bidituftetitle.sty 126


6070 \let\@author\@empty% suppress default latex.ltx ``no author'' warning
6071 \renewcommand{\author}[2][]{%
6072 \ifthenelse{\isempty{#2}}{}{\gdef\@author{#2}}%
6073 \begingroup%
6074 % TODO store contents of \thanks command
6075 \renewcommand{\thanks}[1]{}% swallow \thanks contents
6076 \renewcommand{\LTRthanks}[1]{}% swallow \LTRthanks contents
6077 \renewcommand{\RTLthanks}[1]{}% swallow \RTLthanks contents
6078 \protected@xdef\thanklessauthor{#2}%
6079 \endgroup%
6080 \ifthenelse{\isempty{#1}}%
6081 {\renewcommand{\plainauthor}{\thanklessauthor}}% use thankless author
6082 {\renewcommand{\plainauthor}{#1}}% use provided plain-text author
6083 \@ifundefined{hypersetup}%
6084 {}% hyperref is not loaded; do nothing
6085 {\hypersetup{pdfauthor={\plainauthor}}}% set the PDF metadata author
6086 }
6087 \renewcommand{\date}[1]{%
6088 \gdef\@date{#1}%
6089 \begingroup%
6090 % TODO store contents of \thanks command
6091 \renewcommand{\thanks}[1]{}% swallow \thanks contents
6092 \renewcommand{\LTRthanks}[1]{}% swallow \LTRthanks contents
6093 \renewcommand{\RTLthanks}[1]{}% swallow \RTLthanks contents
6094 \protected@xdef\thedate{#1}%
6095 \endgroup%
6096 }
6097 %%
6098 % Provides a \publisher command to set the publisher
6099 \newcommand{\publisher}[2][]{%
6100 \gdef\@publisher{#2}%
6101 \begingroup%
6102 \renewcommand{\thanks}[1]{}% swallow \thanks contents
6103 \renewcommand{\LTRthanks}[1]{}% swallow \LTRthanks contents
6104 \renewcommand{\RTLthanks}[1]{}% swallow \RTLthanks contents
6105 \protected@xdef\thanklesspublisher{#2}%
6106 \endgroup%
6107 \ifthenelse{\isempty{#1}}
6108 {\renewcommand{\plainpublisher}{\thanklesspublisher}}% use thankless publisher
6109 {\renewcommand{\plainpublisher}{#1}}% use provided plain-text publisher
6110 }
6111 %%
6112 % Produces a full title page
6113 \newcommand{\maketitlepage}[0]{%
6114 \cleardoublepage%
6115 {%
6116 \bfseries%
6117 \begin{fullwidth}%
6118 \fontsize{18}{20}\selectfont\par\noindent\thanklessauthor%
6119 \vspace{11.5pc}%

File bidituftetitle.sty 127


6120 \fontsize{36}{40}\selectfont\par\noindent\thanklesstitle%
6121 \vfill%
6122 \fontsize{14}{16}\selectfont\par\noindent\thanklesspublisher%
6123 \end{fullwidth}%
6124 }
6125 \thispagestyle{empty}%
6126 \clearpage%
6127 }
6128 %%
6129 % Title block
6130 \bidi@AfterEndPreamble{%
6131 \renewcommand{\maketitle}{%
6132 \newpage%
6133 \global\@topnum\z@% prevent floats from being placed at the top of the page
6134 \begingroup%
6135 \setlength{\parindent}{0pt}%
6136 \setlength{\parskip}{4pt}%
6137 \let\@@title\@empty%
6138 \let\@@author\@empty%
6139 \let\@@date\@empty%
6140 \gdef\@@title{\LARGE\itshape\@title\par}%
6141 \gdef\@@author{\Large\itshape\@author\par}%
6142 \gdef\@@date{\Large\itshape\@date\par}%
6143 \@@title%
6144 \@@author%
6145 \@@date%
6146 \endgroup%
6147 \thispagestyle{plain}% suppress the running head
6148 }%
6149 }
6150 %%
6151 % Title page (if the `titlepage' option was passed to the bidituftetitle-handout
6152 % class.)
6153 \bidi@AfterEndPreamble{%
6154 \ifthenelse{\boolean{@bidituftetitle@titlepage}}
6155 {\renewcommand{\maketitle}{\maketitlepage}}
6156 {}
6157 }
6158 %%
6159 % When \cleardoublepage is called, produce a blank (empty) page -- i.e.,
6160 % without headers and footers
6161 \def\cleardoublepage{\clearpage\if@twoside\ifodd\c@page\else
6162 \hbox{}
6163 %\vspace*{\fill}
6164 %\begin{center}
6165 % This page intentionally contains only this sentence.
6166 %\end{center}
6167 %\vspace{\fill}
6168 \thispagestyle{empty}
6169 \newpage

File bidituftetitle.sty 128


6170 \if@twocolumn\hbox{}\newpage\fi\fi\fi}

28 File biditufte-handout.cls
6171 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
6172 \ProvidesClass{biditufte-handout}[2011/06/18 v0.1 biditufte-handout class]
6173 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
6174 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftefloat}}
6175 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftetoc}}
6176 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftehyperref}}
6177 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftetitle}}
6178 \ProcessOptions\relax
6179 \LoadClass{article}
6180 \RequirePackage{bidituftefloat}
6181 \RequirePackage{bidituftesidenote}
6182 \RequirePackage{bidituftetoc}
6183 \RequirePackage{bidituftegeneralstructure}
6184 \RequirePackage{bidituftehyperref}
6185 \RequirePackage{bidituftetitle}
6186 \renewenvironment{abstract}
6187 {\begin{quotation}}
6188 {\end{quotation}}
6189 \AtBeginDocument{%
6190 \IfFileExists{biditufte-handout.cfg}
6191 {\input{biditufte-handout.cfg}
6192 \ClassInfo{biditufte-handout}{Loading biditufte-handout configuration file \@gobble}}
6193 {}%
6194 }

29 File biditufte-book.cls
6195 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
6196 \ProvidesClass{biditufte-book}[2011/06/18 v0.1 biditufte-book class]
6197 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
6198 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftefloat}}
6199 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftetoc}}
6200 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftehyperref}}
6201 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftetitle}}
6202 \ProcessOptions\relax
6203 \LoadClass{book}
6204 \RequirePackage{bidituftefloat}
6205 \RequirePackage{bidituftesidenote}
6206 \RequirePackage{bidituftetoc}
6207 \RequirePackage{bidituftegeneralstructure}
6208 \RequirePackage{bidituftehyperref}
6209 \RequirePackage{bidituftetitle}
6210 %%
6211 % Set up any book-specific stuff now
6212 %%
6213 % The front matter in Tufte's /Beautiful Evidence/ contains everything up

File biditufte-book.cls 129


6214 % to the opening page of Chapter 1. The running heads, when they appear,
6215 % contain only the (arabic) page number in the outside corner.
6216 %\newif\if@mainmatter \@mainmattertrue
6217 \renewcommand\frontmatter{%
6218 \cleardoublepage%
6219 \@mainmatterfalse%
6220 \pagenumbering{arabic}%
6221 %\pagestyle{plain}%
6222 \fancyhf{}%
6223 \ifthenelse{\boolean{@bidituftefloat@twoside}}%
6224 {\fancyhead[LE,RO]{\thepage}}%
6225 {\fancyhead[RE,RO]{\thepage}}%
6226 }
6227 %%
6228 % The main matter in Tufte's /Beautiful Evidence/ doesn't restart the page
6229 % numbering---it continues where it left off in the front matter.
6230 \renewcommand\mainmatter{%
6231 \cleardoublepage%
6232 \@mainmattertrue%
6233 \fancyhf{}%
6234 \ifthenelse{\boolean{@bidituftefloat@twoside}}%
6235 {\renewcommand{\chaptermark}[1]{\markboth{##1}{}}%
6236 \fancyhead[LE]{\thepage\quad\smallcaps{\newlinetospace{\plaintitle}}}% book title
6237 \fancyhead[RO]{\smallcaps{\newlinetospace{\leftmark}}\quad\thepage}}% chapter title
6238 {\fancyhead[RE,RO]{\smallcaps{\newlinetospace{\plaintitle}}\quad\thepage}}% book title
6239 }
6240 %%
6241 % The back matter contains appendices, indices, glossaries, endnotes,
6242 % biliographies, list of contributors, illustration credits, etc.
6243 \renewcommand\backmatter{%
6244 \if@openright%
6245 \cleardoublepage%
6246 \else%
6247 \clearpage%
6248 \fi%
6249 \@mainmatterfalse%
6250 }
6251 %%
6252 % Only show the chapter titles in the table of contents
6253 \setcounter{tocdepth}{0}
6254 \AtBeginDocument{%
6255 \IfFileExists{biditufte-book.cfg}
6256 {\input{biditufte-book.cfg}
6257 \ClassInfo{biditufte-book}{Loading biditufte-book configuration file \@gobble}}
6258 {}%
6259 }

30 File bidipoem.sty
6260 \NeedsTeXFormat{LaTeX2e}

File bidipoem.sty 130


6261 \ProvidesPackage{bidipoem}%
6262 [2019/03/03 v1.0 Environments for typesetting Persian traditional and modern poems]
6263
6264 % Usage:
6265 %
6266 % \Setversedim #1#2 % define the layout (within a group):
6267 % #1 = length of both half-verses
6268 % #2 = separation distance = length of a connection, if present
6269 % Variant:
6270 % \Setversedim #1[#2]#3 % for half-verses of unequal length
6271 % #1 = length of first (=right) half-verse
6272 % #2 = length of second (=left) half-verse
6273 % #3 = separation distance = length of a connection, if present
6274 %
6275 % \traditionalhalfverses #1#2 % typeset two separated half-verses
6276 % #1 = text of first (=right) half-verse
6277 % #2 = text of second (=left) half-verse
6278 % Variant:
6279 % \traditionalhalfverses #1[#2]#3 % typeset two connected half-verses
6280 % #1 = text of first (=right) half-verse
6281 % #2 = text of connection
6282 % #3 = text of second (=left) half-verse
6283 %
6284 % Alternative (if preferred):
6285 %
6286 % \traditionalconnverses #1#2#3 % = \traditionalhalfverses #1[#2]#3
6287
6288
6289 \newcommand*{\bidipoem@spreadbox}[2]{\hbox to #1{#2}}
6290
6291 % define the layout, verses will be centered
6292
6293 \newdimen \bidipoem@hvlen \newdimen \bidipoem@hvsep
6294 \newdimen \bidipoem@hvind \newdimen \bidipoem@@hvlen
6295
6296 \newcommand*{\Setversedim}[2]{% set lengths of half-verse, [separation]
6297 \bidipoem@hvind \textwidth
6298 \bidipoem@hvlen #1\relax \advance \bidipoem@hvind -\bidipoem@hvlen
6299 \ifx [#2\def \bidipoem@next {\bidipoem@set@verseI [}\else
6300 \bidipoem@@hvlen \bidipoem@hvlen \def \bidipoem@next {\bidipoem@set@@verse {#2}}\fi \bidipoem@
6301
6302 \def \bidipoem@set@verseI [#1]{% optional parameter
6303 \bidipoem@@hvlen #1\relax \bidipoem@set@@verse }
6304
6305 \newcommand*{\bidipoem@set@@verse}[1]{% separation
6306 \advance \bidipoem@hvind -\bidipoem@@hvlen \bidipoem@hvsep #1\relax
6307 \advance \bidipoem@hvind -\bidipoem@hvsep \divide \bidipoem@hvind 2 }
6308
6309 \newcommand*{\traditionalconnverses}[3]{% first half-verse, connection, second half-verse
6310 \ifdim 0pt > \bidipoem@hvind %

File bidipoem.sty 131


6311 \bidipoem@spreadbox \bidipoem@hvlen {#1}\\ \hfill % first block
6312 \else
6313 \noindent \hskip \bidipoem@hvind \relax \bidipoem@spreadbox \bidipoem@hvlen {#1}\fi
6314 \bidipoem@spreadbox \bidipoem@hvsep {#2}% separator
6315 \bidipoem@spreadbox \bidipoem@@hvlen {#3}% second block
6316 \par }
6317
6318 % macro for two half verses
6319 \newcommand*{\traditionalhalfverses}[2]{% optional parameter?
6320 \ifx [#2\def\bidipoem@half@verses@next{\bidipoem@half@verses {#1}[}%
6321 \else\def\bidipoem@half@verses@next{\bidipoem@half@verses {#1}[\hfill]{#2}}\fi%
6322 \bidipoem@half@verses@next}
6323
6324 \def \bidipoem@half@verses #1[#2]#3{% first[mid]second
6325 \traditionalconnverses {#1}{#2}{#3}}
6326
6327
6328 {\catcode`\^^M=\active % these lines must end with %
6329 \gdef\traditionalpoem@obeylines{\catcode`\^^M\active \let^^M\traditionalpoem@par}%
6330 \global\let^^M\traditionalpoem@par} % this is in case ^^M appears in a \write
6331 {\catcode`\^^M=\active % these lines must end with %
6332 \gdef\modernpoem@obeylines{\catcode`\^^M\active \let^^M\modernpoem@par}%
6333 \global\let^^M\modernpoem@par} % this is in case ^^M appears in a \write
6334 \def\poemcolsepskip{.1\versewidth plus .1\versewidth minus .05\versewidth}
6335 \def\poemmarginskip{1em plus 1fil minus 1em}
6336 \def\poemextrabaselineskip{0\baselineskip}
6337 \def\poemskip{\medskip}
6338 \newcommand{\bidipoem@openbox}{\leavevmode
6339 \hbox to.77778em{%
6340 \hfil\vrule
6341 \vbox to.675em{\hrule width.6em\vfil\hrule}%
6342 \vrule\hfil}}
6343 \def\poemblocksep{\quad\hbox{\bidipoem@openbox}}
6344 \newdimen\versewidth
6345 \newtoks\bidipoem@p@ftn
6346 \def\poem@verse#1{%
6347 \ifdim\wd#1>\new@poem@width
6348 \xdef\new@poem@width{\the\wd#1}%
6349 \ifdim\new@poem@width>\poem@width
6350 \xdef\poem@width{\new@poem@width}%
6351 \global\let\poem@needrun\relax
6352 \fi
6353 \fi
6354 \hbox to\poem@width{\unhbox#1}%
6355 \global\bidipoem@p@ftn\expandafter{\expandafter}\the\bidipoem@p@ftn%
6356 }
6357 \def\poem@linebegin{\vadjust{}\hskip\@flushglue\hskip\poemmarginskip\relax}
6358 \def\poem@lineend{\nobreak\hskip\poemmarginskip\hskip\@flushglue\vadjust{}}
6359 \def\poem@lineversesep{%
6360 \nobreak

File bidipoem.sty 132


6361 \hskip\z@ plus 1filll%
6362 \penalty600%
6363 \hskip\poemcolsepskip
6364 \hskip\z@ plus -2filll%
6365 \vadjust{}%
6366 \nobreak
6367 \hskip\z@ plus 1filll%
6368 }
6369 \def\poem@lineparsebegin{%
6370 \halign\bgroup
6371 \global\setbox\verse@i=\hbox{%
6372 \let\@footnotetext\bidipoem@p@ftntext%
6373 \let\@LTRfootnotetext\bidipoem@p@LTRftntext%
6374 \let\@RTLfootnotetext\bidipoem@p@RTLftntext%
6375 \let\@xfootnotenext\bidipoem@p@xftntext%
6376 \let\@xfootnote\bidipoem@p@xfootnote%
6377 \let\@xLTRfootnotenext\bidipoem@p@xLTRftntext%
6378 \let\@xLTRfootnote\bidipoem@p@xLTRfootnote%
6379 \let\@xRTLfootnotenext\bidipoem@p@xRTLftntext%
6380 \let\@xRTLfootnote\bidipoem@p@xRTLfootnote%
6381 \ignorespaces##\unskip}&&
6382 \global\setbox\verse@ii=\hbox{%
6383 \let\@footnotetext\bidipoem@p@ftntext%
6384 \let\@LTRfootnotetext\bidipoem@p@LTRftntext%
6385 \let\@RTLfootnotetext\bidipoem@p@RTLftntext%
6386 \let\@xfootnotenext\bidipoem@p@xftntext%
6387 \let\@xfootnote\bidipoem@p@xfootnote%
6388 \let\@xLTRfootnotenext\bidipoem@p@xLTRftntext%
6389 \let\@xLTRfootnote\bidipoem@p@xLTRfootnote%
6390 \let\@xRTLfootnotenext\bidipoem@p@xRTLftntext%
6391 \let\@xRTLfootnote\bidipoem@p@xRTLfootnote%
6392 \ignorespaces##\unskip}
6393 \cr
6394 }
6395 \def\poem@lineparseend{%
6396 \crcr\egroup
6397 \vskip-\baselineskip
6398 }
6399 \def\traditionalpoem@cr{%
6400 \cr\poem@line
6401 }
6402 \newbox\verse@i
6403 \newbox\verse@ii
6404 \newif\ifpoem@started
6405
6406 \def\poem@line{%
6407 \poem@lineparseend
6408 \ifdim\wd\verse@i>\z@\global\poem@startedtrue\fi
6409 \ifdim\wd\verse@ii>\z@\global\poem@startedtrue\fi
6410 \ifpoem@started

File bidipoem.sty 133


6411 \ifdim\wd\verse@ii>\z@\else
6412 \nopagebreak[3]
6413 \fi
6414 \leavevmode
6415 \poem@linebegin
6416 \poem@verse\verse@i
6417 \ifdim\wd\verse@ii>\z@
6418 \poem@lineversesep
6419 \poem@verse\verse@ii
6420 \fi
6421 \poem@lineend
6422 % \nopagebreak
6423 \par
6424 \vskip\poemextrabaselineskip
6425 \fi
6426 \poem@lineparsebegin
6427 }
6428 \def\@traditionalpoem{%
6429 \stepcounter{poem@no}
6430 \ifnum\max@poem@no<\number\c@poem@no%
6431 \xdef\poem@width{\z@}%
6432 \else
6433 \xdef\poem@width{\poem@prop{poem@width}}%
6434 \fi
6435 \xdef\new@poem@width{\z@}%
6436 \global\versewidth=\poem@width
6437 \poemskip\par
6438 \begingroup
6439 \tabskip=\z@
6440 \parskip=\z@
6441 \parindent=\z@
6442 \parfillskip=\z@
6443 \rightskip=\z@
6444 \leftskip=\z@
6445 \widowpenalty=10000% No break between verses of the same line.
6446 \clubpenalty=10000% Same as above. Not really needed.
6447 \def\newblock{\hfil\poemblocksep\hfil\null}%
6448 \def\traditionalpoem@par{\traditionalpoem@cr}% Redefine \par for possible \obeylines
6449 \def\\{\global\poem@startedtrue\traditionalpoem@cr}%
6450 \global\poem@startedfalse
6451 \csname poem@obeylines\endcsname
6452 \let\poem@obeylines\relax
6453 \poem@lineparsebegin
6454 }
6455 \def\@endtraditionalpoem{%
6456 \cr
6457 \ifdim\wd\verse@i>\z@\poem@line\else\ifdim\wd\verse@ii>\z@\poem@line\else
6458 \noalign{%
6459 \skip0=\poemextrabaselineskip
6460 \vskip-\skip0

File bidipoem.sty 134


6461 \vskip-\baselineskip
6462 }%
6463 \fi\fi
6464 \poem@lineparseend
6465 \endgroup
6466 \par
6467 \vskip\baselineskip
6468 \poemskip
6469 \ifdim\new@poem@width<\poem@width
6470 \global\let\poem@needrun\relax
6471 \fi
6472 \poem@write@aux{poem@width@\romannumeral\c@poem@no}{\new@poem@width}%
6473 \ifx\AtEndDocument\undefined\poem@finish\fi
6474 \@endparenv
6475 }
6476
6477
6478 \long\def\bidipoem@p@ftntext#1{%
6479 \edef\@tempx{\the\bidipoem@p@ftn\noexpand\footnotetext[\the\csname c@\@mpfn\endcsname]}%
6480 \global\bidipoem@p@ftn\expandafter{\@tempx{#1}}}%
6481 \long\def\bidipoem@p@LTRftntext#1{%
6482 \edef\@tempxi{\the\bidipoem@p@ftn\noexpand\LTRfootnotetext[\the\csname c@\@mpfn\endcsname]}%
6483 \global\bidipoem@p@ftn\expandafter{\@tempxi{#1}}}%
6484 \long\def\bidipoem@p@RTLftntext#1{%
6485 \edef\@tempxii{\the\bidipoem@p@ftn\noexpand\RTLfootnotetext[\the\csname c@\@mpfn\endcsname]}
6486 \global\bidipoem@p@ftn\expandafter{\@tempxii{#1}}}%
6487
6488 \long\def\bidipoem@p@xftntext[#1]#2{%
6489 \global\bidipoem@p@ftn\expandafter{\the\bidipoem@p@ftn\footnotetext[#1]{#2}}}
6490
6491 \long\def\bidipoem@p@xLTRftntext[#1]#2{%
6492 \global\bidipoem@p@ftn\expandafter{\the\bidipoem@p@ftn\LTRfootnotetext[#1]{#2}}}
6493
6494 \long\def\bidipoem@p@xRTLftntext[#1]#2{%
6495 \global\bidipoem@p@ftn\expandafter{\the\bidipoem@p@ftn\RTLfootnotetext[#1]{#2}}}
6496
6497 \def\bidipoem@p@xfootnote[#1]{%
6498 \begingroup
6499 \csname c@\@mpfn\endcsname #1\relax
6500 \unrestored@protected@xdef\@thefnmark{\thempfn}%
6501 \endgroup
6502 \@footnotemark\bidipoem@p@xftntext[#1]}
6503
6504 \def\bidipoem@p@xLTRfootnote[#1]{%
6505 \begingroup
6506 \csname c@\@mpfn\endcsname #1\relax
6507 \unrestored@protected@xdef\@thefnmark{\thempfn}%
6508 \endgroup
6509 \@footnotemark\bidipoem@p@xLTRftntext[#1]}
6510

File bidipoem.sty 135


6511 \def\bidipoem@p@xRTLfootnote[#1]{%
6512 \begingroup
6513 \csname c@\@mpfn\endcsname #1\relax
6514 \unrestored@protected@xdef\@thefnmark{\thempfn}%
6515 \endgroup
6516 \@footnotemark\bidipoem@p@xRTLftntext[#1]}
6517
6518
6519
6520 \newenvironment{traditionalpoem}{\@traditionalpoem}{\@endtraditionalpoem}
6521 \expandafter\def\csname traditionalpoem*\endcsname{\let\poem@obeylines=\traditionalpoem@obeyli
6522 \expandafter\def\csname endtraditionalpoem*\endcsname{\endtraditionalpoem}
6523 \def\poem@finish{%
6524 \poem@write@aux{max@poem@no}{\number\c@poem@no}%
6525 \ifx\poem@needrun\relax
6526 \PackageWarning{bidipoem}{Unjustified poem. Rerun XeLaTeX to get poem right}%
6527 \global\let\poem@needrun\undefined
6528 \fi
6529 }
6530 \ifx\AtEndDocument\undefined\else\AtEndDocument\poem@finish\fi
6531 \newcounter{poem@no}\setcounter{poem@no}{\z@}
6532 \ifx\max@poem@no\undefined
6533 \def\max@poem@no{0}%
6534 \fi
6535 \newcommand{\poem@prop}[1]{\@nameuse{#1@\romannumeral\c@poem@no}}
6536 \newcommand{\poem@write@aux}[2]{%
6537 \def\@x{\immediate\write\@auxout{\global\noexpand\@namedef{#1}{#2}}}%
6538 \@x
6539 }
6540 \def\@modernpoem{%
6541 \par
6542 \begingroup
6543 \parskip=\z@
6544 \parindent=\z@
6545 \def\[{\@settab\@tabplus\ignorespaces}%
6546 \def\]{\@tabminus\ignorespaces}%
6547 \def\newblock{\poemblocksep}%
6548 \let\newpoem@tabcr\@tabcr
6549 \def\modernpoem@par{% Redefine \par for possible \obeylines
6550 \ifpoem@started\else
6551 \ifdim\wd\@curline>\z@\global\poem@startedtrue\else
6552 \@stopfield
6553 \ifdim\wd\@curfield>\z@\global\poem@startedtrue\fi
6554 \@contfield
6555 \fi
6556 \fi
6557 \ifpoem@started\newpoem@tabcr\fi}%
6558 \def\@tabcr{\global\poem@startedtrue\newpoem@tabcr}%
6559 \global\poem@startedfalse
6560 \csname poem@obeylines\endcsname

File bidipoem.sty 136


6561 \let\poem@obeylines\relax
6562 \begin{tabbing}%
6563 }
6564 \def\@endmodernpoem{%
6565 \global\poem@startedfalse
6566 \ifdim\wd\@curline>\z@\global\poem@startedtrue\else
6567 \@stopfield
6568 \ifdim\wd\@curfield>\z@\global\poem@startedtrue\fi
6569 \@contfield
6570 \fi
6571 \ifpoem@started\else\let\@stopline\@stopfield\fi
6572 \end{tabbing}%
6573 \endgroup
6574 \par
6575 \if@noparlist \else
6576 \ifdim\lastskip >\z@
6577 \@tempskipa\lastskip \vskip -\lastskip
6578 \advance\@tempskipa\parskip \advance\@tempskipa -\@outerparskip
6579 \vskip\@tempskipa
6580 \fi
6581 \@endparenv
6582 \fi
6583 }
6584 \newenvironment{modernpoem}{\@modernpoem}{\@endmodernpoem}
6585 \expandafter\def\csname modernpoem*\endcsname{\let\poem@obeylines=\modernpoem@obeylines\modern
6586 \expandafter\def\csname endmodernpoem*\endcsname{\endmodernpoem}
6587 \gdef\@startfield{%
6588 \global\setbox\@curfield\hbox\bgroup%
6589 \let\@footnotetext\bidipoem@p@ftntext%
6590 \let\@LTRfootnotetext\bidipoem@p@LTRftntext%
6591 \let\@RTLfootnotetext\bidipoem@p@RTLftntext%
6592 \let\@xfootnotenext\bidipoem@p@xftntext%
6593 \let\@xfootnote\bidipoem@p@xfootnote%
6594 \let\@xLTRfootnotenext\bidipoem@p@xLTRftntext%
6595 \let\@xLTRfootnote\bidipoem@p@xLTRfootnote%
6596 \let\@xRTLfootnotenext\bidipoem@p@xRTLftntext%
6597 \let\@xRTLfootnote\bidipoem@p@xRTLfootnote%
6598 \color@begingroup}
6599 \gdef\@stopfield{%
6600 \color@endgroup\egroup\global\bidipoem@p@ftn\expandafter{\expandafter}\the\bidipoem@p@ftn}
6601 \gdef\@contfield{%
6602 \global\setbox\@curfield\hbox\bgroup%
6603 \let\@footnotetext\bidipoem@p@ftntext%
6604 \let\@LTRfootnotetext\bidipoem@p@LTRftntext%
6605 \let\@RTLfootnotetext\bidipoem@p@RTLftntext%
6606 \let\@xfootnotenext\bidipoem@p@xftntext%
6607 \let\@xfootnote\bidipoem@p@xfootnote%
6608 \let\@xLTRfootnotenext\bidipoem@p@xLTRftntext%
6609 \let\@xLTRfootnote\bidipoem@p@xLTRfootnote%
6610 \let\@xRTLfootnotenext\bidipoem@p@xRTLftntext%

File bidipoem.sty 137


6611 \let\@xRTLfootnote\bidipoem@p@xRTLfootnote%
6612 \color@begingroup\unhbox\@curfield}

31 File boek3-xetex-bidi.def
6613 \ProvidesFile{boek3-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for boek3 class for XeTeX
6614 \renewenvironment{theindex}{%
6615 \if@twocolumn
6616 \@restonecolfalse
6617 \else
6618 \@restonecoltrue
6619 \fi
6620 \columnseprule \z@
6621 \columnsep 35\p@
6622 \twocolumn[\@makeschapterhead{\indexname}]%
6623 \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
6624 \thispagestyle{plain}\parindent\z@
6625 \parskip\z@ \@plus .3\p@\relax
6626 \let\item\@idxitem
6627 }{%
6628 \if@restonecol\onecolumn\else\clearpage\fi}
6629 \renewcommand*\head@style{%
6630 \interlinepenalty \@M
6631 \hyphenpenalty=\@M \exhyphenpenalty=\@M
6632 \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
6633 \renewcommand*\@regtocline[3]{%
6634 \ifnum #1>\c@tocdepth
6635 \else
6636 \vskip\z@\@plus.2\p@
6637 {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
6638 \if@RTL\rightskip\else\leftskip\fi\unitindent
6639 \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
6640 \parfillskip\z@
6641 \@tempdima\unitindent
6642 \parindent\z@
6643 \leavevmode
6644 \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
6645 \hskip 1em \nobreak{\slshape #3}\par
6646 }%
6647 \fi}
6648 \if@oldtoc
6649 \renewcommand*\l@part[2]{%
6650 \ifnum \c@tocdepth >-2\relax
6651 \addpenalty{-\@highpenalty}%
6652 \addvspace{2.25em \@plus\p@}%
6653 \begingroup
6654 \setlength\@tempdima{3em}%
6655 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
6656 \parfillskip -\@pnumwidth
6657 {\leavevmode

File boek3-xetex-bidi.def 138


6658 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
6659 \nobreak
6660 \global\@nobreaktrue
6661 \everypar{\global\@nobreakfalse\everypar{}}%
6662 \endgroup
6663 \fi}
6664 \else
6665 \renewcommand*\l@part{%
6666 \ifnum \c@tocdepth >-2\relax
6667 \addpenalty{-\@highpenalty}%
6668 \addvspace{2.25em \@plus \p@}%
6669 \@regtocline{0}%
6670 \fi}
6671 \fi
6672 \if@oldtoc
6673 \renewcommand*\l@chapter[2]{%
6674 \addpenalty{-\@highpenalty}%
6675 \vskip 1.0em \@plus\p@
6676 \setlength\@tempdima{1.5em}%
6677 \begingroup
6678 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
6679 \parfillskip -\@pnumwidth
6680 \leavevmode \bfseries
6681 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
6682 \hskip -\if@RTL\rightskip\else\leftskip\fi
6683 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
6684 \penalty\@highpenalty
6685 \endgroup}
6686 \else
6687 \renewcommand*\l@chapter{\@regtocline{0}}
6688 \fi
6689 \renewenvironment{abstract}{%
6690 \titlepage
6691 \null\vfil
6692 \section*{\SectFont \abstractname}
6693 \noindent\ignorespaces}
6694 {\par\vfil\null\endtitlepage}
6695 \renewenvironment{thebibliography}[1]
6696 {\chapter*{\bibname}%
6697 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
6698 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
6699 \bidi@@thebibliography@font@hook%
6700 \list{\@biblabel{\@arabic\c@enumiv}}%
6701 {\settowidth\labelwidth{\@biblabel{#1}}%
6702 \leftmargin\labelwidth
6703 \advance\leftmargin\labelsep
6704 \@openbib@code
6705 \usecounter{enumiv}%
6706 \let\p@enumiv\@empty
6707 \renewcommand*\theenumiv{\@arabic\c@enumiv}}%

File boek3-xetex-bidi.def 139


6708 \sloppy\clubpenalty4000\widowpenalty4000%
6709 \sfcode`\.\@m}
6710 {\def\@noitemerr
6711 {\@latex@warning{Empty `thebibliography' environment}}%
6712 \endlist}
6713 \renewcommand*\left@footnoterule{%
6714 \kern-3\p@
6715 \kern.5\baselineskip
6716 \hrule\@width\unitindent
6717 \kern.4\baselineskip
6718 }
6719 \renewcommand*\right@footnoterule{%
6720 \kern-3\p@
6721 \kern.5\baselineskip
6722 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
6723 \kern.4\baselineskip}
6724 \renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
6725 \renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
6726 \renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
6727 \renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
6728 \renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
6729 \renewcommand*\theequation{%
6730 \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
6731 \renewcommand*\thefigure{%
6732 \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
6733 \renewcommand*\thetable{%
6734 \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
6735 \renewcommand*\maketitle{%
6736 \begin{titlepage}%
6737 \let\footnotesize\small
6738 \let\right@footnoterule\relax
6739 \let\left@footnoterule\relax
6740 \let\textwidth@footnoterule\relax
6741 \let \footnote \thanks
6742 \long\def\@makefntext##1{\parindent\z@
6743 \def\labelitemi{\textendash}\@revlabeltrue
6744 \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
6745 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
6746 \if@compatibility\setcounter{page}{0}\fi
6747 \null\vfil
6748 \vskip 60\p@
6749 \begin{center}%
6750 \TitleFont
6751 {\LARGE \def\\{\penalty -\@M}
6752 \if@allcaps
6753 \expandafter\uc@nothanks\@title\thanks\relax
6754 \else
6755 \@title
6756 \fi\par}%
6757 \vskip 3em%

File boek3-xetex-bidi.def 140


6758 {\large
6759 \lineskip .75em \parindent\z@
6760 \begin{tabular}[t]{c}%
6761 \if@allcaps
6762 \expandafter\uc@authornothanks\@author\and\relax
6763 \else
6764 \@author
6765 \fi
6766 \end{tabular}\par}%
6767 \vskip 1.5em%
6768 {\large
6769 \if@allcaps
6770 \uppercase\expandafter{\@date}%
6771 \else
6772 \@date
6773 \fi\par}%
6774 \end{center}\par
6775 \@thanks
6776 \vfil\null
6777 \end{titlepage}%
6778 \setcounter{footnote}{0}%
6779 \global\let\thanks\relax
6780 \global\let\maketitle\relax
6781 \global\let\@thanks\@empty
6782 \global\let\@author\@empty
6783 \global\let\@title\@empty
6784 \global\let\@date\@empty
6785 \global\let\title\relax
6786 \global\let\author\relax
6787 \global\let\date\relax
6788 \global\let\and\relax
6789 }

32 File boek-xetex-bidi.def
6790 \ProvidesFile{boek-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for boek class for XeTeX e
6791 \renewenvironment{theindex}{%
6792 \if@twocolumn
6793 \@restonecolfalse
6794 \else
6795 \@restonecoltrue
6796 \fi
6797 \columnseprule \z@
6798 \columnsep 35\p@
6799 \twocolumn[\@makeschapterhead{\indexname}]%
6800 \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
6801 \thispagestyle{plain}\parindent\z@
6802 \parskip\z@ \@plus .3\p@\relax
6803 \let\item\@idxitem
6804 }{%

File boek-xetex-bidi.def 141


6805 \if@restonecol\onecolumn\else\clearpage\fi}
6806 \renewcommand*\head@style{%
6807 \interlinepenalty \@M
6808 \hyphenpenalty=\@M \exhyphenpenalty=\@M
6809 \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
6810 \renewcommand*\@regtocline[3]{%
6811 \ifnum #1>\c@tocdepth
6812 \else
6813 \vskip\z@\@plus.2\p@
6814 {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
6815 \if@RTL\rightskip\else\leftskip\fi\unitindent
6816 \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
6817 \parfillskip\z@
6818 \@tempdima\unitindent
6819 \parindent\z@
6820 \leavevmode
6821 \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
6822 \hskip 1em \nobreak{\slshape #3}\par
6823 }%
6824 \fi}
6825 \if@oldtoc
6826 \renewcommand*\l@part[2]{%
6827 \ifnum \c@tocdepth >-2\relax
6828 \addpenalty{-\@highpenalty}%
6829 \addvspace{2.25em \@plus\p@}%
6830 \begingroup
6831 \setlength\@tempdima{3em}%
6832 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
6833 \parfillskip -\@pnumwidth
6834 {\leavevmode
6835 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
6836 \nobreak
6837 \global\@nobreaktrue
6838 \everypar{\global\@nobreakfalse\everypar{}}%
6839 \endgroup
6840 \fi}
6841 \else
6842 \renewcommand*\l@part{%
6843 \ifnum \c@tocdepth >-2\relax
6844 \addpenalty{-\@highpenalty}%
6845 \addvspace{2.25em \@plus \p@}%
6846 \@regtocline{0}%
6847 \fi}
6848 \fi
6849 \if@oldtoc
6850 \renewcommand*\l@chapter[2]{%
6851 \addpenalty{-\@highpenalty}%
6852 \vskip 1.0em \@plus\p@
6853 \setlength\@tempdima{1.5em}%
6854 \begingroup

File boek-xetex-bidi.def 142


6855 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
6856 \parfillskip -\@pnumwidth
6857 \leavevmode \bfseries
6858 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
6859 \hskip -\if@RTL\rightskip\else\leftskip\fi
6860 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
6861 \penalty\@highpenalty
6862 \endgroup}
6863 \else
6864 \renewcommand*\l@chapter{\@regtocline{0}}
6865 \fi
6866 \renewcommand*\left@footnoterule{%
6867 \kern-3\p@
6868 \kern.5\baselineskip
6869 \hrule\@width\unitindent
6870 \kern.4\baselineskip
6871 }
6872 \renewcommand*\right@footnoterule{%
6873 \kern-3\p@
6874 \kern.5\baselineskip
6875 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
6876 \kern.4\baselineskip}
6877 \renewenvironment{abstract}{%
6878 \titlepage
6879 \null\vfil
6880 \section*{\SectFont \abstractname}
6881 \noindent\ignorespaces}
6882 {\par\vfil\null\endtitlepage}
6883 \renewenvironment{thebibliography}[1]
6884 {\chapter*{\bibname}%
6885 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
6886 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
6887 \bidi@@thebibliography@font@hook%
6888 \list{\@biblabel{\@arabic\c@enumiv}}%
6889 {\settowidth\labelwidth{\@biblabel{#1}}%
6890 \leftmargin\labelwidth
6891 \advance\leftmargin\labelsep
6892 \@openbib@code
6893 \usecounter{enumiv}%
6894 \let\p@enumiv\@empty
6895 \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
6896 \sloppy\clubpenalty4000\widowpenalty4000%
6897 \sfcode`\.\@m}
6898 {\def\@noitemerr
6899 {\@latex@warning{Empty `thebibliography' environment}}%
6900 \endlist}
6901 \renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
6902 \renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
6903 \renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
6904 \renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}

File boek-xetex-bidi.def 143


6905 \renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
6906 \renewcommand*\theequation{%
6907 \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
6908 \renewcommand*\thefigure{%
6909 \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
6910 \renewcommand*\thetable{%
6911 \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
6912 \renewcommand*\maketitle{%
6913 \begin{titlepage}%
6914 \let\footnotesize\small
6915 \let\right@footnoterule\relax
6916 \let\left@footnoterule\relax
6917 \let\textwidth@footnoterule\relax
6918 \let \footnote \thanks
6919 \long\def\@makefntext##1{\parindent\z@
6920 \def\labelitemi{\textendash}\@revlabeltrue
6921 \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
6922 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
6923 \if@compatibility\setcounter{page}{0}\fi
6924 \null\vfil
6925 \vskip 60\p@
6926 \begin{center}%
6927 \TitleFont
6928 {\LARGE \def\\{\penalty -\@M}
6929 \if@allcaps
6930 \expandafter\uc@nothanks\@title\thanks\relax
6931 \else
6932 \@title
6933 \fi\par}%
6934 \vskip 3em%
6935 {\large
6936 \lineskip .75em \parindent\z@
6937 \begin{tabular}[t]{c}%
6938 \if@allcaps
6939 \expandafter\uc@authornothanks\@author\and\relax
6940 \else
6941 \@author
6942 \fi
6943 \end{tabular}\par}%
6944 \vskip 1.5em%
6945 {\large
6946 \if@allcaps
6947 \uppercase\expandafter{\@date}%
6948 \else
6949 \@date
6950 \fi\par}%
6951 \end{center}\par
6952 \@thanks
6953 \vfil\null
6954 \end{titlepage}%

File boek-xetex-bidi.def 144


6955 \setcounter{footnote}{0}%
6956 \global\let\thanks\relax
6957 \global\let\maketitle\relax
6958 \global\let\@thanks\@empty
6959 \global\let\@author\@empty
6960 \global\let\@title\@empty
6961 \global\let\@date\@empty
6962 \global\let\title\relax
6963 \global\let\author\relax
6964 \global\let\date\relax
6965 \global\let\and\relax
6966 }

33 File bookest-xetex-bidi.def
6967 \ProvidesFile{bookest-xetex-bidi.def}[2010/07/25 v0.4 bidi adaptations for bookest class for X
6968 \def\@makechapterhead#1{%
6969 \vspace*{20\p@}
6970 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
6971 \ifnum \c@secnumdepth >\m@ne
6972 \if@mainmatter
6973 {\colorA\huge\scshape \@chapapp\space \thechapter}
6974 \par\nobreak
6975 \vskip 10\p@
6976 \fi
6977 \fi
6978 \interlinepenalty\@M
6979 {\colorB\hrule}
6980 \vskip 15\p@
6981 \if@RTL\begin{flushleft}\else\begin{flushright}\fi
6982 {\colorA\Huge \bfseries #1}\par\nobreak
6983 \if@RTL\end{flushleft}\else\end{flushright}\fi
6984 \vskip 5\p@
6985 {\colorB\hrule}
6986 \vskip 30\p@
6987 }}
6988 \def\@makeschapterhead#1{%
6989 \vspace*{20\p@}
6990 {\parindent \z@ \raggedright \normalfont
6991 {\colorB\hrule}
6992 \vskip 15\p@
6993 \begin{center}
6994 {\colorA\Huge \bfseries #1}\par\nobreak
6995 \end{center}
6996 \vskip 5\p@
6997 {\colorB\hrule}
6998 \vskip 30\p@
6999 }}

File bookest-xetex-bidi.def 145


34 File book-xetex-bidi.def
7000 \ProvidesFile{book-xetex-bidi.def}[2017/06/09 v1.0 bidi adaptations for standard book class fo
7001 \renewenvironment{theindex}
7002 {\if@twocolumn
7003 \@restonecolfalse
7004 \else
7005 \@restonecoltrue
7006 \fi
7007 \columnseprule \z@
7008 \columnsep 35\p@
7009 \twocolumn[\@makeschapterhead{\indexname}]%
7010 \@mkboth{\MakeUppercase\indexname}%
7011 {\MakeUppercase\indexname}%
7012 \thispagestyle{plain}\parindent\z@
7013 \parskip\z@ \@plus .3\p@\relax
7014 \let\item\@idxitem}
7015 {\if@restonecol\onecolumn\else\clearpage\fi}
7016 \@ifclassloaded{bookest}{}{%
7017 \if@titlepage
7018 \renewcommand\maketitle{\begin{titlepage}%
7019 \let\footnotesize\small
7020 \let\right@footnoterule\relax
7021 \let\left@footnoterule\relax
7022 \let\textwidth@footnoterule\relax
7023 \let \footnote \thanks
7024 \let \LTRfootnote \LTRthanks
7025 \let \RTLfootnote \RTLthanks
7026 \null\vfil
7027 \vskip 60\p@
7028 \begin{center}%
7029 {\LARGE \@title \par}%
7030 \vskip 3em%
7031 {\large
7032 \lineskip .75em%
7033 \begin{tabular}[t]{c}%
7034 \@author
7035 \end{tabular}\par}%
7036 \vskip 1.5em%
7037 {\large \@date \par}% % Set date in \large size.
7038 \end{center}\par
7039 \@thanks
7040 \vfil\null
7041 \end{titlepage}%
7042 \setcounter{footnote}{0}%
7043 \global\let\thanks\relax
7044 \global\let\LTRthanks\relax
7045 \global\let\RTLthanks\relax
7046 \global\let\maketitle\relax
7047 \global\let\@thanks\@empty

File book-xetex-bidi.def 146


7048 \global\let\@author\@empty
7049 \global\let\@date\@empty
7050 \global\let\@title\@empty
7051 \global\let\title\relax
7052 \global\let\author\relax
7053 \global\let\date\relax
7054 \global\let\and\relax
7055 }
7056 \else
7057 \renewcommand\maketitle{\par
7058 \begingroup
7059 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
7060 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
7061 \long\def\@makefntext##1{\parindent 1em\noindent
7062 \hb@[email protected]{%
7063 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
7064 \if@twocolumn
7065 \ifnum \col@number=\@ne
7066 \@maketitle
7067 \else
7068 \twocolumn[\@maketitle]%
7069 \fi
7070 \else
7071 \newpage
7072 \global\@topnum\z@ % Prevents figures from going at top of page.
7073 \@maketitle
7074 \fi
7075 \thispagestyle{plain}\@thanks
7076 \endgroup
7077 \setcounter{footnote}{0}%
7078 \global\let\thanks\relax
7079 \global\let\LTRthanks\relax
7080 \global\let\RTLthanks\relax
7081 \global\let\maketitle\relax
7082 \global\let\@maketitle\relax
7083 \global\let\@thanks\@empty
7084 \global\let\@author\@empty
7085 \global\let\@date\@empty
7086 \global\let\@title\@empty
7087 \global\let\title\relax
7088 \global\let\author\relax
7089 \global\let\date\relax
7090 \global\let\and\relax
7091 }
7092 \def\@maketitle{%
7093 \newpage
7094 \null
7095 \vskip 2em%
7096 \begin{center}%
7097 \let \footnote \thanks

File book-xetex-bidi.def 147


7098 \let \LTRfootnote \LTRthanks
7099 \let \RTLfootnote \RTLthanks
7100 {\LARGE \@title \par}%
7101 \vskip 1.5em%
7102 {\large
7103 \lineskip .5em%
7104 \begin{tabular}[t]{c}%
7105 \@author
7106 \end{tabular}\par}%
7107 \vskip 1em%
7108 {\large \@date}%
7109 \end{center}%
7110 \par
7111 \vskip 1.5em}
7112 \fi}
7113 \renewcommand*\l@part[2]{%
7114 \ifnum \c@tocdepth >-2\relax
7115 \addpenalty{-\@highpenalty}%
7116 \addvspace{2.25em \@plus\p@}%
7117 \setlength\@tempdima{3em}%
7118 \begingroup
7119 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
7120 \parfillskip -\@pnumwidth
7121 {\leavevmode
7122 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
7123 \nobreak
7124 \global\@nobreaktrue
7125 \everypar{\global\@nobreakfalse\everypar{}}%
7126 \endgroup
7127 \fi}
7128 \renewcommand*\l@chapter[2]{%
7129 \ifnum \c@tocdepth >\m@ne
7130 \addpenalty{-\@highpenalty}%
7131 \vskip 1.0em \@plus\p@
7132 \setlength\@tempdima{1.5em}%
7133 \begingroup
7134 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
7135 \parfillskip -\@pnumwidth
7136 \leavevmode \bfseries
7137 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
7138 \hskip -\if@RTL\rightskip\else\leftskip\fi
7139 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
7140 \penalty\@highpenalty
7141 \endgroup
7142 \fi}
7143 \renewcommand\left@footnoterule{%
7144 \kern-3\p@
7145 \hrule\@width.4\columnwidth
7146 \kern2.6\p@}
7147 \renewcommand\right@footnoterule{%

File book-xetex-bidi.def 148


7148 \kern-3\p@
7149 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
7150 \kern2.6\p@}
7151 \renewcommand\theequation
7152 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
7153 \renewcommand \thefigure
7154 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
7155 \renewcommand \thetable
7156 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
7157 \renewcommand \thechapter {\@arabic\c@chapter}
7158 \renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
7159 \renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
7160 \renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
7161 \renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
7162 \renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
7163 \def\@makechapterhead#1{%
7164 \vspace*{50\p@}%
7165 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
7166 \ifnum \c@secnumdepth >\m@ne
7167 \if@mainmatter
7168 \huge\bfseries \@chapapp\space \thechapter
7169 \par\nobreak
7170 \vskip 20\p@
7171 \fi
7172 \fi
7173 \interlinepenalty\@M
7174 \Huge \bfseries #1\par\nobreak
7175 \vskip 40\p@
7176 }}
7177 \def\@makeschapterhead#1{%
7178 \vspace*{50\p@}%
7179 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
7180 \normalfont
7181 \interlinepenalty\@M
7182 \Huge \bfseries #1\par\nobreak
7183 \vskip 40\p@
7184 }}
7185 \renewcommand\backmatter{%
7186 \if@openright
7187 \cleardoublepage
7188 \else
7189 \clearpage
7190 \fi
7191 \@mainmatterfalse}
7192 \renewenvironment{thebibliography}[1]
7193 {\chapter*{\bibname}%
7194 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
7195 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
7196 \bidi@@thebibliography@font@hook%
7197 \list{\@biblabel{\@arabic\c@enumiv}}%

File book-xetex-bidi.def 149


7198 {\settowidth\labelwidth{\@biblabel{#1}}%
7199 \leftmargin\labelwidth
7200 \advance\leftmargin\labelsep
7201 \@openbib@code
7202 \usecounter{enumiv}%
7203 \let\p@enumiv\@empty
7204 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
7205 \sloppy
7206 \clubpenalty4000
7207 \@clubpenalty \clubpenalty
7208 \widowpenalty4000%
7209 \sfcode`\.\@m}
7210 {\def\@noitemerr
7211 {\@latex@warning{Empty `thebibliography' environment}}%
7212 \endlist}

35 File breqn-xetex-bidi.def
7213 \ProvidesFile{breqn-xetex-bidi.def}[2016/09/12 v0.2 bidi adaptations for breqn package for XeT
7214 \def\@dmath[#1]{\if@RTL\@RTLfalse\fi%
7215 \everydisplay\expandafter{\the\everydisplay \display@setup}%
7216 \if@noskipsec \leavevmode \fi
7217 \if@inlabel \leavevmode \global\@inlabelfalse \fi
7218 \if\eq@group\else\eq@prelim\fi
7219 \setkeys{breqn}{#1}%
7220 \the\eqstyle
7221 \eq@setnumber
7222 \begingroup
7223 \eq@setup@a
7224 \eq@startup
7225 }
7226 \def\@dgroup[#1]{\if@RTL\@RTLfalse\fi%
7227 \let\eq@group\@True \global\let\eq@GRP@first@dmath\@True
7228 \global\GRP@queue\@emptytoks \global\setbox\GRP@box\box\voidb@x
7229 \global\let\GRP@label\@empty
7230 \global\grp@wdL\z@\global\grp@wdR\z@\global\grp@wdT\z@
7231 \global\grp@linewidth\z@\global\grp@wdNum\z@
7232 \global\let\grp@eqs@numbered\@False
7233 \global\let\grp@aligned\@True
7234 \global\let\grp@shiftnumber\@False
7235 \eq@prelim
7236 \setkeys{breqn}{#1}%
7237 \if\grp@hasNumber \grp@setnumber \fi
7238 }
7239 \def\@dseries[#1]{\if@RTL\@RTLfalse\fi%
7240 \let\display@setup\dseries@display@setup
7241 % Question: should this be the default for dseries???
7242 \global\eq@wdCond\z@
7243 \@dmath[layout={M},#1]%
7244 \mathsurround\z@\@@math \penalty\@Mi

File breqn-xetex-bidi.def 150


7245 \let\endmath\ends@math
7246 \def\premath{%
7247 \ifdim\lastskip<.3em \unskip
7248 \else\ifnum\lastpenalty<\@M \dquad\fi\fi
7249 }%
7250 \def\postmath{\unpenalty\eq@addpunct \penalty\intermath@penalty \dquad \@ignoretrue}%
7251 \ignorespaces
7252 }
7253 \def\eqnumform#1{\if@nonlatin\beginR\@RTLtrue\fi(#1\@@italiccorr)\if@nonlatin\endR\fi}
7254 \renewenvironment{dsuspend}{%
7255 \global\setbox\EQ@box\vbox\bgroup\if@nonlatin\@RTLtrue\fi \@parboxrestore
7256 \parshape 1 \displayindent \displaywidth\relax
7257 \hsize=\columnwidth \noindent\ignorespaces
7258 }{%
7259 \par\egroup
7260 \global\setbox\GRP@box\vbox{%
7261 \hbox{\copy\EQ@box\vtop{\unvbox\EQ@box}}%
7262 \unvbox\GRP@box
7263 }%
7264 \global\GRP@queue\@xp{\the\GRP@queue
7265 \@elt{\let\eq@isIntertext\@True}%
7266 }%
7267 }

36 File cals-xetex-bidi.def
7268 \ProvidesFile{cals-xetex-bidi.def}[2016/11/30 v0.4 bidi adaptations for cals package for XeTeX
7269 \renewcommand\cals@setup@alignment[1]{%
7270 \if c#1\relax \cals@vfillAdd \leftskip \cals@vfillAdd \rightskip \fi
7271 \if l#1\relax \cals@vfillDrop\leftskip \cals@vfillDrop\rightskip \fi
7272 \if r#1\relax \cals@vfillAdd \leftskip \cals@vfillDrop\rightskip \fi
7273 }
7274 \renewcommand\cals@table@alignment{\if@RTLtab r\else l\fi}
7275 \renewenvironment{calstable}[1][\cals@table@alignment]{%
7276 \if@RTLtab\cals@activate@rtl\fi
7277 \let\cals@thead@tokens=\relax
7278 \let\cals@tfoot@tokens=\relax
7279 \let\cals@tbreak@tokens=\relax
7280 \cals@tfoot@height=0pt \relax
7281 \let\cals@last@context=n%
7282 \let\cals@current@context=b%
7283 \parindent=0pt \relax%
7284 \cals@setup@alignment{#1}%
7285 \cals@setpadding{Ag}\cals@setcellprevdepth{Al}\cals@set@tohsize%
7286 %% Alignment inside is independent on center/flushright outside
7287 \parfillskip=0pt plus1fil\relax
7288 \let\cals@borderL=\relax
7289 \let\cals@borderR=\relax
7290 \let\cals@borderT=\relax
7291 \let\cals@borderB=\relax

File cals-xetex-bidi.def 151


7292 \setbox\cals@backup@row=\box\voidb@x\relax
7293 \cals@AtBeginTable
7294 }{% End of the table
7295 \cals@tfoot@tokens\lastrule\cals@AtEndTable}
7296 \renewcommand\alignL{%
7297 \if@RTLtab
7298 \cals@vfillAdd\cals@paddingL
7299 \else
7300 \cals@vfillDrop\cals@paddingL
7301 \fi
7302 \cals@vfillDrop\cals@paddingR}
7303 \renewcommand\alignR{%
7304 \if@RTLtab
7305 \cals@vfillDrop\cals@paddingL
7306 \else
7307 \cals@vfillAdd\cals@paddingL
7308 \fi
7309 \cals@vfillDrop\cals@paddingR}

37 File caption-xetex-bidi.def
7310 \ProvidesFile{caption-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for caption package for
7311 \let\@makecaption\caption@makecaption

38 File caption3-xetex-bidi.def
7312 \ProvidesFile{caption3-xetex-bidi.def}[2013/04/01 v0.1 bidi adaptations for caption3 package f
7313 \renewcommand*\caption@@par{%
7314 \parindent\caption@parindent\hangindent\if@RTL-\fi\caption@hangindent}%

39 File colortbl-xetex-bidi.def
7315 \ProvidesFile{colortbl-xetex-bidi.def}[2012/06/10 v0.2 bidi adaptations for colortbl package f
7316 \def\CT@setup{%
7317 \@tempdimb\col@sep
7318 \@tempdimc\col@sep
7319 \def\CT@color{%
7320 \global\let\CT@do@color\CT@@do@color
7321 \bidicolor}}
7322 \def\@classz{\@classx
7323 \@tempcnta \count@
7324 \prepnext@tok
7325 \expandafter\CT@extract\the\toks\@tempcnta\columncolor!\@nil
7326 \@addtopreamble{\if@RTLtab\beginL\fi%
7327 \setbox\z@\hbox\bgroup\bgroup\if@RTLtab\beginR\fi
7328 \ifcase \@chnum
7329 \hskip\stretch{.5}\kern\z@
7330 \d@llarbegin
7331 \insert@column
7332 \d@llarend\hskip\stretch{.5}\or

File colortbl-xetex-bidi.def 152


7333 \d@llarbegin \insert@column \d@llarend \hfill \or
7334 \hfill\kern\z@ \d@llarbegin \insert@column \d@llarend \or
7335 $\vcenter
7336 \@startpbox{\@nextchar}\insert@column \@endpbox $\or
7337 \vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or
7338 \vbox \@startpbox{\@nextchar}\insert@column \@endpbox
7339 \fi
7340 \if@RTLtab\endR\fi\egroup\egroup
7341 \begingroup
7342 \CT@setup
7343 \CT@column@color
7344 \CT@row@color
7345 \CT@cell@color
7346 \CT@do@color
7347 \endgroup
7348 \@tempdima\ht\z@
7349 \advance\@tempdima\minrowclearance
7350 \vrule\@height\@tempdima\@width\z@
7351 \unhbox\z@\if@RTLtab\endL\fi}%
7352 \prepnext@tok}

40 File color-xetex-bidi.def
7353 \ProvidesFile{color-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for color package for XeT
7354 \long\def\color@b@x#1#2#3{%
7355 \leavevmode\ifmmode\else\if@RTL\beginL\fi\fi
7356 \setbox\z@\hbox{\kern\fboxsep{\set@color\if@RTL\beginR\fi#3\if@RTL\endR\fi}\kern\fboxsep}%
7357 \dimen@\ht\z@\advance\dimen@\fboxsep\ht\z@\dimen@
7358 \dimen@\dp\z@\advance\dimen@\fboxsep\dp\z@\dimen@
7359 {#1{#2\color@block{\wd\z@}{\ht\z@}{\dp\z@}%
7360 \box\z@}}\ifmmode\else\if@RTL\endL\fi\fi}
7361 \def\normalcolor{\let\current@color\default@color\ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\
7362 \DeclareRobustCommand\color{%
7363 \ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\@ifnextchar[\@undeclaredcolor\@declaredcolor}
7364 \def\@declaredcolor#1{%
7365 \@ifundefined{\string\color @#1}%
7366 {\c@lor@error{`#1'}}%
7367 {\expandafter\let\expandafter\current@color
7368 \csname\string\color @#1\endcsname
7369 \set@color}%
7370 \ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi\ignorespaces}
7371 \def\@undeclaredcolor[#1]#2{%
7372 \@ifundefined{color@#1}%
7373 {\c@lor@error{model `#1'}}%
7374 {\csname color@#1\endcsname\current@color{#2}%
7375 \set@color}%
7376 \ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi\ignorespaces}
7377 \DeclareRobustCommand\bidicolor{%
7378 \@ifnextchar[\@bidiundeclaredcolor\@bidideclaredcolor}
7379 \def\@bidiundeclaredcolor[#1]#2{%

File color-xetex-bidi.def 153


7380 \@ifundefined{color@#1}%
7381 {\c@lor@error{model `#1'}}%
7382 {\csname color@#1\endcsname\current@color{#2}%
7383 \set@color}%
7384 \ignorespaces}
7385 \def\@bidideclaredcolor#1{%
7386 \@ifundefined{\string\color @#1}%
7387 {\c@lor@error{`#1'}}%
7388 {\expandafter\let\expandafter\current@color
7389 \csname\string\color @#1\endcsname
7390 \set@color}%
7391 \ignorespaces}
7392 \def\color@box#1#2{\color@b@x\relax{\bidicolor#1{#2}}}
7393 \def\color@fbox#1#2#3{%
7394 \color@b@x{\fboxsep\z@\bidicolor#1{#2}\fbox}{\bidicolor#1{#3}}}
7395 \def\color@setgroup{\begingroup\ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\set@color\ifhmode\

41 File combine-xetex-bidi.def
7396 \ProvidesFile{combine-xetex-bidi.def}[2011/09/23 v0.1 bidi adaptations for combine class for X
7397 \renewcommand{\c@ll@chapsecii}[2]{%
7398 \if@RTL\advance\rightskip\@tempdima\else\advance\leftskip\@tempdima\fi
7399 \if@RTL\hskip -\rightskip\else\hskip -\leftskip\fi
7400 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
7401 }
7402 \renewcommand{\c@ll@chapseci}{%
7403 \setlength\@tempdima{0em}%
7404 \begingroup
7405 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
7406 \parfillskip -\@pnumwidth
7407 \leavevmode
7408 }
7409 \renewenvironment{tocindent}[1]{%
7410 \hangindent \if@RTL-\fi#1 \hangafter -100\relax}{}

42 File crop-xetex-bidi.def
7411 \ProvidesFile{crop-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for crop package for XeTeX
7412 \renewcommand*\CROP@@ulc{%
7413 \if@RTLmain%
7414 \begin{picture}(0,0)
7415 \unitlength\p@\thinlines
7416 \put(-40,0){\circle{10}}
7417 \put(-30,-5){\line(0,1){10}}
7418 \put(-35,0){\line(1,0){30}}
7419 \put(-10,30){\circle{10}}
7420 \put(-5,30){\line(1,0){10}}
7421 \put(0,35){\line(0,-1){30}}
7422 \end{picture}%
7423 \else%

File crop-xetex-bidi.def 154


7424 \begin{picture}(0,0)
7425 \unitlength\p@\thinlines
7426 \put(-30,0){\circle{10}}
7427 \put(-30,-5){\line(0,1){10}}
7428 \put(-35,0){\line(1,0){30}}
7429 \put(0,30){\circle{10}}
7430 \put(-5,30){\line(1,0){10}}
7431 \put(0,35){\line(0,-1){30}}
7432 \end{picture}%
7433 \fi%
7434 }
7435 \renewcommand*\CROP@@urc{%
7436 \if@RTLmain%
7437 \begin{picture}(0,0)
7438 \unitlength\p@\thinlines
7439 \put(20,0){\circle{10}}
7440 \put(30,-5){\line(0,1){10}}
7441 \put(35,0){\line(-1,0){30}}
7442 \put(-10,30){\circle{10}}
7443 \put(-5,30){\line(1,0){10}}
7444 \put(0,35){\line(0,-1){30}}
7445 \end{picture}%
7446 \else%
7447 \begin{picture}(0,0)
7448 \unitlength\p@\thinlines
7449 \put(30,0){\circle{10}}
7450 \put(30,-5){\line(0,1){10}}
7451 \put(35,0){\line(-1,0){30}}
7452 \put(0,30){\circle{10}}
7453 \put(-5,30){\line(1,0){10}}
7454 \put(0,35){\line(0,-1){30}}
7455 \end{picture}%
7456 \fi%
7457 }
7458 \renewcommand*\CROP@@llc{%
7459 \if@RTLmain%
7460 \begin{picture}(0,0)
7461 \unitlength\p@\thinlines
7462 \put(-40,0){\circle{10}}
7463 \put(-30,-5){\line(0,1){10}}
7464 \put(-35,0){\line(1,0){30}}
7465 \put(-10,-30){\circle{10}}
7466 \put(-5,-30){\line(1,0){10}}
7467 \put(0,-35){\line(0,1){30}}
7468 \end{picture}%
7469 \else%
7470 \begin{picture}(0,0)
7471 \unitlength\p@\thinlines
7472 \put(-30,0){\circle{10}}
7473 \put(-30,-5){\line(0,1){10}}

File crop-xetex-bidi.def 155


7474 \put(-35,0){\line(1,0){30}}
7475 \put(0,-30){\circle{10}}
7476 \put(-5,-30){\line(1,0){10}}
7477 \put(0,-35){\line(0,1){30}}
7478 \end{picture}%
7479 \fi%
7480 }
7481 \renewcommand*\CROP@@lrc{%
7482 \if@RTLmain%
7483 \begin{picture}(0,0)
7484 \unitlength\p@\thinlines
7485 \put(20,0){\circle{10}}
7486 \put(30,-5){\line(0,1){10}}
7487 \put(35,0){\line(-1,0){30}}
7488 \put(-10,-30){\circle{10}}
7489 \put(-5,-30){\line(1,0){10}}
7490 \put(0,-35){\line(0,1){30}}
7491 \end{picture}%
7492 \else%
7493 \begin{picture}(0,0)
7494 \unitlength\p@\thinlines
7495 \put(30,0){\circle{10}}
7496 \put(30,-5){\line(0,1){10}}
7497 \put(35,0){\line(-1,0){30}}
7498 \put(0,-30){\circle{10}}
7499 \put(-5,-30){\line(1,0){10}}
7500 \put(0,-35){\line(0,1){30}}
7501 \end{picture}%
7502 \fi%
7503 }
7504 \@ifpackagewith{crop}{cam}{%
7505 \CROP@execopt{cam}%
7506 }{}

43 File cutwin-xetex-bidi.def
7507 \ProvidesFile{cutwin-xetex-bidi.def}[2011/11/12 v0.1 bidi adaptations for cutwin package for X
7508 \renewcommand*{\c@twcompctr}[2]{%
7509 \def\c@twfirst{1}
7510 \loop\advance\c@twwinlines\m@ne
7511 \setbox\c@twslicea=\vsplit#1 to\baselineskip
7512 \setbox\c@twsliceb=\vsplit#1 to\baselineskip
7513 \c@twprune{\c@twslicea}{\c@twlftside}%
7514 \c@twprune{\c@twsliceb}{\c@twrtside}%
7515 \ifnum\c@twfirst=\@ne
7516 \setbox#2=\vbox{\unvbox#2\hbox
7517 to\hsize{\if@RTL\box\c@twsliceb\else\box\c@twslicea\fi\pageinwindow\hfil\if@RTL\box\c@twsl
7518 \else
7519 \setbox#2=\vbox{\unvbox#2\hbox
7520 to\hsize{\if@RTL\box\c@twsliceb\else\box\c@twslicea\fi\hfil\if@RTL\box\c@twslicea\else\box

File cutwin-xetex-bidi.def 156


7521 \fi
7522 \def\c@twfirst{2}
7523 \ifnum\c@twwinlines>\z@\repeat}
7524 \renewcommand*{\c@twcompoddctr}[2]{%
7525 \def\c@twrounds{1}
7526 \def\c@twfirst{1}
7527 \@for\c@twlspec:=\c@twb\do{%
7528 \ifnum\c@twrounds=1
7529 \setbox\c@twslicea=\vsplit#1 to\baselineskip % first of pair
7530 \c@twprune{\c@twslicea}{\c@twlspec}%
7531 \def\c@twrounds{2}
7532 \else
7533 \setbox\c@twsliceb=\vsplit#1 to\baselineskip % second of pair
7534 \c@twprune{\c@twsliceb}{\c@twlspec}%
7535 \ifnum\c@twfirst=1
7536 \setbox#2=\vbox{\unvbox#2\hbox
7537 to\hsize{\if@RTL\box\c@twsliceb\else\box\c@twslicea\fi\hfil\picinwindow\hfil\if@RTL\bo
7538 \def\c@twfirst{2}
7539 \else
7540 \setbox#2=\vbox{\unvbox#2\hbox
7541 to\hsize{\if@RTL\box\c@twsliceb\else\box\c@twslicea\fi\hfil\if@RTL\box\c@twslicea\else
7542 \fi
7543 \def\c@twrounds{1}
7544 \fi}}

44 File cuted-xetex-bidi.def
7545 \ProvidesFile{cuted-xetex-bidi.def}[2017/05/06 v0.6 bidi adaptations for cuted package for XeT
7546
7547 \def\RTL@outputdblcol{%
7548 \if@firstcolumn
7549 \global\@firstcolumnfalse
7550 \global\setbox\@leftcolumn\copy\@outputbox
7551 \splitmaxdepth\maxdimen
7552 \vbadness\maxdimen
7553 \setbox\@outputbox\vbox{\unvbox\@outputbox\unskip}%
7554 \setbox\@outputbox\vsplit\@outputbox to\maxdimen
7555 \toks@\expandafter{\topmark}%
7556 \xdef\@firstcoltopmark{\the\toks@}%
7557 \toks@\expandafter{\splitfirstmark}%
7558 \xdef\@firstcolfirstmark{\the\toks@}%
7559 \ifx\@firstcolfirstmark\@empty
7560 \global\let\@setmarks\relax
7561 \else
7562 \gdef\@setmarks{%
7563 \let\firstmark\@firstcolfirstmark
7564 \let\topmark\@firstcoltopmark}%
7565 \fi
7566 \else
7567 \global\@firstcolumntrue

File cuted-xetex-bidi.def 157


7568 \setbox\@outputbox\vbox{%
7569 \hb@xt@\textwidth{%
7570 \hskip \columnwidth
7571 \hfil
7572 {\normalcolor\vrule \@width\columnseprule}%
7573 \hfil
7574 \hb@xt@\columnwidth{%
7575 \bidi@firstcolumn@status@write%
7576 \box\@leftcolumn \hss}%
7577 \hskip -\textwidth
7578 \hb@xt@\columnwidth{%
7579 \bidi@lastcolumn@status@write%
7580 \box\@outputbox \hss}%
7581 \hskip \columnsep
7582 \hskip \columnwidth }}%
7583 \ifvoid\hold@viper
7584 \else
7585 \setbox\@outputbox \vbox to\textheight{%
7586 \box\hold@viper
7587 \box\@outputbox
7588 \vss
7589 }%
7590 \fi
7591 \@combinedblfloats
7592 \@setmarks
7593 \@outputpage
7594 \begingroup
7595 \@dblfloatplacement
7596 \@startdblcolumn
7597 \@whilesw\if@fcolmade \fi{\@outputpage
7598 \@startdblcolumn}%
7599 \ifvoid\@viper
7600 \else
7601 \global\setbox\@viper\vbox{%
7602 \vskip-\stripsep
7603 \unvbox\@viper
7604 }%
7605 \@viperoutput
7606 \fi
7607 \endgroup
7608 \fi}%
7609
7610 \def\LTR@outputdblcol{%
7611 \if@firstcolumn
7612 \global\@firstcolumnfalse
7613 \global\setbox\@leftcolumn\copy\@outputbox
7614 \splitmaxdepth\maxdimen
7615 \vbadness\maxdimen
7616 \setbox\@outputbox\vbox{\unvbox\@outputbox\unskip}%
7617 \setbox\@outputbox\vsplit\@outputbox to\maxdimen

File cuted-xetex-bidi.def 158


7618 \toks@\expandafter{\topmark}%
7619 \xdef\@firstcoltopmark{\the\toks@}%
7620 \toks@\expandafter{\splitfirstmark}%
7621 \xdef\@firstcolfirstmark{\the\toks@}%
7622 \ifx\@firstcolfirstmark\@empty
7623 \global\let\@setmarks\relax
7624 \else
7625 \gdef\@setmarks{%
7626 \let\firstmark\@firstcolfirstmark
7627 \let\topmark\@firstcoltopmark}%
7628 \fi
7629 \else
7630 \global\@firstcolumntrue
7631 \setbox\@outputbox\vbox{%
7632 \hb@xt@\textwidth{%
7633 \hb@xt@\columnwidth{%
7634 \bidi@firstcolumn@status@write%
7635 \box\@leftcolumn \hss}%
7636 \hfil
7637 {\normalcolor\vrule \@width\columnseprule}%
7638 \hfil
7639 \hb@xt@\columnwidth{%
7640 \bidi@lastcolumn@status@write%
7641 \box\@outputbox \hss}}}%
7642 \ifvoid\hold@viper
7643 \else
7644 \setbox\@outputbox \vbox to\textheight{%
7645 \box\hold@viper
7646 \box\@outputbox
7647 \vss
7648 }%
7649 \fi
7650 \@combinedblfloats
7651 \@setmarks
7652 \@outputpage
7653 \begingroup
7654 \@dblfloatplacement
7655 \@startdblcolumn
7656 \@whilesw\if@fcolmade \fi{\@outputpage
7657 \@startdblcolumn}%
7658 \ifvoid\@viper
7659 \else
7660 \global\setbox\@viper\vbox{%
7661 \vskip-\stripsep
7662 \unvbox\@viper
7663 }%
7664 \@viperoutput
7665 \fi
7666 \endgroup
7667 \fi}%

File cuted-xetex-bidi.def 159


7668
7669
7670 \def \@addviper {%
7671 \if@firstcolumn
7672 \@insertfalse
7673 \@reqcolroom .5\@pageht
7674 \ht@viper\@reqcolroom
7675 \advance \@reqcolroom \ht\@viper
7676 \advance \@reqcolroom \stripsep
7677 \ifvoid\hold@viper\@tempdima=\z@\else\@tempdima\ht\hold@viper\fi
7678 %%
7679 \@tempdimb \ht@viper
7680 \loop
7681 \setbox\v@aaa\copy\@holdpg
7682 \setbox\v@ccc\vbox to\@tempdimb{%
7683 \vsplit\v@aaa to\@tempdimb\vss\vsplit\v@aaa to\@tempdimb}%
7684 \wlog{Extra height:\the\ht\v@aaa\space when \the\@tempdimb}%
7685 \ifvoid\v@aaa \else \advance\@tempdimb 1pt \repeat
7686 \loop
7687 \setbox\v@aaa\copy\@holdpg
7688 \setbox\v@ccc\vbox to\@tempdimb{%
7689 \vsplit\v@aaa to\@tempdimb\vss}%
7690 \wlog{(2)Left:\the\ht\v@ccc\space Right:\the\ht\v@aaa\space Output:\the\@tempdimb}%
7691 \ifdim \ht\v@ccc<\ht\v@aaa \@tempdimb \the\ht\v@aaa \repeat
7692 \wlog{- LAST -^^JLeft:\the\ht\v@ccc^^JRight:\the\ht\v@aaa^^JOutput:\the\@tempdimb}%
7693 \setbox\v@ccc\vbox to\@tempdimb{%
7694 \vsplit\@holdpg to\@tempdimb\vss}%
7695 %%
7696 \setbox\@tempboxa \vbox {%
7697 \hb@xt@\textwidth {%
7698 \if@RTLmain%
7699 \hskip \columnwidth
7700 \hfil \vrule width\columnseprule \hfil
7701 \hb@xt@\columnwidth {%
7702 \vbox to\ht@viper{\box\v@ccc\vss} \hss}%
7703 \hskip -\textwidth
7704 \hb@xt@\columnwidth {%
7705 \vbox to\ht@viper{\box\@holdpg\vss} \hss}%
7706 \hskip \columnsep
7707 \hskip \columnwidth
7708 \else%
7709 \hb@xt@\columnwidth {%
7710 \vbox to\ht@viper{\box\v@ccc\vss} \hss}%
7711 \hfil
7712 \vrule \@width\columnseprule
7713 \hfil
7714 \hb@xt@\columnwidth {%
7715 \vbox to\ht@viper{\box\@holdpg\vss} \hss}%
7716 \fi}%
7717 }%

File cuted-xetex-bidi.def 160


7718 \ifvoid\hold@viper
7719 \global\setbox\hold@viper \vbox {%
7720 \unvbox\@tempboxa
7721 \penalty\interlinepenalty
7722 \vskip\stripsep
7723 \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
7724 \outputpenalty \z@
7725 }%
7726 \else
7727 \global\setbox\hold@viper \vbox {%
7728 \unvbox\hold@viper
7729 \unvbox\@tempboxa
7730 \penalty\interlinepenalty
7731 \vskip\stripsep
7732 \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
7733 \outputpenalty \z@
7734 }%
7735 \fi
7736 \ifdim \@colroom>\@reqcolroom
7737 \global\setbox\hold@viper \vbox {%
7738 \unvbox\hold@viper
7739 \box\@viper
7740 \penalty\interlinepenalty
7741 \vskip\stripsep
7742 \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
7743 \outputpenalty \z@
7744 }%
7745 \@inserttrue
7746 \advance\@tempdima by-\ht\hold@viper
7747 \global \advance \@colht \@tempdima
7748 \ifdim \@colht<2.5\baselineskip
7749 \@latex@warning@no@line {Optional argument of \noexpand\twocolumn
7750 too tall on page \thepage (1 stulpelis)}%
7751 \@emptycol
7752 \if@firstcolumn
7753 \else
7754 \@emptycol
7755 \fi
7756 \global\@lastvipertrue
7757 \else
7758 \global \vsize \@colht
7759 \global \@colroom \@colht
7760 \check@floats
7761 \ifdim\@tempdima>\z@
7762 \global\advance\@colroom by-\@tempdima
7763 \fi
7764 \ifdim\@colroom<\z@
7765 \global\@colroom 1pt
7766 \ifdim\@tempdima>\@colht
7767 \@latex@warning@no@line {TOP ir/ar BOT FLOAT's

File cuted-xetex-bidi.def 161


7768 netelpa lape \thepage (1 stulpelis)}%
7769 \fi
7770 \@emptycol
7771 \if@firstcolumn
7772 \else
7773 \@emptycol
7774 \fi
7775 \global\@lastvipertrue
7776 \fi
7777 \fi
7778 \fi
7779 \else
7780 \@insertfalse
7781 \@reqcolroom\@colht
7782 \advance\@reqcolroom \@pageht
7783 \[email protected]\@reqcolroom
7784 \@reqcolroom\ht@viper
7785 \advance \@reqcolroom \ht\@viper
7786 \advance \@reqcolroom \stripsep
7787 \if@flushend@auto@baselineskip
7788 \setbox\@tempboxa\vbox{\unvcopy\@leftcolumn
7789 \global\lastskip@d\lastskip
7790 \global\lastskip@b\lastskip
7791 \loop
7792 \global\lastskip@a\lastskip@b
7793 \unskip\unpenalty
7794 \global\lastskip@b\lastskip
7795 \global\advance\lastskip@d by\lastskip
7796 \ifdim\lastskip@b=-\lastskip@a
7797 \global\advance\lastskip@d by-\lastskip
7798 \else
7799 \repeat
7800 \ifdim\lastskip@b=-\lastskip@a
7801 \ifdim\lastskip@b=\z@
7802 \setbox\lastbox@a\lastbox
7803 \global\advance\lastskip@d by\ht\lastbox@a
7804 \global\advance\lastskip@d by\lastskip
7805 \unskip\unpenalty
7806 \setbox\lastbox@a\lastbox
7807 \global\advance\lastskip@d by\dp\lastbox@a
7808 \else
7809 \global\lastskip@d\lastskip
7810 \global\advance\lastskip@d by\topskip
7811 \fi
7812 \fi
7813 \global\advance\lastskip@d by-\topskip
7814 }%
7815 \ifdim\ht\@holdpg>\@colht
7816 \global\setbox\@holdpg\vbox{\unvbox\@leftcolumn\unskip\unpenalty
7817 \par\eject

File cuted-xetex-bidi.def 162


7818 \vbox to \@colht{\unvbox\@holdpg\unskip}%
7819 }%
7820 \else
7821 \global\setbox\@holdpg\vbox{%
7822 \unvbox\@leftcolumn\unskip\unpenalty
7823 \vskip\lastskip@d
7824 \the\At@ViperColsBreak
7825 \unvbox\@holdpg
7826 \unskip
7827 }%
7828 \fi
7829 \else
7830 \global\setbox\@holdpg\vbox{%
7831 \unvbox\@leftcolumn
7832 \setbox\@tempboxa\lastbox
7833 \on@stripcols@break
7834 \the\At@ViperColsBreak
7835 \unvbox\@holdpg
7836 }%
7837 \fi
7838 \global\At@ViperColsBreak{}%
7839 \ht@viper .5\ht\@holdpg
7840 \ifdim \ht@viper>\@colht
7841 \ht@viper \@colht
7842 \fi
7843 \ifvoid\hold@viper\@tempdima=\z@\else\@tempdima\ht\hold@viper\fi
7844 %%
7845 \@tempdimb \ht@viper
7846 \loop
7847 \setbox\v@aaa\copy\@holdpg
7848 \setbox\v@ccc\vbox to\@tempdimb{%
7849 \vsplit\v@aaa to\@tempdimb
7850 \vss
7851 \vsplit\v@aaa to\@tempdimb
7852 }%
7853 \wlog{Extra height:\the\ht\v@aaa\space when \the\@tempdimb}%
7854 \ifvoid\v@aaa
7855 \else
7856 \advance\@tempdimb 1\p@
7857 \repeat
7858 \loop
7859 \setbox\v@aaa\copy\@holdpg
7860 \setbox\v@ccc\vbox to\@tempdimb{\vsplit\v@aaa to\@tempdimb\vss}%
7861 \wlog{(2)Left:\the\ht\v@ccc\space
7862 Right:\the\ht\v@aaa\space
7863 Output:\the\@tempdimb
7864 }%
7865 \ifdim\ht\v@ccc<\ht\v@aaa
7866 \@tempdimb \the\ht\v@aaa
7867 \repeat

File cuted-xetex-bidi.def 163


7868 \wlog{- LAST -^^JLeft:\the\ht\v@ccc
7869 ^^JRight:\the\ht\v@aaa
7870 ^^JOutput:\the\@tempdimb
7871 }%
7872 \setbox\v@ccc\vbox to\@tempdimb{\vsplit\@holdpg to\@tempdimb\vss}%
7873 \setbox\@tempboxa\vbox{%
7874 \hb@xt@\textwidth {%
7875 \if@RTLmain%
7876 \hskip \columnwidth
7877 \hfil \vrule width\columnseprule \hfil
7878 \hb@xt@\columnwidth{\vbox to\ht@viper{\box\v@ccc\vss} \hss}%
7879 \hskip -\textwidth
7880 \hb@xt@\columnwidth {\vbox to\ht@viper{\box\@holdpg\vss} \hss}%
7881 \hskip \columnsep
7882 \hskip \columnwidth
7883 \else
7884 \hb@xt@\columnwidth{\vbox to\ht@viper{\box\v@ccc\vss} \hss}%
7885 \hfil
7886 \vrule \@width\columnseprule
7887 \hfil
7888 \hb@xt@\columnwidth {\vbox to\ht@viper{\box\@holdpg\vss} \hss}%
7889 \fi%
7890 }%
7891 }%
7892 \ifvoid\hold@viper
7893 \global\setbox\hold@viper \vbox {%
7894 \unvbox\@tempboxa
7895 \penalty\interlinepenalty
7896 \vskip\stripsep
7897 \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
7898 \outputpenalty \z@
7899 }%
7900 \else
7901 \global\setbox\hold@viper \vbox {%
7902 \unvbox\hold@viper
7903 \unvbox\@tempboxa
7904 \penalty\interlinepenalty
7905 \vskip\stripsep
7906 \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
7907 \outputpenalty \z@
7908 }%
7909 \fi
7910 \ifdim \@colht>\@reqcolroom
7911 \global\setbox\hold@viper \vbox {%
7912 \unvbox\hold@viper
7913 \box\@viper
7914 \penalty\interlinepenalty
7915 \vskip\stripsep
7916 \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
7917 \outputpenalty \z@

File cuted-xetex-bidi.def 164


7918 }%
7919 \@inserttrue
7920 \global\@firstcolumntrue
7921 \advance\@tempdima by-\ht\hold@viper
7922 \global \advance \@colht \@tempdima
7923 \ifdim \@colht<2.5\baselineskip
7924 \@latex@warning@no@line {Optional argument of \noexpand\twocolumn
7925 too tall on page \thepage (2 stulpelis)}%
7926 \@emptycol
7927 \if@firstcolumn
7928 \else
7929 \@emptycol
7930 \fi
7931 \global\@lastvipertrue
7932 \else
7933 \global \vsize \@colht
7934 \global \@colroom \@colht
7935 \check@floats
7936 \ifdim\@tempdima>\z@
7937 \global\advance\@colroom by-\@tempdima
7938 \fi
7939 \ifdim\@colroom<\z@
7940 \global\@colroom 1pt
7941 \ifdim\@tempdima>\@colht
7942 \@latex@warning@no@line {TOP ir/ar BOT FLOAT's
7943 netelpa lape \thepage (2 stulpelis)}%
7944 \fi
7945 \@emptycol
7946 \if@firstcolumn
7947 \else
7948 \@emptycol
7949 \fi
7950 \global\@lastvipertrue
7951 \fi
7952 \fi
7953 \fi
7954 \fi
7955 \if@insert
7956 \else
7957 \advance\@tempdima by-\ht\hold@viper
7958 \global \advance \@colht \@tempdima
7959 \global\setbox\hold@viper \vbox {%
7960 \unvbox\hold@viper
7961 \csname viper@top@hook\endcsname
7962 \vsplit\@viper to \@colht
7963 \vss
7964 }%
7965 \vbox{}%
7966 \global\@firstcolumnfalse
7967 \newpage

File cuted-xetex-bidi.def 165


7968 \fi
7969 }

45 File cvthemebidicasual.sty
7970 \NeedsTeXFormat{LaTeX2e}
7971 \ProvidesPackage{cvthemebidicasual}
7972 \DeclareOption{blue}{}
7973 \newif\if@colourorange\@colourorangefalse
7974 \DeclareOption{orange}{\@colourorangetrue}
7975 \newif\if@colourgreen\@colourgreenfalse
7976 \DeclareOption{green}{\@colourgreentrue}
7977 \newif\if@colourred\@colourredfalse
7978 \DeclareOption{red}{\@colourredtrue}
7979 \newif\if@colourgrey\@colourgreyfalse
7980 \DeclareOption{grey}{\@colourgreytrue}
7981 \DeclareOption*{
7982 \PackageWarning{cvthemebidicasual}{Unknown option ‘\CurrentOption’}}
7983 \ExecuteOptions{colour}
7984 \ProcessOptions\relax
7985 \renewcommand*{\listitemsymbol}{\textbullet}
7986 \definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
7987 \familynamecolour{808080}
7988 \firstnamecolour{A9A9A9}
7989 \quotecolour{696969}
7990 \addresscolour{696969}
7991 \definecolor{sectionrectanglecolor}{rgb}{0.25,0.50,0.75}
7992 \sectiontitlecolour{1E90FF}
7993 \subsectioncolour{4682B4}
7994 \definecolor{rulecolour}{gray}{0.6}
7995 \definecolor{footersymbolcolour}{rgb}{0.25,0.50,0.75}
7996 \definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
7997 \if@colourorange
7998 \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
7999 \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
8000 \sectiontitlecolour{FF8C00}
8001 \subsectioncolour{FF8C00}
8002 \definecolor{footersymbolcolour}{rgb}{0.95,0.55,0.15}
8003 \definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi
8004 \if@colourgreen
8005 \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
8006 \definecolor{sectionrectanglecolour}{rgb}{0.55,0.85,0.35}
8007 \sectiontitlecolour{008000}
8008 \subsectioncolour{008000}
8009 \definecolor{footersymbolcolour}{rgb}{0.30,0.65,0.15}
8010 \definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi
8011 \if@colourred
8012 \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
8013 \definecolor{sectionrectanglecolour}{rgb}{1.00,0.30,0.30}
8014 \sectiontitlecolour{FF0000}

File cvthemebidicasual.sty 166


8015 \subsectioncolour{FF0000}
8016 \definecolor{footersymbolcolour}{rgb}{0.95,0.20,0.20}
8017 \definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
8018 \if@colourgrey
8019 \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
8020 \definecolor{sectionrectanglecolour}{rgb}{0.75,0.75,0.75}
8021 \sectiontitlecolour{808080}
8022 \subsectioncolour{808080}
8023 \definecolor{footersymbolcolour}{rgb}{0.35,0.35,0.35}
8024 \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi
8025 \renewcommand*{\ttdefault}{pcr}
8026 \renewcommand*{\firstnamefont}{\fontsize{38}{40}\mdseries\upshape}
8027 \renewcommand*{\familynamefont}{\firstnamefont}
8028 \renewcommand*{\addressfont}{\normalsize\mdseries\slshape}
8029 \renewcommand*{\quotefont}{\large\slshape}
8030 \renewcommand*{\sectionfont}{\Large\mdseries\upshape}
8031 \renewcommand*{\subsectionfont}{\large\mdseries\upshape}
8032 \renewcommand*{\maketitle}{%
8033 {%
8034 \ifthenelse{\isundefined{\@photo}}%
8035 {}%
8036 {{\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
8037 \hfill%
8038 \bidi@raggedleft{\firstnamestyle{\@firstname}~\familynamestyle{\@familyname}}\\[-.35em]}%
8039 {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}%
8040 \ifthenelse{\isundefined{\@quote}}%
8041 {}%
8042 {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2
8043 }%
8044 \newif\if@firstfooterelement\@firstfooterelementtrue
8045 \providecommand*{\footersymbol}{}
8046 \renewcommand*{\footersymbol}{%
8047 \if@firstfooterelement%
8048 \else%
8049 { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
8050 \providecommand*{\makefooter}{}
8051 \renewcommand*{\makefooter}{%
8052 \fancypagestyle{plain}{%
8053 \fancyfoot[c]{%
8054 \parbox{0.8\textwidth}{%
8055 \centering%
8056 \addressfont\@addresscolour%
8057 \ifthenelse{\isundefined{\@address}}{}{%
8058 \addresssymbol~\@address\\%
8059 \@firstfooterelementfalse}%
8060 \ifthenelse{\isundefined{\@mobile}}{}{\mobilesymbol~\@mobile\@firstfooterelementfalse}%
8061 \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfootereleme
8062 \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfals
8063 \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firs
8064 \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfal

File cvthemebidicasual.sty 167


8065 }%
8066 \pagestyle{plain}}
8067 \AtBeginDocument{\makefooter}

46 File cvthemebidiclassic.sty
8068 \NeedsTeXFormat{LaTeX2e}
8069 \ProvidesPackage{cvthemebidiclassic}
8070 \DeclareOption{blue}{}
8071 \newif\if@colourorange\@colourorangefalse
8072 \DeclareOption{orange}{\@colourorangetrue}
8073 \newif\if@colourgreen\@colourgreenfalse
8074 \DeclareOption{green}{\@colourgreentrue}
8075 \newif\if@colourred\@colourredfalse
8076 \DeclareOption{red}{\@colourredtrue}
8077 \newif\if@colourgrey\@colourgreyfalse
8078 \DeclareOption{grey}{\@colourgreytrue}
8079 \DeclareOption*{
8080 \PackageWarning{cvthemebidiclassic}{Unknown option ‘\CurrentOption’}}
8081 \ExecuteOptions{colour}
8082 \ProcessOptions\relax
8083 \renewcommand*{\listitemsymbol}{\textbullet}
8084 \firstnamecolour{}
8085 \familynamecolour{}
8086 \titlecolour{808080}
8087 \quotecolour{696969}
8088 \addresscolour{696969}
8089 \definecolor{sectionrectanglecolour}{rgb}{0.25,0.50,0.75}
8090 \definecolor{sectionrectanglecolor}{rgb}{0.25,0.5,0.75}
8091 \sectiontitlecolour{1E90FF}
8092 \subsectioncolour{4682B4}
8093 \if@colourorange
8094 \addresscolour{FF8C00}
8095 \definecolor{sectionrectanglecolour}{rgb}{1.00,0.65,0.20}
8096 \definecolor{sectionrectanglecolor}{rgb}{1,0.65,0.20}
8097 \sectiontitlecolour{FF8C00}
8098 \subsectioncolour{FF8C00}\fi
8099 \if@colourgreen
8100 \addresscolour{008000}
8101 \definecolor{sectionrectanglecolour}{rgb}{0.55,0.85,0.35}
8102 \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
8103 \sectiontitlecolour{008000}
8104 \subsectioncolour{008000}\fi
8105 \if@colourred
8106 \addresscolour{FF0000}
8107 \definecolor{sectionrectanglecolour}{rgb}{1.00,0.30,0.30}
8108 \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
8109 \sectiontitlecolour{FF0000}
8110 \subsectioncolour{FF0000}\fi
8111 \if@colourgrey

File cvthemebidiclassic.sty 168


8112 \addresscolour{808080}
8113 \definecolor{sectionrectanglecolour}{rgb}{0.75,0.75,0.75}
8114 \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
8115 \sectiontitlecolour{808080}
8116 \subsectioncolour{808080}\fi
8117 \renewcommand*{\ttdefault}{pcr}
8118 \renewcommand*{\firstnamefont}{\fontsize{34}{36}\mdseries\upshape}
8119 \renewcommand*{\titlefont}{\LARGE\mdseries\slshape}
8120 \renewcommand*{\addressfont}{\normalsize\mdseries\slshape}
8121 \renewcommand*{\familynamefont}{\firstnamefont}
8122 \renewcommand*{\quotefont}{\large\slshape}
8123 \renewcommand*{\sectionfont}{\Large\mdseries\upshape}
8124 \renewcommand*{\subsectionfont}{\large\mdseries\upshape}
8125 \newlength{\maketitlenamemaxwidth}
8126 \setlength{\maketitlenamemaxwidth}{.525\textwidth}
8127 \newlength{\maketitlenamefullwidth}
8128 \settowidth{\maketitlenamefullwidth}{\firstnamestyle{\@firstname~}\familynamestyle{\@familynam
8129 \newlength{\maketitlenamewidth}
8130 \ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitle
8131 \newlength{\maketitlepicturewidth}
8132 \setlength{\maketitlepicturewidth}{\@photowidth}
8133 \newlength{\maketitledetailswidth}
8134 \renewcommand*{\recomputethemelengths}{%
8135 \setlength{\maketitledetailswidth}{\textwidth}%
8136 \addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
8137 \addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
8138 \addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}
8139 \recomputethemelengths
8140 \newif\if@firstdetailselement\@firstdetailselementtrue
8141 \newcommand*{\maketitledetailsnewline}{
8142 \if@firstdetailselement%
8143 \@firstdetailselementfalse%
8144 \else%
8145 \\[.2em]\fi}
8146 \renewcommand*{\maketitle}{%
8147 % name and title
8148 \begin{minipage}[b]{\maketitlenamewidth}%
8149 \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}%
8150 \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
8151 \end{minipage}%
8152 % optional data
8153 \begin{minipage}[b]{\maketitledetailswidth}%
8154 \bidi@raggedleft\addressfont\@addresscolour%
8155 \ifthenelse{\isundefined{\@address}}{}{%
8156 \maketitledetailsnewline%
8157 \addresssymbol~\\\@address}%
8158 \ifthenelse{\isundefined{\@mobile}}{}{\maketitledetailsnewline\mobilesymbol~\@mobile}%
8159 \ifthenelse{\isundefined{\@phone}}{}{\maketitledetailsnewline\phonesymbol~\@phone}%
8160 \ifthenelse{\isundefined{\@fax}}{}{\maketitledetailsnewline\faxsymbol~\@fax}%
8161 \ifthenelse{\isundefined{\@email}}{}{\maketitledetailsnewline\emailsymbol~\emaillink{\@ema

File cvthemebidiclassic.sty 169


8162 \ifthenelse{\isundefined{\@extrainfo}}{}{\maketitledetailsnewline\@extrainfo}%
8163 \end{minipage}%
8164 % optional photo
8165 \ifthenelse{\isundefined{\@photo}}%
8166 {}%
8167 {\hspace*{\separatorcolumnwidth}\color{firstnamecolor}\framebox{\includegraphics[width=\ma
8168 % optional quote
8169 \ifthenelse{\isundefined{\@quote}}%
8170 {}%
8171 {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2
8172 }

47 File dblfnote-xetex-bidi.def
8173 \ProvidesFile{dblfnote-xetex-bidi.def}[2012/12/12 v0.3 bidi adaptations for dblfnote package f
8174 \let\autofootnoterule\relax
8175 \let\rightfootnoterule\relax
8176 \let\leftfootnoterule\relax
8177 \let\textwidthfootnoterule\relax
8178 \let\LRfootnoterule\relax
8179 \def\footnoterule{\kern-3\p@
8180 \hrule \@width \DFNcolumnwidth \kern 2.6\p@}%
8181 \AtBeginDocument{\let\dfn@latex@footnotetext\@footnotetext
8182 \let\@footnotetext\dfn@footnotetext}
8183 \long\def\dfn@LTRfootnotetext#1{{\setbox\dfn@boxa\vbox{
8184 \let\insert\dfn@gobble
8185 \columnwidth\DFNcolumnwidth \hbadness\c@DFNsloppiness
8186 \def\@makefnmark{\smash{\dfn@makefnmark}}
8187 \dfn@latex@LTRfootnotetext{#1}\par \boxmaxdepth\dfn@fnmaxdp}%
8188 \dfn@dima\ht\dfn@boxa \advance\dfn@dima\dp\dfn@boxa
8189 \ifdim\dfn@dima>\z@\else
8190 \dfn@dima1sp\relax
8191 \setbox\dfn@boxa\vbox{\vbox to1sp{\unvbox\dfn@boxa\vfil}}\fi
8192 \global\setbox\dfn@ins\vbox{\boxmaxdepth\dfn@fnmaxdp
8193 \ifvoid\dfn@ins\else
8194 \unvbox\dfn@ins \allowbreak \nointerlineskip \fi
8195 \ifdfn@allowcbreak \unvbox \else \box \fi \dfn@boxa}%
8196 \setbox\dfn@boxa\copy\dfn@ins
8197 \dfn@split{.5\ht\dfn@boxa}\dfn@boxa\dfn@boxb\dfn@fnmaxdp\footnotesep
8198 \advance\@tempdima\@tempdimb \@tempdimb\@tempdima
8199 \advance\@tempdima-\dfn@fnht \global\dfn@fnht\@tempdimb
8200 \insert\footins{\floatingpenalty\@MM \vbox to\@tempdima{}}%
8201 \xdef\dfn@list{\dfn@list\@elt{\number\dfn@dima}{\number\@tempdima}}}}
8202 \AtBeginDocument{\let\dfn@latex@LTRfootnotetext\@LTRfootnotetext
8203 \let\@LTRfootnotetext\dfn@LTRfootnotetext}
8204 \long\def\dfn@RTLfootnotetext#1{{\setbox\dfn@boxa\vbox{
8205 \let\insert\dfn@gobble
8206 \columnwidth\DFNcolumnwidth \hbadness\c@DFNsloppiness
8207 \def\@makefnmark{\smash{\dfn@makefnmark}}
8208 \dfn@latex@RTLfootnotetext{#1}\par \boxmaxdepth\dfn@fnmaxdp}%

File dblfnote-xetex-bidi.def 170


8209 \dfn@dima\ht\dfn@boxa \advance\dfn@dima\dp\dfn@boxa
8210 \ifdim\dfn@dima>\z@\else
8211 \dfn@dima1sp\relax
8212 \setbox\dfn@boxa\vbox{\vbox to1sp{\unvbox\dfn@boxa\vfil}}\fi
8213 \global\setbox\dfn@ins\vbox{\boxmaxdepth\dfn@fnmaxdp
8214 \ifvoid\dfn@ins\else
8215 \unvbox\dfn@ins \allowbreak \nointerlineskip \fi
8216 \ifdfn@allowcbreak \unvbox \else \box \fi \dfn@boxa}%
8217 \setbox\dfn@boxa\copy\dfn@ins
8218 \dfn@split{.5\ht\dfn@boxa}\dfn@boxa\dfn@boxb\dfn@fnmaxdp\footnotesep
8219 \advance\@tempdima\@tempdimb \@tempdimb\@tempdima
8220 \advance\@tempdima-\dfn@fnht \global\dfn@fnht\@tempdimb
8221 \insert\footins{\floatingpenalty\@MM \vbox to\@tempdima{}}%
8222 \xdef\dfn@list{\dfn@list\@elt{\number\dfn@dima}{\number\@tempdima}}}}
8223 \AtBeginDocument{\let\dfn@latex@RTLfootnotetext\@RTLfootnotetext
8224 \let\@RTLfootnotetext\dfn@RTLfootnotetext}
8225 \def\dfn@RTLmakecol{{\ifvoid\footins\else
8226 \dfn@dima\ht\footins
8227 \@tempcnta\z@ \dfn@countins
8228 \@tempdima\z@ \let\@elt\dfn@elt@getht
8229 \dfn@list\@nil
8230 \ifdim\@tempdima=\z@\else
8231 \dfn@split\@tempdima\dfn@ins\dfn@boxa\z@\z@
8232 \global\setbox\dfn@ins\box\dfn@ins
8233 \@tempswatrue
8234 \ifdfn@trysingle
8235 \setbox\dfn@boxb\vbox{\unvcopy\@cclv}\@tempdima\@colroom
8236 \advance\@tempdima-\ht\dfn@boxb \advance\@tempdima-\dp\dfn@boxb
8237 \advance\@tempdima-\skip\footins
8238 \advance\@tempdima-\ht\dfn@boxa
8239 \ifdim\@tempdima<\z@\else \@tempswafalse
8240 \global\setbox\footins\vbox{\boxmaxdepth\dfn@fnmaxdp
8241 \footnoterule \unvbox\dfn@boxa}\fi\fi
8242 \if@tempswa
8243 \dfn@split{\dfn@dima}\dfn@boxa\dfn@boxb\dfn@fnmaxdp\footnotesep
8244 \global\setbox\footins\vbox{\hbox{%
8245 \hskip \DFNcolumnwidth
8246 \hskip\DFNcolumnsep
8247 \hbox to\DFNcolumnwidth{\vbox to\@tempdima{\footnoterule
8248 \unvbox\dfn@boxb\vss}\hss}
8249 \hskip -\textwidth
8250 \hbox to\DFNcolumnwidth{\ifvoid\dfn@boxa\else
8251 \vbox to\@tempdima{
8252 \setbox\@tempboxa\vbox{\footnoterule}
8253 \ifdfn@ruleboth \unvbox\@tempboxa
8254 \else \@tempdima\ht\@tempboxa
8255 \advance\@tempdima\dp\@tempboxa
8256 \vskip\@tempdima
8257 \prevdepth\dp\@tempboxa \fi
8258 \unvbox\dfn@boxa\vss}\fi\hss}

File dblfnote-xetex-bidi.def 171


8259 \hskip \DFNcolumnsep
8260 \hskip \DFNcolumnwidth}}\fi\fi
8261 \global\dfn@fnht\z@
8262 \ifx\dfn@list\@empty\else
8263 \let\@elt\dfn@elt@adjust \dfn@dima\z@ \dfn@dimb\z@
8264 \dfn@list \global\advance\dfn@fnht\dfn@dimb
8265 \let\@elt\relax
8266 \ifdim\dfn@dimb>\z@
8267 \xdef\dfn@list{\@elt{0}{\number\dfn@dimb}\dfn@list}%
8268 \insert\footins{\floatingpenalty\@MM
8269 \vbox to\dfn@dimb{}}\fi
8270 \ifdim\dfn@fnht>\@tempdima
8271 \@tempdimb\@tempdima \advance\@tempdimb-\dfn@fnht
8272 \global\dfn@fnht\@tempdima
8273 \xdef\dfn@list{\dfn@list\@elt{0}{\number\@tempdimb}}%
8274 \xdef\dfn@afteroutput{\insert\footins{
8275 \floatingpenalty\@MM
8276 \vbox to\number\@tempdimb sp{}}%
8277 \global\let\noexpand\dfn@afteroutput\relax}%
8278 \fi\fi
8279 \fi}%
8280 \let\footnoterule\relax \dfn@latex@makecol
8281 \let\footnoterule\dfn@footnoterule}
8282 \def\dfn@LTRmakecol{{\ifvoid\footins\else
8283 \dfn@dima\ht\footins
8284 \@tempcnta\z@ \dfn@countins
8285 \@tempdima\z@ \let\@elt\dfn@elt@getht
8286 \dfn@list\@nil
8287 \ifdim\@tempdima=\z@\else
8288 \dfn@split\@tempdima\dfn@ins\dfn@boxa\z@\z@
8289 \global\setbox\dfn@ins\box\dfn@ins
8290 \@tempswatrue
8291 \ifdfn@trysingle
8292 \setbox\dfn@boxb\vbox{\unvcopy\@cclv}\@tempdima\@colroom
8293 \advance\@tempdima-\ht\dfn@boxb \advance\@tempdima-\dp\dfn@boxb
8294 \advance\@tempdima-\skip\footins
8295 \advance\@tempdima-\ht\dfn@boxa
8296 \ifdim\@tempdima<\z@\else \@tempswafalse
8297 \global\setbox\footins\vbox{\boxmaxdepth\dfn@fnmaxdp
8298 \footnoterule \unvbox\dfn@boxa}\fi\fi
8299 \if@tempswa
8300 \dfn@split{\dfn@dima}\dfn@boxa\dfn@boxb\dfn@fnmaxdp\footnotesep
8301 \global\setbox\footins\vbox{\hbox{%
8302 \hbox to\DFNcolumnwidth{\vbox to\@tempdima{\footnoterule
8303 \unvbox\dfn@boxb\vss}\hss}\hskip\DFNcolumnsep
8304 \hbox to\DFNcolumnwidth{\ifvoid\dfn@boxa\else
8305 \vbox to\@tempdima{
8306 \setbox\@tempboxa\vbox{\footnoterule}
8307 \ifdfn@ruleboth \unvbox\@tempboxa
8308 \else \@tempdima\ht\@tempboxa

File dblfnote-xetex-bidi.def 172


8309 \advance\@tempdima\dp\@tempboxa
8310 \vskip\@tempdima
8311 \prevdepth\dp\@tempboxa \fi
8312 \unvbox\dfn@boxa\vss}\fi\hss}}}\fi\fi
8313 \global\dfn@fnht\z@
8314 \ifx\dfn@list\@empty\else
8315 \let\@elt\dfn@elt@adjust \dfn@dima\z@ \dfn@dimb\z@
8316 \dfn@list \global\advance\dfn@fnht\dfn@dimb
8317 \let\@elt\relax
8318 \ifdim\dfn@dimb>\z@
8319 \xdef\dfn@list{\@elt{0}{\number\dfn@dimb}\dfn@list}%
8320 \insert\footins{\floatingpenalty\@MM
8321 \vbox to\dfn@dimb{}}\fi
8322 \ifdim\dfn@fnht>\@tempdima
8323 \@tempdimb\@tempdima \advance\@tempdimb-\dfn@fnht
8324 \global\dfn@fnht\@tempdima
8325 \xdef\dfn@list{\dfn@list\@elt{0}{\number\@tempdimb}}%
8326 \xdef\dfn@afteroutput{\insert\footins{
8327 \floatingpenalty\@MM
8328 \vbox to\number\@tempdimb sp{}}%
8329 \global\let\noexpand\dfn@afteroutput\relax}%
8330 \fi\fi
8331 \fi}%
8332 \let\footnoterule\relax \dfn@latex@makecol
8333 \let\footnoterule\dfn@footnoterule}
8334 \renewcommand{\dfn@makecol}{\if@RTLmain\dfn@RTLmakecol\else\dfn@LTRmakecol\fi}
8335 \newcommand{\RTLdfnmakecol}{\renewcommand{\dfn@makecol}{\dfn@RTLmakecol}}
8336 \newcommand{\LTRdfnmakecol}{\renewcommand{\dfn@makecol}{\dfn@LTRmakecol}}
8337 \DFNalwaysdouble

48 File diagbox-xetex-bidi.def
8338 \ProvidesFile{diagbox-xetex-bidi.def}[2017/12/30 v0.2 bidi adaptations for diagbox package for
8339 \bidi@patchcmd{\diagbox@double}{%
8340 \begin{tabular}{@{\hspace{\diagbox@insepl}}>{\diagbox@font}l@{}}
8341 }{\bidi@@diagbox@double@ii}{}{}
8342 \bidi@patchcmd{\diagbox@double}{%
8343 \begin{tabular}{@{}>{\diagbox@font}r@{\hspace{\diagbox@insepr}}}
8344 }{\bidi@@diagbox@double@iii}{}{}
8345 \newcommand*{\bidi@@diagbox@double@ii}{%
8346 \if@RTL
8347 \begin{tabular}{@{}>{\diagbox@font}r@{\hspace{\diagbox@insepl}}}
8348 \else
8349 \begin{tabular}{@{\hspace{\diagbox@insepl}}>{\diagbox@font}l@{}}
8350 \fi
8351 }
8352 \newcommand*{\bidi@@diagbox@double@iii}{%
8353 \if@RTL
8354 \begin{tabular}{@{\hspace{\diagbox@insepr}}>{\diagbox@font}l@{}}
8355 \else

File diagbox-xetex-bidi.def 173


8356 \begin{tabular}{@{}>{\diagbox@font}r@{\hspace{\diagbox@insepr}}}
8357 \fi
8358 }
8359 \bidi@patchcmd{\diagbox@triple@setbox@NW}{%
8360 \begin{tabular}{@{\hspace{\diagbox@insepl}}>{\diagbox@font}l@{}}
8361 }{\bidi@@diagbox@triple@setbox@NW@tabular@i@ii}{}{}
8362 \bidi@patchcmd{\diagbox@triple@setbox@NW}{%
8363 \begin{tabular}{@{\hspace{\diagbox@insepl}}>{\diagbox@font}l@{}}
8364 }{\bidi@@diagbox@triple@setbox@NW@tabular@i@ii}{}{}
8365 \bidi@patchcmd{\diagbox@triple@setbox@NW}{%
8366 \begin{tabular}{@{}>{\diagbox@font}r@{\hspace{\diagbox@insepr}}}
8367 }{\bidi@@diagbox@triple@setbox@NW@tabular@iii}{}{}
8368 \newcommand*{\bidi@@diagbox@triple@setbox@NW@tabular@i@ii}{%
8369 \if@RTL
8370 \begin{tabular}{@{}>{\diagbox@font}r@{\hspace{\diagbox@insepl}}}
8371 \else
8372 \begin{tabular}{@{\hspace{\diagbox@insepl}}>{\diagbox@font}l@{}}
8373 \fi}
8374 \newcommand*{\bidi@@diagbox@triple@setbox@NW@tabular@iii}{%
8375 \if@RTL
8376 \begin{tabular}{@{\hspace{\diagbox@insepr}}>{\diagbox@font}l@{}}
8377 \else
8378 \begin{tabular}{@{}>{\diagbox@font}r@{\hspace{\diagbox@insepr}}}
8379 \fi}
8380 \let\diagbox@triple@setbox@SW\diagbox@triple@setbox@NW
8381 \bidi@patchcmd{\diagbox@triple@setbox@SE}{%
8382 \begin{tabular}{@{\hspace{\diagbox@insepl}}l@{}}%
8383 }{\bidi@@diagbox@triple@setbox@SE@tabular@i}{}{}
8384 \bidi@patchcmd{\diagbox@triple@setbox@SE}{%
8385 \begin{tabular}{@{}r@{\hspace{\diagbox@insepr}}}%
8386 }{\bidi@@diagbox@triple@setbox@SE@tabular@ii@iii}{}{}
8387 \bidi@patchcmd{\diagbox@triple@setbox@SE}{%
8388 \begin{tabular}{@{}r@{\hspace{\diagbox@insepr}}}%
8389 }{\bidi@@diagbox@triple@setbox@SE@tabular@ii@iii}{}{}
8390 \newcommand*{\bidi@@diagbox@triple@setbox@SE@tabular@i}{%
8391 \if@RTL
8392 \begin{tabular}{@{}r@{\hspace{\diagbox@insepl}}}
8393 \else
8394 \begin{tabular}{@{\hspace{\diagbox@insepl}}l@{}}
8395 \fi
8396 }
8397 \newcommand*{\bidi@@diagbox@triple@setbox@SE@tabular@ii@iii}{%
8398 \if@RTL
8399 \begin{tabular}{@{\hspace{\diagbox@insepr}}l@{}}
8400 \else
8401 \begin{tabular}{@{}r@{\hspace{\diagbox@insepr}}}
8402 \fi
8403 }
8404 \let\diagbox@triple@setbox@NE\diagbox@triple@setbox@SE
8405 \bidi@patchcmd{\diagbox@double@pict@SE}{%

File diagbox-xetex-bidi.def 174


8406 \diagbox@setlinecolor
8407 \Line(0,\strip@pt\diagbox@ht)(\strip@pt\diagbox@wd,0)%
8408 }{%
8409 {\diagbox@setlinecolor
8410 \Line(0,\strip@pt\diagbox@ht)(\strip@pt\diagbox@wd,0)}%
8411 }{}{}
8412 \let\diagbox@double@pict@NW\diagbox@double@pict@SE
8413 \bidi@patchcmd{\diagbox@double@pict@NE}{%
8414 \diagbox@setlinecolor
8415 \Line(0,0)(\strip@pt\diagbox@wd,\strip@pt\diagbox@ht)%
8416 }{%
8417 {\diagbox@setlinecolor
8418 \Line(0,0)(\strip@pt\diagbox@wd,\strip@pt\diagbox@ht)}%
8419 }{}{}
8420 \let\diagbox@double@pict@SW\diagbox@double@pict@NE
8421 \bidi@patchcmd{\diagbox@triple@pict@NW}{%
8422 \diagbox@setlinecolor
8423 \Line(0,\yym)(\x,0)
8424 \Line(\xm,\y)(\x,0)%
8425 }{%
8426 {\diagbox@setlinecolor
8427 \Line(0,\yym)(\x,0)
8428 \Line(\xm,\y)(\x,0)}%
8429 }{}{}
8430 \bidi@patchcmd{\diagbox@triple@pict@NE}{%
8431 \diagbox@setlinecolor
8432 \Line(0,0)(\xxm,\y)
8433 \Line(0,0)(\x,\yym)%
8434 }{%
8435 {\diagbox@setlinecolor
8436 \Line(0,0)(\xxm,\y)
8437 \Line(0,0)(\x,\yym)}%
8438 }{}{}
8439 \bidi@patchcmd{\diagbox@triple@pict@SW}{%
8440 \diagbox@setlinecolor
8441 \Line(0,\ym)(\x,\y)
8442 \Line(\xm,0)(\x,\y)%
8443 }{%
8444 {\diagbox@setlinecolor
8445 \Line(0,\ym)(\x,\y)
8446 \Line(\xm,0)(\x,\y)}%
8447 }{}{}
8448 \bidi@patchcmd{\diagbox@triple@pict@SE}{%
8449 \diagbox@setlinecolor
8450 \Line(0,\y)(\xxm,0)
8451 \Line(0,\y)(\x,\ym)%
8452 }{%
8453 {\diagbox@setlinecolor
8454 \Line(0,\y)(\xxm,0)
8455 \Line(0,\y)(\x,\ym)}%

File diagbox-xetex-bidi.def 175


8456 }{}{}

49 File draftwatermark-xetex-bidi.def
8457 \ProvidesFile{draftwatermark-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for draftwaterma
8458 \renewcommand\SetWatermarkText[1]{%
8459 \def\sc@wm@text{\if@RTLmain\beginR\fi#1\if@RTLmain\endR\fi}}

50 File eso-pic-xetex-bidi.def
8460 \ProvidesFile{eso-pic-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for eso-pic package for
8461 \renewcommand\AtPageLowerLeft[1]{\AtPageUpperLeft{%
8462 \put(\LenToUnit{\if@RTLmain\paperwidth\else0pt\fi},\LenToUnit{-\paperheight}){#1}}}
8463
8464 \ESO@isMEMOIR{%
8465 \renewcommand\AtTextUpperLeft[1]{%
8466 \begingroup
8467 \ifodd\c@page
8468 \@tempdima=\spinemargin
8469 \else
8470 \@tempdima=\paperwidth
8471 \advance\@tempdima-\textwidth
8472 \advance\@tempdima-\spinemargin
8473 \fi
8474 \@tempdimb=-\uppermargin
8475 \AtPageUpperLeft{%
8476 \put(\LenToUnit{\if@RTLmain-\fi\@tempdima},\LenToUnit{\@tempdimb}){#1}%
8477 }%
8478 \endgroup
8479 }
8480 }{%
8481 \renewcommand\AtTextUpperLeft[1]{%
8482 \begingroup
8483 \@tempdima=1in\relax
8484 \ifodd\c@page
8485 \advance\@tempdima\oddsidemargin
8486 \else
8487 \advance\@tempdima\evensidemargin
8488 \fi
8489 \@tempdimb=-1in\relax
8490 \advance\@tempdimb-\topmargin
8491 \advance\@tempdimb-\headheight
8492 \advance\@tempdimb-\headsep
8493 \AtPageUpperLeft{%
8494 \put(\LenToUnit{\if@RTLmain-\fi\@tempdima},\LenToUnit{\@tempdimb}){#1}%
8495 }%
8496 \endgroup
8497 }
8498 }

File eso-pic-xetex-bidi.def 176


51 File empheq-xetex-bidi.def
8499 \ProvidesFile{empheq-xetex-bidi.def}[2018/01/08 v0.2 bidi adaptations for empheq package for X
8500 \MHInternalSyntaxOn
8501 \def\EQ_tag_plus_endmark:{%
8502 \iftagsleft@
8503 \gdef\maketag@@@##1{%
8504 \hfuzz\displaywidth
8505 \if@RTL\makebox[\widthof{##1}][r]{%
8506 \hbox to \displaywidth{\m@th\normalfont##1\hss
8507 \raisebox{-\dp\EQ_mathdisplay_box
8508 -\depthof{\EQ_outerbox:{}}}
8509 {\PotEndMark{\hss}}}}
8510 \else\makebox[\widthof{##1}][l]{%
8511 \hbox to \displaywidth{\m@th\normalfont##1\hss
8512 \raisebox{-\dp\EQ_mathdisplay_box
8513 -\depthof{\EQ_outerbox:{}}}
8514 {\PotEndMark{\hss}}}}\fi}%
8515 \MH_else:
8516 \gdef\maketag@@@##1{%
8517 \hbox{\m@th\normalfont##1\llap{\hss\PotEndMark{%
8518 \settoheight{\@tempdima}{\@nameuse{\InTheoType Symbol}}%
8519 \MH_addtolength:dn \@tempdima
8520 {\g_EQ_bottomtag_depth_dim+\mintagvsep}
8521 \setlength{\@tempdimb}
8522 {\g_EQ_bottomrow_depth_dim+\depthof{\EQ_outerbox:{}}
8523 +\depthof{\EQ_innerbox:{}}}
8524 \MH_if_dim:w \@tempdima>\@tempdimb
8525 \MH_setlength:dn \@tempdima{-\dp\EQ_mathdisplay_box
8526 -\@tempdima+\g_EQ_bottomrow_depth_dim}
8527 \addtolength{\@tempdima}{\depthof{\EQ_innerbox:{}}}%
8528 \def\EQ_next:{\raisebox{\@tempdima}}%
8529 \MH_else:
8530 \def\EQ_next:{
8531 \raisebox{-\dp\EQ_mathdisplay_box
8532 -\depthof{\EQ_outerbox:{}}}}%
8533 \MH_fi:\EQ_next:}}}}%
8534 \MH_fi:}
8535 \def\EQ_post_process:{%
8536 \EQ_initialize:
8537 \EQ_begin_equation:
8538 \MH_if_boolean:nT {outer_mult}{
8539 \setkeys{\MT_options_name:}{
8540 firstline-afterskip=0pt,
8541 lastline-preskip=0pt,
8542 multlined-width=0pt,
8543 }
8544 \ifodd \l_EQ_alignmentmode_int
8545 \setkeys{\MT_options_name:}{multlined-pos=b}
8546 \MH_else:

File empheq-xetex-bidi.def 177


8547 \setkeys{\MT_options_name:}{multlined-pos=t}
8548 \MH_fi:
8549 \g@addto@macro\EQ_complete_mathdisplay:{
8550 \begin{MTmultlined}\relax}
8551 }
8552 \g@addto@macro\EQ_complete_mathdisplay:\EQ_mathbody:
8553 \MH_if_boolean:nT {outer_mult}{
8554 \g@addto@macro\EQ_complete_mathdisplay:{\end{MTmultlined}}
8555 }
8556 \EQ_end_equation:
8557 \edef\EQ_hyperref_link_fint{\number\Hy@linkcounter}
8558 \savecounters@
8559 \EQ_typeset_tags:
8560 \edef\l_EQ_equation_fint{\number\c@equation}
8561 \restorecounters@
8562 \Hy@linkcounter=\EQ_hyperref_link_fint
8563 \settowidth\l_EQ_totalwidth_dim{%
8564 $\EQ_left_side:\EQ_innerbox:{}\EQ_right_side:$}%
8565 \MH_if_boolean:nTF {outer_mult}
8566 { \def\EQ_next:{_mult} }
8567 { \def\EQ_next:{} }
8568 \@nameuse{EQ_modify_linewidth_
8569 \romannumeral\l_EQ_equationtype_int\EQ_next: :}%
8570 \EQ_typeset_display:
8571 \@nameuse{EQ_find_displaywidth_
8572 \romannumeral\l_EQ_equationtype_int\EQ_next: :}
8573 \MH_addtolength:dn
8574 \l_EQ_totalwidth_dim{\l_EQ_displaywidth_dim}
8575 \savebox\EQ_mathdisplay_box[\l_EQ_totalwidth_dim][c]{%
8576 $\EQ_left_side:
8577 \EQ_innerbox:{%
8578 \MH_if_case:w \l_EQ_alignmentmode_int\MH_or:
8579 \makebox[\l_EQ_displaywidth_dim][c]
8580 {\usebox{\EQ_mathdisplay_box}}%
8581 \MH_or:
8582 \makebox[\l_EQ_displaywidth_dim][c]
8583 {\usebox{\EQ_mathdisplay_box}}%
8584 \MH_or:
8585 \if@RTL\makebox[\l_EQ_displaywidth_dim][r]{%
8586 \MH_if_num:w \l_EQ_equationtype_int=5 \MH_else:
8587 \MH_if_num:w \l_EQ_equationtype_int=6 \MH_else:
8588 \kern-\@mathmargin
8589 \MH_fi:
8590 \MH_fi:
8591 \usebox{\EQ_mathdisplay_box}}%
8592 \else\makebox[\l_EQ_displaywidth_dim][l]{%
8593 \MH_if_num:w \l_EQ_equationtype_int=5 \MH_else:
8594 \MH_if_num:w \l_EQ_equationtype_int=6 \MH_else:
8595 \kern-\@mathmargin
8596 \MH_fi:

File empheq-xetex-bidi.def 178


8597 \MH_fi:
8598 \usebox{\EQ_mathdisplay_box}}\fi%
8599 \MH_or:
8600 \if@RTL\makebox[\l_EQ_displaywidth_dim][r]{%
8601 \MH_if_num:w \l_EQ_equationtype_int=5 \MH_else:
8602 \MH_if_num:w \l_EQ_equationtype_int=6 \MH_else:
8603 \kern-\@mathmargin
8604 \MH_fi:
8605 \MH_fi:
8606 \usebox{\EQ_mathdisplay_box}}
8607 \else\makebox[\l_EQ_displaywidth_dim][l]{%
8608 \MH_if_num:w \l_EQ_equationtype_int=5 \MH_else:
8609 \MH_if_num:w \l_EQ_equationtype_int=6 \MH_else:
8610 \kern-\@mathmargin
8611 \MH_fi:
8612 \MH_fi:
8613 \usebox{\EQ_mathdisplay_box}}\fi%
8614 \MH_fi:}%
8615 \EQ_right_side:$}%
8616 \begin{AmSequation*}
8617 \@nameuse{EQ_place_display_
8618 \romannumeral\l_EQ_equationtype_int\EQ_next: :}
8619 \MH_if_dim:w \g_EQ_widesttag_dim>\z@
8620 \MH_set_boolean_T:n {show_manual_tags}
8621 \MH_if_case:w \l_EQ_alignmentmode_int
8622 \MH_or: \if@RTL\EQ_place_tag:N l\else\EQ_place_tag:N r\fi %#1
8623 \MH_or: \if@RTL\EQ_place_tag:N r\else\EQ_place_tag:N l\fi %#2
8624 \MH_or: \if@RTL\EQ_place_tag:N l\else\EQ_place_tag:N r\fi %#3
8625 \MH_or: \if@RTL\EQ_place_tag:N r\else\EQ_place_tag:N l\fi %#4
8626 \MH_fi:
8627 \MH_fi:
8628 \end{AmSequation*}
8629 \global\c@equation=\l_EQ_equation_fint\relax
8630 }
8631 \AtBeginDocument{%
8632 \@ifpackageloaded{fancybox}{%
8633 \@ifpackageloaded{color}{\definecolor{shadowcolor}{rgb}{0,0,0}}%
8634 {\renewcommand*\textcolor[2]{\normalcolor{#2}}}%
8635 \renewcommand*\shadowbox{%
8636 \@ifstar{\MH_set_boolean_T:n {shadowbox_star}
8637 \VerbBox\EQ_shadowbox:n}
8638 {\MH_set_boolean_F:n {shadowbox_star}
8639 \VerbBox\EQ_shadowbox:n}}
8640 \def\EQ_shadowbox:n #1{%
8641 \sbox{\z@}{\fbox{#1}}%
8642 \MH_if_boolean:nTF {shadowbox_star}{
8643 \MH_setlength:dn \@tempdima{\z@}%
8644 }{
8645 \MH_setlength:dn \@tempdima{\dp\z@+\shadowsize}%
8646 }

File empheq-xetex-bidi.def 179


8647 \raisebox{\@tempdima}{%
8648 \if@RTL\makebox[\z@][r]{%
8649 \kern\shadowsize \textcolor{shadowcolor}{%
8650 \rule[-\dp\z@-\shadowsize]{\wd\z@}{\shadowsize}}%
8651 }%
8652 \else\makebox[\z@][l]{%
8653 \kern\shadowsize \textcolor{shadowcolor}{%
8654 \rule[-\dp\z@-\shadowsize]{\wd\z@}{\shadowsize}}%
8655 }\fi%
8656 \usebox\z@\textcolor{shadowcolor}{%
8657 \rule[-\dp\z@-\shadowsize]{\shadowsize}{\ht\z@+\dp\z@}}}}%
8658 }{}%
8659 }
8660 \MHInternalSyntaxOff

52 File extarticle-xetex-bidi.def
8661 \ProvidesFile{extarticle-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for extarticle class
8662 \renewcommand*\l@section[2]{%
8663 \ifnum \c@tocdepth >\z@
8664 \addpenalty\@secpenalty
8665 \addvspace{1.0em \@plus\p@}%
8666 \setlength\@tempdima{1.5em}%
8667 \begingroup
8668 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
8669 \parfillskip -\@pnumwidth
8670 \leavevmode \bfseries
8671 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
8672 \hskip -\if@RTL\rightskip\else\leftskip\fi
8673 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
8674 \endgroup
8675 \fi}
8676 \renewcommand*\l@part[2]{%
8677 \ifnum \c@tocdepth >-2\relax
8678 \addpenalty\@secpenalty
8679 \addvspace{2.25em \@plus\p@}%
8680 \begingroup
8681 \setlength\@tempdima{3em}%
8682 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
8683 \parfillskip -\@pnumwidth
8684 {\leavevmode
8685 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
8686 \nobreak
8687 \endgroup
8688 \fi}
8689 \def\@part[#1]#2{%
8690 \ifnum \c@secnumdepth >\m@ne
8691 \refstepcounter{part}%
8692 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
8693 \else

File extarticle-xetex-bidi.def 180


8694 \addcontentsline{toc}{part}{#1}%
8695 \fi
8696 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
8697 \interlinepenalty \@M
8698 \normalfont
8699 \ifnum \c@secnumdepth >\m@ne
8700 \Large\bfseries \partname~\thepart
8701 \par\nobreak
8702 \fi
8703 \huge \bfseries #2%
8704 \markboth{}{}\par}%
8705 \nobreak
8706 \vskip 3ex
8707 \@afterheading}
8708 \def\@spart#1{%
8709 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
8710 \interlinepenalty \@M
8711 \normalfont
8712 \huge \bfseries #1\par}%
8713 \nobreak
8714 \vskip 3ex
8715 \@afterheading}
8716 \renewenvironment{thebibliography}[1]
8717 {\section*{\refname
8718 \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
8719 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
8720 \bidi@@thebibliography@font@hook%
8721 \list{\@biblabel{\@arabic\c@enumiv}}%
8722 {\settowidth\labelwidth{\@biblabel{#1}}%
8723 \leftmargin\labelwidth
8724 \advance\leftmargin\labelsep
8725 \@openbib@code
8726 \usecounter{enumiv}%
8727 \let\p@enumiv\@empty
8728 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
8729 \sloppy\clubpenalty4000\widowpenalty4000%
8730 \sfcode`\.\@m}
8731 {\def\@noitemerr
8732 {\@latex@warning{Empty `thebibliography' environment}}%
8733 \endlist}
8734 \renewcommand\left@footnoterule{%
8735 \kern-3\p@
8736 \hrule\@width.4\columnwidth
8737 \kern2.6\p@}
8738 \renewcommand\right@footnoterule{%
8739 \kern-3\p@
8740 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
8741 \kern2.6\p@}
8742 \if@titlepage
8743 \renewcommand\maketitle{\begin{titlepage}%

File extarticle-xetex-bidi.def 181


8744 \let\footnotesize\small
8745 \let\right@footnoterule\relax
8746 \let\left@footnoterule\relax
8747 \let\textwidth@footnoterule\relax
8748 \let \footnote \thanks
8749 \null\vfil
8750 \vskip 60\p@
8751 \begin{center}%
8752 {\LARGE \@title \par}%
8753 \vskip 3em%
8754 {\large
8755 \lineskip .75em%
8756 \begin{tabular}[t]{c}%
8757 \@author
8758 \end{tabular}\par}%
8759 \vskip 1.5em%
8760 {\large \@date \par}% % Set date in \large size.
8761 \end{center}\par
8762 \@thanks
8763 \vfil\null
8764 \end{titlepage}%
8765 \setcounter{footnote}{0}%
8766 \global\let\thanks\relax
8767 \global\let\maketitle\relax
8768 \global\let\@thanks\@empty
8769 \global\let\@author\@empty
8770 \global\let\@date\@empty
8771 \global\let\@title\@empty
8772 \global\let\title\relax
8773 \global\let\author\relax
8774 \global\let\date\relax
8775 \global\let\and\relax
8776 }
8777 \else
8778 \renewcommand\maketitle{\par
8779 \begingroup
8780 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
8781 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
8782 \long\def\@makefntext##1{\parindent 1em\noindent
8783 \hb@[email protected]{%
8784 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
8785 \if@twocolumn
8786 \ifnum \col@number=\@ne
8787 \@maketitle
8788 \else
8789 \twocolumn[\@maketitle]%
8790 \fi
8791 \else
8792 \newpage
8793 \global\@topnum\z@ % Prevents figures from going at top of page.

File extarticle-xetex-bidi.def 182


8794 \@maketitle
8795 \fi
8796 \thispagestyle{plain}\@thanks
8797 \endgroup
8798 \setcounter{footnote}{0}%
8799 \global\let\thanks\relax
8800 \global\let\maketitle\relax
8801 \global\let\@maketitle\relax
8802 \global\let\@thanks\@empty
8803 \global\let\@author\@empty
8804 \global\let\@date\@empty
8805 \global\let\@title\@empty
8806 \global\let\title\relax
8807 \global\let\author\relax
8808 \global\let\date\relax
8809 \global\let\and\relax
8810 }
8811 \def\@maketitle{%
8812 \newpage
8813 \null
8814 \vskip 2em%
8815 \begin{center}%
8816 \let \footnote \thanks
8817 {\LARGE \@title \par}%
8818 \vskip 1.5em%
8819 {\large
8820 \lineskip .5em%
8821 \begin{tabular}[t]{c}%
8822 \@author
8823 \end{tabular}\par}%
8824 \vskip 1em%
8825 {\large \@date}%
8826 \end{center}%
8827 \par
8828 \vskip 1.5em}
8829 \fi
8830 \renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
8831 \renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
8832 \renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
8833 \renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}%%

53 File extbook-xetex-bidi.def
8834 \ProvidesFile{extbook-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for extbook class for X
8835 \if@titlepage
8836 \renewcommand\maketitle{\begin{titlepage}%
8837 \let\footnotesize\small
8838 \let\right@footnoterule\relax
8839 \let\left@footnoterule\relax
8840 \let\textwidth@footnoterule\relax

File extbook-xetex-bidi.def 183


8841 \let \footnote \thanks
8842 \let \LTRfootnote \LTRthanks
8843 \let \RTLfootnote \RTLthanks
8844 \null\vfil
8845 \vskip 60\p@
8846 \begin{center}%
8847 {\LARGE \@title \par}%
8848 \vskip 3em%
8849 {\large
8850 \lineskip .75em%
8851 \begin{tabular}[t]{c}%
8852 \@author
8853 \end{tabular}\par}%
8854 \vskip 1.5em%
8855 {\large \@date \par}% % Set date in \large size.
8856 \end{center}\par
8857 \@thanks
8858 \vfil\null
8859 \end{titlepage}%
8860 \setcounter{footnote}{0}%
8861 \global\let\thanks\relax
8862 \global\let\LTRthanks\relax
8863 \global\let\RTLthanks\relax
8864 \global\let\maketitle\relax
8865 \global\let\@thanks\@empty
8866 \global\let\@author\@empty
8867 \global\let\@date\@empty
8868 \global\let\@title\@empty
8869 \global\let\title\relax
8870 \global\let\author\relax
8871 \global\let\date\relax
8872 \global\let\and\relax
8873 }
8874 \else
8875 \renewcommand\maketitle{\par
8876 \begingroup
8877 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
8878 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
8879 \long\def\@makefntext##1{\parindent 1em\noindent
8880 \hb@[email protected]{%
8881 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
8882 \if@twocolumn
8883 \ifnum \col@number=\@ne
8884 \@maketitle
8885 \else
8886 \twocolumn[\@maketitle]%
8887 \fi
8888 \else
8889 \newpage
8890 \global\@topnum\z@ % Prevents figures from going at top of page.

File extbook-xetex-bidi.def 184


8891 \@maketitle
8892 \fi
8893 \thispagestyle{plain}\@thanks
8894 \endgroup
8895 \setcounter{footnote}{0}%
8896 \global\let\thanks\relax
8897 \global\let\LTRthanks\relax
8898 \global\let\RTLthanks\relax
8899 \global\let\maketitle\relax
8900 \global\let\@maketitle\relax
8901 \global\let\@thanks\@empty
8902 \global\let\@author\@empty
8903 \global\let\@date\@empty
8904 \global\let\@title\@empty
8905 \global\let\title\relax
8906 \global\let\author\relax
8907 \global\let\date\relax
8908 \global\let\and\relax
8909 }
8910 \def\@maketitle{%
8911 \newpage
8912 \null
8913 \vskip 2em%
8914 \begin{center}%
8915 \let \footnote \thanks
8916 \let \LTRfootnote \LTRthanks
8917 \let \RTLfootnote \RTLthanks
8918 {\LARGE \@title \par}%
8919 \vskip 1.5em%
8920 {\large
8921 \lineskip .5em%
8922 \begin{tabular}[t]{c}%
8923 \@author
8924 \end{tabular}\par}%
8925 \vskip 1em%
8926 {\large \@date}%
8927 \end{center}%
8928 \par
8929 \vskip 1.5em}
8930 \fi
8931 \renewcommand*\l@part[2]{%
8932 \ifnum \c@tocdepth >-2\relax
8933 \addpenalty{-\@highpenalty}%
8934 \addvspace{2.25em \@plus\p@}%
8935 \begingroup
8936 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
8937 \parfillskip -\@pnumwidth
8938 {\leavevmode
8939 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
8940 \nobreak

File extbook-xetex-bidi.def 185


8941 \global\@nobreaktrue
8942 \everypar{\global\@nobreakfalse\everypar{}}%
8943 \endgroup
8944 \fi}
8945 \renewcommand\theequation
8946 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
8947 \renewcommand \thefigure
8948 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
8949 \renewcommand \thetable
8950 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
8951 \renewcommand \thechapter {\@arabic\c@chapter}
8952 \renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
8953 \renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
8954 \renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
8955 \renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
8956 \renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
8957 \def\@makechapterhead#1{%
8958 \vspace*{50\p@}%
8959 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
8960 \ifnum \c@secnumdepth >\m@ne
8961 \if@mainmatter
8962 \huge\bfseries \@chapapp\space \thechapter
8963 \par\nobreak
8964 \vskip 20\p@
8965 \fi
8966 \fi
8967 \interlinepenalty\@M
8968 \Huge \bfseries #1\par\nobreak
8969 \vskip 40\p@
8970 }}
8971
8972 \def\@makeschapterhead#1{%
8973 \vspace*{50\p@}%
8974 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
8975 \normalfont
8976 \interlinepenalty\@M
8977 \Huge \bfseries #1\par\nobreak
8978 \vskip 40\p@
8979 }}
8980 \renewcommand\backmatter{%
8981 \if@openright
8982 \cleardoublepage
8983 \else
8984 \clearpage
8985 \fi
8986 \@mainmatterfalse}
8987 \renewenvironment{thebibliography}[1]
8988 {\chapter*{\bibname
8989 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
8990 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi

File extbook-xetex-bidi.def 186


8991 \bidi@@thebibliography@font@hook%
8992 \list{\@biblabel{\@arabic\c@enumiv}}%
8993 {\settowidth\labelwidth{\@biblabel{#1}}%
8994 \leftmargin\labelwidth
8995 \advance\leftmargin\labelsep
8996 \@openbib@code
8997 \usecounter{enumiv}%
8998 \let\p@enumiv\@empty
8999 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
9000 \sloppy
9001 \clubpenalty4000
9002 \@clubpenalty \clubpenalty
9003 \widowpenalty4000%
9004 \sfcode`\.\@m}
9005 {\def\@noitemerr
9006 {\@latex@warning{Empty `thebibliography' environment}}%
9007 \endlist}

54 File extletter-xetex-bidi.def
9008 \ProvidesFile{extletter-xetex-bidi.def}[2015/11/14 v0.2 bidi adaptations for extletter class f
9009 \renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
9010 \thispagestyle{firstpage}%
9011 {\if@RTL\raggedright\else\raggedleft\fi\@date\par}%
9012 \else % home address
9013 \thispagestyle{empty}%
9014 {\if@RTL\raggedright\begin{tabular}{r@{}}\else\raggedleft\begin{tabular}{l@{}}\fi\ignoresp
9015 \fromaddress \\*[2\parskip]%
9016 \@date \end{tabular}\par}%
9017 \fi
9018 \vspace{2\parskip}%
9019 {\if@RTL\raggedleft\else\raggedright\fi \toname \\ \toaddress \par}%
9020 \vspace{2\parskip}%
9021 #1\par\nobreak}
9022 \renewcommand{\closing}[1]{\par\nobreak\vspace{\parskip}%
9023 \stopbreaks
9024 \noindent
9025 \ifx\@empty\fromaddress\else
9026 \hspace*{\longindentation}\fi
9027 \parbox{\indentedwidth}{\if@RTL\raggedleft\else\raggedright\fi
9028 \ignorespaces #1\\[6\medskipamount]%
9029 \ifx\@empty\fromsig
9030 \fromname
9031 \else \fromsig \fi\strut}%
9032 \par}
9033 \renewcommand\left@footnoterule{%
9034 \kern-\p@
9035 \hrule \@width .4\columnwidth
9036 \kern .6\p@}
9037 \renewcommand\right@footnoterule{%

File extletter-xetex-bidi.def 187


9038 \kern-\p@
9039 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
9040 \kern .6\p@}

55 File extrafootnotefeatures-xetex-bidi.def
9041 \ProvidesFile{extrafootnotefeatures-xetex-bidi.def}[2018/10/11 v1.7 bidi extra footnote featur
9042 \newif\if@bidi@void@footins
9043 \newif\if@bidi@void@@mpfootins
9044 \newcommand*{\@bidi@before@Hy@hyperfootnotes}{%
9045 \if@bidi@csundef{ifHy@hyperfootnotes}{}{%
9046 \if@bidi@csundef{HLTR@@LTRfootnotetext}{}{%
9047 \ifHy@hyperfootnotes
9048 \let\@@H@@footnotetext\@footnotetext
9049 \let\@@HLTR@@LTRfootnotetext\@LTRfootnotetext
9050 \let\@@HRTL@@RTLfootnotetext\@RTLfootnotetext
9051 \let\@@H@@mpfootnotetext\@mpfootnotetext
9052 \let\@@HLTR@@mpLTRfootnotetext\@mpLTRfootnotetext
9053 \let\@@HRTL@@mpRTLfootnotetext\@mpRTLfootnotetext
9054 \fi
9055 }%
9056 }%
9057 }
9058 \newcommand*{\@bidi@after@Hy@hyperfootnotes}{%
9059 \if@bidi@csundef{ifHy@hyperfootnotes}{}{%
9060 \if@bidi@csundef{HLTR@@LTRfootnotetext}{}{%
9061 \ifHy@hyperfootnotes
9062 \let\H@@footnotetext\@footnotetext
9063 \let\@footnotetext\@@H@@footnotetext
9064 \let\HLTR@@LTRfootnotetext\@LTRfootnotetext
9065 \let\@LTRfootnotetext\@@HLTR@@LTRfootnotetext
9066 \let\HRTL@@RTLfootnotetext\@RTLfootnotetext
9067 \let\@RTLfootnotetext\@@HRTL@@RTLfootnotetext
9068 \let\H@@mpfootnotetext\@mpfootnotetext
9069 \let\@mpfootnotetext\@@H@@mpfootnotetext
9070 \let\HLTR@@mpLTRfootnotetext\@mpLTRfootnotetext
9071 \let\@mpLTRfootnotetext\@@HLTR@@mpLTRfootnotetext
9072 \let\HRTL@@mpRTLfootnotetext\@mpRTLfootnotetext
9073 \let\@mpRTLfootnotetext\@@HRTL@@mpRTLfootnotetext
9074 \fi
9075 }%
9076 }%
9077 }
9078 \let\autofootnoterule\relax
9079 \let\rightfootnoterule\relax
9080 \let\leftfootnoterule\relax
9081 \let\textwidthfootnoterule\relax
9082 \let\LRfootnoterule\relax
9083 \def\footnoterule{\kern-3\p@
9084 \hrule \@width \columnwidth \kern 2.6\p@}

File extrafootnotefeatures-xetex-bidi.def 188


9085 \newcommand{\@preamnormalfmt}{%
9086 \parindent 1em%
9087 \noindent
9088 }
9089 \newcommand{\@normalfootfmt}[1]{%
9090 \@preamnormalfmt
9091 \footfootmark
9092 \rule\z@\footnotesep\ignorespaces{\foottextfont #1}%
9093 \@finalstrut\strutbox
9094 }
9095 \newcommand{\@normalRTLfootfmt}[1]{%
9096 \@preamnormalfmt
9097 \RTLfootfootmark
9098 \rule\z@\footnotesep\ignorespaces{\RTLfoottextfont #1}%
9099 \@finalstrut\strutbox
9100 }
9101 \newcommand{\@normalLTRfootfmt}[1]{%
9102 \@preamnormalfmt
9103 \LTRfootfootmark
9104 \rule\z@\footnotesep\ignorespaces{\LTRfoottextfont #1}%
9105 \@finalstrut\strutbox
9106 }
9107 \renewcommand{\@footnotetext}[1]{%
9108 \insert\footins{%
9109 \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
9110 \def\baselinestretch{\m@m@footnote@spacing}%
9111 \reset@font
9112 \foottextfont
9113 \@preamfntext
9114 \hsize\columnwidth
9115 \protected@edef\@currentlabel{%
9116 \csname p@footnote\endcsname\@thefnmark}%
9117 \color@begingroup
9118 \@normalfootfmt{#1}%
9119 \color@endgroup}%
9120 \m@mmf@prepare}
9121 \renewcommand{\@RTLfootnotetext}[1]{%
9122 \insert\footins{%
9123 \@RTLtrue%
9124 \def\baselinestretch{\m@m@footnote@spacing}%
9125 \reset@font
9126 \RTLfoottextfont
9127 \@preamfntext
9128 \hsize\columnwidth
9129 \protected@edef\@currentlabel{%
9130 \csname p@footnote\endcsname\@thefnmark}%
9131 \color@begingroup
9132 \@normalRTLfootfmt{#1}%
9133 \color@endgroup}%
9134 \m@mmf@prepare}

File extrafootnotefeatures-xetex-bidi.def 189


9135 \renewcommand{\@LTRfootnotetext}[1]{%
9136 \insert\footins{%
9137 \@RTLfalse%
9138 \def\baselinestretch{\m@m@footnote@spacing}%
9139 \reset@font
9140 \LTRfoottextfont
9141 \@preamfntext
9142 \hsize\columnwidth
9143 \protected@edef\@currentlabel{%
9144 \csname p@footnote\endcsname\@thefnmark}%
9145 \color@begingroup
9146 \@normalLTRfootfmt{#1}%
9147 \color@endgroup}%
9148 \m@mmf@prepare}
9149 \renewcommand{\@mpfootnotetext}[1]{%
9150 \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
9151 \unvbox\@mpfootins
9152 \def\baselinestretch{\m@m@footnote@spacing}%
9153 \reset@font%
9154 \foottextfont \hsize\columnwidth \@parboxrestore
9155 \protected@edef\@currentlabel{%
9156 \csname p@mpfootnote\endcsname\@thefnmark}%
9157 \color@begingroup
9158 \@normalfootfmt{#1}%
9159 \color@endgroup}}
9160 \renewcommand{\@mpLTRfootnotetext}[1]{%
9161 \global\setbox\@mpfootins\vbox{\@RTLfalse%
9162 \unvbox\@mpfootins
9163 \def\baselinestretch{\m@m@footnote@spacing}%
9164 \reset@font%
9165 \LTRfoottextfont \hsize\columnwidth \@parboxrestore
9166 \protected@edef\@currentlabel{%
9167 \csname p@mpfootnote\endcsname\@thefnmark}%
9168 \color@begingroup
9169 \@normalLTRfootfmt{#1}%
9170 \color@endgroup}}
9171 \renewcommand{\@mpRTLfootnotetext}[1]{%
9172 \global\setbox\@mpfootins\vbox{\@RTLtrue%
9173 \unvbox\@mpfootins
9174 \def\baselinestretch{\m@m@footnote@spacing}%
9175 \reset@font%
9176 \RTLfoottextfont \hsize\columnwidth \@parboxrestore
9177 \protected@edef\@currentlabel{%
9178 \csname p@mpfootnote\endcsname\@thefnmark}%
9179 \color@begingroup
9180 \@normalRTLfootfmt{#1}%
9181 \color@endgroup}}
9182 \let\m@mold@footnotetext\@footnotetext
9183 \let\m@mold@LTRfootnotetext\@LTRfootnotetext
9184 \let\m@mold@RTLfootnotetext\@RTLfootnotetext

File extrafootnotefeatures-xetex-bidi.def 190


9185 \let\m@mold@mpfootnotetext\@mpfootnotetext
9186 \let\m@mold@mpLTRfootnotetext\@mpLTRfootnotetext
9187 \let\m@mold@mpRTLfootnotetext\@mpRTLfootnotetext
9188 \bidi@ensure@newcommand{\normalfootnotes}{%
9189 \@bidi@before@Hy@hyperfootnotes
9190 \let\@footnotetext\m@mold@footnotetext
9191 \let\@LTRfootnotetext\m@mold@LTRfootnotetext
9192 \let\@RTLfootnotetext\m@mold@RTLfootnotetext
9193 \let\@mpfootnotetext\m@mold@mpfootnotetext
9194 \let\@mpLTRfootnotetext\m@mold@mpLTRfootnotetext
9195 \let\@mpRTLfootnotetext\m@mold@mpRTLfootnotetext
9196 \@bidi@after@Hy@hyperfootnotes
9197 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
9198 }
9199 \@ifclassloaded{memoir}{\let\plainfootnotes\normalfootnotes}{}
9200 \bidi@ensure@newcommand*{\RTLcolumnfootnotes}{\@RTLcolumnfootnotestrue}
9201 \bidi@ensure@newcommand*{\LTRcolumnfootnotes}{\@RTLcolumnfootnotesfalse}
9202 \bidi@ensure@newcommand*{\setSingleSpace}[1]{%
9203 \def\m@m@singlespace{#1}%
9204 \def\m@m@footnote@spacing{#1}%
9205 \def\m@m@float@spacing{#1} %
9206 }
9207 \setSingleSpace{1}
9208 \bidi@ensure@newcommand*{\multiplefootnotemarker}{3sp}
9209 \bidi@ensure@newcommand*{\m@mmf@prepare}{%
9210 \kern-\multiplefootnotemarker
9211 \kern\multiplefootnotemarker\relax}
9212 \bidi@ensure@newlength{\footmarkwidth}
9213 \bidi@ensure@newcommand*{\footmarkstyle}[1]{\def\footscript##1{#1}}
9214 \bidi@ensure@newcommand*{\LTRfootmarkstyle}[1]{\def\LTRfootscript##1{#1}}
9215 \bidi@ensure@newcommand*{\RTLfootmarkstyle}[1]{\def\RTLfootscript##1{#1}}
9216 \bidi@ensure@newcommand{\footfootmark}{%
9217 \ifdim\footmarkwidth < \z@
9218 \llap{\hb@xt@ -\footmarkwidth{%
9219 \hss\normalfont\footscript{\@thefnmark}}%
9220 \hspace*{-\footmarkwidth}}%
9221 \else
9222 \ifdim\footmarkwidth = \z@
9223 {\normalfont\footscript{\@thefnmark}}%
9224 \else
9225 \hb@xt@\footmarkwidth{\hss\normalfont\footscript{\@thefnmark}}%
9226 \fi
9227 \fi}
9228 \bidi@ensure@newcommand{\LTRfootfootmark}{%
9229 \ifdim\footmarkwidth < \z@
9230 \llap{\hb@xt@ -\footmarkwidth{%
9231 \hss\normalfont\LTRfootscript{\@thefnmark}}%
9232 \hspace*{-\footmarkwidth}}%
9233 \else
9234 \ifdim\footmarkwidth = \z@

File extrafootnotefeatures-xetex-bidi.def 191


9235 {\normalfont\LTRfootscript{\@thefnmark}}%
9236 \else
9237 \hb@xt@\footmarkwidth{\hss\normalfont\LTRfootscript{\@thefnmark}}%
9238 \fi
9239 \fi}
9240 \bidi@ensure@newcommand{\RTLfootfootmark}{%
9241 \ifdim\footmarkwidth < \z@
9242 \llap{\hb@xt@ -\footmarkwidth{%
9243 \hss\normalfont\RTLfootscript{\@thefnmark}}%
9244 \hspace*{-\footmarkwidth}}%
9245 \else
9246 \ifdim\footmarkwidth = \z@
9247 {\normalfont\RTLfootscript{\@thefnmark}}%
9248 \else
9249 \hb@xt@\footmarkwidth{\hss\normalfont\RTLfootscript{\@thefnmark}}%
9250 \fi
9251 \fi}
9252 \footmarkstyle{\textsuperscript{#1}}
9253 \LTRfootmarkstyle{\textsuperscript{#1}}
9254 \RTLfootmarkstyle{\textsuperscript{#1}}
9255 \newcommand*{\bidi@normal@footmarkwidth}{%
9256 \setlength{\footmarkwidth}{1em plus.4em minus.4em}%
9257 }
9258 \newcommand*{\bidi@star@footmarkwidth}{%
9259 \setlength{\footmarkwidth}{0em plus.4em minus.4em}%
9260 }
9261 \bidi@normal@footmarkwidth
9262 \bidi@ensure@newcommand{\m@mdoextrafeet}{\extrafeetins}
9263 \bidi@ensure@newcommand*{\extrafeetins}{%
9264 \setbox\@outputbox \vbox{%
9265 \boxmaxdepth \@maxdepth
9266 \unvbox\@outputbox
9267 \ifvoid\footinsv@r
9268 \ifvoid\footinsv@l
9269 \else
9270 \@footstartv@l
9271 \@LTRfootgroupv@l
9272 \fi
9273 \else
9274 \@footstartv@r
9275 \@footgroupv@r
9276 \ifvoid\footinsv@l
9277 \else
9278 \@@footstart@@v@l
9279 \@LTRfootgroupv@l
9280 \fi
9281 \fi
9282 \ifvoid\@bidi@copyins@
9283 \else
9284 \vskip \skip\@bidi@copyins@

File extrafootnotefeatures-xetex-bidi.def 192


9285 \color@begingroup
9286 \normalcolor
9287 \unvbox \@bidi@copyins@
9288 \color@endgroup
9289 \fi
9290 \extrafeetinshook}}
9291 \bidi@ensure@newcommand{\extrafeetinshook}{}
9292 \bidi@ensure@newcommand{\foottextfont}{\footnotesize}
9293 \bidi@ensure@newcommand{\LTRfoottextfont}{\footnotesize}
9294 \bidi@ensure@newcommand{\RTLfoottextfont}{\footnotesize}
9295 \bidi@ensure@newlength{\footinsdim}
9296 \setlength{\footinsdim}{8in} % standard for \dimen\footins
9297 \bidi@ensure@newcommand{\@preamfntext}{%
9298 \interlinepenalty\interfootnotelinepenalty
9299 \floatingpenalty \@MM
9300 \splittopskip=\footnotesep
9301 \splitmaxdepth=\dp\strutbox
9302 \@parboxrestore}
9303 \bidi@ensure@newcommand{\m@mdoextrafeetmini}{%
9304 \extrafeetminihook}
9305 \bidi@ensure@newcommand{\extrafeetendmini}{%
9306 \ifvoid\@mpfootinsv@r
9307 \ifvoid\@mpfootinsv@l
9308 \else
9309 \vskip\skip\@mpfootins
9310 \normalcolor
9311 \if@bidi@void@@mpfootins
9312 \footnoterule
9313 \fi
9314 \mp@LTRfootgroupv@l
9315 \fi
9316 \else
9317 \vskip\skip\@mpfootins
9318 \normalcolor
9319 \if@bidi@void@@mpfootins
9320 \footnoterule
9321 \fi
9322 \mp@footgroupv@r
9323 \ifvoid\@mpfootinsv@l
9324 \else
9325 \vskip\skip\@mpfootins
9326 \normalcolor\mp@LTRfootgroupv@l
9327 \fi
9328 \fi
9329 \extrafeetendminihook}
9330 \bidi@ensure@newcommand{\extrafeetendminihook}{}
9331 \bidi@ensure@newcommand{\m@mdoextrafeetendmini}{\extrafeetendmini}
9332 \def\endminipage{%
9333 \par
9334 \unskip

File extrafootnotefeatures-xetex-bidi.def 193


9335 \ifvoid\@mpfootins
9336 \global\@bidi@void@@mpfootinstrue
9337 \else
9338 \global\@bidi@void@@mpfootinsfalse
9339 \vskip\skip\@mpfootins
9340 \normalcolor
9341 \footnoterule
9342 \unvbox\@mpfootins
9343 \fi
9344 \m@mdoextrafeetendmini
9345 \@minipagefalse
9346 \color@endgroup
9347 \egroup
9348 \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}}
9349 \bidi@ensure@newcommand{\m@make@footstart}[1]{%
9350 \@namedef{@footstart#1}{%
9351 \bidi@mopfn@bottom
9352 \leftskip=\z@
9353 \rightskip=\z@
9354 \parindent=\z@
9355 \vskip\skip\footins
9356 \footnoterule}}
9357 \newinsert\footinsv@r
9358 \skip\footinsv@r\bigskipamount
9359 \count\footinsv@r=1000 % no magnifcation
9360 \dimen\footinsv@r=\footinsdim
9361 \m@make@footstart{v@r}
9362 \newinsert\footinsv@l
9363 \skip\footinsv@l\bigskipamount
9364 \bidi@ensure@newcommand{\@footgroupv@r}{}
9365 \newinsert\@mpfootinsv@r
9366 \newinsert\@mpfootinsv@l
9367 \bidi@ensure@newcommand{\mp@footgroupv@r}{}
9368 \newcount\m@m@k \newdimen\m@m@h
9369 \@ifpackageloaded{multicol}{%
9370 \bidi@ensure@newcommand*{\m@mrigidbalance}[3]{\setbox0=\box#1 \m@m@k=#2 \m@m@h=#3
9371 \hsize\textwidth
9372 \@@line{\if@RTLcolumnfootnotes\beginR\fi\splittopskip=\m@m@h \vbadness=\@M \hfilneg
9373 \valign{##\vfill\cr\m@mdosplits}\if@RTLcolumnfootnotes\endR\fi}}
9374 }{%
9375 \bidi@ensure@newcommand*{\m@mrigidbalance}[3]{\setbox0=\box#1 \m@m@k=#2 \m@m@h=#3
9376 \@@line{\if@RTLcolumnfootnotes\beginR\fi\splittopskip=\m@m@h \vbadness=\@M \hfilneg
9377 \valign{##\vfill\cr\m@mdosplits}\if@RTLcolumnfootnotes\endR\fi}}}
9378 \bidi@ensure@newcommand*{\m@mdosplits}{\ifnum\m@m@k>0 \noalign{\hfil}\m@msplitoff
9379 \global\advance\m@m@k-1\cr\m@mdosplits\fi}
9380 \bidi@ensure@newcommand*{\m@msplitoff}{\dimen0=\ht0
9381 \divide\dimen0 by\m@m@k \advance\dimen0 by\m@m@h
9382 \setbox2 \vsplit0 to \dimen0
9383 \unvbox2 }
9384 \bidi@ensure@newcommand{\twocolumnfootnotes}{%

File extrafootnotefeatures-xetex-bidi.def 194


9385 \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
9386 \@bidi@before@Hy@hyperfootnotes
9387 \let\@footnotetext\@twocolfootnotetext
9388 \let\@LTRfootnotetext\@twocolLTRfootnotetext
9389 \let\@RTLfootnotetext\@twocolRTLfootnotetext
9390 \dimen\footinsv@r=2\footinsdim
9391 \count\footinsv@r=500\relax
9392 \m@make@twocol@footgroup{v@r}%
9393 \let\@footgroupv@r\@twocol@footgroupv@r
9394 \let\@mpfootnotetext\@mptwocolfootnotetext
9395 \let\@mpLTRfootnotetext\@mptwocolLTRfootnotetext
9396 \let\@mpRTLfootnotetext\@mptwocolRTLfootnotetext
9397 \@bidi@after@Hy@hyperfootnotes
9398 \m@make@mptwocol@footgroup{v@r}%
9399 \let\mp@footgroupv@r\@mptwocol@footgroupv@r
9400 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
9401 }
9402 \bidi@ensure@newcommand{\@twocolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\
9403 \def\baselinestretch{\m@m@footnote@spacing}%
9404 \reset@font\foottextfont
9405 \@preamfntext
9406 \protected@edef\@currentlabel{%
9407 \csname p@footnote\endcsname\@thefnmark}%
9408 \color@begingroup
9409 \@twocolfootfmt{#1}%
9410 \color@endgroup}%
9411 \m@mmf@prepare}
9412 \bidi@ensure@newcommand{\@twocolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\
9413 \def\baselinestretch{\m@m@footnote@spacing}%
9414 \reset@font\LTRfoottextfont
9415 \@preamfntext
9416 \protected@edef\@currentlabel{%
9417 \csname p@footnote\endcsname\@thefnmark}%
9418 \color@begingroup
9419 \@twocolLTRfootfmt{#1}%
9420 \color@endgroup}%
9421 \m@mmf@prepare}
9422 \bidi@ensure@newcommand{\@twocolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
9423 \def\baselinestretch{\m@m@footnote@spacing}%
9424 \reset@font\RTLfoottextfont
9425 \@preamfntext
9426 \protected@edef\@currentlabel{%
9427 \csname p@footnote\endcsname\@thefnmark}%
9428 \color@begingroup
9429 \@twocolRTLfootfmt{#1}%
9430 \color@endgroup}%
9431 \m@mmf@prepare}
9432 \bidi@ensure@newcommand{\@preamtwofmt}{%
9433 \hsize .45\hsize
9434 \parindent=\z@

File extrafootnotefeatures-xetex-bidi.def 195


9435 \tolerance=5000\relax
9436 \leavevmode}
9437 \bidi@ensure@newcommand{\@twocolfootfmt}[1]{%
9438 \@preamtwofmt
9439 {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
9440 \bidi@ensure@newcommand{\@twocolLTRfootfmt}[1]{%
9441 \@preamtwofmt
9442 {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
9443 \bidi@ensure@newcommand{\@twocolRTLfootfmt}[1]{%
9444 \@preamtwofmt
9445 {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
9446 \bidi@ensure@newcommand{\@mptwocolfootnotetext}[1]{%
9447 \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
9448 \unvbox\@mpfootinsv@r
9449 \def\baselinestretch{\m@m@footnote@spacing}%
9450 \reset@font\foottextfont
9451 \hsize\columnwidth \@parboxrestore
9452 \protected@edef\@currentlabel{%
9453 \csname p@mpfootnote\endcsname\@thefnmark}%
9454 \color@begingroup
9455 \@twocolfootfmt{#1}%
9456 \color@endgroup}%
9457 \m@mmf@prepare}
9458 \bidi@ensure@newcommand{\@mptwocolLTRfootnotetext}[1]{%
9459 \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
9460 \unvbox\@mpfootinsv@r
9461 \def\baselinestretch{\m@m@footnote@spacing}%
9462 \reset@font\LTRfoottextfont
9463 \hsize\columnwidth \@parboxrestore
9464 \if@RTLcolumnfootnotes\beginL\fi
9465 \protected@edef\@currentlabel{%
9466 \csname p@mpfootnote\endcsname\@thefnmark}%
9467 \color@begingroup
9468 \@twocolLTRfootfmt{#1}%
9469 \color@endgroup}%
9470 \m@mmf@prepare}
9471 \bidi@ensure@newcommand{\@mptwocolRTLfootnotetext}[1]{%
9472 \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
9473 \unvbox\@mpfootinsv@r
9474 \def\baselinestretch{\m@m@footnote@spacing}%
9475 \reset@font\RTLfoottextfont
9476 \hsize\columnwidth \@parboxrestore
9477 \protected@edef\@currentlabel{%
9478 \csname p@mpfootnote\endcsname\@thefnmark}%
9479 \color@begingroup
9480 \@twocolRTLfootfmt{#1}%
9481 \color@endgroup}%
9482 \m@mmf@prepare}
9483 \bidi@ensure@newcommand{\m@make@twocol@footgroup}[1]{%
9484 \@namedef{@twocol@footgroup#1}{{%

File extrafootnotefeatures-xetex-bidi.def 196


9485 \def\baselinestretch{\m@m@footnote@spacing}%
9486 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
9487 \m@mrigidbalance{\@nameuse{footins#1}}{\tw@}{\splittopskip}}}}
9488 \bidi@ensure@newcommand{\m@make@mptwocol@footgroup}[1]{%
9489 \@namedef{@mptwocol@footgroup#1}{{%
9490 \def\baselinestretch{\m@m@footnote@spacing}%
9491 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
9492 \m@mrigidbalance{\@nameuse{@mpfootins#1}}{\tw@}{\splittopskip}}}}
9493 \bidi@ensure@newcommand{\threecolumnfootnotes}{%
9494 \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
9495 \@bidi@before@Hy@hyperfootnotes
9496 \let\@footnotetext\@threecolfootnotetext
9497 \let\@LTRfootnotetext\@threecolLTRfootnotetext
9498 \let\@RTLfootnotetext\@threecolRTLfootnotetext
9499 \dimen\footinsv@r=3\footinsdim
9500 \count\footinsv@r=333\relax
9501 \m@make@threecol@footgroup{v@r}%
9502 \let\@footgroupv@r\@threecol@footgroupv@r
9503 \let\@mpfootnotetext\@mpthreecolfootnotetext
9504 \let\@mpLTRfootnotetext\@mpthreecolLTRfootnotetext
9505 \let\@mpRTLfootnotetext\@mpthreecolRTLfootnotetext
9506 \@bidi@after@Hy@hyperfootnotes
9507 \m@make@mpthreecol@footgroup{v@r}%
9508 \let\mp@footgroupv@r\@mpthreecol@footgroupv@r
9509 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
9510 }
9511 \bidi@ensure@newcommand{\@threecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtru
9512 \def\baselinestretch{\m@m@footnote@spacing}%
9513 \reset@font\foottextfont
9514 \@preamfntext
9515 \protected@edef\@currentlabel{%
9516 \csname p@footnote\endcsname\@thefnmark}%
9517 \color@begingroup
9518 \@threecolfootfmt{#1}%
9519 \color@endgroup}\m@mmf@prepare}
9520 \bidi@ensure@newcommand{\@threecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnote
9521 \def\baselinestretch{\m@m@footnote@spacing}%
9522 \reset@font\LTRfoottextfont
9523 \@preamfntext
9524 \protected@edef\@currentlabel{%
9525 \csname p@footnote\endcsname\@thefnmark}%
9526 \color@begingroup
9527 \@threecolLTRfootfmt{#1}%
9528 \color@endgroup}\m@mmf@prepare}
9529 \bidi@ensure@newcommand{\@threecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
9530 \def\baselinestretch{\m@m@footnote@spacing}%
9531 \reset@font\RTLfoottextfont
9532 \@preamfntext
9533 \protected@edef\@currentlabel{%
9534 \csname p@footnote\endcsname\@thefnmark}%

File extrafootnotefeatures-xetex-bidi.def 197


9535 \color@begingroup
9536 \@threecolRTLfootfmt{#1}%
9537 \color@endgroup}\m@mmf@prepare}
9538 \bidi@ensure@newcommand{\@preamthreefmt}{%
9539 \hsize .3\hsize
9540 \parindent=\z@
9541 \tolerance=5000\relax
9542 \leavevmode}
9543 \bidi@ensure@newcommand{\@threecolfootfmt}[1]{%
9544 \@preamthreefmt
9545 {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
9546 \bidi@ensure@newcommand{\@threecolLTRfootfmt}[1]{%
9547 \@preamthreefmt
9548 {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
9549 \bidi@ensure@newcommand{\@threecolRTLfootfmt}[1]{%
9550 \@preamthreefmt
9551 {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
9552 \bidi@ensure@newcommand{\@mpthreecolfootnotetext}[1]{%
9553 \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
9554 \unvbox\@mpfootinsv@r
9555 \def\baselinestretch{\m@m@footnote@spacing}%
9556 \reset@font\foottextfont
9557 \hsize\columnwidth \@parboxrestore
9558 \protected@edef\@currentlabel{%
9559 \csname p@mpfootnote\endcsname\@thefnmark}%
9560 \color@begingroup
9561 \@threecolfootfmt{#1}%
9562 \color@endgroup}\m@mmf@prepare}
9563 \bidi@ensure@newcommand{\@mpthreecolLTRfootnotetext}[1]{%
9564 \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
9565 \unvbox\@mpfootinsv@r
9566 \def\baselinestretch{\m@m@footnote@spacing}%
9567 \reset@font\LTRfoottextfont
9568 \hsize\columnwidth \@parboxrestore
9569 \if@RTLcolumnfootnotes\beginL\fi
9570 \protected@edef\@currentlabel{%
9571 \csname p@mpfootnote\endcsname\@thefnmark}%
9572 \color@begingroup
9573 \@threecolLTRfootfmt{#1}%
9574 \color@endgroup}\m@mmf@prepare}
9575 \bidi@ensure@newcommand{\@mpthreecolRTLfootnotetext}[1]{%
9576 \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
9577 \unvbox\@mpfootinsv@r
9578 \def\baselinestretch{\m@m@footnote@spacing}%
9579 \reset@font\RTLfoottextfont
9580 \hsize\columnwidth \@parboxrestore
9581 \protected@edef\@currentlabel{%
9582 \csname p@mpfootnote\endcsname\@thefnmark}%
9583 \color@begingroup
9584 \@threecolRTLfootfmt{#1}%

File extrafootnotefeatures-xetex-bidi.def 198


9585 \color@endgroup}\m@mmf@prepare}
9586 \bidi@ensure@newcommand{\m@make@threecol@footgroup}[1]{%
9587 \@namedef{@threecol@footgroup#1}{{%
9588 \def\baselinestretch{\m@m@footnote@spacing}%
9589 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
9590 \m@mrigidbalance{\@nameuse{footins#1}}{\thr@@}{\splittopskip}}}}
9591 \bidi@ensure@newcommand{\m@make@mpthreecol@footgroup}[1]{%
9592 \@namedef{@mpthreecol@footgroup#1}{{%
9593 \def\baselinestretch{\m@m@footnote@spacing}%
9594 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
9595 \m@mrigidbalance{\@nameuse{@mpfootins#1}}{\thr@@}{\splittopskip}}}}
9596 \bidi@ensure@newcommand{\fourcolumnfootnotes}{%
9597 \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
9598 \@bidi@before@Hy@hyperfootnotes
9599 \let\@footnotetext\@fourcolfootnotetext
9600 \let\@LTRfootnotetext\@fourcolLTRfootnotetext
9601 \let\@RTLfootnotetext\@fourcolRTLfootnotetext
9602 \dimen\footinsv@r=4\footinsdim
9603 \count\footinsv@r=250\relax
9604 \m@make@fourcol@footgroup{v@r}%
9605 \let\@footgroupv@r\@fourcol@footgroupv@r
9606 \let\@mpfootnotetext\@mpfourcolfootnotetext
9607 \let\@mpLTRfootnotetext\@mpfourcolLTRfootnotetext
9608 \let\@mpRTLfootnotetext\@mpfourcolRTLfootnotetext
9609 \@bidi@after@Hy@hyperfootnotes
9610 \m@make@mpfourcol@footgroup{v@r}%
9611 \let\mp@footgroupv@r\@mpfourcol@footgroupv@r
9612 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
9613 }
9614 \bidi@ensure@newcommand{\@fourcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue
9615 \def\baselinestretch{\m@m@footnote@spacing}%
9616 \reset@font\foottextfont
9617 \@preamfntext
9618 \protected@edef\@currentlabel{%
9619 \csname p@footnote\endcsname\@thefnmark}%
9620 \color@begingroup
9621 \@fourcolfootfmt{#1}%
9622 \color@endgroup}%
9623 \m@mmf@prepare}
9624 \bidi@ensure@newcommand{\@fourcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes
9625 \def\baselinestretch{\m@m@footnote@spacing}%
9626 \reset@font\LTRfoottextfont
9627 \@preamfntext
9628 \protected@edef\@currentlabel{%
9629 \csname p@footnote\endcsname\@thefnmark}%
9630 \color@begingroup
9631 \@fourcolLTRfootfmt{#1}%
9632 \color@endgroup}%
9633 \m@mmf@prepare}
9634 \bidi@ensure@newcommand{\@fourcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%

File extrafootnotefeatures-xetex-bidi.def 199


9635 \def\baselinestretch{\m@m@footnote@spacing}%
9636 \reset@font\RTLfoottextfont
9637 \@preamfntext
9638 \protected@edef\@currentlabel{%
9639 \csname p@footnote\endcsname\@thefnmark}%
9640 \color@begingroup
9641 \@fourcolRTLfootfmt{#1}%
9642 \color@endgroup}%
9643 \m@mmf@prepare}
9644 \bidi@ensure@newcommand{\@preamfourfmt}{%
9645 \hsize .25\hsize
9646 \parindent=\z@
9647 \tolerance=5000\relax
9648 \leavevmode}
9649 \bidi@ensure@newcommand{\@fourcolfootfmt}[1]{%
9650 \@preamfourfmt
9651 {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
9652 \bidi@ensure@newcommand{\@fourcolLTRfootfmt}[1]{%
9653 \@preamfourfmt
9654 {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
9655 \bidi@ensure@newcommand{\@fourcolRTLfootfmt}[1]{%
9656 \@preamfourfmt
9657 {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
9658 \bidi@ensure@newcommand{\@mpfourcolfootnotetext}[1]{%
9659 \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
9660 \unvbox\@mpfootinsv@r
9661 \def\baselinestretch{\m@m@footnote@spacing}%
9662 \reset@font\foottextfont
9663 \hsize\columnwidth \@parboxrestore
9664 \protected@edef\@currentlabel{%
9665 \csname p@mpfootnote\endcsname\@thefnmark}%
9666 \color@begingroup
9667 \@fourcolfootfmt{#1}%
9668 \color@endgroup}%
9669 \m@mmf@prepare}
9670 \bidi@ensure@newcommand{\@mpfourcolLTRfootnotetext}[1]{%
9671 \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
9672 \unvbox\@mpfootinsv@r
9673 \def\baselinestretch{\m@m@footnote@spacing}%
9674 \reset@font\LTRfoottextfont
9675 \hsize\columnwidth \@parboxrestore
9676 \if@RTLcolumnfootnotes\beginL\fi
9677 \protected@edef\@currentlabel{%
9678 \csname p@mpfootnote\endcsname\@thefnmark}%
9679 \color@begingroup
9680 \@fourcolLTRfootfmt{#1}%
9681 \color@endgroup}%
9682 \m@mmf@prepare}
9683 \bidi@ensure@newcommand{\@mpfourcolRTLfootnotetext}[1]{%
9684 \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%

File extrafootnotefeatures-xetex-bidi.def 200


9685 \unvbox\@mpfootinsv@r
9686 \def\baselinestretch{\m@m@footnote@spacing}%
9687 \reset@font\RTLfoottextfont
9688 \hsize\columnwidth \@parboxrestore
9689 \protected@edef\@currentlabel{%
9690 \csname p@mpfootnote\endcsname\@thefnmark}%
9691 \color@begingroup
9692 \@fourcolRTLfootfmt{#1}%
9693 \color@endgroup}%
9694 \m@mmf@prepare}
9695 \bidi@ensure@newcommand{\m@make@fourcol@footgroup}[1]{%
9696 \@namedef{@fourcol@footgroup#1}{{%
9697 \def\baselinestretch{\m@m@footnote@spacing}%
9698 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
9699 \m@mrigidbalance{\@nameuse{footins#1}}{4}{\splittopskip}}}}
9700 \bidi@ensure@newcommand{\m@make@mpfourcol@footgroup}[1]{%
9701 \@namedef{@mpfourcol@footgroup#1}{{%
9702 \def\baselinestretch{\m@m@footnote@spacing}%
9703 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
9704 \m@mrigidbalance{\@nameuse{@mpfootins#1}}{4}{\splittopskip}}}}
9705 \bidi@ensure@newcommand{\fivecolumnfootnotes}{%
9706 \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
9707 \@bidi@before@Hy@hyperfootnotes
9708 \let\@footnotetext\@fivecolfootnotetext
9709 \let\@LTRfootnotetext\@fivecolLTRfootnotetext
9710 \let\@RTLfootnotetext\@fivecolRTLfootnotetext
9711 \dimen\footinsv@r=5\footinsdim
9712 \count\footinsv@r=200\relax
9713 \m@make@fivecol@footgroup{v@r}%
9714 \let\@footgroupv@r\@fivecol@footgroupv@r
9715 \let\@mpfootnotetext\@mpfivecolfootnotetext
9716 \let\@mpLTRfootnotetext\@mpfivecolLTRfootnotetext
9717 \let\@mpRTLfootnotetext\@mpfivecolRTLfootnotetext
9718 \@bidi@after@Hy@hyperfootnotes
9719 \m@make@mpfivecol@footgroup{v@r}%
9720 \let\mp@footgroupv@r\@mpfivecol@footgroupv@r
9721 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
9722 }
9723 \bidi@ensure@newcommand{\@fivecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue
9724 \def\baselinestretch{\m@m@footnote@spacing}%
9725 \reset@font\foottextfont
9726 \@preamfntext
9727 \protected@edef\@currentlabel{%
9728 \csname p@footnote\endcsname\@thefnmark}%
9729 \color@begingroup
9730 \@fivecolfootfmt{#1}%
9731 \color@endgroup}%
9732 \m@mmf@prepare}
9733 \bidi@ensure@newcommand{\@fivecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes
9734 \def\baselinestretch{\m@m@footnote@spacing}%

File extrafootnotefeatures-xetex-bidi.def 201


9735 \reset@font\LTRfoottextfont
9736 \@preamfntext
9737 \protected@edef\@currentlabel{%
9738 \csname p@footnote\endcsname\@thefnmark}%
9739 \color@begingroup
9740 \@fivecolLTRfootfmt{#1}%
9741 \color@endgroup}%
9742 \m@mmf@prepare}
9743 \bidi@ensure@newcommand{\@fivecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
9744 \def\baselinestretch{\m@m@footnote@spacing}%
9745 \reset@font\RTLfoottextfont
9746 \@preamfntext
9747 \protected@edef\@currentlabel{%
9748 \csname p@footnote\endcsname\@thefnmark}%
9749 \color@begingroup
9750 \@fivecolRTLfootfmt{#1}%
9751 \color@endgroup}%
9752 \m@mmf@prepare}
9753 \bidi@ensure@newcommand{\@preamfivefmt}{%
9754 \hsize .2\hsize
9755 \parindent=\z@
9756 \tolerance=5000\relax
9757 \leavevmode}
9758 \bidi@ensure@newcommand{\@fivecolfootfmt}[1]{%
9759 \@preamfivefmt
9760 {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
9761 \bidi@ensure@newcommand{\@fivecolLTRfootfmt}[1]{%
9762 \@preamfivefmt
9763 {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
9764 \bidi@ensure@newcommand{\@fivecolRTLfootfmt}[1]{%
9765 \@preamfivefmt
9766 {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
9767 \bidi@ensure@newcommand{\@mpfivecolfootnotetext}[1]{%
9768 \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
9769 \unvbox\@mpfootinsv@r
9770 \def\baselinestretch{\m@m@footnote@spacing}%
9771 \reset@font\foottextfont
9772 \hsize\columnwidth \@parboxrestore
9773 \protected@edef\@currentlabel{%
9774 \csname p@mpfootnote\endcsname\@thefnmark}%
9775 \color@begingroup
9776 \@fivecolfootfmt{#1}%
9777 \color@endgroup}%
9778 \m@mmf@prepare}
9779 \bidi@ensure@newcommand{\@mpfivecolLTRfootnotetext}[1]{%
9780 \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
9781 \unvbox\@mpfootinsv@r
9782 \def\baselinestretch{\m@m@footnote@spacing}%
9783 \reset@font\LTRfoottextfont
9784 \hsize\columnwidth \@parboxrestore

File extrafootnotefeatures-xetex-bidi.def 202


9785 \if@RTLcolumnfootnotes\beginL\fi
9786 \protected@edef\@currentlabel{%
9787 \csname p@mpfootnote\endcsname\@thefnmark}%
9788 \color@begingroup
9789 \@fivecolLTRfootfmt{#1}%
9790 \color@endgroup}%
9791 \m@mmf@prepare}
9792 \bidi@ensure@newcommand{\@mpfivecolRTLfootnotetext}[1]{%
9793 \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
9794 \unvbox\@mpfootinsv@r
9795 \def\baselinestretch{\m@m@footnote@spacing}%
9796 \reset@font\RTLfoottextfont
9797 \hsize\columnwidth \@parboxrestore
9798 \protected@edef\@currentlabel{%
9799 \csname p@mpfootnote\endcsname\@thefnmark}%
9800 \color@begingroup
9801 \@fivecolRTLfootfmt{#1}%
9802 \color@endgroup}%
9803 \m@mmf@prepare}
9804 \bidi@ensure@newcommand{\m@make@fivecol@footgroup}[1]{%
9805 \@namedef{@fivecol@footgroup#1}{{%
9806 \def\baselinestretch{\m@m@footnote@spacing}%
9807 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
9808 \m@mrigidbalance{\@nameuse{footins#1}}{5}{\splittopskip}}}}
9809 \bidi@ensure@newcommand{\m@make@mpfivecol@footgroup}[1]{%
9810 \@namedef{@mpfivecol@footgroup#1}{{%
9811 \def\baselinestretch{\m@m@footnote@spacing}%
9812 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
9813 \m@mrigidbalance{\@nameuse{@mpfootins#1}}{5}{\splittopskip}}}}
9814 \bidi@ensure@newcommand{\sixcolumnfootnotes}{%
9815 \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
9816 \@bidi@before@Hy@hyperfootnotes
9817 \let\@footnotetext\@sixcolfootnotetext
9818 \let\@LTRfootnotetext\@sixcolLTRfootnotetext
9819 \let\@RTLfootnotetext\@sixcolRTLfootnotetext
9820 \dimen\footinsv@r=6\footinsdim
9821 \count\footinsv@r=166\relax
9822 \m@make@sixcol@footgroup{v@r}%
9823 \let\@footgroupv@r\@sixcol@footgroupv@r
9824 \let\@mpfootnotetext\@mpsixcolfootnotetext
9825 \let\@mpLTRfootnotetext\@mpsixcolLTRfootnotetext
9826 \let\@mpRTLfootnotetext\@mpsixcolRTLfootnotetext
9827 \@bidi@after@Hy@hyperfootnotes
9828 \m@make@mpsixcol@footgroup{v@r}%
9829 \let\mp@footgroupv@r\@mpsixcol@footgroupv@r
9830 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
9831 }
9832 \bidi@ensure@newcommand{\@sixcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\
9833 \def\baselinestretch{\m@m@footnote@spacing}%
9834 \reset@font\foottextfont

File extrafootnotefeatures-xetex-bidi.def 203


9835 \@preamfntext
9836 \protected@edef\@currentlabel{%
9837 \csname p@footnote\endcsname\@thefnmark}%
9838 \color@begingroup
9839 \@sixcolfootfmt{#1}%
9840 \color@endgroup}%
9841 \m@mmf@prepare}
9842 \bidi@ensure@newcommand{\@sixcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\
9843 \def\baselinestretch{\m@m@footnote@spacing}%
9844 \reset@font\LTRfoottextfont
9845 \@preamfntext
9846 \protected@edef\@currentlabel{%
9847 \csname p@footnote\endcsname\@thefnmark}%
9848 \color@begingroup
9849 \@sixcolLTRfootfmt{#1}%
9850 \color@endgroup}%
9851 \m@mmf@prepare}
9852 \bidi@ensure@newcommand{\@sixcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
9853 \def\baselinestretch{\m@m@footnote@spacing}%
9854 \reset@font\RTLfoottextfont
9855 \@preamfntext
9856 \protected@edef\@currentlabel{%
9857 \csname p@footnote\endcsname\@thefnmark}%
9858 \color@begingroup
9859 \@sixcolRTLfootfmt{#1}%
9860 \color@endgroup}%
9861 \m@mmf@prepare}
9862 \bidi@ensure@newcommand{\@preamsixfmt}{%
9863 \hsize .16\hsize
9864 \parindent=\z@
9865 \tolerance=5000\relax
9866 \leavevmode}
9867 \bidi@ensure@newcommand{\@sixcolfootfmt}[1]{%
9868 \@preamsixfmt
9869 {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
9870 \bidi@ensure@newcommand{\@sixcolLTRfootfmt}[1]{%
9871 \@preamsixfmt
9872 {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
9873 \bidi@ensure@newcommand{\@sixcolRTLfootfmt}[1]{%
9874 \@preamsixfmt
9875 {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
9876 \bidi@ensure@newcommand{\@mpsixcolfootnotetext}[1]{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi
9877 \global\setbox\@mpfootinsv@r\vbox{%
9878 \unvbox\@mpfootinsv@r
9879 \def\baselinestretch{\m@m@footnote@spacing}%
9880 \reset@font\foottextfont
9881 \hsize\columnwidth \@parboxrestore
9882 \protected@edef\@currentlabel{%
9883 \csname p@mpfootnote\endcsname\@thefnmark}%
9884 \color@begingroup

File extrafootnotefeatures-xetex-bidi.def 204


9885 \@sixcolfootfmt{#1}%
9886 \color@endgroup}%
9887 \m@mmf@prepare}
9888 \bidi@ensure@newcommand{\@mpsixcolLTRfootnotetext}[1]{\@RTLfalse%
9889 \global\setbox\@mpfootinsv@r\vbox{%
9890 \unvbox\@mpfootinsv@r
9891 \def\baselinestretch{\m@m@footnote@spacing}%
9892 \reset@font\LTRfoottextfont
9893 \hsize\columnwidth \@parboxrestore
9894 \if@RTLcolumnfootnotes\beginL\fi
9895 \protected@edef\@currentlabel{%
9896 \csname p@mpfootnote\endcsname\@thefnmark}%
9897 \color@begingroup
9898 \@sixcolLTRfootfmt{#1}%
9899 \color@endgroup}%
9900 \m@mmf@prepare}
9901 \bidi@ensure@newcommand{\@mpsixcolRTLfootnotetext}[1]{\@RTLtrue%
9902 \global\setbox\@mpfootinsv@r\vbox{%
9903 \unvbox\@mpfootinsv@r
9904 \def\baselinestretch{\m@m@footnote@spacing}%
9905 \reset@font\RTLfoottextfont
9906 \hsize\columnwidth \@parboxrestore
9907 \protected@edef\@currentlabel{%
9908 \csname p@mpfootnote\endcsname\@thefnmark}%
9909 \color@begingroup
9910 \@sixcolRTLfootfmt{#1}%
9911 \color@endgroup}%
9912 \m@mmf@prepare}
9913 \bidi@ensure@newcommand{\m@make@sixcol@footgroup}[1]{%
9914 \@namedef{@sixcol@footgroup#1}{{%
9915 \def\baselinestretch{\m@m@footnote@spacing}%
9916 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
9917 \m@mrigidbalance{\@nameuse{footins#1}}{6}{\splittopskip}}}}
9918 \bidi@ensure@newcommand{\m@make@mpsixcol@footgroup}[1]{%
9919 \@namedef{@mpsixcol@footgroup#1}{{%
9920 \def\baselinestretch{\m@m@footnote@spacing}%
9921 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
9922 \m@mrigidbalance{\@nameuse{@mpfootins#1}}{6}{\splittopskip}}}}
9923 \bidi@ensure@newcommand{\sevencolumnfootnotes}{%
9924 \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
9925 \@bidi@before@Hy@hyperfootnotes
9926 \let\@footnotetext\@sevencolfootnotetext
9927 \let\@LTRfootnotetext\@sevencolLTRfootnotetext
9928 \let\@RTLfootnotetext\@sevencolRTLfootnotetext
9929 \dimen\footinsv@r=7\footinsdim
9930 \count\footinsv@r=142\relax
9931 \m@make@sevencol@footgroup{v@r}%
9932 \let\@footgroupv@r\@sevencol@footgroupv@r
9933 \let\@mpfootnotetext\@mpsevencolfootnotetext
9934 \let\@mpLTRfootnotetext\@mpsevencolLTRfootnotetext

File extrafootnotefeatures-xetex-bidi.def 205


9935 \let\@mpRTLfootnotetext\@mpsevencolRTLfootnotetext
9936 \@bidi@after@Hy@hyperfootnotes
9937 \m@make@mpsevencol@footgroup{v@r}%
9938 \let\mp@footgroupv@r\@mpsevencol@footgroupv@r
9939 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
9940 }
9941 \bidi@ensure@newcommand{\@sevencolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtru
9942 \def\baselinestretch{\m@m@footnote@spacing}%
9943 \reset@font\foottextfont
9944 \@preamfntext
9945 \protected@edef\@currentlabel{%
9946 \csname p@footnote\endcsname\@thefnmark}%
9947 \color@begingroup
9948 \@sevencolfootfmt{#1}%
9949 \color@endgroup}%
9950 \m@mmf@prepare}
9951 \bidi@ensure@newcommand{\@sevencolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnote
9952 \def\baselinestretch{\m@m@footnote@spacing}%
9953 \reset@font\LTRfoottextfont
9954 \@preamfntext
9955 \protected@edef\@currentlabel{%
9956 \csname p@footnote\endcsname\@thefnmark}%
9957 \color@begingroup
9958 \@sevencolLTRfootfmt{#1}%
9959 \color@endgroup}%
9960 \m@mmf@prepare}
9961 \bidi@ensure@newcommand{\@sevencolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
9962 \def\baselinestretch{\m@m@footnote@spacing}%
9963 \reset@font\RTLfoottextfont
9964 \@preamfntext
9965 \protected@edef\@currentlabel{%
9966 \csname p@footnote\endcsname\@thefnmark}%
9967 \color@begingroup
9968 \@sevencolRTLfootfmt{#1}%
9969 \color@endgroup}%
9970 \m@mmf@prepare}
9971 \bidi@ensure@newcommand{\@preamsevenfmt}{%
9972 \hsize .142\hsize
9973 \parindent=\z@
9974 \tolerance=5000\relax
9975 \leavevmode}
9976 \bidi@ensure@newcommand{\@sevencolfootfmt}[1]{%
9977 \@preamsevenfmt
9978 {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
9979 \bidi@ensure@newcommand{\@sevencolLTRfootfmt}[1]{%
9980 \@preamsevenfmt
9981 {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
9982 \bidi@ensure@newcommand{\@sevencolRTLfootfmt}[1]{%
9983 \@preamsevenfmt
9984 {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}

File extrafootnotefeatures-xetex-bidi.def 206


9985 \bidi@ensure@newcommand{\@mpsevencolfootnotetext}[1]{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\
9986 \global\setbox\@mpfootinsv@r\vbox{%
9987 \unvbox\@mpfootinsv@r
9988 \def\baselinestretch{\m@m@footnote@spacing}%
9989 \reset@font\foottextfont
9990 \hsize\columnwidth \@parboxrestore
9991 \protected@edef\@currentlabel{%
9992 \csname p@mpfootnote\endcsname\@thefnmark}%
9993 \color@begingroup
9994 \@sevencolfootfmt{#1}%
9995 \color@endgroup}%
9996 \m@mmf@prepare}
9997 \bidi@ensure@newcommand{\@mpsevencolLTRfootnotetext}[1]{\@RTLfalse%
9998 \global\setbox\@mpfootinsv@r\vbox{%
9999 \unvbox\@mpfootinsv@r
10000 \def\baselinestretch{\m@m@footnote@spacing}%
10001 \reset@font\LTRfoottextfont
10002 \hsize\columnwidth \@parboxrestore
10003 \if@RTLcolumnfootnotes\beginL\fi
10004 \protected@edef\@currentlabel{%
10005 \csname p@mpfootnote\endcsname\@thefnmark}%
10006 \color@begingroup
10007 \@sevencolLTRfootfmt{#1}%
10008 \color@endgroup}%
10009 \m@mmf@prepare}
10010 \bidi@ensure@newcommand{\@mpsevencolRTLfootnotetext}[1]{\@RTLtrue%
10011 \global\setbox\@mpfootinsv@r\vbox{%
10012 \unvbox\@mpfootinsv@r
10013 \def\baselinestretch{\m@m@footnote@spacing}%
10014 \reset@font\RTLfoottextfont
10015 \hsize\columnwidth \@parboxrestore
10016 \protected@edef\@currentlabel{%
10017 \csname p@mpfootnote\endcsname\@thefnmark}%
10018 \color@begingroup
10019 \@sevencolRTLfootfmt{#1}%
10020 \color@endgroup}%
10021 \m@mmf@prepare}
10022 \bidi@ensure@newcommand{\m@make@sevencol@footgroup}[1]{%
10023 \@namedef{@sevencol@footgroup#1}{{%
10024 \def\baselinestretch{\m@m@footnote@spacing}%
10025 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
10026 \m@mrigidbalance{\@nameuse{footins#1}}{7}{\splittopskip}}}}
10027 \bidi@ensure@newcommand{\m@make@mpsevencol@footgroup}[1]{%
10028 \@namedef{@mpsevencol@footgroup#1}{{%
10029 \def\baselinestretch{\m@m@footnote@spacing}%
10030 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
10031 \m@mrigidbalance{\@nameuse{@mpfootins#1}}{7}{\splittopskip}}}}
10032 \bidi@ensure@newcommand{\eightcolumnfootnotes}{%
10033 \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
10034 \@bidi@before@Hy@hyperfootnotes

File extrafootnotefeatures-xetex-bidi.def 207


10035 \let\@footnotetext\@eightcolfootnotetext
10036 \let\@LTRfootnotetext\@eightcolLTRfootnotetext
10037 \let\@RTLfootnotetext\@eightcolRTLfootnotetext
10038 \dimen\footinsv@r=8\footinsdim
10039 \count\footinsv@r=125\relax
10040 \m@make@eightcol@footgroup{v@r}%
10041 \let\@footgroupv@r\@eightcol@footgroupv@r
10042 \let\@mpfootnotetext\@mpeightcolfootnotetext
10043 \let\@mpLTRfootnotetext\@mpeightcolLTRfootnotetext
10044 \let\@mpRTLfootnotetext\@mpeightcolRTLfootnotetext
10045 \@bidi@after@Hy@hyperfootnotes
10046 \m@make@mpeightcol@footgroup{v@r}%
10047 \let\mp@footgroupv@r\@mpeightcol@footgroupv@r
10048 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
10049 }
10050 \bidi@ensure@newcommand{\@eightcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtru
10051 \def\baselinestretch{\m@m@footnote@spacing}%
10052 \reset@font\foottextfont
10053 \@preamfntext
10054 \protected@edef\@currentlabel{%
10055 \csname p@footnote\endcsname\@thefnmark}%
10056 \color@begingroup
10057 \@eightcolfootfmt{#1}%
10058 \color@endgroup}%
10059 \m@mmf@prepare}
10060 \bidi@ensure@newcommand{\@eightcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnote
10061 \def\baselinestretch{\m@m@footnote@spacing}%
10062 \reset@font\LTRfoottextfont
10063 \@preamfntext
10064 \protected@edef\@currentlabel{%
10065 \csname p@footnote\endcsname\@thefnmark}%
10066 \color@begingroup
10067 \@eightcolLTRfootfmt{#1}%
10068 \color@endgroup}%
10069 \m@mmf@prepare}
10070 \bidi@ensure@newcommand{\@eightcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
10071 \def\baselinestretch{\m@m@footnote@spacing}%
10072 \reset@font\RTLfoottextfont
10073 \@preamfntext
10074 \protected@edef\@currentlabel{%
10075 \csname p@footnote\endcsname\@thefnmark}%
10076 \color@begingroup
10077 \@eightcolRTLfootfmt{#1}%
10078 \color@endgroup}%
10079 \m@mmf@prepare}
10080 \bidi@ensure@newcommand{\@preameightfmt}{%
10081 \hsize .125\hsize
10082 \parindent=\z@
10083 \tolerance=5000\relax
10084 \leavevmode}

File extrafootnotefeatures-xetex-bidi.def 208


10085 \bidi@ensure@newcommand{\@eightcolfootfmt}[1]{%
10086 \@preameightfmt
10087 {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
10088 \bidi@ensure@newcommand{\@eightcolLTRfootfmt}[1]{%
10089 \@preameightfmt
10090 {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
10091 \bidi@ensure@newcommand{\@eightcolRTLfootfmt}[1]{%
10092 \@preameightfmt
10093 {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
10094 \bidi@ensure@newcommand{\@mpeightcolfootnotetext}[1]{%
10095 \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
10096 \unvbox\@mpfootinsv@r
10097 \def\baselinestretch{\m@m@footnote@spacing}%
10098 \reset@font\foottextfont
10099 \hsize\columnwidth \@parboxrestore
10100 \protected@edef\@currentlabel{%
10101 \csname p@mpfootnote\endcsname\@thefnmark}%
10102 \color@begingroup
10103 \@eightcolfootfmt{#1}%
10104 \color@endgroup}%
10105 \m@mmf@prepare}
10106 \bidi@ensure@newcommand{\@mpeightcolLTRfootnotetext}[1]{%
10107 \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
10108 \unvbox\@mpfootinsv@r
10109 \def\baselinestretch{\m@m@footnote@spacing}%
10110 \reset@font\LTRfoottextfont
10111 \hsize\columnwidth \@parboxrestore
10112 \if@RTLcolumnfootnotes\beginL\fi
10113 \protected@edef\@currentlabel{%
10114 \csname p@mpfootnote\endcsname\@thefnmark}%
10115 \color@begingroup
10116 \@eightcolLTRfootfmt{#1}%
10117 \color@endgroup}%
10118 \m@mmf@prepare}
10119 \bidi@ensure@newcommand{\@mpeightcolRTLfootnotetext}[1]{%
10120 \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
10121 \unvbox\@mpfootinsv@r
10122 \def\baselinestretch{\m@m@footnote@spacing}%
10123 \reset@font\RTLfoottextfont
10124 \hsize\columnwidth \@parboxrestore
10125 \protected@edef\@currentlabel{%
10126 \csname p@mpfootnote\endcsname\@thefnmark}%
10127 \color@begingroup
10128 \@eightcolRTLfootfmt{#1}%
10129 \color@endgroup}%
10130 \m@mmf@prepare}
10131 \bidi@ensure@newcommand{\m@make@eightcol@footgroup}[1]{%
10132 \@namedef{@eightcol@footgroup#1}{{%
10133 \def\baselinestretch{\m@m@footnote@spacing}%
10134 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox

File extrafootnotefeatures-xetex-bidi.def 209


10135 \m@mrigidbalance{\@nameuse{footins#1}}{8}{\splittopskip}}}}
10136 \bidi@ensure@newcommand{\m@make@mpeightcol@footgroup}[1]{%
10137 \@namedef{@mpeightcol@footgroup#1}{{%
10138 \def\baselinestretch{\m@m@footnote@spacing}%
10139 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
10140 \m@mrigidbalance{\@nameuse{@mpfootins#1}}{8}{\splittopskip}}}}
10141 \bidi@ensure@newcommand{\ninecolumnfootnotes}{%
10142 \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
10143 \@bidi@before@Hy@hyperfootnotes
10144 \let\@footnotetext\@ninecolfootnotetext
10145 \let\@LTRfootnotetext\@ninecolLTRfootnotetext
10146 \let\@RTLfootnotetext\@ninecolRTLfootnotetext
10147 \dimen\footinsv@r=9\footinsdim
10148 \count\footinsv@r=111\relax
10149 \m@make@ninecol@footgroup{v@r}%
10150 \let\@footgroupv@r\@ninecol@footgroupv@r
10151 \let\@mpfootnotetext\@mpninecolfootnotetext
10152 \let\@mpLTRfootnotetext\@mpninecolLTRfootnotetext
10153 \let\@mpRTLfootnotetext\@mpninecolRTLfootnotetext
10154 \@bidi@after@Hy@hyperfootnotes
10155 \m@make@mpninecol@footgroup{v@r}%
10156 \let\mp@footgroupv@r\@mpninecol@footgroupv@r
10157 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
10158 }
10159 \bidi@ensure@newcommand{\@ninecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue
10160 \def\baselinestretch{\m@m@footnote@spacing}%
10161 \reset@font\foottextfont
10162 \@preamfntext
10163 \protected@edef\@currentlabel{%
10164 \csname p@footnote\endcsname\@thefnmark}%
10165 \color@begingroup
10166 \@ninecolfootfmt{#1}%
10167 \color@endgroup}%
10168 \m@mmf@prepare}
10169 \bidi@ensure@newcommand{\@ninecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes
10170 \def\baselinestretch{\m@m@footnote@spacing}%
10171 \reset@font\LTRfoottextfont
10172 \@preamfntext
10173 \protected@edef\@currentlabel{%
10174 \csname p@footnote\endcsname\@thefnmark}%
10175 \color@begingroup
10176 \@ninecolLTRfootfmt{#1}%
10177 \color@endgroup}%
10178 \m@mmf@prepare}
10179 \bidi@ensure@newcommand{\@ninecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
10180 \def\baselinestretch{\m@m@footnote@spacing}%
10181 \reset@font\RTLfoottextfont
10182 \@preamfntext
10183 \protected@edef\@currentlabel{%
10184 \csname p@footnote\endcsname\@thefnmark}%

File extrafootnotefeatures-xetex-bidi.def 210


10185 \color@begingroup
10186 \@ninecolRTLfootfmt{#1}%
10187 \color@endgroup}%
10188 \m@mmf@prepare}
10189 \bidi@ensure@newcommand{\@preamninefmt}{%
10190 \hsize .1\hsize
10191 \parindent=\z@
10192 \tolerance=5000\relax
10193 \leavevmode}
10194 \bidi@ensure@newcommand{\@ninecolfootfmt}[1]{%
10195 \@preamninefmt
10196 {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
10197 \bidi@ensure@newcommand{\@ninecolLTRfootfmt}[1]{%
10198 \@preamninefmt
10199 {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
10200 \bidi@ensure@newcommand{\@ninecolRTLfootfmt}[1]{%
10201 \@preamninefmt
10202 {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
10203 \bidi@ensure@newcommand{\@mpninecolfootnotetext}[1]{%
10204 \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
10205 \unvbox\@mpfootinsv@r
10206 \def\baselinestretch{\m@m@footnote@spacing}%
10207 \reset@font\foottextfont
10208 \hsize\columnwidth \@parboxrestore
10209 \protected@edef\@currentlabel{%
10210 \csname p@mpfootnote\endcsname\@thefnmark}%
10211 \color@begingroup
10212 \@ninecolfootfmt{#1}%
10213 \color@endgroup}%
10214 \m@mmf@prepare}
10215 \bidi@ensure@newcommand{\@mpninecolLTRfootnotetext}[1]{%
10216 \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
10217 \unvbox\@mpfootinsv@r
10218 \def\baselinestretch{\m@m@footnote@spacing}%
10219 \reset@font\LTRfoottextfont
10220 \hsize\columnwidth \@parboxrestore
10221 \if@RTLcolumnfootnotes\beginL\fi
10222 \protected@edef\@currentlabel{%
10223 \csname p@mpfootnote\endcsname\@thefnmark}%
10224 \color@begingroup
10225 \@ninecolLTRfootfmt{#1}%
10226 \color@endgroup}%
10227 \m@mmf@prepare}
10228 \bidi@ensure@newcommand{\@mpninecolRTLfootnotetext}[1]{%
10229 \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
10230 \unvbox\@mpfootinsv@r
10231 \def\baselinestretch{\m@m@footnote@spacing}%
10232 \reset@font\RTLfoottextfont
10233 \hsize\columnwidth \@parboxrestore
10234 \protected@edef\@currentlabel{%

File extrafootnotefeatures-xetex-bidi.def 211


10235 \csname p@mpfootnote\endcsname\@thefnmark}%
10236 \color@begingroup
10237 \@ninecolRTLfootfmt{#1}%
10238 \color@endgroup}%
10239 \m@mmf@prepare}
10240 \bidi@ensure@newcommand{\m@make@ninecol@footgroup}[1]{%
10241 \@namedef{@ninecol@footgroup#1}{{%
10242 \def\baselinestretch{\m@m@footnote@spacing}%
10243 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
10244 \m@mrigidbalance{\@nameuse{footins#1}}{9}{\splittopskip}}}}
10245 \bidi@ensure@newcommand{\m@make@mpninecol@footgroup}[1]{%
10246 \@namedef{@mpninecol@footgroup#1}{{%
10247 \def\baselinestretch{\m@m@footnote@spacing}%
10248 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
10249 \m@mrigidbalance{\@nameuse{@mpfootins#1}}{9}{\splittopskip}}}}
10250 \bidi@ensure@newcommand{\tencolumnfootnotes}{%
10251 \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
10252 \@bidi@before@Hy@hyperfootnotes
10253 \let\@footnotetext\@tencolfootnotetext
10254 \let\@LTRfootnotetext\@tencolLTRfootnotetext
10255 \let\@RTLfootnotetext\@tencolRTLfootnotetext
10256 \dimen\footinsv@r=10\footinsdim
10257 \count\footinsv@r=100\relax
10258 \m@make@tencol@footgroup{v@r}%
10259 \let\@footgroupv@r\@tencol@footgroupv@r
10260 \let\@mpfootnotetext\@mptencolfootnotetext
10261 \let\@mpLTRfootnotetext\@mptencolLTRfootnotetext
10262 \let\@mpRTLfootnotetext\@mptencolRTLfootnotetext
10263 \@bidi@after@Hy@hyperfootnotes
10264 \m@make@mptencol@footgroup{v@r}%
10265 \let\mp@footgroupv@r\@mptencol@footgroupv@r
10266 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
10267 }
10268 \bidi@ensure@newcommand{\@tencolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\
10269 \def\baselinestretch{\m@m@footnote@spacing}%
10270 \reset@font\foottextfont
10271 \@preamfntext
10272 \protected@edef\@currentlabel{%
10273 \csname p@footnote\endcsname\@thefnmark}%
10274 \color@begingroup
10275 \@tencolfootfmt{#1}%
10276 \color@endgroup}%
10277 \m@mmf@prepare}
10278 \bidi@ensure@newcommand{\@tencolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\
10279 \def\baselinestretch{\m@m@footnote@spacing}%
10280 \reset@font\LTRfoottextfont
10281 \@preamfntext
10282 \protected@edef\@currentlabel{%
10283 \csname p@footnote\endcsname\@thefnmark}%
10284 \color@begingroup

File extrafootnotefeatures-xetex-bidi.def 212


10285 \@tencolLTRfootfmt{#1}%
10286 \color@endgroup}%
10287 \m@mmf@prepare}
10288 \bidi@ensure@newcommand{\@tencolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
10289 \def\baselinestretch{\m@m@footnote@spacing}%
10290 \reset@font\RTLfoottextfont
10291 \@preamfntext
10292 \protected@edef\@currentlabel{%
10293 \csname p@footnote\endcsname\@thefnmark}%
10294 \color@begingroup
10295 \@tencolRTLfootfmt{#1}%
10296 \color@endgroup}%
10297 \m@mmf@prepare}
10298 \bidi@ensure@newcommand{\@preamtenfmt}{%
10299 \hsize .1\hsize
10300 \parindent=\z@
10301 \tolerance=5000\relax
10302 \leavevmode}
10303 \bidi@ensure@newcommand{\@tencolfootfmt}[1]{%
10304 \@preamtenfmt
10305 {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
10306 \bidi@ensure@newcommand{\@tencolLTRfootfmt}[1]{%
10307 \@preamtenfmt
10308 {\LTRfootfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
10309 \bidi@ensure@newcommand{\@tencolRTLfootfmt}[1]{%
10310 \@preamtenfmt
10311 {\RTLfootfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
10312 \bidi@ensure@newcommand{\@mptencolfootnotetext}[1]{%
10313 \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
10314 \unvbox\@mpfootinsv@r
10315 \def\baselinestretch{\m@m@footnote@spacing}%
10316 \reset@font\foottextfont
10317 \hsize\columnwidth \@parboxrestore
10318 \protected@edef\@currentlabel{%
10319 \csname p@mpfootnote\endcsname\@thefnmark}%
10320 \color@begingroup
10321 \@tencolfootfmt{#1}%
10322 \color@endgroup}%
10323 \m@mmf@prepare}
10324 \bidi@ensure@newcommand{\@mptencolLTRfootnotetext}[1]{%
10325 \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
10326 \unvbox\@mpfootinsv@r
10327 \def\baselinestretch{\m@m@footnote@spacing}%
10328 \reset@font\LTRfoottextfont
10329 \hsize\columnwidth \@parboxrestore
10330 \if@RTLcolumnfootnotes\beginL\fi
10331 \protected@edef\@currentlabel{%
10332 \csname p@mpfootnote\endcsname\@thefnmark}%
10333 \color@begingroup
10334 \@tencolLTRfootfmt{#1}%

File extrafootnotefeatures-xetex-bidi.def 213


10335 \color@endgroup}%
10336 \m@mmf@prepare}
10337 \bidi@ensure@newcommand{\@mptencolRTLfootnotetext}[1]{%
10338 \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
10339 \unvbox\@mpfootinsv@r
10340 \def\baselinestretch{\m@m@footnote@spacing}%
10341 \reset@font\RTLfoottextfont
10342 \hsize\columnwidth \@parboxrestore
10343 \protected@edef\@currentlabel{%
10344 \csname p@mpfootnote\endcsname\@thefnmark}%
10345 \color@begingroup
10346 \@tencolRTLfootfmt{#1}%
10347 \color@endgroup}%
10348 \m@mmf@prepare}
10349 \bidi@ensure@newcommand{\m@make@tencol@footgroup}[1]{%
10350 \@namedef{@tencol@footgroup#1}{{%
10351 \def\baselinestretch{\m@m@footnote@spacing}%
10352 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
10353 \m@mrigidbalance{\@nameuse{footins#1}}{10}{\splittopskip}}}}
10354 \bidi@ensure@newcommand{\m@make@mptencol@footgroup}[1]{%
10355 \@namedef{@mptencol@footgroup#1}{{%
10356 \def\baselinestretch{\m@m@footnote@spacing}%
10357 \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
10358 \m@mrigidbalance{\@nameuse{@mpfootins#1}}{10}{\splittopskip}}}}
10359 \bidi@ensure@newcommand{\m@munvxh}[1]{%
10360 \setbox0=\vbox{\unvbox#1%
10361 \global\setbox1=\lastbox}%
10362 \unhbox1
10363 \unskip
10364 \unskip
10365 \unpenalty
10366 \hskip\m@mipn@skip}
10367 \bidi@ensure@newcommand{\m@mungebox}{%
10368 \setbox0=\hbox{\m@munvxh0}%
10369 \dp0=\z@
10370 \ht0=\footfudgefactor\wd0
10371 \box0
10372 \penalty0}
10373 \newskip\m@mipn@skip
10374 \bidi@ensure@newcommand*{\m@minterparanoteglue}[1]{%
10375 {\foottextfont\global\m@mipn@skip=#1\relax}}
10376 \m@minterparanoteglue{1em plus.4em minus.4em}
10377 \@ifpackageloaded{multicol}{%
10378 \bidi@ensure@newcommand*{\m@mmakehboxofhboxes}{%
10379 \hsize\textwidth%
10380 \setbox0=\hbox{}%
10381 \loop
10382 \unpenalty
10383 \setbox2=\lastbox
10384 \ifhbox2

File extrafootnotefeatures-xetex-bidi.def 214


10385 \setbox0=\hbox{\box2\unhbox0}
10386 \repeat}
10387 }{%
10388 \bidi@ensure@newcommand*{\m@mmakehboxofhboxes}{%
10389 \setbox0=\hbox{}%
10390 \loop
10391 \unpenalty
10392 \setbox2=\lastbox
10393 \ifhbox2
10394 \setbox0=\hbox{\box2\unhbox0}
10395 \repeat}}
10396 \bidi@ensure@newcommand*{\m@mremovehboxes}{\setbox0=\lastbox
10397 \ifhbox0{\m@mremovehboxes}\unhbox0 \fi}
10398 \newcommand*\AddExtraParaSkip[1]{%
10399 \if@bidi@csdef{footfudgefactor}{%
10400 \PackageError{bidi}{%
10401 The control sequence `\string\AddExtraParaSkip`
10402 must be used before the control sequence
10403 `\string\paragraphfootnotes' in the preamble%
10404 }\@ehc
10405 }{%
10406 \def\bidi@xparaskip{\advance\@tempdima#1\relax}%
10407 }%
10408 }
10409 \bidi@ensure@newcommand{\paragraphfootnotes}{%
10410 \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
10411 \@bidi@before@Hy@hyperfootnotes
10412 \let\@footnotetext\@parafootnotetext
10413 \let\@LTRfootnotetext\@paraLTRfootnotetext
10414 \let\@RTLfootnotetext\@paraRTLfootnotetext
10415 \dimen\footinsv@r=\footinsdim
10416 \count\footinsv@r=1000\relax
10417 \m@make@para@footgroup{v@r}%
10418 \m@make@para@footstart{v@r}%
10419 \let\@footgroupv@r\@para@footgroupv@r
10420 \let\@footstartv@r\@para@footstartv@r
10421 \dimen\footinsv@l=\footinsdim
10422 \count\footinsv@l=1000\relax
10423 \bidi@make@para@LTRfootgroup{v@l}%
10424 \m@make@para@footstart{v@l}%
10425 \bidi@make@para@footstart@@{v@l}%
10426 \let\@LTRfootgroupv@l\@para@LTRfootgroupv@l
10427 \let\@footstartv@l\@para@footstartv@l
10428 \let\@@footstart@@v@l\@@para@footstart@@v@l
10429 \let\@mpfootnotetext\@mpparafootnotetext
10430 \let\@mpLTRfootnotetext\@mpparaLTRfootnotetext
10431 \let\@mpRTLfootnotetext\@mpparaRTLfootnotetext
10432 \@bidi@after@Hy@hyperfootnotes
10433 \m@make@mppara@footgroup{v@r}%
10434 \bidi@make@mppara@LTRfootgroup{v@l}%

File extrafootnotefeatures-xetex-bidi.def 215


10435 \let\mp@footgroupv@r\@mppara@footgroupv@r
10436 \let\mp@LTRfootgroupv@l\@mppara@LTRfootgroupv@l
10437 \begingroup
10438 \def\baselinestretch{\m@m@footnote@spacing}%
10439 \foottextfont
10440 \@tempdima\footnotesep
10441 \advance\@tempdima -\ht\strutbox
10442 \ifdim\@tempdima<\z@ \@tempdima\z@ \fi
10443 \advance\@tempdima.5\normalbaselineskip
10444 \bidi@xparaskip
10445 \xdef\bidi@paraskip{\the\@tempdima\relax}%
10446 \ifdim\skip\footinsv@r>\bigskipamount
10447 \else
10448 \global\advance\skip\footinsv@r\bidi@paraskip
10449 \fi
10450 \ifdim\skip\footinsv@l>\bigskipamount
10451 \else
10452 \global\advance\skip\footinsv@l\bidi@paraskip
10453 \fi
10454 \@tempdima\normalbaselineskip
10455 \multiply \@tempdima \@cclvi
10456 \@tempdimb \columnwidth
10457 \divide \@tempdimb \@cclvi
10458 \divide \@tempdima \@tempdimb
10459 \xdef\footfudgefactor{\strip@pt\@tempdima}%
10460 \endgroup
10461 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
10462 }
10463 \newcommand{\normalRTLparaLTRfootnotes}{%
10464 \@namedef{foottextfontv@r}{\foottextfont}%
10465 \@bidi@before@Hy@hyperfootnotes
10466 \if@RTL@footnote
10467 \let\@footnotetext\m@mold@footnotetext
10468 \else
10469 \let\@footnotetext\@parafootnotetext
10470 \fi
10471 \let\@LTRfootnotetext\@paraLTRfootnotetext
10472 \let\@RTLfootnotetext\m@mold@RTLfootnotetext
10473 \dimen\footinsv@r=\footinsdim
10474 \count\footinsv@r=1000\relax
10475 \m@make@para@footgroup{v@r}%
10476 \m@make@para@footstart{v@r}%
10477 \let\@footgroupv@r\@para@footgroupv@r
10478 \let\@footstartv@r\@para@footstartv@r
10479 \dimen\footinsv@l=\footinsdim
10480 \count\footinsv@l=1000\relax
10481 \bidi@make@para@LTRfootgroup{v@l}%
10482 \m@make@para@footstart{v@l}%
10483 \bidi@make@para@footstart@@{v@l}%
10484 \let\@LTRfootgroupv@l\@para@LTRfootgroupv@l

File extrafootnotefeatures-xetex-bidi.def 216


10485 \let\@footstartv@l\@para@footstartv@l
10486 \let\@@footstart@@v@l\@@para@footstart@@v@l
10487 \if@RTL@footnote
10488 \let\@mpfootnotetext\m@mold@mpfootnotetext
10489 \else
10490 \let\@mpfootnotetext\@mpparafootnotetext
10491 \fi
10492 \let\@mpLTRfootnotetext\@mpparaLTRfootnotetext
10493 \let\@mpRTLfootnotetext\m@mold@mpRTLfootnotetext
10494 \@bidi@after@Hy@hyperfootnotes
10495 \m@make@mppara@footgroup{v@r}%
10496 \bidi@make@mppara@LTRfootgroup{v@l}%
10497 \let\mp@footgroupv@r\@mppara@footgroupv@r
10498 \let\mp@LTRfootgroupv@l\@mppara@LTRfootgroupv@l
10499 \begingroup
10500 \def\baselinestretch{\m@m@footnote@spacing}%
10501 \foottextfont
10502 \@tempdima\footnotesep
10503 \advance\@tempdima -\ht\strutbox
10504 \ifdim\@tempdima<\z@ \@tempdima\z@ \fi
10505 \advance\@tempdima.5\normalbaselineskip
10506 \bidi@xparaskip
10507 \xdef\bidi@paraskip{\the\@tempdima\relax}%
10508 \ifdim\skip\footinsv@r>\bigskipamount
10509 \else
10510 \global\advance\skip\footinsv@r\bidi@paraskip
10511 \fi
10512 \ifdim\skip\footinsv@l>\bigskipamount
10513 \else
10514 \global\advance\skip\footinsv@l\bidi@paraskip
10515 \fi
10516 \@tempdima\normalbaselineskip
10517 \multiply \@tempdima \@cclvi
10518 \@tempdimb \columnwidth
10519 \divide \@tempdimb \@cclvi
10520 \divide \@tempdima \@tempdimb
10521 \xdef\footfudgefactor{\strip@pt\@tempdima}%
10522 \endgroup
10523 \@ifstar\bidi@star@footmarkwidth\bidi@normal@footmarkwidth
10524 }
10525 \let\bidi@xparaskip\relax
10526 \@onlypreamble\AddExtraParaSkip
10527 \bidi@ensure@newcommand{\@parafootnotetext}[1]{\insert
10528 \if@RTL@footnote
10529 \footinsv@r
10530 \else
10531 \footinsv@l
10532 \fi
10533 {%
10534 \let\bidi@RTL@everypar\@empty%

File extrafootnotefeatures-xetex-bidi.def 217


10535 \def\baselinestretch{\m@m@footnote@spacing}%
10536 \reset@font\foottextfont
10537 \@preamfntext
10538 \protected@edef\@currentlabel{%
10539 \csname p@footnote\endcsname\@thefnmark}%
10540 \setbox0=\vbox{\hsize=\maxdimen
10541 \color@begingroup
10542 \noindent \@parafootfmt{#1}%
10543 \color@endgroup}%
10544 \m@mungebox}\m@mmf@prepare}
10545 \bidi@ensure@newcommand{\@paraLTRfootnotetext}[1]{\insert\footinsv@l{%
10546 \let\bidi@RTL@everypar\@empty%
10547 \def\baselinestretch{\m@m@footnote@spacing}%
10548 \reset@font\LTRfoottextfont
10549 \@preamfntext
10550 \protected@edef\@currentlabel{%
10551 \csname p@footnote\endcsname\@thefnmark}%
10552 \setbox0=\vbox{\hsize=\maxdimen
10553 \color@begingroup
10554 \noindent \@paraLTRfootfmt{#1}%
10555 \color@endgroup}%
10556 \m@mungebox}\m@mmf@prepare}
10557 \bidi@ensure@newcommand{\@paraRTLfootnotetext}[1]{\insert\footinsv@r{%
10558 \let\bidi@RTL@everypar\@empty%
10559 \def\baselinestretch{\m@m@footnote@spacing}%
10560 \reset@font\RTLfoottextfont
10561 \@preamfntext
10562 \protected@edef\@currentlabel{%
10563 \csname p@footnote\endcsname\@thefnmark}%
10564 \setbox0=\vbox{\hsize=\maxdimen
10565 \color@begingroup
10566 \noindent \@paraRTLfootfmt{#1}%
10567 \color@endgroup}%
10568 \m@mungebox}\m@mmf@prepare}
10569 \bidi@ensure@newcommand{\@parafootfmt}[1]{%
10570 \parindent=\z@
10571 \parfillskip=0pt \@plus 1fil
10572 {\footfootmark\strut {\foottextfont #1}\penalty-10}}
10573 \bidi@ensure@newcommand{\@paraLTRfootfmt}[1]{%
10574 \parindent=\z@
10575 \parfillskip=0pt \@plus 1fil
10576 {\LTRfootfootmark\strut {\LTRfoottextfont #1}\penalty-10}}
10577 \bidi@ensure@newcommand{\@paraRTLfootfmt}[1]{%
10578 \parindent=\z@
10579 \parfillskip=0pt \@plus 1fil
10580 {\RTLfootfootmark\strut {\RTLfoottextfont #1}\penalty-10}}
10581 \bidi@ensure@newcommand{\@mpparafootnotetext}[1]{%
10582 \global\setbox
10583 \if@RTL@footnote
10584 \@mpfootinsv@r

File extrafootnotefeatures-xetex-bidi.def 218


10585 \else
10586 \@mpfootinsv@l
10587 \fi
10588 \vbox{%
10589 \let\bidi@RTL@everypar\@empty%
10590 \def\baselinestretch{\m@m@footnote@spacing}%
10591 \unvbox
10592 \if@RTL@footnote
10593 \@mpfootinsv@r
10594 \else
10595 \@mpfootinsv@l
10596 \fi
10597 \reset@font\foottextfont
10598 \hsize\columnwidth \@parboxrestore
10599 \protected@edef\@currentlabel{%
10600 \csname p@mpfootnote\endcsname\@thefnmark}%
10601 \setbox0=\vbox{\hsize=\maxdimen
10602 \color@begingroup
10603 \noindent \@parafootfmt{#1}%
10604 \color@endgroup}%
10605 \m@mungebox}\m@mmf@prepare}
10606 \bidi@ensure@newcommand{\@mpparaLTRfootnotetext}[1]{%
10607 \global\setbox\@mpfootinsv@l\vbox{%
10608 \let\bidi@RTL@everypar\@empty%
10609 \def\baselinestretch{\m@m@footnote@spacing}%
10610 \unvbox\@mpfootinsv@l
10611 \reset@font\LTRfoottextfont
10612 \hsize\columnwidth \@parboxrestore
10613 \protected@edef\@currentlabel{%
10614 \csname p@mpfootnote\endcsname\@thefnmark}%
10615 \setbox0=\vbox{\hsize=\maxdimen
10616 \color@begingroup
10617 \noindent \@paraLTRfootfmt{#1}%
10618 \color@endgroup}%
10619 \m@mungebox}\m@mmf@prepare}
10620 \bidi@ensure@newcommand{\@mpparaRTLfootnotetext}[1]{%
10621 \global\setbox\@mpfootinsv@r\vbox{%
10622 \let\bidi@RTL@everypar\@empty%
10623 \def\baselinestretch{\m@m@footnote@spacing}%
10624 \unvbox\@mpfootinsv@r
10625 \reset@font\RTLfoottextfont
10626 \hsize\columnwidth \@parboxrestore
10627 \protected@edef\@currentlabel{%
10628 \csname p@mpfootnote\endcsname\@thefnmark}%
10629 \setbox0=\vbox{\hsize=\maxdimen
10630 \color@begingroup
10631 \noindent \@paraRTLfootfmt{#1}%
10632 \color@endgroup}%
10633 \m@mungebox}\m@mmf@prepare}
10634 \bidi@ensure@newcommand{\m@make@para@footgroup}[1]{%

File extrafootnotefeatures-xetex-bidi.def 219


10635 \@namedef{@para@footgroup#1}{%
10636 \unvbox\@nameuse{footins#1}
10637 \@RTLtrue
10638 \m@mmakehboxofhboxes
10639 \setbox0=\hbox{\unhbox0 \m@mremovehboxes}%
10640 \@parboxrestore%
10641 \def\baselinestretch{\m@m@footnote@spacing}%
10642 \@nameuse{foottextfont#1}%
10643 \noindent\unhbox0\par}}
10644 \bidi@ensure@newcommand{\bidi@make@para@LTRfootgroup}[1]{%
10645 \@namedef{@para@LTRfootgroup#1}{%
10646 \unvbox\@nameuse{footins#1}
10647 \@RTLfalse
10648 \m@mmakehboxofhboxes
10649 \setbox0=\hbox{\unhbox0 \m@mremovehboxes}%
10650 \@parboxrestore%
10651 \def\baselinestretch{\m@m@footnote@spacing}%
10652 \@nameuse{foottextfont#1}%
10653 \noindent\unhbox0\par}}
10654 \bidi@ensure@newcommand{\m@make@mppara@footgroup}[1]{%
10655 \@namedef{@mppara@footgroup#1}{%
10656 \unvbox\@nameuse{@mpfootins#1}
10657 \@RTLtrue
10658 \m@mmakehboxofhboxes
10659 \setbox0=\hbox{\unhbox0 \m@mremovehboxes}%
10660 \def\baselinestretch{\m@m@footnote@spacing}%
10661 \@nameuse{foottextfont#1}%
10662 \noindent\unhbox0\par}}
10663 \bidi@ensure@newcommand{\bidi@make@mppara@LTRfootgroup}[1]{%
10664 \@namedef{@mppara@LTRfootgroup#1}{%
10665 \unvbox\@nameuse{@mpfootins#1}
10666 \@RTLfalse
10667 \m@mmakehboxofhboxes
10668 \setbox0=\hbox{\unhbox0 \m@mremovehboxes}%
10669 \def\baselinestretch{\m@m@footnote@spacing}%
10670 \@nameuse{foottextfont#1}%
10671 \noindent\unhbox0\par}}
10672 \bidi@ensure@newcommand{\m@make@para@footstart}[1]{%
10673 \@namedef{@para@footstart#1}{%
10674 \if@bidi@void@footins
10675 \bidi@mopfn@bottom
10676 \fi
10677 \leftskip=\z@
10678 \rightskip=\z@
10679 \parindent=\z@
10680 \vskip\skip\footins
10681 \if@bidi@void@footins
10682 \footnoterule
10683 \fi}}
10684 \bidi@ensure@newcommand{\bidi@make@para@footstart@@}[1]{%

File extrafootnotefeatures-xetex-bidi.def 220


10685 \@namedef{@@para@footstart@@#1}{%
10686 \leftskip=\z@
10687 \rightskip=\z@
10688 \parindent=\z@
10689 \vskip\skip\footins}}
10690 \bidi@ensure@newcommand*{\m@m@makecolfloats}{%
10691 \xdef\@freelist{\@freelist\@midlist}%
10692 \global\let\@midlist\@empty
10693 \@combinefloats}
10694 \bidi@ensure@newcommand*{\m@m@makecoltext}{%
10695 \ifvbox\@kludgeins
10696 \@makespecialcolbox
10697 \else
10698 \setbox\@outputbox \vbox to\@colht{%
10699 \@texttop
10700 \dimen@ \dp\@outputbox
10701 \unvbox \@outputbox
10702 \vskip -\dimen@
10703 \@textbottom}%
10704 \fi}
10705 \bidi@ensure@newcommand*{\m@m@makecolintro}{}
10706 \bidi@ensure@newcommand*{\m@mopfootnote}{\setbox\@outputbox \vbox{%
10707 \boxmaxdepth\@maxdepth
10708 \@tempdima\dp\@cclv
10709 \unvbox\@cclv
10710 \vskip-\@tempdima
10711 \bidi@mopfn@bottom
10712 \vskip \skip\footins
10713 \color@begingroup
10714 \normalcolor
10715 \footnoterule
10716 \unvbox \footins
10717 \color@endgroup
10718 }%
10719 }
10720 \newcommand*{\bidi@mopfootnotebf}{%
10721 \setbox\@outputbox \vbox{%
10722 \boxmaxdepth\@maxdepth
10723 \unvbox\@outputbox
10724 \bidi@mopfn@bottom
10725 \vskip\skip\footins
10726 \color@begingroup
10727 \normalcolor
10728 \footnoterule
10729 \unvbox \footins
10730 \color@endgroup
10731 }%
10732 }
10733 \gdef\mem@makecol{%
10734 \m@m@makecolintro

File extrafootnotefeatures-xetex-bidi.def 221


10735 \ifvoid\footins
10736 \global\@bidi@void@footinstrue
10737 \setbox\@outputbox \box\@cclv
10738 \else
10739 \global\@bidi@void@footinsfalse
10740 \m@mopfootnote
10741 \fi
10742 \m@mdoextrafeet
10743 \m@m@makecolfloats
10744 \m@m@makecoltext
10745 \global \maxdepth \@maxdepth}
10746 \gdef\bidi@makecolbf{%
10747 \m@m@makecolintro
10748 \setbox\@outputbox \box\@cclv
10749 \m@m@makecolfloats
10750 \ifvoid\footins
10751 \global\@bidi@void@footinstrue
10752 \else
10753 \global\@bidi@void@footinsfalse
10754 \bidi@mopfootnotebf
10755 \fi
10756 \m@mdoextrafeet
10757 \m@m@makecoltext
10758 \global \maxdepth \@maxdepth}
10759 \newcommand{\FeetAboveFloat}{\gdef\@makecol{\mem@makecol}}
10760 \newcommand{\FeetBelowFloat}{\gdef\@makecol{\bidi@makecolbf}}
10761 \newcommand\FeetAtBottom{\def\bidi@mopfn@bottom{\vfill\relax}}
10762 \newcommand\FeetBelowRagged{\let\bidi@mopfn@bottom\relax}
10763 \FeetAboveFloat
10764 \FeetBelowRagged

56 File extreport-xetex-bidi.def
10765 \ProvidesFile{extreport-xetex-bidi.def}[2017/06/09 v0.3 bidi adaptations for extreport class f
10766 \renewcommand*\l@part[2]{%
10767 \ifnum \c@tocdepth >-2\relax
10768 \addpenalty{-\@highpenalty}%
10769 \addvspace{2.25em \@plus\p@}%
10770 \begingroup
10771 \setlength\@tempdima{3em}%
10772 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
10773 \parfillskip -\@pnumwidth
10774 {\leavevmode
10775 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
10776 \nobreak
10777 \global\@nobreaktrue
10778 \everypar{\global\@nobreakfalse\everypar{}}%
10779 \endgroup
10780 \fi}
10781 \renewcommand*\l@chapter[2]{%

File extreport-xetex-bidi.def 222


10782 \ifnum \c@tocdepth >\m@ne
10783 \addpenalty{-\@highpenalty}%
10784 \vskip 1.0em \@plus\p@
10785 \setlength\@tempdima{1.5em}%
10786 \begingroup
10787 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
10788 \parfillskip -\@pnumwidth
10789 \leavevmode \bfseries
10790 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
10791 \hskip -\if@RTL\rightskip\else\leftskip\fi
10792 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
10793 \penalty\@highpenalty
10794 \endgroup
10795 \fi}
10796 \def\@makechapterhead#1{%
10797 \vspace*{50\p@}%
10798 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
10799 \ifnum \c@secnumdepth >\m@ne
10800 \huge\bfseries \@chapapp\space \thechapter
10801 \par\nobreak
10802 \vskip 20\p@
10803 \fi
10804 \interlinepenalty\@M
10805 \Huge \bfseries #1\par\nobreak
10806 \vskip 40\p@
10807 }}
10808 \def\@makeschapterhead#1{%
10809 \vspace*{50\p@}%
10810 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
10811 \normalfont
10812 \interlinepenalty\@M
10813 \Huge \bfseries #1\par\nobreak
10814 \vskip 40\p@
10815 }}
10816 \renewcommand\left@footnoterule{%
10817 \kern-3\p@
10818 \hrule\@width.4\columnwidth
10819 \kern2.6\p@}
10820 \renewcommand\right@footnoterule{%
10821 \kern-3\p@
10822 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
10823 \kern2.6\p@}
10824 \renewenvironment{thebibliography}[1]
10825 {\chapter*{\bibname
10826 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
10827 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
10828 \bidi@@thebibliography@font@hook%
10829 \list{\@biblabel{\@arabic\c@enumiv}}%
10830 {\settowidth\labelwidth{\@biblabel{#1}}%
10831 \leftmargin\labelwidth

File extreport-xetex-bidi.def 223


10832 \advance\leftmargin\labelsep
10833 \@openbib@code
10834 \usecounter{enumiv}%
10835 \let\p@enumiv\@empty
10836 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
10837 \sloppy\clubpenalty4000\widowpenalty4000%
10838 \sfcode`\.\@m}
10839 {\def\@noitemerr
10840 {\@latex@warning{Empty `thebibliography' environment}}%
10841 \endlist}
10842 \if@titlepage
10843 \renewcommand\maketitle{\begin{titlepage}%
10844 \let\footnotesize\small
10845 \let\right@footnoterule\relax
10846 \let\left@footnoterule\relax
10847 \let\textwidth@footnoterule\relax
10848 \let \footnote \thanks
10849 \null\vfil
10850 \vskip 60\p@
10851 \begin{center}%
10852 {\LARGE \@title \par}%
10853 \vskip 3em%
10854 {\large
10855 \lineskip .75em%
10856 \begin{tabular}[t]{c}%
10857 \@author
10858 \end{tabular}\par}%
10859 \vskip 1.5em%
10860 {\large \@date \par}% % Set date in \large size.
10861 \end{center}\par
10862 \@thanks
10863 \vfil\null
10864 \end{titlepage}%
10865 \setcounter{footnote}{0}%
10866 \global\let\thanks\relax
10867 \global\let\maketitle\relax
10868 \global\let\@thanks\@empty
10869 \global\let\@author\@empty
10870 \global\let\@date\@empty
10871 \global\let\@title\@empty
10872 \global\let\title\relax
10873 \global\let\author\relax
10874 \global\let\date\relax
10875 \global\let\and\relax
10876 }
10877 \else
10878 \renewcommand\maketitle{\par
10879 \begingroup
10880 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
10881 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%

File extreport-xetex-bidi.def 224


10882 \long\def\@makefntext##1{\parindent 1em\noindent
10883 \hb@[email protected]{%
10884 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
10885 \if@twocolumn
10886 \ifnum \col@number=\@ne
10887 \@maketitle
10888 \else
10889 \twocolumn[\@maketitle]%
10890 \fi
10891 \else
10892 \newpage
10893 \global\@topnum\z@ % Prevents figures from going at top of page.
10894 \@maketitle
10895 \fi
10896 \thispagestyle{plain}\@thanks
10897 \endgroup
10898 \setcounter{footnote}{0}%
10899 \global\let\thanks\relax
10900 \global\let\maketitle\relax
10901 \global\let\@maketitle\relax
10902 \global\let\@thanks\@empty
10903 \global\let\@author\@empty
10904 \global\let\@date\@empty
10905 \global\let\@title\@empty
10906 \global\let\title\relax
10907 \global\let\author\relax
10908 \global\let\date\relax
10909 \global\let\and\relax
10910 }
10911 \def\@maketitle{%
10912 \newpage
10913 \null
10914 \vskip 2em%
10915 \begin{center}%
10916 \let \footnote \thanks
10917 {\LARGE \@title \par}%
10918 \vskip 1.5em%
10919 {\large
10920 \lineskip .5em%
10921 \begin{tabular}[t]{c}%
10922 \@author
10923 \end{tabular}\par}%
10924 \vskip 1em%
10925 {\large \@date}%
10926 \end{center}%
10927 \par
10928 \vskip 1.5em}
10929 \fi
10930 \renewcommand\thesection {\thechapter\@SepMark\@arabic\c@section}
10931 \renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}

File extreport-xetex-bidi.def 225


10932 \renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
10933 \renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
10934 \renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
10935 \renewcommand\theequation{%
10936 \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
10937 \renewcommand\thefigure{%
10938 \ifnum \c@chapter>\z@\thechapter\@SepMark\fi \@arabic\c@figure}
10939 \renewcommand\thetable{%
10940 \ifnum \c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}

57 File fancybox-xetex-bidi.def
10941 \ProvidesFile{fancybox-xetex-bidi.def}[2013/05/01 v0.1 bidi adaptations for fancybox package f
10942 \def\fancy@@oval#1#2#3{%
10943 \boxmaxdepth \maxdimen
10944 \@ovttrue \@ovbtrue \@ovltrue \@ovrtrue
10945 \@tfor\@tempa :=#3\do{\csname @ov\@tempa false\endcsname}%
10946 \@ovxx#1\relax
10947 \advance\@ovxx-\@wholewidth
10948 \@ovyy#2\relax
10949 \advance\@ovyy-\@wholewidth
10950 \@tempdimb \ifdim \@ovyy >\@ovxx \@ovxx\else \@ovyy \fi
10951 \advance\@tempdimb-2\p@
10952 \ifdim\@tempdimb>\the@cornersize\relax
10953 \@tempdimb=\the@cornersize
10954 \fi
10955 \@getcirc\@tempdimb
10956 \@ovro\ht\@tempboxa \@ovri\dp\@tempboxa
10957 \@ovdx\@ovxx \advance\@ovdx-\@tempdima \divide\@ovdx \tw@
10958 \@ovdy\@ovyy \advance\@ovdy-\@tempdima \divide\@ovdy \tw@
10959 \@circlefnt
10960 \setbox\@tempboxa\hbox{\beginL%
10961 \if@ovr \@ovvert32\kern -\@tempdima \fi
10962 \if@ovl \kern \@ovxx \@ovvert01\kern -\@tempdima \kern -\@ovxx \fi
10963 \if@ovt \@ovhorz \kern -\@ovxx \fi
10964 \if@ovb \raise \@ovyy \@ovhorz \fi\endL}%
10965 \advance\@ovdx\@ovro
10966 \advance\@ovdy\@ovro
10967 \advance\@ovxx\@wholewidth
10968 \wd\@tempboxa=\@ovxx
10969 \dp\@tempboxa=\z@}

58 File fancyhdr-xetex-bidi.def
10970 \ProvidesFile{fancyhdr-xetex-bidi.def}[2018/02/15 v0.7 bidi adaptations for fancyhdr package f
10971
10972 \let\f@nch@everypar\everypar
10973
10974 \def\f@nch@head#1#2#3#4#5{#1\hbox to\headwidth{\f@nch@reset
10975 \f@nch@vbox\headheight{\hbox

File fancyhdr-xetex-bidi.def 226


10976 {\rlap{\parbox[b]{\headwidth}{\bidi@raggedright#2}}\hfill
10977 \parbox[b]{\headwidth}{\centering#3}\hfill
10978 \llap{\parbox[b]{\headwidth}{\bidi@raggedleft#4}}}\headrule}}#5}
10979
10980 \def\f@nch@foot#1#2#3#4#5{#1\hbox
to\headwidth{\f@nch@reset
10981 \f@nch@vbox\footskip{\footrule
10982 \hbox{\rlap{\parbox[t]{\headwidth}{\bidi@raggedright#2}}\hfill
10983 \parbox[t]{\headwidth}{\centering#3}\hfill
10984 \llap{\parbox[t]{\headwidth}{\bidi@raggedleft#4}}}}}#5}
10985

59 File fix2col-xetex-bidi.def
10986 \ProvidesFile{fix2col-xetex-bidi.def}[2017/05/06 v0.4 bidi adaptations for fix2col package for
10987 \def\RTL@outputdblcol{%
10988 \if@firstcolumn
10989 \global\@firstcolumnfalse
10990 \global\setbox\@leftcolumn\copy\@outputbox
10991 \splitmaxdepth\maxdimen
10992 \vbadness\maxdimen
10993 \setbox\@outputbox\vsplit\@outputbox to\maxdimen
10994 \toks@\expandafter{\topmark}%
10995 \xdef\@firstcoltopmark{\the\toks@}%
10996 \toks@\expandafter{\splitfirstmark}%
10997 \xdef\@firstcolfirstmark{\the\toks@}%
10998 \ifx\@firstcolfirstmark\@empty
10999 \global\let\@setmarks\relax
11000 \else
11001 \gdef\@setmarks{%
11002 \let\firstmark\@firstcolfirstmark
11003 \let\topmark\@firstcoltopmark}%
11004 \fi
11005 \else \global\@firstcolumntrue
11006 \setbox\@outputbox \vbox {\hbox to\textwidth {%
11007 \hskip \columnwidth
11008 \hfil \vrule width\columnseprule \hfil
11009 \hbox to\columnwidth {%
11010 \bidi@firstcolumn@status@write%
11011 \box\@leftcolumn \hss}%
11012 \hskip -\textwidth
11013 \hbox to\columnwidth{%
11014 \bidi@lastcolumn@status@write%
11015 \box\@outputbox \hss}%
11016 \hskip \columnsep
11017 \hskip \columnwidth }}%
11018 \@combinedblfloats \@setmarks \@outputpage
11019 \begingroup \@dblfloatplacement \@startdblcolumn
11020 \@whilesw\if@fcolmade \fi
11021 {\@outputpage \@startdblcolumn }\endgroup
11022 \fi}

File fix2col-xetex-bidi.def 227


11023 \def\LTR@outputdblcol{%
11024 \if@firstcolumn
11025 \global\@firstcolumnfalse
11026 \global\setbox\@leftcolumn\copy\@outputbox
11027 \splitmaxdepth\maxdimen
11028 \vbadness\maxdimen
11029 \setbox\@outputbox\vsplit\@outputbox to\maxdimen
11030 \toks@\expandafter{\topmark}%
11031 \xdef\@firstcoltopmark{\the\toks@}%
11032 \toks@\expandafter{\splitfirstmark}%
11033 \xdef\@firstcolfirstmark{\the\toks@}%
11034 \ifx\@firstcolfirstmark\@empty
11035 \global\let\@setmarks\relax
11036 \else
11037 \gdef\@setmarks{%
11038 \let\firstmark\@firstcolfirstmark
11039 \let\topmark\@firstcoltopmark}%
11040 \fi
11041 \else
11042 \global\@firstcolumntrue
11043 \setbox\@outputbox\vbox{%
11044 \hb@xt@\textwidth{%
11045 \hb@xt@\columnwidth{%
11046 \bidi@firstcolumn@status@write%
11047 \box\@leftcolumn \hss}%
11048 \hfil
11049 \vrule \@width\columnseprule
11050 \hfil
11051 \hb@xt@\columnwidth{%
11052 \bidi@lastcolumn@status@write%
11053 \box\@outputbox \hss}}}%
11054 \@combinedblfloats
11055 \@setmarks
11056 \@outputpage
11057 \begingroup
11058 \@dblfloatplacement
11059 \@startdblcolumn
11060 \@whilesw\if@fcolmade \fi{\@outputpage\@startdblcolumn}%
11061 \endgroup
11062 \fi}

60 File fleqn-xetex-bidi.def
11063 \ProvidesFile{fleqn-xetex-bidi.def}[2010/03/01 v0.1 bidi adaptations for fleqn tag for XeTeX e
11064 \renewcommand\[{\relax
11065 \ifmmode\@badmath
11066 \else
11067 \begin{trivlist}%
11068 \@beginparpenalty\predisplaypenalty
11069 \@endparpenalty\postdisplaypenalty

File fleqn-xetex-bidi.def 228


11070 \item[]\leavevmode
11071 \hb@xt@\linewidth\bgroup \beginL$\m@th\displaystyle %$
11072 \hskip\mathindent\bgroup
11073 \fi}
11074 \renewcommand\]{\relax
11075 \ifmmode
11076 \egroup $\hfil% $
11077 \endL\egroup
11078 \end{trivlist}%
11079 \else \@badmath
11080 \fi}
11081 \renewenvironment{equation}%
11082 {\@beginparpenalty\predisplaypenalty
11083 \@endparpenalty\postdisplaypenalty
11084 \refstepcounter{equation}%
11085 \trivlist \item[]\leavevmode
11086 \hb@xt@\linewidth\bgroup\beginL $\m@th% $
11087 \displaystyle
11088 \hskip\mathindent}%
11089 {$\hfil % $
11090 \displaywidth\linewidth\hbox{\@eqnnum}%
11091 \endL\egroup
11092 \endtrivlist}

61 File float-xetex-bidi.def
11093 \ProvidesFile{float-xetex-bidi.def}[2013/04/04 v0.2 bidi adaptations for float package for XeT
11094 \renewcommand\floatc@plain[2]{\setbox\@tempboxa\hbox{{\@fs@cfont #1:} #2}%
11095 \ifdim\wd\@tempboxa>\hsize {\@fs@cfont #1:} #2\par
11096 \else\hbox to\hsize{\if@RTL\beginR\fi\hfil\box\@tempboxa\hfil\if@RTL\endR\fi}\fi}
11097 \def\float@newx#1[#2]{\@ifundefined{c@#1}{\newcounter{#1}[#2]%
11098 \expandafter\edef\csname the#1\endcsname{%
11099 \expandafter\noexpand\csname
11100 the#2\endcsname\@SepMark\noexpand\arabic{#1}}}%
11101 {\PackageWarning{float}{Can't redefine counter variable for #1.}}}

62 File floatrow-xetex-bidi.def
11102 \ProvidesFile{floatrow-xetex-bidi.def}[2013/04/08 v0.1 bidi adaptations for floatrow package f
11103 \renewcommand\flnew@within[1]{\@addtoreset{\FB@captype}{#1}%
11104 \expandafter\edef\csname the\FB@captype\endcsname{%
11105 \expandafter\noexpand\csname
11106 the#1\endcsname\@SepMark\noexpand\arabic{\FB@captype}}}

63 File flowfram-xetex-bidi.def
11107 \ProvidesFile{flowfram-xetex-bidi.def}[2018/09/29 v0.5 bidi adaptations for flowfram package f
11108 \def\@outputdblcol{%
11109 \@nxtcol=\c@thisframe
11110 \c@curpg=\c@page

File flowfram-xetex-bidi.def 229


11111 \@g@tnextcol{\@nxtcol}%
11112 \if@ff@nwpg % next flow frame starts on new page
11113 \global\@firstcolumntrue
11114 \@setcolbox\c@thisframe
11115 \if@specialpage
11116 \global\@specialpagefalse
11117 \@nameuse{ps@\@specialstyle}\relax
11118 \fi
11119 \if@twoside
11120 \ifodd\count\z@
11121 \let\@thehead\@oddhead
11122 \let\@thefoot\@oddfoot
11123 \else
11124 \let\@thehead\@evenhead
11125 \let\@thefoot\@evenfoot
11126 \fi
11127 \else
11128 \let\@thehead\@oddhead
11129 \let\@thefoot\@oddfoot
11130 \fi
11131 \@begindvi
11132 \@dodynamicthehead\@dodynamicthefoot
11133 \vbadness=\@M
11134 \setbox\@outputbox\vbox{\hbox to \textwidth{\@ff@do@allframes}}%
11135 \@combinedblfloats
11136 \@outputpage
11137 \advance\c@curpg by -\c@page\relax
11138 \whiledo{\c@curpg>0}{\advance\c@curpg by -1\relax
11139 \setbox\@outputbox\vbox{\hbox to \textwidth{\@ff@do@allframes}}%
11140 \@outputpage}
11141 \begingroup
11142 \@dblfloatplacement
11143 \@startdblcolumn
11144 \@whilesw \if@fcolmade \fi
11145 {\@outputpage \@startdblcolumn }\endgroup
11146 \@resetst@tics
11147 \@resetdyn@mics
11148 \else % still on same page, save contents of box255
11149 \global\@firstcolumnfalse
11150 \@setcolbox\c@thisframe
11151 \fi
11152 \global\c@thisframe=\@nxtcol
11153 \@setcol{\c@thisframe}\relax
11154 \global\@colht\vsize
11155 }
11156 \def\@outputpage{%
11157 \begingroup
11158 \let\protect\noexpand
11159 \@resetactivechars
11160 \global\let\@@if@newlist\if@newlist

File flowfram-xetex-bidi.def 230


11161 \global\@newlistfalse\@parboxrestore
11162 \global\let\bidi@BeforeOutputPageShipOut\@firstofone
11163 \bidi@beforeoutputpageshipouthook
11164 \shipout\vbox{\set@typeset@protect
11165 \aftergroup
11166 \endgroup
11167 \aftergroup
11168 \set@typeset@protect
11169 \reset@font\normalsize
11170 \bidi@font@@outputpage
11171 \normalsfcodes
11172 \let\label\@gobble
11173 \let\index\@gobble
11174 \let\glossary\@gobble
11175 \baselineskip\z@skip
11176 \lineskip\z@skip
11177 \lineskiplimit\z@
11178 \vskip\topmargin\moveright\@themargin
11179 \vbox{%
11180 \global\let\bidi@BeforeHeader\@firstofone
11181 \bidi@beforeheaderhook
11182 \vskip\headheight
11183 \vskip\headsep
11184 \global\let\bidi@BeforeOutputBoxOutputPage\@firstofone
11185 \bidi@beforeoutputboxoutputpagehook
11186 \box\@outputbox
11187 \global\let\bidi@AfterOutputBoxOutputPage\@firstofone
11188 \bidi@afteroutputboxoutputpagehook
11189 }}%
11190 \global\let\bidi@AfterOutputPageShipOut\@firstofone
11191 \bidi@afteroutputpageshipouthook
11192 \global\let\if@newlist\@@if@newlist
11193 \stepcounter{page}%
11194 \setcounter{displayedframe}{0}%
11195 \let\firstmark\botmark
11196 \global\let\bidi@AtEndOutputPage\@firstofone
11197 \bidi@atendoutputpagehook
11198 }
11199
11200
11201 \newcommand*\bidi@s@tfftextcol{\ifthenelse{\equal{\ff@txtcol}{}}{}{%
11202 \expandafter\bidicolor\ff@txtcol}}
11203
11204 \newcommand{\bidi@ff@box}[3]{{\@ffbackground{\vbox to#2
11205 {\hb@xt@ #1{\hss{\bidi@s@tfftextcol #3}\hss}\vss\kern\z@}}}}
11206
11207
11208 \renewcommand*{\@docolbox}[1]{%
11209 \edef\ff@frametype{%
11210 \csname @ff@frametype@\romannumeral#1\endcsname}%

File flowfram-xetex-bidi.def 231


11211 \edef\ff@col{\csname @ff@col@\romannumeral#1\endcsname}%
11212 \edef\ff@txtcol{\csname @ff@txtcol@\romannumeral#1\endcsname}%
11213 \edef\ff@backcol{\csname @ff@backcol@\romannumeral#1\endcsname}%
11214 \@ff@setoffset{#1}%
11215 \rotateframe{\csname @ff@angle@\romannumeral#1\endcsname}{%
11216 \ifthenelse{\boolean{columnframe\romannumeral#1}}{%
11217 \@ff@fbox{\csname colwidth\romannumeral#1\endcsname}%
11218 {\csname colheight\romannumeral#1\endcsname}{%
11219 \expandafter\box\csname column\romannumeral#1\endcsname}{%
11220 \csname\ff@frametype\endcsname}%
11221 }{%
11222 \bidi@ff@box{\csname colwidth\romannumeral#1\endcsname}%
11223 {\csname colheight\romannumeral#1\endcsname}{%
11224 \expandafter\box\csname column\romannumeral#1\endcsname}%
11225 }}}
11226 \@ifclassloaded{book}{%
11227 \renewcommand\theequation
11228 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
11229 \renewcommand \thefigure
11230 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
11231 \renewcommand \thetable
11232 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
11233 \renewcommand \thechapter {\@arabic\c@chapter}
11234 \renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
11235 \renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
11236 \renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
11237 \renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
11238 \renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}}{}
11239 \@ifclassloaded{report}{%
11240 \renewcommand\theequation
11241 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
11242 \renewcommand \thefigure
11243 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
11244 \renewcommand \thetable
11245 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
11246 \renewcommand \thechapter {\@arabic\c@chapter}
11247 \renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
11248 \renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
11249 \renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
11250 \renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
11251 \renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}}{}
11252 \renewcommand{\rotateframe}[2]{\if@ttb@rotate
11253 \rotatebox{#1}{\if@RTL\beginL\fi#2\if@RTL\endL\fi}%
11254 \else
11255 #2\relax
11256 \fi}

64 File footnote-xetex-bidi.def
11257 \ProvidesFile{footnote-xetex-bidi.def}[2017/08/09 v1.1 bidi footnote macros for XeTeX engine]

File footnote-xetex-bidi.def 232


11258 \if@RTLmain\@RTL@footnotetrue\else\@RTL@footnotefalse\fi
11259 \newif\ifbidi@autofootnoterule
11260 \def\bidi@mpfootnoterule{\footnoterule}
11261 \newcounter{footdir@label}
11262 \renewcommand*{\thefootdir@label}{footdir@\the\value{footdir@label}}
11263 \newcommand*{\footdir@write}{%
11264 \stepcounter{footdir@label}%
11265 \zref@labelbyprops{\thefootdir@label}{abspage}%
11266 }
11267 \newif\iffootdir@debug
11268 \newcommand*{\debugfootnotedirection}{\footdir@debugtrue}
11269 \newtoks\footdir@toks
11270 \newcommand*{\footdir@debug}[1]{%
11271 \iffootdir@debug
11272 \typeout{[footdir] #1}%
11273 \fi
11274 }
11275 %\@ifpackagelater{zref-abspage}{2012/10/27}{%
11276 % \newcommand*{\footdir@LeftRightElse}{%
11277 % \ltx@ifundefined{footdir@\the\value{zabspage}}{%
11278 % \footdir@debug{abspage \the\value{zabspage}: else}%
11279 % \ltx@thirdofthree
11280 % }{%
11281 % \if\csname footdir@\the\value{zabspage}\endcsname L%
11282 % \footdir@debug{abspage \the\value{zabspage}: left}%
11283 % \expandafter\ltx@firstofthree
11284 % \else
11285 % \footdir@debug{abspage \the\value{zabspage}: right}%
11286 % \expandafter\ltx@secondofthree
11287 % \fi
11288 % }%
11289 % }%
11290 %}{%
11291 \providecommand*{\c@zabspage}{\c@abspage}%
11292 \newcommand*{\footdir@LeftRightElse}{%
11293 \footdir@write
11294 \zifrefundefined{\thefootdir@label}{%
11295 \footdir@debug{abspage ??: else}%
11296 \ltx@thirdofthree
11297 }{%
11298 \edef\footdir@abspage{%
11299 \zref@extractdefault{\thefootdir@label}{abspage}{0}%
11300 }%
11301 \ltx@ifundefined{footdir@\footdir@abspage}{%
11302 \footdir@debug{\footdir@abspage: else}%
11303 \ltx@thirdofthree
11304 }{%
11305 \if\csname footdir@\footdir@abspage\endcsname L%
11306 \footdir@debug{\footdir@abspage: left}%
11307 \expandafter\ltx@firstofthree

File footnote-xetex-bidi.def 233


11308 \else
11309 \footdir@debug{\footdir@abspage: right}%
11310 \expandafter\ltx@secondofthree
11311 \fi
11312 }%
11313 }%
11314 }%
11315 %}
11316 \newcommand*{\footdir@fntext}[1]{%
11317 \zifrefundefined{\thefootdir@label}{%
11318 }{%
11319 \edef\footdir@name{%
11320 footdir@\zref@extractdefault{\thefootdir@label}{abspage}{0}%
11321 }%
11322 \@ifundefined{\footdir@name}{%
11323 \expandafter\gdef\csname\footdir@name\endcsname{#1}%
11324 }{}%
11325 }%
11326 }
11327
11328 \newcommand*{\footdir@temp}[3]{%
11329 \@ifdefinable{#1}{%
11330 \let#1#2%
11331 \renewcommand{#2}[1]{%
11332 \footdir@write
11333 \footdir@fntext{#3}%
11334 \stepcounter{footdir@label}%
11335 \footdir@fntext{#3}%
11336 \footdir@toks{##1}%
11337 \footdir@toks\expandafter{%
11338 \the\expandafter\footdir@toks
11339 \expandafter
11340 \zref@labelbyprops\expandafter{\thefootdir@label}{abspage}%
11341 }%
11342 \expandafter#1\expandafter{\the\footdir@toks}%
11343 }%
11344 }%
11345 }
11346
11347 \def\right@footnoterule{%
11348 \kern-3\p@
11349 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
11350 \kern2.6\p@}
11351 \def\left@footnoterule{\kern-3\p@
11352 \hrule \@width .4\columnwidth \kern 2.6\p@}
11353 \def\textwidth@footnoterule{\kern-3\p@
11354 \hrule \@width \columnwidth \kern 2.6\p@}
11355 \def\leftfootnoterule{%
11356 \bidi@autofootnoterulefalse%
11357 \def\footnoterule{\left@footnoterule}}

File footnote-xetex-bidi.def 234


11358 \let\LRfootnoterule=\leftfootnoterule
11359 \def\rightfootnoterule{%
11360 \bidi@autofootnoterulefalse%
11361 \def\footnoterule{\right@footnoterule}}
11362 \def\textwidthfootnoterule{%
11363 \bidi@autofootnoterulefalse%
11364 \def\footnoterule{\textwidth@footnoterule}}
11365
11366
11367
11368 \def\auto@footnoterule{%
11369 \footdir@LeftRightElse%
11370 \left@footnoterule%
11371 \right@footnoterule%
11372 \left@footnoterule%
11373 }
11374
11375
11376
11377 \def\autofootnoterule{%
11378 \bidi@autofootnoteruletrue%
11379 \def\footnoterule{\auto@footnoterule}%
11380 }
11381
11382 \newcommand*{\SplitFootnoteRule}{%
11383 \gdef\split@prev{0}
11384 \let\pagefootnoterule\footnoterule
11385 \let\mpfootnoterule\footnoterule
11386 \def\splitfootnoterule{\kern-3\p@ \hrule \kern2.6\p@}
11387 \def\footnoterule{\relax
11388 \ifx \@listdepth\@mplistdepth
11389 \mpfootnoterule
11390 \else
11391 \ifnum\split@prev=\z@
11392 \pagefootnoterule
11393 \else
11394 \splitfootnoterule
11395 \fi
11396 \xdef\split@prev{\the\insertpenalties}%
11397 \fi
11398 }%
11399 }
11400
11401
11402
11403
11404 \def\RTLfootnote{\@ifnextchar[\@xRTLfootnote{\stepcounter\@mpfn
11405 \protected@xdef\@thefnmark{\thempfn}%
11406 \@footnotemark\@RTLfootnotetext}}
11407 \def\@xRTLfootnote[#1]{%

File footnote-xetex-bidi.def 235


11408 \begingroup
11409 \csname c@\@mpfn\endcsname #1\relax
11410 \unrestored@protected@xdef\@thefnmark{\thempfn}%
11411 \endgroup
11412 \@footnotemark\@RTLfootnotetext}
11413 \def\LTRfootnote{\@ifnextchar[\@xLTRfootnote{\stepcounter\@mpfn
11414 \protected@xdef\@thefnmark{\thempfn}%
11415 \@footnotemark\@LTRfootnotetext}}
11416 \def\@xLTRfootnote[#1]{%
11417 \begingroup
11418 \csname c@\@mpfn\endcsname #1\relax
11419 \unrestored@protected@xdef\@thefnmark{\thempfn}%
11420 \endgroup
11421 \@footnotemark\@LTRfootnotetext}
11422
11423
11424 \def\setfootnoteRL{\@RTL@footnotetrue}
11425 \def\unsetfootnoteRL{\@RTL@footnotefalse}
11426 \def\setfootnoteLR{\unsetfootnoteRL}
11427
11428 \newcommand*{\bidi@@footnotetext@font}{\footnotesize}
11429 \newcommand*{\bidi@@LTRfootnotetext@font}{\footnotesize}
11430 \newcommand*{\bidi@@RTLfootnotetext@font}{\footnotesize}
11431
11432 \long\def\@footnotetext#1{\insert\footins{%
11433 \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
11434 \reset@font%
11435 \bidi@@footnotetext@font% \reset@font\footnotesize
11436 \interlinepenalty\interfootnotelinepenalty
11437 \splittopskip\footnotesep
11438 \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
11439 \hsize\columnwidth \@parboxrestore
11440 \protected@edef\@currentlabel{%
11441 \csname p@footnote\endcsname\@thefnmark
11442 }%
11443 \color@begingroup
11444 \@makefntext{%
11445 \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
11446 \color@endgroup}}%
11447
11448
11449 \long\def\@RTLfootnotetext#1{\insert\footins{%
11450 \@RTLtrue%
11451 \reset@font%
11452 \bidi@@RTLfootnotetext@font% \reset@font\footnotesize
11453 \interlinepenalty\interfootnotelinepenalty
11454 \splittopskip\footnotesep
11455 \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
11456 \hsize\columnwidth \@parboxrestore
11457 \protected@edef\@currentlabel{%

File footnote-xetex-bidi.def 236


11458 \csname p@footnote\endcsname\@thefnmark
11459 }%
11460 \color@begingroup
11461 \@makefntext{%
11462 \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
11463 \color@endgroup}}%
11464
11465 \long\def\@LTRfootnotetext#1{\insert\footins{%
11466 \@RTLfalse%
11467 \reset@font%
11468 \bidi@@LTRfootnotetext@font% \reset@font\footnotesize
11469 \interlinepenalty\interfootnotelinepenalty
11470 \splittopskip\footnotesep
11471 \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
11472 \hsize\columnwidth \@parboxrestore
11473 \protected@edef\@currentlabel{%
11474 \csname p@footnote\endcsname\@thefnmark
11475 }%
11476 \color@begingroup
11477 \@makefntext{%
11478 \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
11479 \color@endgroup}}%
11480
11481 \AtBeginDocument{%
11482 \if@RTL@footnote
11483 \newcommand*{\bidi@footdir@footnote}{R}
11484 \else
11485 \newcommand*{\bidi@footdir@footnote}{L}
11486 \fi%
11487 }
11488
11489 \footdir@temp\footdir@ORG@bidi@footnotetext\@footnotetext{\bidi@footdir@footnote}%
11490 \footdir@temp\footdir@ORG@bidi@RTLfootnotetext\@RTLfootnotetext{R}%
11491 \footdir@temp\footdir@ORG@bidi@LTRfootnotetext\@LTRfootnotetext{L}%
11492
11493 \long\def\@mpRTLfootnotetext#1{%
11494 \ifbidi@autofootnoterule\ifnum\c@mpfootnote=\@ne\global\let\bidi@mpfootnoterule\right@footno
11495 \global\setbox\@mpfootins\vbox{\@RTLtrue%
11496 \unvbox\@mpfootins
11497 \reset@font%
11498 \bidi@@RTLfootnotetext@font% \reset@font\footnotesize
11499 \hsize\columnwidth
11500 \@parboxrestore
11501 \protected@edef\@currentlabel
11502 {\csname p@mpfootnote\endcsname\@thefnmark}%
11503 \color@begingroup
11504 \@makefntext{%
11505 \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
11506 \color@endgroup}}
11507 \long\def\@mpLTRfootnotetext#1{%

File footnote-xetex-bidi.def 237


11508 \ifbidi@autofootnoterule\ifnum\c@mpfootnote=\@ne\global\let\bidi@mpfootnoterule\left@footnote
11509 \global\setbox\@mpfootins\vbox{\@RTLfalse%
11510 \unvbox\@mpfootins
11511 \reset@font%
11512 \bidi@@LTRfootnotetext@font% \reset@font\footnotesize
11513 \hsize\columnwidth
11514 \@parboxrestore
11515 \protected@edef\@currentlabel
11516 {\csname p@mpfootnote\endcsname\@thefnmark}%
11517 \color@begingroup
11518 \@makefntext{%
11519 \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
11520 \color@endgroup}}
11521 \long\def\@mpfootnotetext#1{%
11522 \ifbidi@autofootnoterule\ifnum\c@mpfootnote=\@ne\if@RTL@footnote\global\let\bidi@mpfootnoteru
11523 \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
11524 \unvbox\@mpfootins
11525 \reset@font%
11526 \bidi@@footnotetext@font% \reset@font\footnotesize
11527 \hsize\columnwidth
11528 \@parboxrestore
11529 \protected@edef\@currentlabel
11530 {\csname p@mpfootnote\endcsname\@thefnmark}%
11531 \color@begingroup
11532 \@makefntext{%
11533 \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
11534 \color@endgroup}}
11535 \def\@iiiminipage#1#2[#3]#4{%
11536 \leavevmode
11537 \@pboxswfalse
11538 \if@hboxRconstruct\@bidi@list@minipage@parbox@not@nobtrue\fi
11539 \if@RTL\if#1t\@bidi@list@minipage@parboxtrue\else\if#1b\@bidi@list@minipage@parboxtrue\fi\fi
11540 \setlength\@tempdima{#4}%
11541 \def\@mpargs{{#1}{#2}[#3]{#4}}%
11542 \setbox\@tempboxa\vbox\bgroup
11543 \color@begingroup
11544 \hsize\@tempdima
11545 \textwidth\hsize \columnwidth\hsize
11546 \@parboxrestore
11547 \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@
11548 \let\@footnotetext\@mpfootnotetext
11549 \let\@LTRfootnotetext\@mpLTRfootnotetext
11550 \let\@RTLfootnotetext\@mpRTLfootnotetext
11551 \let\@listdepth\@mplistdepth \@mplistdepth\z@
11552 \@minipagerestore
11553 \@setminipage}
11554 \def\endminipage{%
11555 \par
11556 \unskip
11557 \ifvoid\@mpfootins\else

File footnote-xetex-bidi.def 238


11558 \vskip\skip\@mpfootins
11559 \normalcolor
11560 \bidi@mpfootnoterule
11561 \unvbox\@mpfootins
11562 \fi
11563 \@minipagefalse %% added 24 May 89
11564 \color@endgroup
11565 \egroup
11566 \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}}
11567 \def\LTRthanks#1{\footnotemark
11568 \protected@xdef\@thanks{\@thanks
11569 \protect\LTRfootnotetext[\the\c@footnote]{#1}}%
11570 }
11571 \def\LTRfootnotetext{%
11572 \@ifnextchar [\@xLTRfootnotenext
11573 {\protected@xdef\@thefnmark{\thempfn}%
11574 \@LTRfootnotetext}}
11575 \def\@xLTRfootnotenext[#1]{%
11576 \begingroup
11577 \csname c@\@mpfn\endcsname #1\relax
11578 \unrestored@protected@xdef\@thefnmark{\thempfn}%
11579 \endgroup
11580 \@LTRfootnotetext}
11581 \def\RTLthanks#1{\footnotemark
11582 \protected@xdef\@thanks{\@thanks
11583 \protect\RTLfootnotetext[\the\c@footnote]{#1}}%
11584 }
11585 \let\@thanks\@empty
11586 \def\RTLfootnotetext{%
11587 \@ifnextchar [\@xRTLfootnotenext
11588 {\protected@xdef\@thefnmark{\thempfn}%
11589 \@RTLfootnotetext}}
11590 \def\@xRTLfootnotenext[#1]{%
11591 \begingroup
11592 \csname c@\@mpfn\endcsname #1\relax
11593 \unrestored@protected@xdef\@thefnmark{\thempfn}%
11594 \endgroup
11595 \@RTLfootnotetext}
11596 \leftfootnoterule

65 File framed-xetex-bidi.def
11597 \ProvidesFile{framed-xetex-bidi.def}[2012/06/05 v0.3 bidi adaptations for framed package for X
11598 \renewcommand\TitleBarFrame[3][]{\begingroup
11599 \ifx\delimiter#1\delimiter
11600 \let\TF@conlab\@empty
11601 \else
11602 \def\TF@conlab{% continuation label
11603 \nointerlineskip
11604 \smash{\rlap{\kern\wd\@tempboxa\kern\fboxrule\kern\fboxsep #1}}}%

File framed-xetex-bidi.def 239


11605 \fi
11606 %\let\TF@savecolor\current@color
11607 \textcolor{TFFrameColor}{%
11608 \CustomFBox
11609 {\TF@Title{#2}}{\TF@conlab}%
11610 \fboxrule\fboxrule\fboxrule\fboxrule
11611 %{\let\current@color\TF@savecolor\set@color #3}%
11612 {\normalcolor #3}%
11613 }\endgroup
11614 }
11615 \renewenvironment{titled-frame}[1]{%
11616 \def\FrameCommand{\fboxsep8pt\fboxrule2pt
11617 \TitleBarFrame{\textbf{#1}}}%
11618 \def\FirstFrameCommand{\fboxsep8pt\fboxrule2pt
11619 \TitleBarFrame[$\if@RTL\blacktriangleleft\else\blacktriangleright\fi$]{\textbf{#1}}}%
11620 \def\MidFrameCommand{\fboxsep8pt\fboxrule2pt
11621 \TitleBarFrame[$\if@RTL\blacktriangleleft\else\blacktriangleright\fi$]{\textbf{#1\ (cont)
11622 \def\LastFrameCommand{\fboxsep8pt\fboxrule2pt
11623 \TitleBarFrame{\textbf{#1\ (cont)}}}%
11624 \MakeFramed{\advance\hsize-20pt \FrameRestore}}%
11625 % note: 8 + 2 + 8 + 2 = 20. Don't use \width because the frame title
11626 % could interfere with the width measurement.
11627 {\endMakeFramed}
11628 \chardef\FrameRestore=\catcode`\| % for debug
11629 \catcode`\|=\catcode`\% % (debug: insert space after backslash)
11630 \def\fb@put@frame#1#2{\relax
11631 \ifdim\pagegoal=\maxdimen \pagegoal\vsize \fi
11632 | \message{=============== Entering putframe ====================^^J
11633 | \pagegoal=\the\pagegoal, \pagetotal=\the\pagetotal. }%
11634 \ifinner
11635 \fb@putboxa#1%
11636 \fb@afterframe
11637 \else
11638 \dimen@\pagegoal \advance\dimen@-\pagetotal % natural space left on page
11639 \ifdim\dimen@<2\baselineskip % Too little room on page
11640 | \message{Page has only \the\dimen@\space room left; eject. }%
11641 \eject \fb@adjheight \fb@put@frame#1#2%
11642 \else % there's appreciable room left on the page
11643 \fb@sizeofframe#1%
11644 | \message{\string\pagetotal=\the\pagetotal,
11645 | \string\pagegoal=\the\pagegoal,
11646 | \string\pagestretch=\the\pagestretch,
11647 | \string\pageshrink=\the\pageshrink,
11648 | \string\fb@frh=\the\fb@frh. \space}
11649 | \message{^^JBox of size \the\ht\@tempboxa\space}%
11650 \begingroup % temporarily set \dimen@ to be...
11651 \advance\[email protected]\pageshrink % maximum space available on page
11652 \advance\dimen@-\fb@frh\relax % max space available for frame's contents
11653 %%% LOOKS SUBTRACTED AND ADDED, SO DOUBLE ACCOUNTING!
11654 \expandafter\endgroup

File framed-xetex-bidi.def 240


11655 % expand \ifdim, then restore \dimen@ to real room left on page
11656 \ifdim\dimen@>\ht\@tempboxa % whole box does fit
11657 | \message{fits in \the\dimen@. }%
11658 % ToDo: Change this to use vsplit anyway to capture the marks
11659 % MERGE THIS WITH THE else CLAUSE!!!
11660 \fb@putboxa#1%
11661 \fb@afterframe
11662 \else % box must be split
11663 | \message{must be split to fit in \the\dimen@. }%
11664 % update frame measurement to use \FirstFrameCommand or \MidFrameCommand
11665 \fb@sizeofframe#2%
11666 \setbox\@tempboxa\vbox{% simulate frame and flexiblity of the page:
11667 \vskip \fb@frh \@plus\pagestretch \@minus.8\pageshrink
11668 \kern137sp\kern-137sp\penalty-30
11669 \unvbox\@tempboxa}%
11670 \edef\fb@resto@set{\boxmaxdepth\the\boxmaxdepth
11671 \splittopskip\the\splittopskip}%
11672 \boxmaxdepth\z@ \splittopskip\z@
11673 | \message{^^JPadded box of size \the\ht\@tempboxa\space split to \the\dimen@}%
11674 % Split box here
11675 \setbox\tw@\vsplit\@tempboxa to\dimen@
11676 | \toks99\expandafter{\splitfirstmark}%
11677 | \toks98\expandafter{\splitbotmark}%
11678 | \message{Marks are: \the\toks99, \the\toks98. }%
11679 \setbox\tw@\vbox{\unvbox\tw@}% natural-sized
11680 | \message{Natural height of split box is \the\ht\tw@, leaving
11681 | \the\ht\@tempboxa\space remainder. }%
11682 % If the split-to size > (\vsize-\topskip), then set box to full size.
11683 \begingroup
11684 \advance\dimen@\topskip
11685 \expandafter\endgroup
11686 \ifdim\dimen@>\pagegoal
11687 | \message{Frame is big -- Use up the full column. }%
11688 \dimen@ii\pagegoal
11689 \advance\dimen@ii -\topskip
11690 \advance\dimen@ii \FrameHeightAdjust\relax
11691 \else % suspect this is implemented incorrectly:
11692 % If the split-to size > feasible room_on_page, rebox it smaller.
11693 \advance\[email protected]\pageshrink
11694 \ifdim\ht\tw@>\dimen@
11695 | \message{Box too tall; rebox it to \the\dimen@. }%
11696 \dimen@ii\dimen@
11697 \else % use natural size
11698 \dimen@ii\ht\tw@
11699 \fi
11700 \fi
11701 % Re-box contents to desired size \dimen@ii
11702 \advance\dimen@ii -\fb@frh
11703 \setbox\tw@\vbox to\dimen@ii \bgroup
11704 % remove simulated frame and page flexibility:

File framed-xetex-bidi.def 241


11705 \vskip -\fb@frh \@plus-\pagestretch \@minus-.8\pageshrink
11706 \unvbox\tw@ \unpenalty\unpenalty
11707 \ifdim\lastkern=-137sp % whole box went to next page
11708 | \message{box split at beginning! }%
11709 % need work here???
11710 \egroup \fb@resto@set \eject % (\vskip for frame size was discarded)
11711 \fb@adjheight
11712 \fb@put@frame#1#2% INSERTED ???
11713 \else % Got material split off at the head
11714 \egroup \fb@resto@set
11715 \ifvoid\@tempboxa % it all fit after all
11716 | \message{box split at end! }%
11717 \setbox\@tempboxa\box\tw@
11718 \fb@putboxa#1%
11719 \fb@afterframe
11720 \else % it really did split
11721 | \message{box split as expected. Its reboxed height is \the\ht\tw@. }%
11722 \ifdim\wd\tw@>\z@
11723 \wd\tw@\wd\@tempboxa
11724 \centerline{#2{\hboxL{\box\tw@}}}% ??? \centerline bad idea
11725 \else
11726 | \message{Zero width means likely blank. Don't frame it (guess)}%
11727 \box\tw@
11728 \fi
11729 \hrule \@height\z@ \@width\hsize
11730 \eject
11731 \fb@adjheight
11732 \fb@put@frame\LastFrameCommand\MidFrameCommand
11733 \fi\fi\fi\fi\fi
11734 }
11735 \def\fb@putboxa#1{%
11736 \ifvoid\@tempboxa
11737 \PackageWarning{framed}{Boxa is void -- discard it. }%
11738 \else
11739 | \message{Frame and place boxa. }%
11740 | %{\showoutput\showbox\@tempboxa}%
11741 \centerline{#1{\hboxL{\box\@tempboxa}}}%
11742 \fi
11743 }
11744 \catcode`\|=\FrameRestore
11745 \def\FrameRestore{%
11746 \let\if@nobreak\iffalse
11747 \let\if@noskipsec\iffalse
11748 \let\-\@dischyph
11749 \let\'\@acci\let\`\@accii\let\=\@acciii
11750 % \message{FrameRestore:
11751 % \@totalleftmargin=\the \@totalleftmargin,
11752 % \rightmargin=\the\rightmargin,
11753 % \@listdepth=\the\@listdepth. }%
11754 % Test if we are in a list (or list-like paragraph)

File framed-xetex-bidi.def 242


11755 \ifnum \ifdim\@totalleftmargin>\z@ 1\fi
11756 \ifdim\rightmargin>\z@ 1\fi
11757 \ifnum\@listdepth>\z@ 1\fi 0>\z@
11758 % \message{In a list: \linewidth=\the\linewidth, \@totalleftmargin=\the\@totalleftmar
11759 % \parshape=\the\parshape, \columnwidth=\the\columnwidth, \hsize=\the\hsize,
11760 % \labelwidth=\the\labelwidth. }%
11761 \@setminipage % snug fit around the item
11762 % Now try to propageate changes of width from \hsize to list parameters.
11763 % This is deficient, but a more advanced way to indicate modification to text
11764 % dimensions is not (yet) provided; in particular, no separate left/right
11765 % adjustment.
11766 \advance\linewidth-\columnwidth \advance\linewidth\hsize
11767 \parshape\@ne \@totalleftmargin \linewidth
11768 \else % Not in list
11769 \linewidth=\hsize
11770 %\message{No list, set \string\linewidth=\the\hsize. }%
11771 \fi
11772 \sloppy
11773 }

66 File ftnright-xetex-bidi.def
11774 \ProvidesFile{ftnright-xetex-bidi.def}[2018/09/29 v0.6 bidi adaptations for ftnright package f
11775
11776 \def\prepare@bidi@copyins{%
11777 \global\bidi@rcol@copyinsskip\skip\@bidi@copyins@
11778 \global\skip\@bidi@copyins@\z@
11779 \global\count\@bidi@copyins@\z@
11780 \global\dimen\@bidi@copyins@\textheight}
11781
11782 \newskip\bidi@rcol@copyinsskip
11783
11784 \def\LTR@outputdblcol{%
11785 \if@firstcolumn
11786 \global\@firstcolumnfalse
11787 \global\setbox\@leftcolumn\copy\@outputbox
11788 \global\count\footins\@m
11789 \global\skip\footins\rcol@footinsskip
11790 \global\count\@bidi@copyins@\@m
11791 \global\skip\@bidi@copyins@\bidi@rcol@copyinsskip
11792 \splitmaxdepth\maxdimen
11793 \vbadness\maxdimen
11794 \setbox\@outputbox\vbox{\unvbox\@outputbox\unskip}%
11795 \setbox\@outputbox\vsplit\@outputbox to\maxdimen
11796 \toks@\expandafter{\topmark}%
11797 \xdef\@firstcoltopmark{\the\toks@}%
11798 \toks@\expandafter{\splitfirstmark}%
11799 \xdef\@firstcolfirstmark{\the\toks@}%
11800 \ifx\@firstcolfirstmark\@empty
11801 \global\let\@setmarks\relax

File ftnright-xetex-bidi.def 243


11802 \else
11803 \gdef\@setmarks{%
11804 \let\firstmark\@firstcolfirstmark
11805 \let\topmark\@firstcoltopmark}%
11806 \fi
11807 \else
11808 \preparefootins
11809 \prepare@bidi@copyins
11810 \global\@firstcolumntrue
11811 \setbox\@outputbox\vbox{%
11812 \hb@xt@\textwidth{%
11813 \hb@xt@\columnwidth{%
11814 \bidi@firstcolumn@status@write%
11815 \box\@leftcolumn \hss}%
11816 \hfil
11817 {\normalcolor\vrule \@width\columnseprule}%
11818 \hfil
11819 \hb@xt@\columnwidth{%
11820 \bidi@lastcolumn@status@write%
11821 \box\@outputbox \hss}}}%
11822 \@combinedblfloats
11823 \@setmarks
11824 \@outputpage
11825 \begingroup
11826 \@dblfloatplacement
11827 \@startdblcolumn
11828 \@whilesw\if@fcolmade \fi{\@outputpage
11829 \@startdblcolumn}%
11830 \endgroup
11831 \fi}%
11832
11833 \def\RTL@outputdblcol{%
11834 \if@firstcolumn
11835 \global\@firstcolumnfalse
11836 \global\setbox\@leftcolumn\copy\@outputbox
11837 \global\count\footins\@m
11838 \global\skip\footins\rcol@footinsskip
11839 \global\count\@bidi@copyins@\@m
11840 \global\skip\@bidi@copyins@\bidi@rcol@copyinsskip
11841 \splitmaxdepth\maxdimen
11842 \vbadness\maxdimen
11843 \setbox\@outputbox\vbox{\unvbox\@outputbox\unskip}%
11844 \setbox\@outputbox\vsplit\@outputbox to\maxdimen
11845 \toks@\expandafter{\topmark}%
11846 \xdef\@firstcoltopmark{\the\toks@}%
11847 \toks@\expandafter{\splitfirstmark}%
11848 \xdef\@firstcolfirstmark{\the\toks@}%
11849 \ifx\@firstcolfirstmark\@empty
11850 \global\let\@setmarks\relax
11851 \else

File ftnright-xetex-bidi.def 244


11852 \gdef\@setmarks{%
11853 \let\firstmark\@firstcolfirstmark
11854 \let\topmark\@firstcoltopmark}%
11855 \fi
11856 \else
11857 \preparefootins
11858 \prepare@bidi@copyins
11859 \global\@firstcolumntrue
11860 \setbox\@outputbox\vbox{%
11861 \hb@xt@\textwidth{%
11862 \hskip \columnwidth
11863 \hfil
11864 {\normalcolor\vrule \@width\columnseprule}%
11865 \hfil
11866 \hb@xt@\columnwidth{%
11867 \bidi@firstcolumn@status@write%
11868 \box\@leftcolumn \hss}%
11869 \hskip -\textwidth
11870 \hb@xt@\columnwidth{%
11871 \bidi@lastcolumn@status@write%
11872 \box\@outputbox \hss}%
11873 \hskip \columnsep
11874 \hskip \columnwidth }}%
11875 \@combinedblfloats
11876 \@setmarks
11877 \@outputpage
11878 \begingroup
11879 \@dblfloatplacement
11880 \@startdblcolumn
11881 \@whilesw\if@fcolmade \fi{\@outputpage
11882 \@startdblcolumn}%
11883 \endgroup
11884 \fi}%
11885
11886 \def\@startcolumn{%
11887 \ifx\@deferlist\@empty
11888 \global\@fcolmadefalse
11889 \global\@colroom\@colht
11890 \else
11891 \ifvoid\footins\else
11892 \ftn@amount\ht\footins
11893 \advance\ftn@amount\dp\footins
11894 \advance\ftn@amount\skip\footins
11895 \fi
11896 \ifvoid\@bidi@copyins@\else
11897 \bidi@copyins@amount\ht\@bidi@copyins@
11898 \advance\bidi@copyins@amount\dp\@bidi@copyins@
11899 \advance\bidi@copyins@amount\skip\@bidi@copyins@
11900 \fi
11901 \global\advance\@colht-\ftn@amount

File ftnright-xetex-bidi.def 245


11902 \global\advance\@colht-\bidi@copyins@amount
11903 \global\@colroom\@colht
11904 \@xstartcol
11905 \global\advance\@colht\ftn@amount
11906 \global\advance\@colroom\ftn@amount
11907 \global\advance\@colht\bidi@copyins@amount
11908 \global\advance\@colroom\bidi@copyins@amount
11909 \fi
11910 \if@fcolmade
11911 \setbox\@cclv\box\@outputbox
11912 \@makecol
11913 \else
11914 \ifvoid\footins\else
11915 \insert\footins{\unvbox\footins}\fi
11916 \ifvoid\@bidi@copyins@\else
11917 \insert\@bidi@copyins@{\unvbox\@bidi@copyins@}\fi
11918 \fi}
11919
11920 \newdimen\bidi@copyins@amount
11921
11922 \def\@makecol{\if@firstcolumn
11923 \setbox\@outputbox\box\@cclv
11924 \if@twocolumn \else
11925 \ifvoid\footins \else
11926 \@latexerr{ftnright package
11927 used in one-column mode}%
11928 {The ftnright package was designed to
11929 work with LaTeX's standard^^Jtwocolumn
11930 option. It does *not* work with the
11931 multicol package.^^JSo please specify
11932 `twocolumn' in the
11933 \noexpand\documentclass command.}%
11934 \shipout\box\footins \fi
11935 \ifvoid\@bidi@copyins@ \else
11936 \@latexerr{ftnright package
11937 used in one-column mode}%
11938 {The ftnright package was designed to
11939 work with LaTeX's standard^^Jtwocolumn
11940 option. It does *not* work with the
11941 multicol package.^^JSo please specify
11942 `twocolumn' in the
11943 \noexpand\documentclass command.}%
11944 \shipout\box\@bidi@copyins@ \fi\fi
11945 \ifnum\insertpenalties>\z@
11946 \@latexerr{ftnright package
11947 scrambled footnotes}%
11948 {There is too much footnote material in
11949 the first column and ftnright^^Jis
11950 unable to cope with this.^^JYou need
11951 to reduce the amount to get a properly

File ftnright-xetex-bidi.def 246


11952 formatted page.}%
11953 \fi
11954 \else
11955 \ifvoid\footins
11956 \ifvoid\@bidi@copyins@
11957 \setbox\@outputbox\box\@cclv
11958 \else
11959 \setbox\@outputbox\vbox
11960 {\ifvoid\@cclv \else
11961 \unvbox\@cclv
11962 \vskip \skip\@bidi@copyins@
11963 \fi
11964 \color@begingroup
11965 \normalcolor
11966 \unvbox \@bidi@copyins@
11967 \color@endgroup}%
11968 \fi
11969 \else
11970 \setbox\@outputbox\vbox
11971 {\ifvoid\@cclv \else
11972 \unvbox\@cclv
11973 \vskip\skip\footins\fi
11974 \color@begingroup
11975 \normalcolor
11976 \footnoterule\unvbox\footins
11977 \color@endgroup
11978 \ifvoid\@bidi@copyins@
11979 \else
11980 \vskip \skip\@bidi@copyins@
11981 \color@begingroup
11982 \normalcolor
11983 \unvbox \@bidi@copyins@
11984 \color@endgroup
11985 \fi
11986 }%
11987 \fi
11988 \fi
11989 \xdef\@freelist{\@freelist\@midlist}%
11990 \global \let \@midlist \@empty
11991 \@combinefloats
11992 \ifvbox\@kludgeins
11993 \@makespecialcolbox
11994 \else
11995 \setbox\@outputbox\vbox to\@colht
11996 {\boxmaxdepth\maxdepth
11997 \@texttop
11998 \@tempdima\dp\@outputbox
11999 \unvbox\@outputbox
12000 \vskip-\@tempdima
12001 \@textbottom}%

File ftnright-xetex-bidi.def 247


12002 \fi
12003 \global\maxdepth\@maxdepth}
12004
12005 \let\leftfootnoterule\@empty
12006 \let\rightfootnoterule\@empty
12007 \let\textwidthfootnoterule\@empty
12008 \let\autofootnoterule\@empty
12009 \let\footnoterule\@empty
12010 \long\def\@makefntext#1{\parindent1em
12011 \noindent\hbox to 2em{}%
12012 \llap{\@thefnmark\hbox{.}\,\,}#1}
12013
12014 \setlength{\skip\@bidi@copyins@}
12015 {10pt plus 5pt minus 3pt}
12016 \AtBeginDocument{\prepare@bidi@copyins}

67 File graphicx-xetex-bidi.def
12017 \ProvidesFile{graphicx-xetex-bidi.def}[2017/06/17 v0.5 bidi adaptations for graphicx package f
12018 \def\Grot@box@std#1#2{\ifmmode\else\if@RTL\beginL\fi\fi%
12019 \Grot@setangle{#1}%
12020 \setbox\z@\hbox{{\ifmmode\if@RTL\beginR\fi#2\if@RTL\endR\fi\else\if@RTL\beginR\fi#2\if@RTL\e
12021 \Grot@x\z@
12022 \Grot@y\z@
12023 \Grot@box\ifmmode\else\if@RTL\endL\fi\fi}
12024 \long\def\Grot@box@kv[#1]#2#3{\ifmmode\else\if@RTL\beginL\fi\fi%
12025 \@begin@tempboxa\hbox{\ifmmode\if@RTL\beginR\fi#3\if@RTL\endR\fi\else\if@RTL\beginR\fi#3\if@
12026 \Grot@x\width \divide\Grot@x\tw@
12027 \Grot@y\height \advance\Grot@y-\depth \divide\Grot@y\tw@
12028 \setkeys{Grot}{#1}%
12029 \setbox\z@\box\@tempboxa
12030 \Grot@setangle{#2}%
12031 \Grot@box\ifmmode\else\if@RTL\endL\fi\fi
12032 \@end@tempboxa}
12033 \long\def\Gscale@box#1[#2]#3{\ifmmode\else\if@RTL\beginL\fi\fi%
12034 \leavevmode
12035 \def\Gscale@x{#1}\def\Gscale@y{#2}%
12036 \setbox\z@\hbox{{#3}}%
12037 \setbox\tw@\hbox{\Gscale@start\rlap{\copy\z@}\Gscale@end}%
12038 \ifdim#2\p@<\z@
12039 \ht\tw@-#2\dp\z@
12040 \dp\tw@-#2\ht\z@
12041 \else
12042 \ht\tw@#2\ht\z@
12043 \dp\tw@#2\dp\z@
12044 \fi
12045 \ifdim#1\p@<\z@
12046 \hb@xt@-#1\wd\z@{\kern-#1\wd\z@\box\tw@\hss}%
12047 \else
12048 \wd\tw@#1\wd\z@

File graphicx-xetex-bidi.def 248


12049 \box\tw@
12050 \fi\ifmmode\else\if@RTL\endL\fi\fi}
12051 \def\Gin@iii[#1,#2][#3,#4]#5{%
12052 \begingroup
12053 \ifmmode\else\if@RTL\beginL\fi\fi
12054 \Gin@bboxtrue
12055 \Gin@defaultbp\Gin@llx{#1}%
12056 \Gin@defaultbp\Gin@lly{#2}%
12057 \Gin@defaultbp\Gin@urx{#3}%
12058 \Gin@defaultbp\Gin@ury{#4}%
12059 \Ginclude@graphics{#5}%
12060 \ifmmode\else\if@RTL\endL\fi\fi
12061 \endgroup}
12062 \def\Gin@ii[#1]#2{%
12063 \def\@tempa{[}\def\@tempb{#2}%
12064 \ifx\@tempa\@tempb
12065 \def\@tempa{\Gin@iii[#1][}%
12066 \expandafter\@tempa
12067 \else
12068 \begingroup
12069 \ifmmode\else\if@RTL\beginL\fi\fi
12070 \@tempswafalse
12071 \toks@{\Ginclude@graphics{#2}}%
12072 \setkeys{Gin}{#1}%
12073 \Gin@esetsize
12074 \the\toks@
12075 \ifmmode\else\if@RTL\endL\fi\fi
12076 \endgroup
12077 \fi}
12078 \def\reflectbox{\bidiGscale@box-1[1]}
12079 \long\def\bidiGscale@box#1[#2]#3{\ifmmode\else\if@RTL\beginL\fi\fi%
12080 \leavevmode
12081 \def\Gscale@x{#1}\def\Gscale@y{#2}%
12082 \setbox\z@\hbox{{\ifmmode\if@RTL\beginR\fi#3\if@RTL\endR\fi\else\if@RTL\beginR\fi#3\if@RTL\e
12083 \setbox\tw@\hbox{\Gscale@start\rlap{\copy\z@}\Gscale@end}%
12084 \ifdim#2\p@<\z@
12085 \ht\tw@-#2\dp\z@
12086 \dp\tw@-#2\ht\z@
12087 \else
12088 \ht\tw@#2\ht\z@
12089 \dp\tw@#2\dp\z@
12090 \fi
12091 \ifdim#1\p@<\z@
12092 \hb@xt@-#1\wd\z@{\kern-#1\wd\z@\box\tw@\hss}%
12093 \else
12094 \wd\tw@#1\wd\z@
12095 \box\tw@
12096 \fi\ifmmode\else\if@RTL\endL\fi\fi}
12097 \def\scalebox#1{%
12098 \@ifnextchar[{\bidiGscale@box{#1}}{\bidiGscale@box{#1}[#1]}}

File graphicx-xetex-bidi.def 249


12099 \def\resizebox{%
12100 \leavevmode
12101 \@ifstar{\bidiGscale@@box\totalheight}{\bidiGscale@@box\height}}
12102 \def\bidiGscale@@box#1#2#3{%
12103 \let\@tempa\Gin@exclamation
12104 \expandafter\def\expandafter\@tempb\expandafter{\string#2}%
12105 \expandafter\def\expandafter\@tempc\expandafter{\string#3}%
12106 \ifx\@tempb\@tempa
12107 \ifx\@tempc\@tempa
12108 \toks@{\mbox}%
12109 \else
12110 \toks@{\bidiGscale@box@dd{#3}#1}%
12111 \fi
12112 \else
12113 \ifx\@tempc\@tempa
12114 \toks@{\bidiGscale@box@dd{#2}\width}%
12115 \else
12116 \toks@{\bidiGscale@box@dddd{#2}\width{#3}#1}%
12117 \fi
12118 \fi
12119 \the\toks@}
12120 \long\def\bidiGscale@box@dd#1#2#3{%
12121 \@begin@tempboxa\hbox{\ifmmode\if@RTL\beginR\fi#3\if@RTL\endR\fi\else\if@RTL\beginR\fi#3\if@
12122 \setlength\@tempdima{#1}%
12123 \setlength\@tempdimb{#2}%
12124 \Gscale@div\@tempa\@tempdima\@tempdimb
12125 \Gscale@box\@tempa[\@tempa]{\box\@tempboxa}%
12126 \@end@tempboxa}
12127 \long\def\bidiGscale@box@dddd#1#2#3#4#5{%
12128 \@begin@tempboxa\hbox{\ifmmode\if@RTL\beginR\fi#5\if@RTL\endR\fi\else\if@RTL\beginR\fi#5\if@
12129 \setlength\@tempdima{#1}%
12130 \setlength\@tempdimb{#2}%
12131 \Gscale@div\@tempa\@tempdima\@tempdimb
12132 \setlength\@tempdima{#3}%
12133 \setlength\@tempdimb{#4}%
12134 \Gscale@div\@tempb\@tempdima\@tempdimb
12135 \ifGin@iso
12136 \ifdim\@tempa\p@>\@tempb\p@
12137 \let\@tempa\@tempb
12138 \else
12139 \let\@tempb\@tempa
12140 \fi
12141 \fi
12142 \Gscale@box\@tempa[\@tempb]{\box\@tempboxa}%
12143 \@end@tempboxa}

68 File geometry-xetex-bidi.def
12144 \ProvidesFile{geometry-xetex-bidi.def}[2017/01/14 v0.2 bidi adaptations for geometry package f
12145 \renewcommand*{\Gm@vrules@mpi}{%

File geometry-xetex-bidi.def 250


12146 \if@RTLmain%
12147 \hb@xt@\@tempdima{\hskip-\marginparwidth\hskip-\marginparsep
12148 \llap{\Gm@vrule}\ignorespaces
12149 \hskip \marginparwidth\rlap{\Gm@vrule}\hskip \marginparsep
12150 \llap{\Gm@vrule}\hskip\textwidth\rlap{\Gm@vrule}\hss}%
12151 \else%
12152 \hb@xt@\@tempdima{\llap{\Gm@vrule}\ignorespaces
12153 \hskip \textwidth\Gm@vrule\hskip \marginparsep
12154 \llap{\Gm@vrule}\hfil\Gm@vrule}\fi}%
12155 \renewcommand*{\Gm@vrules@mpii}{%
12156 \if@RTLmain%
12157 \hb@xt@\@tempdima{\llap{\Gm@vrule}\ignorespaces
12158 \hskip \textwidth\Gm@vrule\hskip \marginparsep
12159 \llap{\Gm@vrule}\hfil\Gm@vrule}%
12160 \else%
12161 \hb@xt@\@tempdima{\hskip-\marginparwidth\hskip-\marginparsep
12162 \llap{\Gm@vrule}\ignorespaces
12163 \hskip \marginparwidth\rlap{\Gm@vrule}\hskip \marginparsep
12164 \llap{\Gm@vrule}\hskip\textwidth\rlap{\Gm@vrule}\hss}\fi}%
12165 \bidi@patchcmd{\Gm@pageframes}{%
12166 \ifodd\count\z@
12167 \let\@themargin\oddsidemargin
12168 \else
12169 \let\@themargin\evensidemargin
12170 \fi
12171 }{%
12172 \ifodd\count\z@
12173 \if@RTLmain
12174 \let\@themargin\evensidemargin
12175 \else
12176 \let\@themargin\oddsidemargin
12177 \fi
12178 \else
12179 \if@RTLmain
12180 \let\@themargin\oddsidemargin
12181 \else
12182 \let\@themargin\evensidemargin
12183 \fi
12184 \fi
12185 }{}{}

69 File hvfloat-xetex-bidi.def
12186 \ProvidesFile{hvfloat-xetex-bidi.def}[2012/04/18 v0.2 bidi adaptations for hvfloat package for
12187 \def\do@@hvFloat[#1]#2#3{%
12188 \def\hv@shortCap{#1}
12189 \def\hv@longCap{#2}
12190 \def\hv@label{#3}
12191 %\newcommand*{\hvFloat}[5][]{%
12192 % [#1}: keyvalues

File hvfloat-xetex-bidi.def 251


12193 % #2: type figure | table | ...
12194 % #3: float contents
12195 % [#4]: short caption
12196 % #5: caption
12197 % #6: label
12198 % \setDefaults%
12199 % \def\@tempa{#1}%
12200 % \ifx\@tempa\empty\else\setkeys{hvSet}{#1}\fi% set options, only when not empty
12201 \def\@tempa{90}%
12202 \ifx\hvSet@rotAngle\@tempa \setlength{\hvMaxCapWidth}{\textheight}
12203 \else \setlength{\hvMaxCapWidth}{\linewidth}
12204 \fi
12205 %
12206 % First we save the object in \hvObjectBox
12207 %
12208 \ifx\hvSet@objectAngle\hv@Zero % rotate the object?
12209 \savebox{\hvObjectBox}{\ifhv@useOBox\usebox{\hvOBox}\else\hv@floatObject\fi}
12210 \else
12211 \savebox{\hvObjectBox}{%
12212 \rotatebox{\hvSet@objectAngle}{%
12213 \ifhv@useOBox\usebox{\hvOBox}\else\hv@floatObject\fi}}
12214 \fi
12215 \setlength{\hvObjectWidth}{\wd\hvObjectBox}
12216 %
12217 % Now we save the caption with its defined \hvCapWidth
12218 %
12219 \ifx\hvSet@capWidth\hv@Width\setlength{\hvCapWidth}{\hvObjectWidth}
12220 \else
12221 \ifx\hvSet@capWidth\hv@Height\setlength{\hvCapWidth}{\ht\hvObjectBox}
12222 \else
12223 \setlength{\hvCapWidth}{\hvObjectWidth}
12224 \ifx\hvSet@capPos\hv@Left\addtolength{\hvMaxCapWidth}{-\hvObjectWidth}\fi
12225 \ifx\hvSet@capPos\hv@Right\addtolength{\hvMaxCapWidth}{-\hvObjectWidth}\fi
12226 \ifdim\hvSet@capWidth\columnwidth<\hvMaxCapWidth
12227 \setlength{\hvCapWidth}{\hvSet@capWidth\columnwidth}
12228 \else
12229 \setlength{\hvCapWidth}{\hvMaxCapWidth}
12230 \fi
12231 \fi
12232 \fi
12233 %
12234 % now we have the object and the caption with the right
12235 % rotated angles saved in boxes
12236 %
12237 \def\fps@figure{\hvSet@floatPos}
12238 \ifhv@nonFloat\begingroup% Start the nonfloat part
12239 \else \begin{\hv@floatType}% Start the floating environment
12240 \fi%
12241 \saveCaptionSkip% we put this space ourselve
12242 \ifx\hvSet@capAngle\hv@Width % need rotation?

File hvfloat-xetex-bidi.def 252


12243 \sbox{\hvCaptionBox}{%
12244 \begin{minipage}[b]{\hvCapWidth}% minipage, to get hyphenation
12245 \ifhv@nonFloat%
12246 \ifhv@onlyText#2%
12247 \else%
12248 \ifx\hv@floatType\hv@figure
12249 \ifx\relax#1\relax \figcaption{#2}\else\figcaption[#1]{#2}\fi
12250 \else
12251 \ifx\relax#1\relax \tabcaption{#2}\else\tabcaption[#1]{#2}\fi%
12252 \fi
12253 \fi
12254 \else\ifx\relax\hv@shortCap\relax\caption{#2}\else\caption[#1]{#2}\fi%
12255 \fi%
12256 \label{#3}%
12257 \end{minipage}%
12258 }%
12259 \else%
12260 \sbox{\hvCaptionBox}{%
12261 \rotatebox{\hvSet@capAngle}{%
12262 \begin{minipage}[b]{\hvCapWidth}% minipage, to get hyphenation
12263 \ifhv@nonFloat%
12264 \ifhv@onlyText#2%
12265 \else%
12266 \ifx\hv@floatType\hv@figure
12267 \ifx\relax#1\relax \figcaption{#2}\else\figcaption[#1]{#2}\fi
12268 \else
12269 \ifx\relax#1\relax \tabcaption{#2}\else\tabcaption[#1]{#2}\fi%
12270 \fi
12271 \fi
12272 \else\ifx\relax\hv@shortCap\relax\caption{#2}\else\caption[#1]{#2}\fi%
12273 \fi%
12274 \label{#3}%
12275 \end{minipage}%
12276 }%
12277 }%
12278 \fi%
12279 %%
12280 \restoreCaptionSkip% save old values
12281 \ifx\hvSet@objectPos\hv@Right\bidi@raggedleft%
12282 \else%
12283 \ifx\hvSet@objectPos\hv@Center
12284 \ifhv@nonFloat\hspace*{\fill}\else\centering\fi%
12285 \fi%
12286 \fi%
12287 %
12288 % to rotate object and caption together, we save all in another box
12289 % the caption comes first, if its on the left or the top
12290 %
12291 \savebox{\@tempboxa}{%
12292 \ifx\hvSet@capPos\hv@Left % caption on left side

File hvfloat-xetex-bidi.def 253


12293 \if@RTL%
12294 \ifx\hvSet@capVPos\hv@Center%
12295 \ifhv@fbox
12296 \fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
12297 \else
12298 \parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
12299 \fi%
12300 \hspace{\hvSet@floatCapSep pt}%
12301 \ifhv@fbox
12302 \fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
12303 \else
12304 \parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}
12305 \fi%
12306 \else%
12307 \ifx\hvSet@capVPos\hv@Top
12308 \ifhv@fbox
12309 \fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
12310 \else
12311 \raisebox{-\height}{\usebox{\hvObjectBox}}%
12312 \fi%
12313 \hspace{\hvSet@floatCapSep pt}%
12314 \ifhv@fbox
12315 \fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
12316 \else
12317 \raisebox{-\height}{\usebox{\hvCaptionBox}}%
12318 \fi
12319 \else
12320 \ifhv@fbox
12321 \fbox{\usebox{\hvObjectBox}}%
12322 \else
12323 \usebox{\hvObjectBox}%
12324 \fi
12325 \hspace{\hvSet@floatCapSep pt}%
12326 \ifhv@fbox
12327 \fbox{\usebox{\hvCaptionBox}}%
12328 \else
12329 \usebox{\hvCaptionBox}%
12330 \fi%
12331 \fi%
12332 \fi%
12333 \else% not RTL
12334 \ifx\hvSet@capVPos\hv@Center%
12335 \ifhv@fbox\fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
12336 \else \parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}%
12337 \fi%
12338 \hspace{\hvSet@floatCapSep pt}% capfloatsep
12339 \ifhv@fbox\fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
12340 \else \parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
12341 \fi%
12342 \else%

File hvfloat-xetex-bidi.def 254


12343 \ifx\hvSet@capVPos\hv@Top % caption at top
12344 \ifhv@fbox\fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
12345 \else \raisebox{-\height}{\usebox{\hvCaptionBox}}%
12346 \fi
12347 \hspace{\hvSet@floatCapSep pt}% capfloatsep
12348 \ifhv@fbox\fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
12349 \else \raisebox{-\height}{\usebox{\hvObjectBox}}%
12350 \fi%
12351 \else% caption on bottom
12352 \ifhv@fbox\fbox{\usebox{\hvCaptionBox}}
12353 \else\usebox{\hvCaptionBox}
12354 \fi%
12355 \hspace{\hvSet@floatCapSep pt}%
12356 \ifhv@fbox\fbox{\usebox{\hvObjectBox}}
12357 \else \usebox{\hvObjectBox}
12358 \fi%
12359 \fi%
12360 \fi% end of RTL
12361 \fi%
12362 \else
12363 \ifx\hvSet@capPos\hv@Top
12364 \ifdim\wd\hvCaptionBox>\wd\hvObjectBox
12365 \begin{minipage}{\wd\hvCaptionBox}
12366 \else
12367 \begin{minipage}{\wd\hvObjectBox}
12368 \fi
12369 \centering
12370 \ifhv@fbox
12371 \fbox{\usebox{\hvCaptionBox}}\\[\hvBelowCaptionSkip]
12372 \fbox{\usebox{\hvObjectBox}}
12373 \else
12374 \usebox{\hvCaptionBox}\\[\hvBelowCaptionSkip]
12375 \usebox{\hvObjectBox}
12376 \fi%
12377 \end{minipage}
12378 \else
12379 \ifx\hvSet@capPos\hv@Bottom
12380 \ifdim\wd\hvCaptionBox>\wd\hvObjectBox
12381 \begin{minipage}{\wd\hvCaptionBox}
12382 \else
12383 \begin{minipage}{\wd\hvObjectBox}
12384 \fi
12385 \centering
12386 \ifhv@fbox
12387 \fbox{\usebox{\hvObjectBox}}\\[\hvAboveCaptionSkip]
12388 \fbox{\usebox{\hvCaptionBox}}
12389 \else
12390 \usebox{\hvObjectBox}\\[\hvAboveCaptionSkip]
12391 \usebox{\hvCaptionBox}
12392 \fi%

File hvfloat-xetex-bidi.def 255


12393 \end{minipage}
12394 \else% the last option: put the caption on the right
12395 \if@RTL%
12396 \ifx\hvSet@capVPos\hv@Center%
12397 \ifhv@fbox\fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
12398 \else \parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}%
12399 \fi%
12400 \hspace{\hvSet@floatCapSep pt}% capfloatsep
12401 \ifhv@fbox\fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
12402 \else \parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
12403 \fi%
12404 \else%
12405 \ifx\hvSet@capVPos\hv@Top % caption at top
12406 \ifhv@fbox\fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
12407 \else \raisebox{-\height}{\usebox{\hvCaptionBox}}%
12408 \fi
12409 \hspace{\hvSet@floatCapSep pt}% capfloatsep
12410 \ifhv@fbox\fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
12411 \else \raisebox{-\height}{\usebox{\hvObjectBox}}%
12412 \fi%
12413 \else% caption on bottom
12414 \ifhv@fbox\fbox{\usebox{\hvCaptionBox}}
12415 \else\usebox{\hvCaptionBox}
12416 \fi%
12417 \hspace{\hvSet@floatCapSep pt}%
12418 \ifhv@fbox\fbox{\usebox{\hvObjectBox}}
12419 \else \usebox{\hvObjectBox}
12420 \fi%
12421 \fi%
12422 \fi%
12423 \else% not RTL
12424 \ifx\hvSet@capVPos\hv@Center%
12425 \ifhv@fbox
12426 \fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
12427 \else
12428 \parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
12429 \fi%
12430 \hspace{\hvSet@floatCapSep pt}%
12431 \ifhv@fbox
12432 \fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
12433 \else
12434 \parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}
12435 \fi%
12436 \else%
12437 \ifx\hvSet@capVPos\hv@Top
12438 \ifhv@fbox
12439 \fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
12440 \else
12441 \raisebox{-\height}{\usebox{\hvObjectBox}}%
12442 \fi%

File hvfloat-xetex-bidi.def 256


12443 \hspace{\hvSet@floatCapSep pt}%
12444 \ifhv@fbox
12445 \fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
12446 \else
12447 \raisebox{-\height}{\usebox{\hvCaptionBox}}%
12448 \fi
12449 \else
12450 \ifhv@fbox
12451 \fbox{\usebox{\hvObjectBox}}%
12452 \else
12453 \usebox{\hvObjectBox}%
12454 \fi
12455 \hspace{\hvSet@floatCapSep pt}%
12456 \ifhv@fbox
12457 \fbox{\usebox{\hvCaptionBox}}%
12458 \else
12459 \usebox{\hvCaptionBox}%
12460 \fi%
12461 \fi%
12462 \fi
12463 \fi% end of RTL
12464 \fi
12465 \fi
12466 \fi
12467 }% End savebox Object and caption
12468 %
12469 % now we rotate the object and caption, if needed
12470 %
12471 \ifx\hvSet@rotAngle\hv@Zero
12472 \usebox{\@tempboxa}
12473 \else
12474 \rotatebox{\hvSet@rotAngle}{\usebox{\@tempboxa}}
12475 \fi
12476 \ifhv@nonFloat
12477 \ifx\hvSet@objectPos\hv@Center
12478 \ifhv@nonFloat
12479 \hspace{\fill}
12480 \fi
12481 \fi
12482 \endgroup% End the nonfloat part
12483 \else
12484 \end{\hv@floatType}% End the floating environment
12485 \fi
12486 }

70 File hyperref-xetex-bidi.def
12487 \ProvidesFile{hyperref-xetex-bidi.def}[2018/11/11 v1.1 bidi adaptations for hyperref package f
12488 \AtBeginDocument{%
12489 \def\contentsline#1#2#3#4{%

File hyperref-xetex-bidi.def 257


12490 \ifx\\#4\\%
12491 \csname l@#1\endcsname{#2}{#3}%
12492 \else
12493 \ifcase\Hy@linktoc % none
12494 \csname l@#1\endcsname{#2}{#3}%
12495 \or % section
12496 \csname l@#1\endcsname{%
12497 \hyper@linkstart{link}{#4}{\if@RTL\beginR\fi#2\if@RTL\endR\fi}\hyper@linkend
12498 }{#3}%
12499 \or % page
12500 \csname l@#1\endcsname{{#2}}{%
12501 \hyper@linkstart{link}{#4}{#3}\hyper@linkend
12502 }%
12503 \else % all
12504 \csname l@#1\endcsname{%
12505 \hyper@linkstart{link}{#4}{\if@RTL\beginR\fi#2\if@RTL\endR\fi}\hyper@linkend
12506 }{%
12507 \hyper@linkstart{link}{#4}{#3}\hyper@linkend
12508 }%
12509 \fi
12510 \fi
12511 }
12512 \ifHy@hyperfootnotes
12513 \let\H@@footnotetext\@footnotetext
12514 \let\HRTL@@RTLfootnotetext\@RTLfootnotetext
12515 \let\HLTR@@LTRfootnotetext\@LTRfootnotetext
12516 \def\@xfootnotenext[#1]{%
12517 \begingroup
12518 \csname c@\@mpfn\endcsname #1\relax
12519 \unrestored@protected@xdef\@thefnmark{\thempfn}%
12520 \endgroup
12521 \ifx\@footnotetext\@mpfootnotetext
12522 \expandafter\H@@mpfootnotetext
12523 \else
12524 \expandafter\H@@footnotetext
12525 \fi
12526 }%
12527 \def\@xRTLfootnotenext[#1]{%
12528 \begingroup
12529 \csname c@\@mpfn\endcsname #1\relax
12530 \unrestored@protected@xdef\@thefnmark{\thempfn}%
12531 \endgroup
12532 \ifx\@RTLfootnotetext\@mpRTLfootnotetext
12533 \expandafter\HRTL@@mpRTLfootnotetext
12534 \else
12535 \expandafter\HRTL@@RTLfootnotetext
12536 \fi
12537 }%
12538 \def\@xLTRfootnotenext[#1]{%
12539 \begingroup

File hyperref-xetex-bidi.def 258


12540 \csname c@\@mpfn\endcsname #1\relax
12541 \unrestored@protected@xdef\@thefnmark{\thempfn}%
12542 \endgroup
12543 \ifx\@LTRfootnotetext\@mpLTRfootnotetext
12544 \expandafter\HLTR@@mpLTRfootnotetext
12545 \else
12546 \expandafter\HLTR@@LTRfootnotetext
12547 \fi
12548 }%
12549 \def\@xfootnotemark[#1]{%
12550 \begingroup
12551 \c@footnote #1\relax
12552 \unrestored@protected@xdef\@thefnmark{\thefootnote}%
12553 \endgroup
12554 \H@@footnotemark
12555 }%
12556 \let\H@@mpfootnotetext\@mpfootnotetext
12557 \let\HRTL@@mpRTLfootnotetext\@mpRTLfootnotetext
12558 \let\HLTR@@mpLTRfootnotetext\@mpLTRfootnotetext
12559 \long\def\@mpfootnotetext#1{%
12560 \H@@mpfootnotetext{%
12561 \ifHy@nesting
12562 \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
12563 \else
12564 \Hy@raisedlink{%
12565 \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
12566 }#1%
12567 \fi
12568 }%
12569 }%
12570 \long\def\@mpRTLfootnotetext#1{%
12571 \HRTL@@mpRTLfootnotetext{%
12572 \ifHy@nesting
12573 \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
12574 \else
12575 \Hy@raisedlink{%
12576 \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
12577 }#1%
12578 \fi
12579 }%
12580 }%
12581 \long\def\@mpLTRfootnotetext#1{%
12582 \HLTR@@mpLTRfootnotetext{%
12583 \ifHy@nesting
12584 \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
12585 \else
12586 \Hy@raisedlink{%
12587 \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
12588 }#1%
12589 \fi

File hyperref-xetex-bidi.def 259


12590 }%
12591 }%
12592 \long\def\@footnotetext#1{%
12593 \H@@footnotetext{%
12594 \ifHy@nesting
12595 \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
12596 \else
12597 \Hy@raisedlink{%
12598 \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
12599 }%
12600 \let\@currentHlabel\Hy@footnote@currentHlabel
12601 \let\@currentHref\Hy@footnote@currentHref
12602 \let\@currentlabelname\@empty
12603 #1%
12604 \fi
12605 }%
12606 }%
12607 \long\def\@RTLfootnotetext#1{%
12608 \HRTL@@RTLfootnotetext{%
12609 \ifHy@nesting
12610 \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
12611 \else
12612 \Hy@raisedlink{%
12613 \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
12614 }%
12615 \let\@currentHlabel\Hy@footnote@currentHlabel
12616 \let\@currentHref\Hy@footnote@currentHref
12617 \let\@currentlabelname\@empty
12618 #1%
12619 \fi
12620 }%
12621 }%
12622 \long\def\@LTRfootnotetext#1{%
12623 \HLTR@@LTRfootnotetext{%
12624 \ifHy@nesting
12625 \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
12626 \else
12627 \Hy@raisedlink{%
12628 \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
12629 }%
12630 \let\@currentHlabel\Hy@footnote@currentHlabel
12631 \let\@currentHref\Hy@footnote@currentHref
12632 \let\@currentlabelname\@empty
12633 #1%
12634 \fi
12635 }%
12636 }%
12637 \@ifpackageloaded{tabularx}{%
12638 \let\HyOrg@TX@endtabularx\TX@endtabularx
12639 \def\Hy@tabularx@hook{%

File hyperref-xetex-bidi.def 260


12640 \let\@footnotetext\H@@footnotetext
12641 \let\@LTRfootnotetext\HLTR@@LTRfootnotetext
12642 \let\@RTLfootnotetext\HRTL@@RTLfootnotetext
12643 \let\@footnotemark\H@@footnotemark
12644 \let\@mpfootnotetext\H@@mpfootnotetext
12645 \let\@mpLTRfootnotetext\HLTR@@mpLTRfootnotetext
12646 \let\@mpRTLfootnotetext\HRTL@@mpRTLfootnotetext
12647 }%
12648 \begingroup
12649 \toks@\expandafter{\TX@endtabularx}%
12650 \xdef\Hy@gtemp{%
12651 \noexpand\Hy@tabularx@hook
12652 \the\toks@
12653 }%
12654 \endgroup
12655 \let\TX@endtabularx\Hy@gtemp
12656 }{}%
12657 \@ifpackageloaded{longtable}{%
12658 \CheckCommand*{\LT@p@LTRftntext}[1]{%
12659 \edef\@tempa{%
12660 \the\LT@p@ftn
12661 \noexpand\LTRfootnotetext[\the\c@footnote]%
12662 }%
12663 \global\LT@p@ftn\expandafter{\@tempa{#1}}%
12664 }%
12665 \long\def\LT@p@LTRftntext#1{%
12666 \edef\@tempa{%
12667 \the\LT@p@ftn
12668 \begingroup
12669 \noexpand\c@footnote=\the\c@footnote\relax
12670 \noexpand\protected@xdef\noexpand\@thefnmark{%
12671 \noexpand\thempfn
12672 }%
12673 \noexpand\Hy@LT@LTRfootnotetext{%
12674 \Hy@footnote@currentHref
12675 }%
12676 }%
12677 \global\LT@p@ftn\expandafter{%
12678 \@tempa{#1}%
12679 \endgroup
12680 }%
12681 }%
12682 \long\def\Hy@LT@LTRfootnotetext#1#2{%
12683 \HLTR@@LTRfootnotetext{%
12684 \ifHy@nesting
12685 \hyper@@anchor{#1}{#2}%
12686 \else
12687 \Hy@raisedlink{%
12688 \hyper@@anchor{#1}{\relax}%
12689 }%

File hyperref-xetex-bidi.def 261


12690 \def\@currentHref{#1}%
12691 \let\@currentlabelname\@empty
12692 #2%
12693 \fi
12694 }%
12695 }%
12696 \CheckCommand*{\LT@p@RTLftntext}[1]{%
12697 \edef\@tempa{%
12698 \the\LT@p@ftn
12699 \noexpand\RTLfootnotetext[\the\c@footnote]%
12700 }%
12701 \global\LT@p@ftn\expandafter{\@tempa{#1}}%
12702 }%
12703 \long\def\LT@p@RTLftntext#1{%
12704 \edef\@tempa{%
12705 \the\LT@p@ftn
12706 \begingroup
12707 \noexpand\c@footnote=\the\c@footnote\relax
12708 \noexpand\protected@xdef\noexpand\@thefnmark{%
12709 \noexpand\thempfn
12710 }%
12711 \noexpand\Hy@LT@RTLfootnotetext{%
12712 \Hy@footnote@currentHref
12713 }%
12714 }%
12715 \global\LT@p@ftn\expandafter{%
12716 \@tempa{#1}%
12717 \endgroup
12718 }%
12719 }%
12720 \long\def\Hy@LT@RTLfootnotetext#1#2{%
12721 \HRTL@@RTLfootnotetext{%
12722 \ifHy@nesting
12723 \hyper@@anchor{#1}{#2}%
12724 \else
12725 \Hy@raisedlink{%
12726 \hyper@@anchor{#1}{\relax}%
12727 }%
12728 \def\@currentHref{#1}%
12729 \let\@currentlabelname\@empty
12730 #2%
12731 \fi
12732 }%
12733 }%
12734 }{}%
12735 \@ifpackageloaded{bidipoem}{%
12736 \long\def\bidipoem@p@ftntext#1{%
12737 \edef\@tempx{%
12738 \the\bidipoem@p@ftn
12739 \begingroup

File hyperref-xetex-bidi.def 262


12740 \noexpand\csname c@\@mpfn\endcsname=\the\csname c@\@mpfn\endcsname\relax
12741 \noexpand\protected@xdef\noexpand\@thefnmark{%
12742 \noexpand\thempfn
12743 }%
12744 \noexpand\Hy@bidipoem@footnotetext{%
12745 \Hy@footnote@currentHref
12746 }%
12747 }%
12748 \global\bidipoem@p@ftn\expandafter{%
12749 \@tempx{#1}%
12750 \endgroup
12751 }%
12752 }%
12753 \long\def\Hy@bidipoem@footnotetext#1#2{%
12754 \H@@footnotetext{%
12755 \ifHy@nesting
12756 \hyper@@anchor{#1}{#2}%
12757 \else
12758 \Hy@raisedlink{%
12759 \hyper@@anchor{#1}{\relax}%
12760 }%
12761 \def\@currentHref{#1}%
12762 \let\@currentlabelname\@empty
12763 #2%
12764 \fi
12765 }%
12766 }%
12767 \long\def\bidipoem@p@LTRftntext#1{%
12768 \edef\@tempxi{%
12769 \the\bidipoem@p@ftn
12770 \begingroup
12771 \noexpand\csname c@\@mpfn\endcsname=\the\csname c@\@mpfn\endcsname\relax
12772 \noexpand\protected@xdef\noexpand\@thefnmark{%
12773 \noexpand\thempfn
12774 }%
12775 \noexpand\Hy@bidipoem@LTRfootnotetext{%
12776 \Hy@footnote@currentHref
12777 }%
12778 }%
12779 \global\bidipoem@p@ftn\expandafter{%
12780 \@tempxi{#1}%
12781 \endgroup
12782 }%
12783 }%
12784 \long\def\Hy@bidipoem@LTRfootnotetext#1#2{%
12785 \HLTR@@LTRfootnotetext{%
12786 \ifHy@nesting
12787 \hyper@@anchor{#1}{#2}%
12788 \else
12789 \Hy@raisedlink{%

File hyperref-xetex-bidi.def 263


12790 \hyper@@anchor{#1}{\relax}%
12791 }%
12792 \def\@currentHref{#1}%
12793 \let\@currentlabelname\@empty
12794 #2%
12795 \fi
12796 }%
12797 }%
12798 \long\def\bidipoem@p@RTLftntext#1{%
12799 \edef\@tempxii{%
12800 \the\bidipoem@p@ftn
12801 \begingroup
12802 \noexpand\csname c@\@mpfn\endcsname=\the\csname c@\@mpfn\endcsname\relax
12803 \noexpand\protected@xdef\noexpand\@thefnmark{%
12804 \noexpand\thempfn
12805 }%
12806 \noexpand\Hy@bidipoem@RTLfootnotetext{%
12807 \Hy@footnote@currentHref
12808 }%
12809 }%
12810 \global\bidipoem@p@ftn\expandafter{%
12811 \@tempxii{#1}%
12812 \endgroup
12813 }%
12814 }%
12815 \long\def\Hy@bidipoem@RTLfootnotetext#1#2{%
12816 \HRTL@@RTLfootnotetext{%
12817 \ifHy@nesting
12818 \hyper@@anchor{#1}{#2}%
12819 \else
12820 \Hy@raisedlink{%
12821 \hyper@@anchor{#1}{\relax}%
12822 }%
12823 \def\@currentHref{#1}%
12824 \let\@currentlabelname\@empty
12825 #2%
12826 \fi
12827 }%
12828 }%
12829 }{}%
12830 \let\HyOrg@maketitle\maketitle
12831 \def\maketitle{%
12832 \let\Hy@saved@footnotemark\@footnotemark
12833 \let\Hy@saved@footnotetext\@footnotetext
12834 \let\HyRTL@saved@RTLfootnotetext\@RTLfootnotetext
12835 \let\HyLTR@saved@LTRfootnotetext\@LTRfootnotetext
12836 \let\@footnotemark\H@@footnotemark
12837 \let\@footnotetext\H@@footnotetext
12838 \let\@RTLfootnotetext\HRTL@@RTLfootnotetext
12839 \let\@LTRfootnotetext\HLTR@@LTRfootnotetext

File hyperref-xetex-bidi.def 264


12840 \@ifnextchar[\Hy@maketitle@optarg{% ]
12841 \HyOrg@maketitle
12842 \Hy@maketitle@end
12843 }%
12844 }%
12845 \def\Hy@maketitle@optarg[#1]{%
12846 \HyOrg@maketitle[{#1}]%
12847 \Hy@maketitle@end
12848 }%
12849 \def\Hy@maketitle@end{%
12850 \ifx\@footnotemark\H@@footnotemark
12851 \let\@footnotemark\Hy@saved@footnotemark
12852 \fi
12853 \ifx\@footnotetext\H@@footnotetext
12854 \let\@footnotetext\Hy@saved@footnotetext
12855 \fi
12856 \ifx\@RTLfootnotetext\HRTL@@RTLfootnotetext
12857 \let\@RTLfootnotetext\HyRTL@saved@RTLfootnotetext
12858 \fi
12859 \ifx\@LTRfootnotetext\HLTR@@LTRfootnotetext
12860 \let\@LTRfootnotetext\HyLTR@saved@LTRfootnotetext
12861 \fi
12862 }%
12863 \def\realfootnote{%
12864 \@ifnextchar[\@xfootnote{%
12865 \stepcounter{\@mpfn}%
12866 \protected@xdef\@thefnmark{\thempfn}%
12867 \H@@footnotemark\H@@footnotetext
12868 }%
12869 }%
12870 \fi
12871 \def\Hy@BeginAnnot#1{%
12872 \ifmmode\else\beginL\fi%
12873 \global\advance\c@Hy@AnnotLevel\@ne
12874 \ifnum\c@Hy@AnnotLevel=\@ne
12875 #1%
12876 \fi
12877 }
12878 \def\Hy@EndAnnot{%
12879 \ifnum\c@Hy@AnnotLevel=\@ne
12880 \Hy@endcolorlink
12881 \@pdfm@mark{eann}%
12882 \fi
12883 \global\advance\c@Hy@AnnotLevel\m@ne
12884 \ifmmode\else\endL\fi%
12885 }
12886 \def\hyper@link#1#2#3{%
12887 \hyper@linkstart{#1}{#2}\ifmmode\else\if@RTL\beginR\fi\fi#3\ifmmode\else\if@RTL\endR\fi\fi\H
12888 }
12889 \def\hyper@linkfile#1#2#3{%

File hyperref-xetex-bidi.def 265


12890 \leavevmode
12891 \Hy@BeginAnnot{%
12892 \def\Hy@pstringF{#2}%
12893 \Hy@CleanupFile\Hy@pstringF
12894 \Hy@pstringdef\Hy@pstringF\Hy@pstringF
12895 \Hy@pstringdef\Hy@pstringD{#3}%
12896 \Hy@MakeRemoteAction
12897 \@pdfm@mark{%
12898 bann<<%
12899 /Type/Annot%
12900 /Subtype/Link%
12901 \ifHy@pdfa /F 4\fi
12902 \Hy@setpdfborder
12903 \ifx\@filebordercolor\relax
12904 \else
12905 /C[\@filebordercolor]%
12906 \fi
12907 /A<<%
12908 /S/GoToR%
12909 /F(\Hy@pstringF)%
12910 /D%
12911 \ifx\\#3\\%
12912 [\Hy@href@page\@pdfremotestartview]%
12913 \else
12914 (\Hy@pstringD)%
12915 \fi
12916 \Hy@SetNewWindow
12917 \Hy@href@nextactionraw
12918 >>%
12919 >>%
12920 }%
12921 \Hy@colorlink\@filecolor
12922 }%
12923 \ifmmode\else\if@RTL\beginR\fi\fi#1\ifmmode\else\if@RTL\endR\fi\fi\Hy@xspace@end
12924 \Hy@EndAnnot
12925 }
12926 \def\@hyper@launch run:#1\\#2#3{% filename, anchor text linkname
12927 \leavevmode
12928 \Hy@BeginAnnot{%
12929 \Hy@pstringdef\Hy@pstringF{#1}%
12930 \Hy@pstringdef\Hy@pstringP{#3}%
12931 \@pdfm@mark{%
12932 bann<<%
12933 /Type/Annot%
12934 /Subtype/Link%
12935 \ifHy@pdfa /F 4\fi
12936 \Hy@setpdfborder
12937 \ifx\@runbordercolor\relax
12938 \else
12939 /C[\@runbordercolor]%

File hyperref-xetex-bidi.def 266


12940 \fi
12941 /A<<%
12942 /F(\Hy@pstringF)%
12943 /S/Launch%
12944 \Hy@SetNewWindow
12945 \ifx\\#3\\%
12946 \else
12947 /Win<</P(\Hy@pstringP)/F(\Hy@pstringF)>>%
12948 \fi
12949 \Hy@href@nextactionraw
12950 >>%
12951 >>%
12952 }%
12953 \Hy@colorlink\@runcolor
12954 }%
12955 \ifmmode\else\if@RTL\beginR\fi\fi#2\ifmmode\else\if@RTL\endR\fi\fi\Hy@xspace@end
12956 \Hy@EndAnnot
12957 }
12958 \def\hyper@linkurl#1#2{%
12959 \leavevmode
12960 \Hy@BeginAnnot{%
12961 \Hy@pstringdef\Hy@pstringURI{#2}%
12962 \@pdfm@mark{%
12963 bann<<%
12964 /Type/Annot%
12965 /Subtype/Link%
12966 \ifHy@pdfa /F 4\fi
12967 \Hy@setpdfborder
12968 \ifx\@urlbordercolor\relax
12969 \else
12970 /C[\@urlbordercolor]%
12971 \fi
12972 /A<<%
12973 /S/URI%
12974 /URI(\Hy@pstringURI)%
12975 \ifHy@href@ismap
12976 /IsMap true%
12977 \fi
12978 \Hy@href@nextactionraw
12979 >>%
12980 >>%
12981 }%
12982 \Hy@colorlink\@urlcolor
12983 }%
12984 \ifmmode\else\if@RTL\beginR\fi\fi#1\ifmmode\else\if@RTL\endR\fi\fi\Hy@xspace@end
12985 \Hy@EndAnnot
12986 }
12987 \def\Acrobatmenu#1#2{%
12988 \Hy@Acrobatmenu{#1}{#2}{%
12989 \Hy@BeginAnnot{%

File hyperref-xetex-bidi.def 267


12990 \EdefEscapeName\Hy@temp@menu{#1}%
12991 \@pdfm@mark{%
12992 bann<<%
12993 /Type/Annot%
12994 /Subtype/Link%
12995 \ifHy@pdfa /F 4\fi
12996 \Hy@setpdfborder
12997 \ifx\@menubordercolor\relax
12998 \else
12999 /C[\@menubordercolor]%
13000 \fi
13001 /A<<%
13002 /S/Named%
13003 /N/\Hy@temp@menu
13004 \Hy@href@nextactionraw
13005 >>%
13006 >>%
13007 }%
13008 \Hy@colorlink\@menucolor
13009 }%
13010 \ifmmode\else\if@RTL\beginR\fi\fi#2\ifmmode\else\if@RTL\endR\fi\fi\Hy@xspace@end
13011 \Hy@EndAnnot
13012 }%
13013 }
13014 \def\hyper@natlinkstart#1{%
13015 \Hy@backout{#1}%
13016 \hyper@linkstart{cite}{cite.#1}\if@RTL\beginR\fi%
13017 \def\hyper@nat@current{#1}%
13018 }
13019 \def\hyper@natlinkend{%
13020 \if@RTL\endR\fi\hyper@linkend
13021 }
13022 \def\hyper@natlinkbreak#1#2{%
13023 \if@RTL\endR\fi\hyper@linkend#1\hyper@linkstart{cite}{cite.#2}\if@RTL\beginR\fi%
13024 }%
13025 }
13026 \pdfstringdefDisableCommands{%
13027 \let\LRE\@firstofone
13028 \let\LR\@firstofone
13029 \let\RLE\@firstofone
13030 \let\RL\@firstofone
13031 \def\XeTeX{Xe\TeX}%
13032 \def\XeLaTeX{Xe\LaTeX}%
13033 }
13034 \@ifpackageloaded{longtable}{%
13035 \begingroup
13036 \def\y{\LT@array}%
13037 \@ifundefined{scr@LT@array}{%
13038 \@ifundefined{adl@LT@array}{}{\def\y{\adl@LT@array}}%
13039 }{\def\y{\scr@LT@array}}%

File hyperref-xetex-bidi.def 268


13040 \long\def\x\refstepcounter#1#2\@sharp#3#4\@nil{%
13041 \expandafter\endgroup
13042 \expandafter\def\y[##1]##2{%
13043 \H@refstepcounter{#1}%
13044 \hyper@makecurrent{table}%
13045 \let\Hy@LT@currentHref\@currentHref
13046 #2\@sharp#####4%
13047 }%
13048 }%
13049 \expandafter\expandafter\expandafter\x\y[{#1}]{#2}\@nil
13050 \begingroup
13051 \def\x#1\ifvoid\LT@foot#2\fi#3\@nil{%
13052 \endgroup
13053 \def\LT@start{%
13054 #1%
13055 \ifvoid\LT@foot#2\fi
13056 \let\@currentHref\Hy@LT@currentHref
13057 \Hy@raisedlink{%
13058 \hyper@anchorstart{\@currentHref}\hyper@anchorend
13059 }%
13060 #3%
13061 }%
13062 }%
13063 \expandafter\x\LT@start\@nil
13064 }{}
13065 \bidi@patchcmd\@TextField{%
13066 \@pdfm@mark
13067 }{%
13068 \if@RTL
13069 \hskip\Fld@width
13070 \fi
13071 \@pdfm@mark
13072 }{}{}
13073 \bidi@patchcmd\@TextField{%
13074 \unhbox
13075 }{%
13076 \if@RTL
13077 \hskip-\Fld@width
13078 \fi
13079 \unhbox
13080 }{}{}
13081 \bidi@patchcmd\@@Radio{%
13082 \@pdfm@mark
13083 }{%
13084 \if@RTL
13085 \hskip\Fld@width
13086 \fi
13087 \@pdfm@mark
13088 }{}{}
13089 \bidi@patchcmd\@@Radio{%

File hyperref-xetex-bidi.def 269


13090 \unhcopy
13091 }{%
13092 \if@RTL
13093 \hskip-\Fld@width
13094 \fi
13095 \unhcopy
13096 }{}{}
13097 \bidi@patchcmd\@Submit{%
13098 \@pdfm@mark
13099 }{%
13100 \if@RTL
13101 \null
13102 \hskip\wd\pdfm@box
13103 \fi
13104 \@pdfm@mark
13105 }{}{}
13106 \bidi@patchcmd\@Submit{%
13107 \unhbox
13108 }{%
13109 \if@RTL
13110 \hskip-\wd\pdfm@box
13111 \fi
13112 \unhbox
13113 }{}{}
13114 \bidi@patchcmd\@Reset{%
13115 \@pdfm@mark
13116 }{%
13117 \if@RTL
13118 \null
13119 \hskip\wd\pdfm@box
13120 \fi
13121 \@pdfm@mark
13122 }{}{}
13123 \bidi@patchcmd\@Reset{%
13124 \unhbox
13125 }{%
13126 \if@RTL
13127 \hskip-\wd\pdfm@box
13128 \fi
13129 \unhbox
13130 }{}{}

71 File imsproc-xetex-bidi.def
13131 \ProvidesFile{imsproc-xetex-bidi.def}[2017/06/09 v0.1 bidi adaptations for imsproc class for X
13132 \newenvironment{thebibliography}[1]{%
13133 \@bibtitlestyle
13134 \normalfont\bibliofont\labelsep .5em\relax
13135 \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
13136 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi

File imsproc-xetex-bidi.def 270


13137 \bidi@@thebibliography@font@hook
13138 \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
13139 \leftmargin\labelwidth \advance\leftmargin\labelsep
13140 \usecounter{enumiv}}%
13141 \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
13142 \sfcode`\.=\@m
13143 }{%
13144 \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
13145 \endlist
13146 }
13147
13148 \def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
13149 \columnseprule\z@ \columnsep 35\p@
13150 \@indextitlestyle
13151 \thispagestyle{plain}%
13152 \let\item\@idxitem
13153 \parindent\z@ \parskip\z@\@plus.3\p@\relax
13154 \if@RTL\raggedleft\else\raggedright\fi
13155 \hyphenpenalty\@M
13156 \footnotesize}
13157 \def\@idxitem{\par\hangindent \if@RTL-\fi2em}
13158 \def\subitem{\par\hangindent \if@RTL-\fi2em\hspace*{1em}}
13159 \def\subsubitem{\par\hangindent \if@RTL-\fi3em\hspace*{2em}}
13160
13161 \def\right@footnoterule{%
13162 \kern-.4\p@
13163 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-5pc\relax \hrulefill }
13164 \kern11\p@\kern-\footnotesep}
13165 \def\left@footnoterule{\kern-.4\p@
13166 \hrule\@width 5pc\kern11\p@\kern-\footnotesep}
13167 \def\@makefnmark{%
13168 \leavevmode
13169 \raise.9ex\hbox{\fontsize\sf@size\z@\normalfont\@thefnmark}%
13170 }
13171
13172 \def\part{\@startsection{part}{0}%
13173 \z@{\linespacing\@plus\linespacing}{.5\linespacing}%
13174 {\normalfont\bfseries\if@RTL\raggedleft\else\raggedright\fi}}
13175 \def\@tocline#1#2#3#4#5#6#7{\relax
13176 \ifnum #1>\c@tocdepth % then omit
13177 \else
13178 \par \addpenalty\@secpenalty\addvspace{#2}%
13179 \begingroup \hyphenpenalty\@M
13180 \@ifempty{#4}{%
13181 \@tempdima\csname r@tocindent\number#1\endcsname\relax
13182 }{%
13183 \@tempdima#4\relax
13184 }%
13185 \parindent\z@ \if@RTL\rightskip\else\leftskip\fi#3\relax \advance\if@RTL\rightskip\else\le
13186 \if@RTL\leftskip\else\rightskip\fi\@pnumwidth plus4em \parfillskip-\@pnumwidth

File imsproc-xetex-bidi.def 271


13187 #5\leavevmode\hskip-\@tempdima #6\nobreak\relax
13188 \hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
13189 \nobreak
13190 \endgroup
13191 \fi}
13192 \renewcommand\thesubsection {\thesection\@SepMark\arabic{subsection}}
13193 \renewcommand\thesubsubsection {\thesubsection \@SepMark\arabic{subsubsection}}
13194 \renewcommand\theparagraph {\thesubsubsection\@SepMark\arabic{paragraph}}
13195 \renewcommand\thesubparagraph {\theparagraph\@SepMark\arabic{subparagraph}}
13196 \def\maketitle{\par
13197 \@topnum\z@ % this prevents figures from falling at the top of page 1
13198 \@setcopyright
13199 \thispagestyle{firstpage}% this sets first page specifications
13200 \uppercasenonmath\shorttitle
13201 \ifx\@empty\shortauthors \let\shortauthors\shorttitle
13202 \else \andify\shortauthors
13203 \fi
13204 \@maketitle@hook
13205 \begingroup
13206 \@maketitle
13207 \toks@\@xp{\shortauthors}\@temptokena\@xp{\shorttitle}%
13208 \toks4{\def\\{ \ignorespaces}}% defend against questionable usage
13209 \edef\@tempa{%
13210 \@nx\markboth{\the\toks4
13211 \@nx\MakeUppercase{\the\toks@}}{\the\@temptokena}}%
13212 \@tempa
13213 \endgroup
13214 \c@footnote\z@
13215 \@cleartopmattertags
13216 }

72 File leqno-xetex-bidi.def
13217 \ProvidesFile{leqno-xetex-bidi.def}[2018/01/07 v0.2 bidi adaptations for leqno tag for XeTeX e
13218 \renewcommand\@eqnnum{\hb@[email protected]\p@{}%
13219 \rlap{\hskip -\displaywidth
13220 {\normalfont\normalcolor\if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi

73 File letter-xetex-bidi.def
13221 \ProvidesFile{letter-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for standard letter clas
13222 \renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
13223 \thispagestyle{firstpage}%
13224 {\if@RTL\raggedright\else\raggedleft\fi\@date\par}%
13225 \else % home address
13226 \thispagestyle{empty}%
13227 {\if@RTL\raggedright\else\raggedleft\fi\if@RTL\begin{tabular}{r@{}}\else\begin{tabular}{l@
13228 \fromaddress \\*[2\parskip]%
13229 \@date \end{tabular}\par}%
13230 \fi

File letter-xetex-bidi.def 272


13231 \vspace{2\parskip}%
13232 {\if@RTL\raggedleft\else\raggedright\fi \toname \\ \toaddress \par}%
13233 \vspace{2\parskip}%
13234 #1\par\nobreak}
13235 \renewcommand\left@footnoterule{%
13236 \kern-\p@
13237 \hrule \@width .4\columnwidth
13238 \kern .6\p@}
13239 \renewcommand\right@footnoterule{%
13240 \kern-\p@
13241 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
13242 \kern .6\p@}

74 File lettrine-xetex-bidi.def
13243 \ProvidesFile{lettrine-xetex-bidi.def}[2019/05/01 v0.7 bidi adaptations for lettrine package f
13244 \def\@lettrine[#1]#2#3{%
13245 \def\l@initial{#2}\let\l@refstring\l@initial
13246 \setcounter{L@lines}{\value{DefaultLines}}%
13247 \setcounter{L@depth}{\value{DefaultDepth}}%
13248 \renewcommand*{\L@hang}{\DefaultLhang}%
13249 \renewcommand*{\L@oversize}{\DefaultLoversize}%
13250 \renewcommand*{\L@raise}{\DefaultLraise}%
13251 \renewcommand*{\L@ante}{}%
13252 \setlength{\L@Findent}{\DefaultFindent}%
13253 \setlength{\L@Nindent}{\DefaultNindent}%
13254 \setlength{\L@slope}{\DefaultSlope}%
13255 \setlength{\L@novskip}{\DiscardVskip}%
13256 \ifLettrineImage\L@imagetrue\else\L@imagefalse\fi
13257 \ifLettrineOnGrid\L@gridtrue\else\L@gridfalse\fi
13258 \ifLettrineRealHeight\L@realhtrue\else\L@realhfalse\fi
13259 \ifLettrineSelfRef\L@selfreftrue\else\L@selfreffalse\fi
13260 \setkeys{L}{#1}%
13261 \sbox{\L@tbox}{\LettrineTextFont{\LettrineSecondString}}%
13262 \ifL@realh
13263 \def\@tempa{#3}%
13264 \ifx\@tempa\@empty
13265 \PackageWarning{lettrine.sty}%
13266 {Empty second argument,\MessageBreak
13267 ignoring option `realheight';}%
13268 \else
13269 \sbox{\L@tbox}{\LettrineTextFont{#3}}%
13270 \fi
13271 \fi
13272 \if\DefaultOptionsFile\relax
13273 \else
13274 \begingroup
13275 \InputIfFileExists{\DefaultOptionsFile}%
13276 {}%
13277 {\PackageWarning{lettrine.sty}%

File lettrine-xetex-bidi.def 273


13278 {File \DefaultOptionsFile\space not found}%
13279 }%
13280 \def\color##1##{\l@color{##1}}%
13281 \let\l@color\@gobbletwo
13282 \def\textcolor##1##{\l@textcolor{##1}}%
13283 \def\l@textcolor##1##2##3{##3}%
13284 \expandafter\ifx\csname l@#2-keys\endcsname\relax
13285 \gdef\l@LOKeys{}%
13286 \else
13287 \xdef\l@LOKeys{\csname l@#2-keys\endcsname}%
13288 \fi
13289 \endgroup
13290 \def\KV@prefix{KV@L@}%
13291 \let\@tempc\relax
13292 \expandafter\KV@do\l@LOKeys,\relax,
13293 \setupL@lbox
13294 \setlength{\LettrineWidth}{\wd\L@lbox}%
13295 \def\KV@prefix{KV@L@}%
13296 \let\@tempc\relax
13297 \expandafter\KV@do\l@LOKeys,\relax,
13298 \setkeys{L}{#1}%
13299 \fi
13300 \setupL@lbox
13301 \setlength{\LettrineWidth}{\wd\L@lbox}%
13302 \setlength{\LettrineHeight}{\ht\L@lbox}%
13303 \setlength{\LettrineDepth}{\dp\L@lbox}%
13304 \begingroup
13305 \def\IeC##1{##1}%
13306 \@tempdima=\L@oversize pt\relax
13307 \PackageInfo{lettrine.sty}%
13308 {Targeted height = \the\L@target@tht\MessageBreak
13309 (no accent, loversize=0),\MessageBreak
13310 Lettrine height = \the\LettrineHeight\space (#2)%
13311 \ifdim\@tempdima=\z@\else\space loversize=\L@oversize\fi;%
13312 \MessageBreak reported}%
13313 \endgroup
13314 \sbox{\L@tbox}{\LettrineTextFont{#3}}%
13315 \setlength{\L@first}{\LettrineHeight}%
13316 \setlength{\L@lraise}{\L@raise\L@target@tht}%
13317 \addtolength{\L@first}{\L@lraise}%
13318 \ifnum\value{L@lines}=1
13319 \addtolength{\L@first}{-\ht\L@tbox}%
13320 \else
13321 \addtolength{\L@first}{-\L@target@tht}%
13322 \addtolength{\L@lraise}{-\L@target@dp}%
13323 \fi
13324 \par
13325 \ifdim\L@first>\L@novskip
13326 \ifL@grid
13327 \@tempdima=\baselineskip

File lettrine-xetex-bidi.def 274


13328 \@tempdimb=\@tempdima
13329 \advance\@tempdimb by \L@novskip
13330 \@tempcnta=1
13331 \loop\ifdim\L@first>\@tempdimb
13332 \advance\@tempcnta by 1
13333 \advance\L@first by -\@tempdima
13334 \repeat
13335 \L@first=\@tempcnta\baselineskip
13336 \fi
13337 \vskip\L@first
13338 \fi
13339 \setlength{\L@Pindent}{\wd\L@lbox}%
13340 \addtolength{\L@Pindent}{-\L@hang\wd\L@lbox}%
13341 \settowidth{\L@first}{\L@ante}%
13342 \addtolength{\L@Pindent}{\L@first}%
13343 \addtolength{\L@Pindent}{\L@Findent}%
13344 \setlength{\L@first}{\linewidth}%
13345 \addtolength{\L@first}{-\L@Pindent}%
13346 \addtolength{\L@Nindent}{\L@Pindent}%
13347 \setlength{\L@next}{\linewidth}%
13348 \addtolength{\L@next}{-\L@Nindent}%
13349 \addtolength{\L@Pindent}{\@totalleftmargin}%
13350 \addtolength{\L@Nindent}{\@totalleftmargin}%
13351 \addtocounter{L@lines}{1}%
13352 \addtocounter{L@lines}{\value{L@depth}}%
13353 \if@RTL
13354 \def\L@parshape{\c@L@lines \z@ \the\L@first}%
13355 \else
13356 \def\L@parshape{\c@L@lines \the\L@Pindent \the\L@first}%
13357 \fi
13358 \@tempcnta=\tw@
13359 \@whilenum \@tempcnta<\c@L@lines\do{%
13360 \if@RTL
13361 \edef\L@parshape{\L@parshape \z@ \the\L@next}%
13362 \else
13363 \edef\L@parshape{\L@parshape \the\L@Nindent \the\L@next}%
13364 \fi
13365 \addtolength{\L@Nindent}{\L@slope}%
13366 \addtolength{\L@next}{-\L@slope}%
13367 \advance\@tempcnta\@ne}%
13368 \if@RTL
13369 \edef\L@parshape{\L@parshape \z@ \the\linewidth}%
13370 \else
13371 \edef\L@parshape{\L@parshape \@totalleftmargin \the\linewidth}%
13372 \fi
13373 \noindent
13374 \parshape=\L@parshape\relax
13375 \smash{\llap{\mbox{\L@ante}\raisebox{\L@lraise}{\usebox{\L@lbox}}%
13376 \hskip \the\L@Findent}}%
13377 \usebox{\L@tbox}%

File lettrine-xetex-bidi.def 275


13378 \ifnum\@listdepth>0 \Lreset@listparshape \fi
13379 }

75 File lineno-xetex-bidi.def
13380 \ProvidesFile{lineno-xetex-bidi.def}[2018/01/28 v0.2 bidi adaptations for lineno package for X
13381 \bidi@patchcmd{\MakeLineNo}{%
13382 \hb@xt@\z@{\makeLineNumber}%
13383 }{%
13384 \hboxL to \z@{\makeLineNumber}%
13385 }{}{}
13386
13387 \bidi@patchcmd{\makeLineNumberLeft}{\LineNumber}{%
13388 \if@RTL
13389 \hb@xt@\linenumberwidth{\LineNumber\hss}%
13390 \else
13391 \LineNumber
13392 \fi
13393 }{}{}
13394
13395 \bidi@patchcmd{\makeLineNumberRight}{%
13396 \hb@xt@\linenumberwidth{\hss\LineNumber}%
13397 }{%
13398 \if@RTL
13399 \LineNumber
13400 \else
13401 \hb@xt@\linenumberwidth{\hss\LineNumber}%
13402 \fi
13403 }{}{}
13404
13405 \bidi@AfterPreamble{%
13406 \if@RTLmain
13407 \rightlinenumbers*
13408 \else
13409 \leftlinenumbers*
13410 \fi
13411 \@ifpackagewith{lineno}{left}{%
13412 \leftlinenumbers*
13413 }{}
13414 \@ifpackagewith{lineno}{right}{%
13415 \rightlinenumbers*
13416 }{}
13417 }
13418

76 File listings-xetex-bidi.def
13419 \ProvidesFile{listings-xetex-bidi.def}[2018/09/15 v1.5 bidi adaptations for listings package f
13420 \lst@Key{captiondirection}{textdirection}{%
13421 \lstKV@SwitchCases{#1}%

File listings-xetex-bidi.def 276


13422 {textdirection:\\%
13423 RTL:\chardef\bidi@lst@caption@direction\@ne\\%
13424 LTR:\chardef\bidi@lst@caption@direction\z@%
13425 }{\PackageError{Listings}{direction #1 unknown}\@ehc}}
13426
13427 \lst@Key{captionscript}{textscript}{%
13428 \lstKV@SwitchCases{#1}%
13429 {textscript:\\%
13430 latin:\chardef\bidi@lst@caption@script\@ne\\%
13431 nonlatin:\chardef\bidi@lst@caption@script\z@%
13432 }{\PackageError{Listings}{direction #1 unknown}\@ehc}}
13433
13434 \newcommand*{\bidi@lst@ensure@caption@direction}[2]{%
13435 \@ifundefined{bidi@lst@caption@direction}{}{%
13436 \ifnum\bidi@lst@caption@direction=\z@%
13437 #1%
13438 \else%
13439 \ifnum\bidi@lst@caption@direction=\@ne%
13440 #2%
13441 \fi%
13442 \fi%
13443 }}
13444
13445 \newcommand*{\bidi@lst@ensure@caption@script}[2]{%
13446 \@ifundefined{bidi@lst@caption@script}{}{%
13447 \ifnum\bidi@lst@caption@script=\z@%
13448 #1%
13449 \else%
13450 \ifnum\bidi@lst@caption@script=\@ne%
13451 #2%
13452 \fi%
13453 \fi%
13454 }}
13455
13456 \long\def\@bidi@lst@makecaption#1#2{%
13457 \bidi@lst@ensure@caption@script{\@nonlatintrue}{\@nonlatinfalse}%
13458 \vskip\abovecaptionskip
13459 \bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLtrue}%
13460 \sbox\@tempboxa{%
13461 \bidi@lst@ensure@caption@direction{\beginL}{\beginR}%
13462 #1: #2%
13463 \bidi@lst@ensure@caption@direction{\endL}{\endR}%
13464 }%
13465 \ifdim \wd\@tempboxa >\hsize
13466 #1: #2\par
13467 \else
13468 \global \@minipagefalse
13469 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
13470 \fi
13471 \vskip\belowcaptionskip}%

File listings-xetex-bidi.def 277


13472 \def\lst@makecaption{\@bidi@lst@makecaption}
13473 \def\lst@maketitle{\@bidi@lst@makecaption\lst@title@dropdelim}
13474 \bidi@AtEndPreamble{%
13475 \bidi@patchcmd{\lst@MakeCaption}{%
13476 \ifx #1t%
13477 \ifx\lst@@caption\@empty\expandafter\lst@HRefStepCounter \else
13478 \expandafter\refstepcounter
13479 \fi {lstlisting}%
13480 }{%
13481 \ifx #1t%
13482 \bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLtrue}%
13483 \ifx\lst@@caption\@empty\expandafter\lst@HRefStepCounter \else
13484 \expandafter\refstepcounter
13485 \fi {lstlisting}%
13486 \bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLfalse}%
13487 }{}{}%
13488 \bidi@patchcmd{\lst@MakeCaption}{%
13489 \addcontentsline{lol}{lstlisting}%
13490 {\protect\numberline{\thelstlisting}\lst@@caption}%
13491 }{%
13492 \begingroup%
13493 \bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLtrue}%
13494 \addcontentsline{lol}{lstlisting}%
13495 {\protect\numberline{\thelstlisting}\lst@@caption}%
13496 \endgroup%
13497 }{}{}%
13498 }
13499 \@ifpackageloaded{caption}{%
13500 \AtBeginCaption{%
13501 \bidi@lst@ensure@caption@script{\@nonlatintrue}{\@nonlatinfalse}%
13502 \bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLtrue}%
13503 }
13504 \let\@bidi@lst@makecaption\caption@makecaption%
13505 \def\lst@makecaption{\caption@starfalse\@bidi@lst@makecaption}%
13506 \def\lst@maketitle{\caption@startrue\@bidi@lst@makecaption\@empty}%
13507 }{%
13508 \AtBeginDocument{%
13509 \@ifundefined{captionlabelfalse}{}{%
13510 \def\lst@maketitle{\captionlabelfalse\@bidi@lst@makecaption\@empty}}%
13511 \@ifundefined{caption@startrue}{}{%
13512 \def\lst@maketitle{\caption@startrue\@bidi@lst@makecaption\@empty}}%
13513 }%
13514 }
13515 \AtBeginDocument{
13516 \@ifundefined{thechapter}{\let\lst@ifnumberbychapter\iffalse}{}
13517 \lst@ifnumberbychapter
13518 \gdef\thelstlisting%
13519 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@lstlisting}
13520 \else
13521 \gdef\thelstlisting{\@arabic\c@lstlisting}

File listings-xetex-bidi.def 278


13522 \fi}

77 File loadingorder-xetex-bidi.def
13523 \ProvidesFile{loadingorder-xetex-bidi.def}[2017/12/29 v0.97 making sure that bidi is the last
13524 \bidi@isloaded{amsmath}
13525 \bidi@isloaded{amstext}
13526 \bidi@isloaded{amsthm}
13527 \bidi@isloaded{animate}
13528 \bidi@isloaded{breqn}
13529 \bidi@isloaded{cals}
13530 \bidi@isloaded{caption}
13531 \bidi@isloaded{crop}
13532 \bidi@isloaded{cuted}
13533 \bidi@isloaded{cutwin}
13534 \bidi@isloaded{color}
13535 \bidi@isloaded{dblfnote}
13536 \bidi@isloaded{diagbox}
13537 \bidi@isloaded{xcolor}
13538 \bidi@isloaded{colortbl}
13539 \bidi@isloaded{float}
13540 \bidi@isloaded{floatrow}
13541 \bidi@isloaded{flowfram}
13542 \bidi@isloaded{framed}
13543 \bidi@isloaded{ftnright}
13544 \bidi@isloaded{xltxtra}
13545 \bidi@isloaded{xunicode}
13546 \bidi@isloaded{wrapfig}
13547 \bidi@isloaded{graphicx}
13548 \bidi@isloaded{geometry}
13549 \bidi@isloaded{hvfloat}
13550 \bidi@isloaded{mdframed}
13551 \bidi@isloaded{midfloat}
13552 \bidi@isloaded{ntheorem}
13553 \bidi@isloaded{ntheorem-hyper}
13554 \bidi@isloaded{hyperref}
13555 \bidi@isloaded{fancybox}
13556 \bidi@isloaded{fancyhdr}
13557 \bidi@isloaded{fix2col}
13558 \bidi@isloaded{draftwatermark}
13559 \bidi@isloaded{empheq}
13560 \bidi@isloaded{overpic}
13561 \bidi@isloaded{pdfpages}
13562 \bidi@isloaded{listings}
13563 \bidi@isloaded{lettrine}
13564 \bidi@isloaded{lineno}
13565 \bidi@isloaded{media9}
13566 \bidi@isloaded{pstricks}
13567 \bidi@isloaded{pgf}
13568 \bidi@isloaded{picinpar}

File loadingorder-xetex-bidi.def 279


13569 \bidi@isloaded{quotchap}
13570 \bidi@isloaded{tikz}
13571 \bidi@isloaded{titlesec}
13572 \bidi@isloaded{titletoc}
13573 \bidi@isloaded{array}
13574 \bidi@isloaded{soul}
13575 \bidi@isloaded{stabular}
13576 \bidi@isloaded{subfig}
13577 \bidi@isloaded{subfigure}
13578 \bidi@isloaded{supertabular}
13579 \bidi@isloaded{xtab}
13580 \bidi@isloaded{longtable}
13581 \bidi@isloaded{arydshln}
13582 \bidi@isloaded{multicol}
13583 \bidi@isloaded{multienum}
13584 \bidi@isloaded{minitoc}
13585 \bidi@isloaded{natbib}
13586 \bidi@isloaded{newfloat}
13587 \bidi@isloaded{ragged2e}
13588 \bidi@isloaded{rotating}
13589 \bidi@isloaded{tabls}
13590 \bidi@isloaded{tabulary}
13591 \bidi@isloaded{tocbasic}
13592 \bidi@isloaded{tocstyle}
13593 \bidi@isloaded{tocbibind}
13594 \bidi@isloaded{fontspec}
13595 \bidi@isloaded{arabxetex}
13596 \bidi@isloaded{polyglossia}
13597 \bidi@isloaded{fancyvrb}
13598 \AtBeginDocument{
13599 \if@bidi@amsmathloaded@\else
13600 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package amsmath after bidi packag
13601 \fi%
13602 \if@bidi@amstextloaded@\else
13603 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package amstext after bidi packag
13604 \fi%
13605 \if@bidi@amsthmloaded@\else
13606 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package amsthm after bidi package
13607 \fi%
13608 \if@bidi@animateloaded@\else
13609 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package animate after bidi packag
13610 \fi%
13611 \if@bidi@breqnloaded@\else
13612 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package breqn after bidi package.
13613 \fi%
13614 \if@bidi@calsloaded@\else
13615 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package cals after bidi package.
13616 \fi%
13617 \if@bidi@captionloaded@\else
13618 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package caption after bidi packag

File loadingorder-xetex-bidi.def 280


13619 \fi%
13620 \if@bidi@croploaded@\else
13621 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package crop after bidi package.
13622 \fi%
13623 \if@bidi@colorloaded@\else
13624 \@ifpackageloaded{hyperref}{}{%
13625 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package color after bidi package.
13626 \fi%
13627 \if@bidi@cutwinloaded@\else
13628 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package cutwin after bidi package
13629 \fi%
13630 \if@bidi@cutedloaded@\else
13631 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package cuted after bidi package.
13632 \fi%
13633 \if@bidi@dblfnoteloaded@\else
13634 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package dblfnote after bidi packa
13635 \fi%
13636 \if@bidi@diagboxloaded@\else
13637 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package diagbox after bidi packag
13638 \fi%
13639 \if@bidi@xcolorloaded@\else
13640 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xcolor after bidi package
13641 \fi%
13642 \if@bidi@colortblloaded@\else
13643 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package colortbl after bidi packa
13644 \fi%
13645 \if@bidi@floatloaded@\else
13646 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package float after bidi package.
13647 \fi%
13648 \if@bidi@floatrowloaded@\else
13649 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package floatrow after bidi packa
13650 \fi%
13651 \if@bidi@flowframloaded@\else
13652 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package flowfram after bidi packa
13653 \fi%
13654 \if@bidi@framedloaded@\else
13655 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package framed after bidi package
13656 \fi%
13657 \if@bidi@ftnrightloaded@\else
13658 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package ftnright after bidi packa
13659 \fi%
13660 \if@bidi@xltxtraloaded@\else
13661 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xltxtra after bidi packag
13662 \fi%
13663 \if@bidi@xunicodeloaded@\else
13664 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xunicode after bidi packa
13665 \fi%
13666 \if@bidi@wrapfigloaded@\else
13667 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package wrapfig after bidi packag
13668 \fi%

File loadingorder-xetex-bidi.def 281


13669 \if@bidi@graphicxloaded@\else
13670 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package graphicx after bidi packa
13671 \fi%
13672 \if@bidi@geometryloaded@\else
13673 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package geometry after bidi packa
13674 \fi%
13675 \if@bidi@hvfloatloaded@\else
13676 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package hvfloat after bidi packag
13677 \fi%
13678 \if@bidi@mdframedloaded@\else
13679 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package mdframed after bidi packa
13680 \fi%
13681 \if@bidi@midfloatloaded@\else
13682 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package midfloat after bidi packa
13683 \fi%
13684 \if@bidi@ntheoremloaded@\else
13685 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package ntheorem after bidi packa
13686 \fi%
13687 \if@bidi@hyperrefloaded@\else
13688 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package hyperref after bidi packa
13689 \fi%
13690 \if@bidi@fancyboxloaded@\else
13691 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package fancybox after bidi packa
13692 \fi%
13693 \if@bidi@fancyhdrloaded@\else
13694 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package fancyhdr after bidi packa
13695 \fi%
13696 \if@bidi@draftwatermarkloaded@\else
13697 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package draftwatermark after bidi
13698 \fi%
13699 \if@bidi@empheqloaded@\else
13700 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package empheq after bidi package
13701 \fi%
13702 \if@bidi@overpicloaded@\else
13703 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package overpic after bidi packag
13704 \fi%
13705 \if@bidi@pdfpagesloaded@\else
13706 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package pdfpages after bidi packa
13707 \fi%
13708 \if@bidi@lettrineloaded@\else
13709 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package lettrine after bidi packa
13710 \fi%
13711 \if@bidi@linenoloaded@\else
13712 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package lineno after bidi package
13713 \fi%
13714 \if@bidi@listingsloaded@\else
13715 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package listings after bidi packa
13716 \fi%
13717 \csname if@bidi@media9loaded@\endcsname\else
13718 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package media9 after bidi package

File loadingorder-xetex-bidi.def 282


13719 \fi%
13720 \if@bidi@pstricksloaded@\else
13721 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package pstricks after bidi packa
13722 \fi%
13723 \if@bidi@pgfloaded@\else
13724 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package pgf after bidi package. P
13725 \fi%
13726 \if@bidi@picinparloaded@\else
13727 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package picinpar after bidi packa
13728 \fi%
13729 \if@bidi@quotchaploaded@\else
13730 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package quotchap after bidi packa
13731 \fi%
13732 \if@bidi@tikzloaded@\else
13733 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tikz after bidi package.
13734 \fi%
13735 \if@bidi@titlesecloaded@\else
13736 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package titlesec after bidi packa
13737 \fi%
13738 \if@bidi@titletocloaded@\else
13739 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package titletoc after bidi packa
13740 \fi%
13741 \if@bidi@arrayloaded@\else
13742 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package array after bidi package.
13743 \fi%
13744 \if@bidi@stabularloaded@\else
13745 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package stabular after bidi packa
13746 \fi%
13747 \if@bidi@soulloaded@\else
13748 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package soul after bidi package.
13749 \fi%
13750 \if@bidi@subfigloaded@\else
13751 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package subfig after bidi package
13752 \fi%
13753 \if@bidi@subfigureloaded@\else
13754 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package subfigure after bidi pack
13755 \fi%
13756 \if@bidi@supertabularloaded@\else
13757 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package supertabular after bidi p
13758 \fi%
13759 \if@bidi@xtabloaded@\else
13760 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xtab after bidi package.
13761 \fi%
13762 \if@bidi@longtableloaded@\else
13763 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package longtable after bidi pack
13764 \fi%
13765 \if@bidi@arydshlnloaded@\else
13766 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package arydshln after bidi packa
13767 \fi%
13768 \if@bidi@multicolloaded@\else

File loadingorder-xetex-bidi.def 283


13769 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package multicol after bidi packa
13770 \fi%
13771 \if@bidi@multienumloaded@\else
13772 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package multienum after bidi pack
13773 \fi%
13774 \if@bidi@minitocloaded@\else
13775 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package minitoc after bidi packag
13776 \fi%
13777 \if@bidi@natbibloaded@\else
13778 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package natbib after bidi package
13779 \fi%
13780 \if@bidi@newfloatloaded@\else
13781 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package newfloat after bidi packa
13782 \fi%
13783 \csname if@bidi@ragged2eloaded@\endcsname\else
13784 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package ragged2e after bidi packa
13785 \fi%
13786 \if@bidi@rotatingloaded@\else
13787 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package rotating after bidi packa
13788 \fi%
13789 \if@bidi@tablsloaded@\else
13790 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tabls after bidi package.
13791 \fi%
13792 \if@bidi@tabularyloaded@\else
13793 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tabulary after bidi packa
13794 \fi%
13795 \if@bidi@tocbasicloaded@\else
13796 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tocbasic after bidi packa
13797 \fi%
13798 \if@bidi@tocstyleloaded@\else
13799 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tocstyle after bidi packa
13800 \fi%
13801 \if@bidi@tocbibindloaded@\else
13802 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tocbibind after bidi pack
13803 \fi%
13804 \if@bidi@fontspecloaded@\else
13805 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package fontspec after bidi packa
13806 \fi%
13807 \if@bidi@arabxetexloaded@\else
13808 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package arabxetex after bidi pack
13809 \fi%
13810 \if@bidi@polyglossialoaded@\else
13811 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package polyglossia after bidi pa
13812 \fi%
13813 \if@bidi@fancyvrbloaded@\else
13814 \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package fancyvrb after bidi packa
13815 \fi%
13816 }

File loadingorder-xetex-bidi.def 284


78 File longtable-xetex-bidi.def
13817 \ProvidesFile{longtable-xetex-bidi.def}[2019/01/19 v0.5 bidi adaptations for longtable package
13818 \def\LT@array[#1]#2{%
13819 \refstepcounter{table}\stepcounter{LT@tables}%
13820 \if l#1%
13821 \if@RTLtab\LTleft\fill \LTright\z@\else\LTleft\z@ \LTright\fill\fi
13822 \else\if r#1%
13823 \if@RTLtab\LTleft\z@ \LTright\fill\else\LTleft\fill \LTright\z@\fi
13824 \else\if c#1%
13825 \LTleft\fill \LTright\fill
13826 \fi\fi\fi
13827 \let\LT@mcol\multicolumn
13828 \let\LT@@tabarray\@tabarray
13829 \let\LT@@hl\hline
13830 \def\@tabarray{%
13831 \let\hline\LT@@hl
13832 \LT@@tabarray}%
13833 \let\\\LT@tabularcr\let\tabularnewline\\%
13834 \def\newpage{\noalign{\break}}%
13835 \def\pagebreak{\noalign{\ifnum`}=0\fi\@testopt{\LT@no@pgbk-}4}%
13836 \def\nopagebreak{\noalign{\ifnum`}=0\fi\@testopt\LT@no@pgbk4}%
13837 \let\hline\LT@hline \let\kill\LT@kill\let\caption\LT@caption
13838 \@tempdima\ht\strutbox
13839 \let\@endpbox\LT@endpbox
13840 \ifx\extrarowheight\@undefined
13841 \let\@acol\@tabacol
13842 \let\@classz\@tabclassz \let\@classiv\@tabclassiv
13843 \def\@startpbox{\vtop\LT@startpbox}%
13844 \let\@@startpbox\@startpbox
13845 \let\@@endpbox\@endpbox
13846 \let\LT@LL@FM@cr\@tabularcr
13847 \else
13848 \advance\@tempdima\extrarowheight
13849 \col@sep\tabcolsep
13850 \let\@startpbox\LT@startpbox\let\LT@LL@FM@cr\@arraycr
13851 \fi
13852 \setbox\@arstrutbox\hbox{\vrule
13853 \@height \arraystretch \@tempdima
13854 \@depth \arraystretch \dp \strutbox
13855 \@width \z@}%
13856 \let\@sharp##\let\protect\relax
13857 \begingroup
13858 \@mkpream{#2}%
13859 \xdef\LT@bchunk{%
13860 \global\advance\c@LT@chunks\@ne
13861 \global\LT@rows\z@\setbox\z@\vbox\bgroup
13862 \LT@setprevdepth
13863 \tabskip\LTleft \noexpand\halign to\hsize\bgroup
13864 \tabskip\z@ \@arstrut \@preamble \tabskip\LTright \cr}%

File longtable-xetex-bidi.def 285


13865 \endgroup
13866 \expandafter\LT@nofcols\LT@bchunk&\LT@nofcols
13867 \LT@make@row
13868 \m@th\let\par\@empty
13869 \everycr{}\lineskip\z@\baselineskip\z@
13870 \LT@bchunk}
13871 \def\LT@makecaption#1#2#3{%
13872 \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{%
13873 \sbox\@tempboxa{\if@RTL\beginR\fi#1{#2: }#3\if@RTL\endR\fi}%
13874 \ifdim\wd\@tempboxa>\hsize
13875 #1{#2: }#3%
13876 \else
13877 \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
13878 \fi
13879 \endgraf\vskip\baselineskip}%
13880 \hss}}}
13881 \@ifpackageloaded{caption}{%
13882 \renewcommand\LT@makecaption[3]{%
13883 \caption@LT@make{%
13884 \caption@settype*\LTcaptype
13885 \ifdim\LTcapwidth=4in \else
13886 \setcaptionwidth\LTcapwidth
13887 \fi
13888 \caption@setoptions{longtable}%
13889 \caption@setoptions{@longtable}%
13890 \caption@LT@setup
13891 \caption@setautoposition{\ifcase\LT@rows t\else b\fi}%
13892 \caption@startrue#1\caption@starfalse
13893 \caption@prepare@stepcounter\LTcaptype{LT}%
13894 \caption@begin\LTcaptype
13895 \caption@normalsize
13896 \vskip-\ht\strutbox
13897 \caption@iftop{\vskip\belowcaptionskip}{\vskip\abovecaptionskip}%
13898 \caption@@make{#2}{#3}\endgraf
13899 \caption@iftop{\vskip\abovecaptionskip}{\vskip\belowcaptionskip}%
13900 \caption@end}}%
13901 }{}
13902 \def\LT@startpbox#1{%
13903 \bgroup\color@begingroup
13904 \let\@footnotetext\LT@p@ftntext
13905 \let\@LTRfootnotetext\LT@p@LTRftntext
13906 \let\@RTLfootnotetext\LT@p@RTLftntext
13907 \setlength\hsize{#1}%
13908 \@arrayparboxrestore
13909 \vrule \@height \ht\@arstrutbox \@width \z@}
13910 \def\LT@p@LTRftntext#1{%
13911 \edef\@tempa{\the\LT@p@ftn\noexpand\LTRfootnotetext[\the\c@footnote]}%
13912 \global\LT@p@ftn\expandafter{\@tempa{#1}}}%
13913 \def\LT@p@RTLftntext#1{%
13914 \edef\@tempa{\the\LT@p@ftn\noexpand\RTLfootnotetext[\the\c@footnote]}%

File longtable-xetex-bidi.def 286


13915 \global\LT@p@ftn\expandafter{\@tempa{#1}}}%
13916
13917
13918 \def\LT@output{%
13919 \ifnum\outputpenalty <-\@Mi
13920 \ifnum\outputpenalty > -\LT@end@pen
13921 \LT@err{floats and marginpars not allowed in a longtable}\@ehc
13922 \else
13923 \setbox\z@\vbox{\unvbox\@cclv}%
13924 \ifdim \ht\LT@lastfoot>\ht\LT@foot
13925 \dimen@\pagegoal
13926 \advance\dimen@-\ht\LT@lastfoot
13927 \ifdim\dimen@<\ht\z@
13928 \setbox\@cclv\vbox{\unvbox\z@\copy\LT@foot\vss}%
13929 \@makecol
13930 \@outputpage
13931 \setbox\z@\vbox{\box\LT@head}%
13932 \fi
13933 \fi
13934 \global\@colroom\@colht
13935 \global\vsize\@colht
13936 \vbox
13937 {\if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi\unvbox\z@\box\ifvoid\LT@lastfoot\LT@foot
13938 \fi
13939 \else
13940 \setbox\@cclv\vbox{\if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi\unvbox\@cclv\copy\LT@foot\
13941 \@makecol
13942 \@outputpage
13943 \global\vsize\@colroom
13944 \copy\LT@head\nobreak
13945 \fi}

79 File mathtools-xetex-bidi.def
13946 \ProvidesFile{mathtools-xetex-bidi.def}[2018/01/07 v0.1 bidi adaptations for mathtools package
13947 \MHInternalSyntaxOn
13948 \def\MT_define_tagform:nwnn #1[#2]#3#4{
13949 \@namedef{MT_tagform_#1:n}##1
13950 {\maketag@@@{\if@nonlatin\beginR\fi#3\kern\z@\ignorespaces#2{##1}\unskip\@@italiccorr#4\if
13951 }
13952 \renewtagform{default}{(}{)}
13953 \MHInternalSyntaxOff

80 File mdframed-xetex-bidi.def
13954 \ProvidesFile{mdframed-xetex-bidi.def}[2013/09/22 v0.4 bidi adaptations for mdframed package f
13955 \newif\if@bidi@mdf@RTL
13956 \def\mdf@lrbox#1{%
13957 \mdf@patchamsthm%patch amsthm
13958 \if@RTL\@bidi@mdf@RTLtrue\fi%

File mdframed-xetex-bidi.def 287


13959 \@RTLfalse%
13960 \setbox#1\vbox\bgroup%
13961 \color@begingroup%
13962 \if@bidi@mdf@RTL\@RTLtrue\fi%
13963 \mdf@horizontalmargin@equation%
13964 \columnwidth=\hsize%
13965 \textwidth=\hsize%
13966 \let\if@nobreak\iffalse%
13967 \let\if@noskipsec\iffalse%
13968 \let\par\@@par%
13969 \let\-\@dischyph%
13970 \let\'\@acci\let\`\@accii\let\=\@acciii%
13971 \parindent\z@ \parskip\z@skip%
13972 \linewidth\hsize%
13973 \@totalleftmargin\z@%
13974 \leftskip\z@skip \rightskip\z@skip \@rightskip\z@skip%
13975 \parfillskip\@flushglue \lineskip\normallineskip%
13976 \baselineskip\normalbaselineskip%
13977 %% \sloppy%
13978 \let\\\@normalcr%
13979 \mdf@par@local%New feature to restore parskip/parindent local in save box
13980 \ifbool{mdf@suppressfirstparskip}{\vspace*{-\parskip}}{}%
13981 \@afterindentfalse%
13982 %\@afterheading%
13983 }
13984 \renewrobustcmd\mdfframedtitleenv[1]{%
13985 \mdf@lrbox{\mdf@frametitlebox}%
13986 \mdf@frametitlealignment%
13987 \leavevmode{\color{\mdf@frametitlefontcolor}%
13988 \normalfont\mdf@frametitlefont{#1}
13989 \ifbool{mdf@ignorelastdescenders}%
13990 {%
13991 \par\strut\par
13992 \unskip\unskip\setbox0=\lastbox
13993 \vspace*{\dimexpr\ht\strutbox-\baselineskip\relax}%
13994 }{}}%
13995 \par\unskip\ifvmode\nointerlineskip\hrule \@height\z@ \@width\hsize\fi%%
13996 \endmdf@lrbox\relax%
13997 \mdf@ignorevbadness%
13998 \setbox\mdf@frametitlebox=\vbox{\unvbox\mdf@frametitlebox}%
13999 \mdfframetitleboxwidth=\wd\mdf@frametitlebox\relax%
14000 \mdfframetitleboxheight=\ht\mdf@frametitlebox\relax%
14001 \mdfframetitleboxdepth=\dp\mdf@frametitlebox\relax%
14002 \mdfframetitleboxtotalheight=\dimexpr
14003 \ht\mdf@frametitlebox
14004 +\dp\mdf@frametitlebox%
14005 +\mdf@frametitleaboveskip@length
14006 +\mdf@frametitlebelowskip@length
14007 \relax%
14008 }

File mdframed-xetex-bidi.def 288


14009
14010 \renewrobustcmd*\mdf@footnoteoutput{%
14011 \ifvoid\@mpfootins\else%
14012 \nobreak%
14013 \vskip\mdf@footenotedistance@length%
14014 \normalcolor%
14015 \bidi@mpfootnoterule%
14016 \unvbox\@mpfootins%
14017 \fi%
14018 }
14019
14020
14021 \renewrobustcmd*\mdf@footnoteinput{%
14022 \def\@mpfn{mpfootnote}%
14023 \def\thempfn{\thempfootnote}%
14024 \c@mpfootnote\z@%
14025 \let\@footnotetext\@mpfootnotetext%
14026 \let\@LTRfootnotetext\@mpLTRfootnotetext%
14027 \let\@RTLfootnotetext\@mpRTLfootnotetext%
14028 }

81 File bidi-media9.sty
14029 \ProvidesExplPackage{bidi-media9}{2017/08/27}{0.3}
14030 {bidi fixes for media9 package for the XeTeX engine}
14031
14032 \keys_define:nn{media9/mbtn}{
14033 draft .code:n = {},
14034 final .code:n = {},
14035
14036 tooltip .tl_gset_x:N = \g_mix_tooltip_tl,
14037 tooltip .value_required:n = {true},
14038
14039 overface .code:n = {
14040 \sbox\l_mix_poster_box{
14041 \bool_if:NTF\g_pbs_lscape_bool{\rotatebox{90}{#1}}{\if@RTL\beginR\fi#1\if@RTL\endR\fi}}
14042 \mix_pdfxform:n{\l_mix_poster_box}
14043 \tl_gset:Nx\g_mix_overbtn_tl{\mix_pdflastxform:}
14044 },
14045 overface .value_required:n = {true},
14046
14047 downface .code:n = {
14048 \sbox\l_mix_poster_box{
14049 \bool_if:NTF\g_pbs_lscape_bool{\rotatebox{90}{#1}}{\if@RTL\beginR\fi#1\if@RTL\endR\fi}}
14050 \mix_pdfxform:n{\l_mix_poster_box}
14051 \tl_gset:Nx\g_mix_downbtn_tl{\mix_pdflastxform:}
14052 },
14053 downface .value_required:n = {true},
14054
14055 3Dgotoview .code:n = {

File bidi-media9.sty 289


14056 \tl_set:Nx\l_tmpa_tl{#1} %extract ref
14057 \regex_replace_once:nnN{([^:]+):??.*}{\1}\l_tmpa_tl
14058 \tl_trim_spaces:N\l_tmpa_tl
14059 \tl_if_exist:cTF{ann@\l_tmpa_tl}{
14060 \str_if_eq_x:nnF{\tl_use:c{ann@\l_tmpa_tl}}{draft}{
14061 \tl_set:Nx\l_tmpb_tl{#1} %extract idx
14062 \regex_replace_once:nnN{[^:]+:?}{}\l_tmpb_tl
14063 \tl_trim_spaces:N\l_tmpb_tl
14064 \tl_if_blank:VF\l_tmpb_tl{
14065 \regex_match:nVTF{^[DFLNP]$}\l_tmpb_tl{
14066 \tl_set:Nx\l_mix_vidx_tl{/\l_tmpb_tl}
14067 }{
14068 \regex_match:nVTF{^\d+$}\l_tmpb_tl{
14069 \tl_set:Nx\l_mix_vidx_tl{~\l_tmpb_tl}
14070 }{
14071 \regex_replace_once:nnN{^\(\s*}{}\l_tmpb_tl
14072 \regex_replace_once:nnN{\s*\)$}{}\l_tmpb_tl
14073 \tl_set:Nx\l_mix_vidx_tl{~(\l_tmpb_tl)}
14074 }
14075 }
14076 }
14077 \mix_pdfobj:nnn{}{dict}{
14078 /S/JavaScript/JS~(
14079 if(typeof(annotRM)=='undefined'){annotRM=new~Array();}
14080 if(typeof(annotRM['\l_tmpa_tl'])=='undefined'){
14081 annotRM['\l_tmpa_tl']=
14082 this.getAnnotRichMedia(\tl_use:c{page@\l_tmpa_tl},'\l_tmpa_tl');
14083 }
14084 annotRM['\l_tmpa_tl'].activated=true;
14085 )
14086 \tl_if_blank:VF\l_tmpb_tl{
14087 /Next~<<
14088 /S/GoTo3DView
14089 /TA~\tl_use:c{ann@\l_tmpa_tl}
14090 /V\l_mix_vidx_tl
14091 >>
14092 }
14093 }
14094 \tl_gput_right:Nx\g_mix_btnactions_tl{~\mix_pdflastobj:}
14095 }
14096 }{
14097 \msg_warning:nnx{media9}{undefined~reference}{\l_tmpa_tl}
14098 \cs_if_exist:NF\g_mix_refundefwarned_tl{
14099 \tl_new:N\g_mix_refundefwarned_tl
14100 \AtEndDocument{\msg_warning:nn{media9}{undefined~references}}
14101 }
14102 }
14103 },
14104 3Dgotoview .value_required:n = {true},
14105

File bidi-media9.sty 290


14106 mediacommand .code:n = {
14107 \tl_set:Nx\l_tmpa_tl{#1}
14108 \regex_replace_once:nnN{([^:]+):??.*}{\1}\l_tmpa_tl %extract ref
14109 \tl_trim_spaces:N\l_tmpa_tl
14110 \tl_if_exist:cTF{ann@\l_tmpa_tl}{
14111 \str_if_eq_x:nnF{\tl_use:c{ann@\l_tmpa_tl}}{draft}{
14112 \tl_set:Nx\l_tmpb_tl{#1}
14113 \regex_replace_once:nnN{[^:]+\:?}{}\l_tmpb_tl
14114 \tl_trim_spaces:N\l_tmpb_tl
14115 \regex_replace_all:nnN{^\{|\}$}{}\l_tmpb_tl
14116 \tl_set:Nx\l_mix_cmd_tl{
14117 \exp_after:wN\mix_separate_cmd_from_actn:w\l_tmpb_tl[]\q_stop}
14118 \tl_trim_spaces:N\l_mix_cmd_tl
14119 \tl_set:Nx\l_mix_arg_tl{
14120 \exp_after:wN\mix_separate_arg_from_actn:w\l_tmpb_tl[]\q_stop}
14121 \tl_trim_spaces:N\l_mix_arg_tl
14122 \mix_pdfobj:nnn{}{dict}{
14123 /S/JavaScript/JS~(
14124 if(typeof(annotRM)=='undefined'){annotRM=new~Array();}
14125 if(typeof(annotRM['\l_tmpa_tl'])=='undefined'){
14126 annotRM['\l_tmpa_tl']=
14127 this.getAnnotRichMedia(\tl_use:c{page@\l_tmpa_tl},'\l_tmpa_tl');
14128 }
14129 annotRM['\l_tmpa_tl'].activated=true;
14130 )
14131 \tl_if_blank:VF\l_mix_cmd_tl{
14132 /Next~<<
14133 /S/RichMediaExecute
14134 /TA~\tl_use:c{ann@\l_tmpa_tl}
14135 /TI~\tl_use:c{main@\l_tmpa_tl}
14136 /CMD~<<
14137 /C~(\l_mix_cmd_tl)
14138 \tl_if_blank:VF\l_mix_arg_tl{
14139 /A~[\l_mix_arg_tl]
14140 }
14141 >>
14142 >>
14143 }
14144 }
14145 \tl_gput_right:Nx\g_mix_btnactions_tl{~\mix_pdflastobj:}
14146 }
14147 }{
14148 \msg_warning:nnx{media9}{undefined~reference}{\l_tmpa_tl}
14149 \cs_if_exist:NF\g_mix_refundefwarned_tl{
14150 \tl_new:N\g_mix_refundefwarned_tl
14151 \AtEndDocument{\msg_warning:nn{media9}{undefined~references}}
14152 }
14153 }
14154 },
14155 mediacommand .value_required:n = {true},

File bidi-media9.sty 291


14156
14157 jsaction .code:n = {
14158 \tl_set:Nx\l_tmpa_tl{#1}
14159 \regex_match:nVTF{^[^\{:]+:.*$}\l_tmpa_tl{
14160 \regex_replace_once:nnN{([^:]+):??.*}{\1}\l_tmpa_tl %extract ref
14161 \tl_trim_spaces:N\l_tmpa_tl
14162 }{\tl_clear:N\l_tmpa_tl}
14163 \tl_set:Nx\l_tmpb_tl{#1}
14164 \tl_if_blank:VF\l_tmpa_tl{
14165 \tl_if_exist:cF{ann@\l_tmpa_tl}{
14166 \msg_warning:nnx{media9}{undefined~reference}{\l_tmpa_tl}
14167 \cs_if_exist:NF\g_mix_refundefwarned_tl{
14168 \tl_new:N\g_mix_refundefwarned_tl
14169 \AtEndDocument{\msg_warning:nn{media9}{undefined~references}}
14170 }
14171 }
14172 \regex_replace_once:nnN{[^:]+\:}{}\l_tmpb_tl
14173 }
14174 \tl_set:Nx\l_tmpb_tl{\exp_after:wN\use:n\l_tmpb_tl}
14175 \tl_trim_spaces:N\l_tmpb_tl
14176 \tl_if_blank:VF\l_tmpb_tl{
14177 \mix_pdfobj:nnn{}{dict}{
14178 /S/JavaScript/JS~(
14179 try{\l_tmpb_tl}catch(e){console.show();console.println(e)})}}
14180 \bool_lazy_and:nnT{
14181 \tl_if_exist_p:c{ann@\l_tmpa_tl}
14182 }{
14183 !\str_if_eq_x_p:nn{\tl_use:c{ann@\l_tmpa_tl}}{draft}
14184 }{
14185 \mix_pdfobj:nnn{}{dict}{
14186 /S/JavaScript/JS~(
14187 if(typeof(annotRM)=='undefined'){annotRM=new~Array();}
14188 if(typeof(annotRM['\l_tmpa_tl'])=='undefined'){
14189 annotRM['\l_tmpa_tl']=
14190 this.getAnnotRichMedia(\tl_use:c{page@\l_tmpa_tl},'\l_tmpa_tl');
14191 }
14192 annotRM['\l_tmpa_tl'].activated=true;
14193 )
14194 \tl_if_blank:VF\l_tmpb_tl{/Next~\mix_pdflastobj:}
14195 }
14196 }
14197 \bool_if:nT{
14198 \bool_lazy_and_p:nn{
14199 \tl_if_exist_p:c{ann@\l_tmpa_tl}
14200 }{
14201 !\str_if_eq_x_p:nn{\tl_use:c{ann@\l_tmpa_tl}}{draft}
14202 }
14203 || !\tl_if_blank_p:V\l_tmpb_tl
14204 }{
14205 \tl_gput_right:Nx\g_mix_btnactions_tl{~\mix_pdflastobj:}

File bidi-media9.sty 292


14206 }
14207 },
14208 jsaction .value_required:n = {true},
14209
14210 unknown .code:n = {
14211 \msg_error:nnx{media9}{unknown~option}{\l_keys_key_tl}
14212 }
14213 }
14214
14215 \RenewDocumentCommand\includemedia{O{}mm}{%#1 options, #2 text/image #3 media file
14216 \mix_uriend:
14217 \group_begin:
14218 \mix_beginLTR:
14219 \leavevmode
14220 %empty stream as appearance dummy
14221 \cs_if_exist:NF\g_mix_appearance_tl{
14222 \hbox_set:Nn\l_mix_poster_box{\phantom{\rule{1pt}{1pt}}}
14223 \mix_pdfxform:n{\l_mix_poster_box}
14224 \tl_gset:Nx\g_mix_appearance_tl{\mix_pdflastxform:}
14225 }
14226 \mix_reset:
14227 \mix_uribegin: %treat URI characters correctly
14228 \keys_set:nn{media9/user}{#1}
14229 \mix_uriend:
14230 \tl_greplace_all:Nnn\g_mix_flashvars_tl{~&}{&}
14231 \tl_greplace_all:Nnn\g_mix_flashvars_tl{&~}{&}
14232 \tl_greplace_all:Nnn\g_mix_flashvars_tl{~=}{=}
14233 \tl_greplace_all:Nnn\g_mix_flashvars_tl{=~}{=}
14234 \tl_gtrim_spaces:N\g_mix_flashvars_tl
14235
14236 \cs_if_exist:NT\Ginput@path{\cs_set_eq:NN\input@path\Ginput@path}
14237
14238 %\hbox_set:Nn\l_mix_poster_box{\group_begin:#2\group_end:}
14239 %\hbox_set:Nn\l_mix_poster_box{#2}
14240 \sbox\l_mix_poster_box{\if@RTL\beginR\fi#2\if@RTL\endR\fi}
14241 \mix_scale:n{\l_mix_poster_box}
14242 \bool_if:nT{
14243 \dim_compare_p:n{\g_mix_tt_tl=\c_zero_dim}||
14244 \dim_compare_p:n{\g_mix_wd_tl=\c_zero_dim}
14245 }{
14246 \tl_gset:Nn\g_mix_usrpbtn_tl{none}
14247 }
14248 \bool_if:NTF\g_mix_usrdraft_bool{
14249 \tl_if_empty:NF\g_mix_usrlabel_tl{
14250 \mix_keytoaux_now:nn{ann@\g_mix_usrlabel_tl}{draft}
14251 }
14252 \tl_if_blank:oTF{#2}{
14253 \mix_uribegin: %treat URI characters correctly
14254 \mix_draftbox:n{\tl_to_str:n{#3}}
14255 \mix_uriend:

File bidi-media9.sty 293


14256 }{
14257 \hbox_to_wd:nn{\g_mix_wd_tl}{
14258 \vrule~width~\c_zero_dim~height~\g_mix_ht_tl~depth~\g_mix_dp_tl
14259 \box_use:N\l_mix_poster_box\hss
14260 }
14261 }
14262 }{
14263 \bool_if:nF{\str_if_eq_p:Vn\g_mix_usrpbtn_tl{none}}{
14264 %attach script that switches off play button overlay upon activation
14265 \mix_pdfobj:nnn{}{stream}{
14266 {}{
14267 var~ocgs=host.getOCGs(host.pageNum);
14268 for(var~i=0;i<ocgs.length;i++){
14269 if(ocgs[i].name=='MediaPlayButton\int_use:N\g_mix_rmcnt_int'){
14270 ocgs[i].state=false;
14271 }
14272 }
14273 }
14274 }
14275 \mix_pdfobj:nnn{}{dict}{
14276 /Type/Filespec/EF~<</F~\mix_pdflastobj:>>/F~(btnoff)%/UF~(btnoff)
14277 }
14278 \tl_gset:Nx\g_mix_assets_tl{(btnoff)~\mix_pdflastobj:}
14279 \tl_set:Nx\l_mix_scripts_tl{~\mix_pdflastobj:~}
14280 %enforce plain playbutton overlay for XeTeX
14281 \sys_if_engine_xetex:T{\tl_gset:Nn\g_mix_usrpbtn_tl{plain}}
14282 }
14283 %embed main asset
14284 \mix_uribegin:
14285 \mix_embedasset:n{#3}
14286 \bool_if:nTF{
14287 \str_if_eq_p:Vn\l_mix_ext_tl{prc}||\str_if_eq_p:Vn\l_mix_ext_tl{u3d}
14288 }{
14289 \bool_gset_true:N\g_mix_iiid_bool
14290 \tl_gset:Nn\g_mix_mainassetsub_tl{3D}
14291 }{
14292 \str_case_x:nnF{\l_mix_base_tl}{
14293 {APlayer}{\tl_gset:Nn\g_mix_mainassetsub_tl{Sound}}
14294 {AudioPlayer}{\tl_gset:Nn\g_mix_mainassetsub_tl{Sound}}
14295 {VPlayer}{\tl_gset:Nn\g_mix_mainassetsub_tl{Video}}
14296 {VideoPlayer}{\tl_gset:Nn\g_mix_mainassetsub_tl{Video}}
14297 {StrobeMediaPlayback}{\tl_gset:Nn\g_mix_mainassetsub_tl{Video}}
14298 }{\tl_gset:Nn\g_mix_mainassetsub_tl{Flash}}
14299 }
14300 \tl_gset:Nx\g_mix_mainasset_tl{~\g_mix_lastasset_tl}
14301 \mix_uriend:
14302 %secondary assets (added by addresource)
14303 \seq_map_function:NN\g_mix_res_seq\mix_embedasset:n
14304 \seq_map_inline:Nn\g_mix_script_seq{
14305 \mix_embedasset:n{##1}

File bidi-media9.sty 294


14306 \tl_put_right:Nx\l_mix_scripts_tl{~\g_mix_lastasset_tl}
14307 }
14308 %attach 3D calculation script
14309 \bool_if:nT{\g_mix_iiid_bool && \g_mix_iiidcalc_bool}{
14310 \mix_embedasset:n{3Dmenu.js}
14311 \tl_put_left:Nx\l_mix_scripts_tl{\g_mix_lastasset_tl~}
14312 }
14313 %create 3D views from file (option 3Dviews)
14314 \bool_if:nT{\g_mix_iiid_bool && !(\tl_if_blank_p:V\g_mix_vfile_tl)}{
14315 \tl_set:Nn\l_mix_level_tl{\c_minus_one}
14316 \int_zero:N\l_mix_viewcnt_int
14317 \int_zero:N\l_mix_lineno_int
14318
14319 \ior_open:Nn\l_mix_vfile_stream{\g_mix_vfile_tl}
14320 \ior_map_inline:Nn\l_mix_vfile_stream{
14321 \int_incr:N\l_mix_lineno_int
14322 \keys_set:nn{media9/views}{##1} %process input line
14323 }
14324 \ior_close:N\l_mix_vfile_stream
14325 }
14326 \bool_if:nT{ %create default 3D view if required
14327 \g_mix_iiid_bool &&
14328 (\g_mix_opt_iiidview_bool || \tl_if_blank_p:V\l_mix_iiidviewarray_tl)
14329 }{
14330 \tl_set_eq:NN\l_mix_bg_tl\g_mix_opt_bg_tl
14331 \tl_set_eq:NN\l_mix_ls_tl\g_mix_opt_ls_tl
14332 \tl_set_eq:NN\l_mix_rm_tl\g_mix_opt_rm_tl
14333 \tl_set_eq:NN\l_mix_psob_tl\g_mix_opt_psob_tl
14334 \tl_set_eq:NN\l_mix_coo_tl\g_mix_opt_coo_tl
14335 \tl_set_eq:NN\l_mix_ctoc_tl\g_mix_opt_ctoc_tl
14336 \tl_set_eq:NN\l_mix_ciiw_tl\g_mix_opt_ciiw_tl
14337
14338 \fp_set_eq:NN\l_mix_roo_fp\g_mix_opt_roo_fp
14339 \fp_set_eq:NN\l_mix_aac_fp\g_mix_opt_aac_fp
14340 \fp_set_eq:NN\l_mix_oscale_fp\g_mix_opt_oscale_fp
14341 \fp_set_eq:NN\l_mix_roll_fp\g_mix_opt_roll_fp
14342
14343 \bool_set_eq:NN\l_mix_ciiw_bool\g_mix_opt_ciiw_bool
14344 \bool_set_eq:NN\l_mix_iiidortho_bool\g_mix_opt_iiidortho_bool
14345 \tl_clear:N\l_mix_naarray_tl
14346
14347 \bool_if:NF\l_mix_ciiw_bool{
14348 \tl_set:Nx\l_mix_args_tl{\l_mix_coo_tl\space\l_mix_ctoc_tl\space}
14349 \exp_after:wN\mix_calc_ciiw:w\l_mix_args_tl\q_stop
14350 }
14351
14352 \tl_clear:N\l_mix_naarray_tl
14353 \tl_clear:N\l_mix_saarray_tl
14354 \tl_set_eq:NN\l_mix_nr_tl\g_mix_nrdflt_tl
14355

File bidi-media9.sty 295


14356 \mix_view:n{Default}
14357 \tl_set:Nx\l_mix_dfltview_tl{\mix_pdflastobj:}
14358
14359 }
14360 \mix_pdfobj:nnn{}{dict}{
14361 /Type/RichMediaInstance
14362 /Subtype/\g_mix_mainassetsub_tl
14363 /Asset~\g_mix_mainasset_tl
14364 \bool_if:NF\g_mix_iiid_bool{
14365 /Params~<<
14366 /Binding\str_if_eq:VnTF\g_mix_transp_tl{true}{
14367 /Foreground
14368 }{
14369 /Background
14370 }
14371 \tl_if_blank:VF\g_mix_flashvars_tl{
14372 /FlashVars~(\g_mix_flashvars_tl)
14373 }
14374 >>
14375 }
14376 }
14377 \tl_if_empty:NF\g_mix_usrlabel_tl{
14378 \mix_keytoaux_now:nn{main@\g_mix_usrlabel_tl}{\mix_pdflastobj:}
14379 }
14380 \mix_pdfobj:nnn{}{dict}{
14381 /Type/RichMediaConfiguration
14382 /Subtype/\g_mix_mainassetsub_tl
14383 /Instances~[\mix_pdflastobj:]
14384 }
14385 \mix_pdfobj:nnn{}{dict}{
14386 /Type/RichMediaContent
14387 /Assets~<</Names~[\g_mix_assets_tl]>>
14388 /Configurations~[\mix_pdflastobj:]
14389 \bool_if:nT{
14390 \g_mix_iiid_bool && !(\tl_if_empty_p:V\l_mix_iiidviewarray_tl)
14391 }{
14392 /Views~[\l_mix_iiidviewarray_tl]
14393 }
14394 }
14395 \tl_set:Nx\l_mix_content_tl{\mix_pdflastobj:}
14396 \bool_if:nT{
14397 \g_mix_iiid_bool && \str_if_eq_p:Vn\g_mix_playtpe_tl{Oscillating}
14398 }{
14399 \tl_gset:Nx\g_mix_playcnt_tl{\int_eval:n{\g_mix_playcnt_tl*2}}
14400 }
14401 %determine floating window size
14402 \bool_if:NT\g_mix_opt_windowed_bool{
14403 \exp_after:wN\mix_parse_winsizearg:w\g_mix_winsize_tl\q_stop
14404 }
14405 \mix_pdfobj:nnn{}{dict}{

File bidi-media9.sty 296


14406 /Activation~<<
14407 /Condition\g_mix_act_tl
14408 \bool_if:nT{
14409 \g_mix_iiid_bool &&
14410 !(\str_if_eq_p:Vn\g_mix_playtpe_tl{None})
14411 }{%seems to work only with 3D content
14412 /Animation~<<
14413 /Subtype/\g_mix_playtpe_tl
14414 /PlayCount~\g_mix_playcnt_tl
14415 /Speed~\g_mix_playspd_tl
14416 >>
14417 }
14418 \bool_if:nT{
14419 \g_mix_iiid_bool && (
14420 \g_mix_opt_iiidview_bool || \tl_if_blank_p:V\l_mix_iiidviewarray_tl
14421 )
14422 }{/View~\l_mix_dfltview_tl}
14423 /Presentation~<<
14424 /Transparent~\g_mix_transp_tl
14425 \bool_if:NTF\g_mix_opt_windowed_bool{
14426 /Style/Windowed
14427 /Window~<<
14428 /Width~<</Default~\tl_mix_fltwd>>
14429 /Height~<</Default~\tl_mix_fltht>>
14430 /Position~<<
14431 /HOffset~0/VOffset~0
14432 \str_case_x:nnF{\g_mix_winpos_tl}{
14433 {tl}{/VAlign/Near/HAlign/Near}
14434 {cl}{/VAlign/Center/HAlign/Near}
14435 {bl}{/VAlign/Far/HAlign/Near}
14436 {bc}{/VAlign/Far/HAlign/Center}
14437 {br}{/VAlign/Far/HAlign/Far}
14438 {cr}{/VAlign/Center/HAlign/Far}
14439 {tr}{/VAlign/Near/HAlign/Far}
14440 {tc}{/VAlign/Near/HAlign/Center}
14441 }{/HAlign/Center/VAlign/Center}
14442 >>
14443 >>
14444 }{
14445 /Style/Embedded
14446 }
14447 \bool_if:NTF\g_mix_iiid_bool{
14448 /Toolbar~\g_mix_tools_tl
14449 /NavigationPane~\g_mix_nav_tl
14450 }{
14451 /PassContextClick~\g_mix_contextclick_tl
14452 }
14453 >>
14454 \tl_if_blank:VF\l_mix_scripts_tl{/Scripts~[\l_mix_scripts_tl]}
14455 >>

File bidi-media9.sty 297


14456 /Deactivation~<</Condition\g_mix_deact_tl>>
14457 }
14458 \tl_set:Nx\l_mix_settings_tl{\mix_pdflastobj:}
14459 \tl_if_empty:NF\g_mix_usrlabel_tl{
14460 \tl_gset_eq:NN\g_mix_label_tl\g_mix_usrlabel_tl
14461 }
14462 % #1:width, #2:height, #3:depth, #4:content (key-value)
14463 \mix_pdfannot:nnnn{\g_mix_wd_tl}{\g_mix_ht_tl}{\g_mix_dp_tl}{
14464 /Subtype/RichMedia
14465 /F~4
14466 /BS~<</W~0/S/S>>
14467 /Contents~(media~embedded~by~media9~[\g_mix_version_tl~(\g_mix_date_tl)])
14468 /NM~(\g_mix_label_tl)
14469 /AP~<</N~\g_mix_appearance_tl>>
14470 /RichMediaSettings~\l_mix_settings_tl
14471 /RichMediaContent~\l_mix_content_tl
14472 }
14473 \tl_if_empty:NF\g_mix_usrlabel_tl{
14474 \mix_keytoaux_now:nn{ann@\g_mix_usrlabel_tl}{\mix_pdflastann:}
14475 \mix_keytoaux_shipout:nn{page@\g_mix_usrlabel_tl}{
14476 \noexpand\the\g@mix@page@int}
14477 }
14478 \mix_pdfobj:nnn{}{dict}{
14479 /S/JavaScript/JS~(
14480 try{
14481 if(typeof(annotRM)=='undefined'){annotRM=new~Array();}
14482 if(typeof(annotRM['\g_mix_label_tl'])=='undefined'){
14483 annotRM['\g_mix_label_tl']=
14484 this.getAnnotRichMedia(this.pageNum,'\g_mix_label_tl');
14485 }
14486 \str_if_eq_x:nnF{\g_mix_usrpbtn_tl}{none}{
14487 if(typeof(ocgBtn\int_use:N\g_mix_rmcnt_int)=='undefined'){
14488 var~ocgs=this.getOCGs(this.pageNum);
14489 for(var~i=0;i<ocgs.length;i++){
14490 if(ocgs[i].name=='MediaPlayButton\int_use:N\g_mix_rmcnt_int'){
14491 var~ocgBtn\int_use:N\g_mix_rmcnt_int=ocgs[i];
14492 }
14493 }
14494 }
14495 if(
14496 !annotRM['\g_mix_label_tl'].activated&&(
14497 app.viewerType=='Reader'||
14498 app.viewerType=='Exchange'||
14499 app.viewerType=='Exchange-Pro'
14500 )&&app.viewerVersion>=9
14501 ){
14502 ocgBtn\int_use:N\g_mix_rmcnt_int.state=true;
14503 }
14504 }
14505 }catch(e){}

File bidi-media9.sty 298


14506 this.dirty=false;
14507 )
14508 }
14509 \mix_pdfannot:nnnn{0pt}{0pt}{0pt}{
14510 /Subtype/Widget
14511 /FT/Btn/Ff~65537/F~2
14512 /BS~<</W~0>>
14513 /T~(fd@\g_mix_label_tl)
14514 /AA~<</PO~\mix_pdflastobj:~/PV~\mix_pdflastobj:>>
14515 }
14516 \mix_appendtofields:n{\mix_pdflastann:}
14517 \hbox_overlap_right:n{\box_use:N\l_mix_poster_box}
14518 \str_if_eq_x:nnTF{\g_mix_usrpbtn_tl}{none}{
14519 \hbox_to_wd:nn{\g_mix_wd_tl}{
14520 \vrule~width~\c_zero_dim~height~\g_mix_ht_tl~depth~\g_mix_dp_tl\hss
14521 }
14522 }{%insert play button overlay
14523 \mix_insert_btnocg: %create OCG
14524 \cs_gset_eq:Nc\mix_pbtn:NN{g@mix@pbtn@\g_mix_usrpbtn_tl @tl}
14525 \group_begin:
14526 \cs_if_exist:NT\textdir{\textdir TLT}
14527 \sbox\l_mix_pbtn_box{\mix_pbtn:NN\g_mix_wd_tl\g_mix_tt_tl}
14528 \box_move_down:nn{\g_mix_dp_tl}{
14529 \hbox_to_wd:nn{\g_mix_wd_tl}{
14530 \vbox_to_ht:nn{\g_mix_tt_tl}{
14531 \vss
14532 \ocgbase_oc_bdc:n{\g_mix_btnocg_tl}
14533 \box_use:N\l_mix_pbtn_box
14534 \ocgbase_oc_emc:
14535 }
14536 }
14537 }
14538 \group_end:
14539 }
14540 \int_gincr:N\g_mix_rmcnt_int
14541 }
14542 \mix_endLTR:
14543 \group_end:
14544 }
14545 \tl_set_eq:NN\l_mix_includemedia_tl\includemedia
14546 \tl_set:Nn\includemedia{\mix_uribegin:\l_mix_includemedia_tl}
14547
14548 \RenewDocumentCommand\mediabutton{O{}m}{%#1 options, #2 normal button text
14549 \mix_uriend:
14550 \group_begin:
14551 \mix_beginLTR:
14552 \leavevmode
14553 %reset various variables
14554 \tl_gclear:N\g_mix_overbtn_tl
14555 \tl_gclear:N\g_mix_downbtn_tl

File bidi-media9.sty 299


14556 \tl_gclear:N\g_mix_btnactions_tl
14557 \tl_gclear:N\g_mix_tooltip_tl
14558 %process options
14559 \bool_gset_eq:NN\g_mix_btndraft_bool\g_mix_pkgdraft_bool
14560 \mix_uribegin: %treat URI characters correctly
14561 \keys_set:nn{media9/mbtndraft}{#1} %detect draft/final on first pass
14562 \bool_if:NF\g_mix_btndraft_bool{\keys_set:nn{media9/mbtn}{#1}}
14563 \mix_uriend:
14564 %normal button appearance
14565 %\hbox_set:Nn\l_mix_poster_box{#2}
14566 \sbox\l_mix_poster_box{\if@RTL\beginR\fi#2\if@RTL\endR\fi}
14567 \tl_set:Nx\width {\dim_use:N\box_wd:N\l_mix_poster_box}
14568 \tl_set:Nx\height{\dim_use:N\box_ht:N\l_mix_poster_box}
14569 \tl_set:Nx\depth {\dim_use:N\box_dp:N\l_mix_poster_box}
14570 \bool_if:NTF\g_mix_btndraft_bool{\box_use:N\l_mix_poster_box}{
14571 \sbox\l_mix_poster_box{\bool_if:NTF\g_pbs_lscape_bool{\rotatebox{90}{
14572 \box_use:N\l_mix_poster_box}}{\box_use:N\l_mix_poster_box}}
14573 \mix_pdfxform:n{\l_mix_poster_box}
14574 \tl_set:Nx\g_mix_normalbtn_tl{\mix_pdflastxform:}
14575 %insert widget annotation
14576 \mix_pdfannot:nnnn{\width}{\height}{\depth}{
14577 /Subtype/Widget
14578 /T~(mbtn@\int_use:N\g_mix_mbtncnt_int)
14579 \tl_if_empty:NF\g_mix_tooltip_tl{/TU~(\g_mix_tooltip_tl)}
14580 /FT/Btn/Ff~65536
14581 \tl_if_empty:NTF\g_mix_downbtn_tl{/H/I}{/H/P}
14582 /AP~<<
14583 /N~\g_mix_normalbtn_tl
14584 \tl_if_empty:NF\g_mix_overbtn_tl{/R~\g_mix_overbtn_tl}
14585 \tl_if_empty:NF\g_mix_downbtn_tl{/D~\g_mix_downbtn_tl}
14586 >>
14587 /MK~<<
14588 /TP~1~/IF~<</S/A/FB~true/A~[0.0~0.0]>>
14589 /I~\g_mix_normalbtn_tl
14590 \tl_if_empty:NF\g_mix_overbtn_tl{/RI~\g_mix_overbtn_tl}
14591 \tl_if_empty:NF\g_mix_downbtn_tl{/IX~\g_mix_downbtn_tl}
14592 >>
14593 /A~<<
14594 /S/JavaScript/JS~(app.focusRect=false;)
14595 %sequence of actions to perform
14596 \tl_if_empty:NF\g_mix_btnactions_tl{/Next~[\g_mix_btnactions_tl]}
14597 >>
14598 }
14599 \mix_appendtofields:n{\mix_pdflastann:}
14600 \hbox_to_wd:nn{\width}{
14601 \vrule~width~\c_zero_dim~height~\height~depth~\depth\hss
14602 }
14603 \int_gincr:N\g_mix_mbtncnt_int
14604 }
14605 \mix_endLTR:

File bidi-media9.sty 300


14606 \group_end:
14607 }
14608 \tl_set_eq:NN\l_mix_mediabutton_tl\mediabutton
14609 \tl_set:Nn\mediabutton{\mix_uribegin:\l_mix_mediabutton_tl}
14610
14611

82 File memoir-xetex-bidi.def
14612 \ProvidesFile{memoir-xetex-bidi.def}[2017/06/09 v0.6 bidi adaptations for memoir class for XeT
14613 \renewcommand{\keepthetitle}{%
14614 \@bsmtitlempty
14615 \global\let\thanks\relax
14616 \global\let\LTRthanks\relax
14617 \global\let\RTLthanks\relax
14618 \global\let\and\relax
14619 \global\let\andnext\relax
14620 \global\let\@thanks\@empty
14621 \global\let\@title\@empty
14622 \global\let\@author\@empty
14623 \global\let\@date\@empty}
14624 \renewcommand{\maketitle}{\par
14625 \begingroup
14626 \@bsmarkseries
14627 \def\@makefnmark{\@textsuperscript{%
14628 \normalfont\@bsthanksheadpre \tamark \@bsthanksheadpost}}%
14629 \long\def\@makefntext##1{\makethanksmark ##1}
14630 \if@twocolumn
14631 \ifnum \col@number=\@ne
14632 \@maketitle
14633 \else
14634 \twocolumn[\@maketitle]%
14635 \fi
14636 \else
14637 \ifdim\pagetotal>\z@
14638 \newpage
14639 \fi
14640 \global\@topnum\z@
14641 \@maketitle
14642 \fi
14643 \thispagestyle{title}\@thanks
14644 \endgroup
14645 \@bscontmark % \setcounter{footnote}{0}%
14646 }
14647 \renewcommand*{\memRTLleftskip}{\if@RTL\rightskip\else\leftskip\fi}
14648 \renewcommand*{\memRTLrightskip}{\if@RTL\leftskip\else\rightskip\fi}
14649 \renewcommand*{\memRTLvleftskip}{\if@RTL\vrightskip\else\vleftskip\fi}
14650 \renewcommand*{\memRTLvrightskip}{\if@RTL\vleftskip\else\vrightskip\fi}
14651 \renewcommand*{\memRTLraggedright}{\if@RTL\raggedleft\else\raggedright\fi}
14652 \renewcommand*{\memRTLraggedleft}{\if@RTL\raggedright\else\raggedleft\fi}

File memoir-xetex-bidi.def 301


14653 \renewcommand*{\thesection}{\thechapter\@SepMark\@arabic\c@section}
14654 \renewcommand*{\thesubsection}{%
14655 \thesection\@SepMark\@arabic\c@subsection}
14656 \renewcommand*{\thesubsubsection}{%
14657 \thesubsection\@SepMark\@arabic\c@subsubsection}
14658 \renewcommand*{\theparagraph}{%
14659 \thesubsubsection\@SepMark\@arabic\c@paragraph}
14660 \renewcommand*{\thesubparagraph}{%
14661 \theparagraph\@SepMark\@arabic\c@subparagraph}
14662 \renewcommand{\setthesection}{\thechapter\@SepMark\Alph{section}}
14663 \renewcommand{\theequation}{%
14664 \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
14665 \renewcommand{\thefigure}{\thechapter\@SepMark\@arabic\c@figure}
14666 \renewcommand{\thetable}{\thechapter\@SepMark\@arabic\c@table}
14667 \ifartopt
14668 \chapterstyle{article}
14669 \counterwithout{figure}{chapter}
14670 \counterwithout{table}{chapter}
14671 \counterwithout{footnote}{chapter}
14672 \counterwithout{equation}{chapter}
14673 \renewcommand{\chaptername}{}
14674 \renewcommand{\maketitlehookb}{%
14675 \vskip -1.5\topsep\vskip -1.5\partopsep}
14676 \renewcommand{\maketitlehookc}{%
14677 \vskip -1.5\topsep\vskip -1.5\partopsep}
14678 \fi
14679 \long\def\@makecaption#1#2{\let\@memtempa\relax
14680 \ifdim\prevdepth>-99\p@ \vskip\abovecaptionskip
14681 \else \def\@memtempa{\vbox to\topskip{}}\fi
14682 \let\@contfnote\footnote \renewcommand{\footnote}[2][]{}
14683 \let\@contfmark\footnotemark \renewcommand{\footnotemark}[1][]{}
14684 \sbox\@tempboxa{\@contnfont #1\@contdelim \@conttfont #2\@contfinal}
14685 \let\footnote\@contfnote
14686 \let\footnotemark\@contfmark
14687 \ifdim\wd\@tempboxa<\linewidth \centering \fi
14688 \if@contcw
14689 \centering
14690 \parbox{\@contcwidth}{%
14691 \ifdim\wd\@tempboxa<\@contcwidth \centering \fi
14692 \fi
14693 \ifdim\wd\@tempboxa<\linewidth
14694 \@contpre
14695 {\@contnfont #1\@contdelim}\@memtempa
14696 {\@contcshortstyle \@conttfont #2\@contfinal\par}
14697 \else
14698 \if@conthang
14699 \sbox\@tempboxa{\@contnfont #1\@contdelim}
14700 \@contpre%
14701 {\@contcstyle\hangindent=\wd\@tempboxa
14702 \noindent\box\@tempboxa\@memtempa \@conttfont #2\@contfinal\par}

File memoir-xetex-bidi.def 302


14703 \else
14704 \if@contindent
14705 \@contpre%
14706 {\@contnfont #1\@contdelim}\@memtempa
14707 {\@contcstyle\hangindent=\@contindw
14708 \hangafter=\@ne\@conttfont #2\@contfinal\par}% <- v1.4
14709 \else
14710 \@contpre%
14711 {\@contnfont #1\@contdelim}\@memtempa
14712 {\@contcstyle \@conttfont #2\@contfinal\par}
14713 \fi
14714 \fi
14715 \fi
14716 \@contpost
14717 \if@contcw
14718 \par
14719 } % end of the \parbox
14720 \fi
14721 \vskip\belowcaptionskip}
14722 \@ifpackageloaded{caption}{%
14723 \AtBeginPackage{caption}{
14724 \ClassWarningNoLine{memoir}{%
14725 You are using the caption package with the memoir \MessageBreak
14726 class. This may cause unexpected or inconsistent \MessageBreak
14727 results if you use any of memoir's captioning facilities}
14728
14729 \long\def\@makecaption##1##2{%
14730 \vskip\abovecaptionskip
14731 \sbox\@tempboxa{\if@RTL\beginR\fi##1: ##2\if@RTL\endR\fi}%
14732 \ifdim \wd\@tempboxa >\hsize
14733 \if@RTL\beginR\fi##1: ##2\if@RTL\endR\fi\par
14734 \else
14735 \global \@minipagefalse
14736 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
14737 \fi
14738 \vskip\belowcaptionskip}
14739
14740 \def\caption{%
14741 \ifx\@captype\@undefined
14742 \@latex@error{\noexpand\caption outside float}\@ehd
14743 \expandafter\@gobble
14744 \else
14745 \refstepcounter\@captype
14746 \expandafter\@firstofone
14747 \fi
14748 {\@dblarg{\@caption\@captype}}%
14749 }
14750
14751 \long\def\@caption##1[##2]##3{%
14752 \par

File memoir-xetex-bidi.def 303


14753 \addcontentsline{\csname ext@##1\endcsname}{##1}%
14754 {\protect\numberline{\csname the##1\endcsname}{\ignorespaces ##2}}%
14755 \begingroup
14756 \@parboxrestore
14757 \if@minipage
14758 \@setminipage
14759 \fi
14760 \normalsize
14761 \@makecaption{\csname fnum@##1\endcsname}{\ignorespaces ##3}\par
14762 \endgroup}
14763 }}{}
14764 \renewenvironment{thebibliography}[1]{%
14765 \bibsection
14766 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
14767 \bidi@@thebibliography@font@hook%
14768 \begin{bibitemlist}{#1}}{\end{bibitemlist}\postbibhook}

83 File midfloat-xetex-bidi.def
14769 \ProvidesFile{midfloat-xetex-bidi.def}[2017/05/06 v0.4 bidi adaptations for midfloat package f
14770 \def\RTL@outputdblcol{%
14771 \if@firstcolumn
14772 \global \@firstcolumnfalse
14773 \global\setbox\@leftcolumn\copy\@outputbox
14774 \splitmaxdepth\maxdimen
14775 \vbadness\maxdimen
14776 \setbox\@outputbox\vbox{\unvbox\@outputbox\unskip}%
14777 \setbox\@outputbox\vsplit\@outputbox to\maxdimen
14778 \toks@\expandafter{\topmark}%
14779 \xdef\@firstcoltopmark{\the\toks@}%
14780 \toks@\expandafter{\splitfirstmark}%
14781 \xdef\@firstcolfirstmark{\the\toks@}%
14782 \ifx\@firstcolfirstmark\@empty
14783 \global\let\@setmarks\relax
14784 \else
14785 \gdef\@setmarks{%
14786 \let\firstmark\@firstcolfirstmark
14787 \let\topmark\@firstcoltopmark}%
14788 \fi
14789 \global\c@colht\@colht\global\c@addvipersep\z@
14790 \ifnum\juo@sk>0
14791 \remove@strip\juo@sar
14792 \global\@colht\the\juo@pr
14793 \ifdim\right@cor>\z@
14794 \global\advance\@colht by\right@cor
14795 \fi
14796 \global\advance\@colht by\cor@height
14797 \global\cor@height=0pt
14798 \fi
14799 \global \setbox\@rightcolumn \vbox{}%

File midfloat-xetex-bidi.def 304


14800 \else
14801 \ifdim\c@colht>\@colht
14802 \@tempdima\@colht
14803 \ifdim\@colht>\z@
14804 \global\setbox\@rightcolumn \vbox{%
14805 \unvbox\@rightcolumn
14806 \vbox to\@tempdima{%
14807 \vskip\c@addvipersep\unvbox\@outputbox}%
14808 \vskip\stripsep
14809 \vrule height\the\juo@ht width 0pt depth 0pt
14810 \vskip\stripsep
14811 }%
14812 \global\c@addvipersep\m@addvipersep
14813 \else
14814 \global\setbox\@rightcolumn \vbox{%
14815 \unvbox\@rightcolumn
14816 \vrule height\the\juo@ht width 0pt depth 0pt
14817 \vskip\stripsep
14818 }%
14819 \fi
14820 \ifnum\juo@sk>0
14821 \remove@strip\juo@sar
14822 \global\@colht\the\juo@pr
14823 \global\advance\@colht by -\ht\@rightcolumn
14824 \global\advance\@colht by\cor@height
14825 \global\cor@height=0pt
14826 \else
14827 \global\advance\c@colht by-\ht\@rightcolumn
14828 \global\@colht\c@colht
14829 \fi
14830 \else
14831 \global\@firstcolumntrue
14832 \global\setbox\@outputbox\vbox to\ht\@leftcolumn{%
14833 \unvbox\@rightcolumn
14834 \vskip\c@addvipersep
14835 \unvbox\@outputbox
14836 }%
14837 \setbox\@outputbox \vbox {%
14838 \hb@xt@\textwidth {%
14839 \hskip \columnwidth
14840 \hfil
14841 \vrule \@width\columnseprule
14842 \hfil
14843 \hb@xt@\columnwidth {%
14844 \bidi@firstcolumn@status@write%
14845 \box\@leftcolumn \hss}%
14846 \hskip-\textwidth
14847 \hb@xt@\columnwidth {%
14848 \bidi@lastcolumn@status@write%
14849 \box\@outputbox \hss}%

File midfloat-xetex-bidi.def 305


14850 \hskip\columnwidth
14851 \hskip\columnsep}%
14852 }%
14853 \@combinedblfloats
14854 \@setmarks
14855 \@outputpage
14856 \begingroup
14857 \@dblfloatplacement
14858 \@startdblcolumn
14859 \@whilesw\if@fcolmade \fi
14860 {\@outputpage
14861 \@startdblcolumn}%
14862 \endgroup
14863 \global\juo@sk=0\global\juo@sar={}%
14864 \global\cor@height\z@\global\c@addvipersep\z@
14865 \fi
14866 \fi
14867 }
14868
14869
14870 \def\LTR@outputdblcol{%
14871 \if@firstcolumn
14872 \global \@firstcolumnfalse
14873 \global\setbox\@leftcolumn\copy\@outputbox
14874 \splitmaxdepth\maxdimen
14875 \vbadness\maxdimen
14876 \setbox\@outputbox\vbox{\unvbox\@outputbox\unskip}%
14877 \setbox\@outputbox\vsplit\@outputbox to\maxdimen
14878 \toks@\expandafter{\topmark}%
14879 \xdef\@firstcoltopmark{\the\toks@}%
14880 \toks@\expandafter{\splitfirstmark}%
14881 \xdef\@firstcolfirstmark{\the\toks@}%
14882 \ifx\@firstcolfirstmark\@empty
14883 \global\let\@setmarks\relax
14884 \else
14885 \gdef\@setmarks{%
14886 \let\firstmark\@firstcolfirstmark
14887 \let\topmark\@firstcoltopmark}%
14888 \fi
14889 \global\c@colht\@colht\global\c@addvipersep\z@
14890 \ifnum\juo@sk>0
14891 \remove@strip\juo@sar
14892 \global\@colht\the\juo@pr
14893 \ifdim\right@cor>\z@
14894 \global\advance\@colht by\right@cor
14895 \fi
14896 \global\advance\@colht by\cor@height
14897 \global\cor@height=0pt
14898 \fi
14899 \global \setbox\@rightcolumn \vbox{}%

File midfloat-xetex-bidi.def 306


14900 \else
14901 \ifdim\c@colht>\@colht
14902 \@tempdima\@colht
14903 \ifdim\@colht>\z@
14904 \global\setbox\@rightcolumn \vbox{%
14905 \unvbox\@rightcolumn
14906 \vbox to\@tempdima{%
14907 \vskip\c@addvipersep\unvbox\@outputbox}%
14908 \vskip\stripsep
14909 \vrule height\the\juo@ht width 0pt depth 0pt
14910 \vskip\stripsep
14911 }%
14912 \global\c@addvipersep\m@addvipersep
14913 \else
14914 \global\setbox\@rightcolumn \vbox{%
14915 \unvbox\@rightcolumn
14916 \vrule height\the\juo@ht width 0pt depth 0pt
14917 \vskip\stripsep
14918 }%
14919 \fi
14920 \ifnum\juo@sk>0
14921 \remove@strip\juo@sar
14922 \global\@colht\the\juo@pr
14923 \global\advance\@colht by -\ht\@rightcolumn
14924 \global\advance\@colht by\cor@height
14925 \global\cor@height=0pt
14926 \else
14927 \global\advance\c@colht by-\ht\@rightcolumn
14928 \global\@colht\c@colht
14929 \fi
14930 \else
14931 \global\@firstcolumntrue
14932 \global\setbox\@outputbox\vbox to\ht\@leftcolumn{%
14933 \unvbox\@rightcolumn
14934 \vskip\c@addvipersep
14935 \unvbox\@outputbox
14936 }%
14937 \setbox\@outputbox \vbox {%
14938 \hb@xt@\textwidth {%
14939 \hb@xt@\columnwidth {%
14940 \bidi@firstcolumn@status@write%
14941 \box\@leftcolumn \hss}%
14942 \hfil
14943 \vrule \@width\columnseprule
14944 \hfil
14945 \hb@xt@\columnwidth {%
14946 \bidi@lastcolumn@status@write%
14947 \box\@outputbox \hss}%
14948 }%
14949 }%

File midfloat-xetex-bidi.def 307


14950 \@combinedblfloats
14951 \@setmarks
14952 \@outputpage
14953 \begingroup
14954 \@dblfloatplacement
14955 \@startdblcolumn
14956 \@whilesw\if@fcolmade \fi
14957 {\@outputpage
14958 \@startdblcolumn}%
14959 \endgroup
14960 \global\juo@sk=0\global\juo@sar={}%
14961 \global\cor@height\z@\global\c@addvipersep\z@
14962 \fi
14963 \fi
14964 }
14965
14966
14967 \def\@strip[#1/#2]{\global\@tempdima=#1\global\@tempdimb=#2%
14968 \global \setbox\@viper\vbox\bgroup\if@RTLmain\moveleft\dimexpr(\columnwidth+\columnsep)\fi\v
14969 \hsize\textwidth
14970 \@parboxrestore
14971 \col@number \@ne
14972 \vrule height\topskip width0pt depth0pt
14973 }
14974
14975 \def\endstrip{%
14976 \egroup\egroup
14977 \if@firstcolumn
14978 \ifdim\pagetotal>\z@
14979 \vskip\stripsep
14980 \global\ht@strip\pagegoal
14981 \global\advance\ht@strip by-\pagetotal
14982 \global\advance\ht@strip by-\stripsep
14983 \global\advance\ht@strip by-\ht\@viper
14984 \global\advance\ht@strip by-\stripsep
14985 \global\juo@ht=\ht\@viper
14986 \else
14987 \global\ht@strip\z@
14988 \fi
14989 \ifdim\ht@strip>\z@
14990 \unvbox\@viper
14991 \vskip\stripsep
14992 \add@strip{\the\pagetotal}{\the\juo@ht}{\the\@tempdima}{\the\@tempdimb}%
14993 \global\advance\juo@sk by1
14994 \else
14995 \@latex@error{Strip needs more place!}\@ehc
14996 \if@vihproof
14997 \framebox[\columnwidth]{??? Strip ???}%
14998 \fi
14999 \fi

File midfloat-xetex-bidi.def 308


15000 \else
15001 \@latex@error{Strip is used only on left column!}\@ehc
15002 \if@vihproof
15003 \framebox[\columnwidth]{??? Strip ???}%
15004 \fi
15005 \fi
15006 }

84 File minitoc-xetex-bidi.def
15007 \ProvidesFile{minitoc-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for minitoc package for
15008 \def\@undottedtocline#1#2#3#4#5{%
15009 \ifnum #1>\c@tocdepth\relax \else
15010 \vskip \z@ plus.2\p@
15011 {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \
15012 \parindent #2\relax\@afterindenttrue
15013 \interlinepenalty\@M
15014 \leavevmode
15015 \@tempdima #3\relax \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \hbox{}%
15016 \hskip -\if@RTL\rightskip\else\leftskip\fi
15017 #4\nobreak\hfill \nobreak
15018 \null\par}%
15019 \fi}
15020 \def\@Undottedtocline#1#2#3#4#5{%
15021 \ifnum #1>\c@tocdepth\relax \else
15022 \vskip \z@ \@plus.2\p@
15023 {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
15024 \parindent #2\relax\@afterindenttrue
15025 \interlinepenalty\@M
15026 \leavevmode
15027 \@tempdima #3\relax
15028 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
15029 {\coffeefont #4}\nobreak \nobreak\null
15030 \par}%
15031 \fi}
15032 \def\@Undottedtoclinep#1#2#3#4#5{%
15033 \ifnum #1>\c@tocdepth\relax \else
15034 \vskip \z@ \@plus.2\p@
15035 {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
15036 \parindent #2\relax\@afterindenttrue
15037 \interlinepenalty\@M
15038 \leavevmode
15039 \@tempdima #3\relax
15040 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
15041 {#4}\nobreak \hfill \nobreak\null
15042 \hb@xt@\@pnumwidth{{\hfil\normalfont \normalcolor #5}}%
15043 \par}%
15044 \fi}

File minitoc-xetex-bidi.def 309


85 File multicol-xetex-bidi.def
15045 \ProvidesFile{multicol-xetex-bidi.def}[2019/06/14 v1.2 bidi adaptations for multicol package f
15046 \def\page@sofar{%
15047 \process@cols\mult@rightbox
15048 {\ifvoid\count@
15049 \setbox\count@\hbox to\hsize{}%
15050 \else
15051 \wd\count@\hsize
15052 \fi}%
15053 \count@\col@number \advance\count@\m@ne
15054 \mult@info\z@
15055 {Column spec: \the\full@width\space = indent
15056 + columns + sep =\MessageBreak
15057 \the\multicol@leftmargin\space
15058 + \the\col@number\space
15059 x \the\hsize\space
15060 + \the\count@\space
15061 x \the\columnsep
15062 }%
15063 \ifvmode\else\errmessage{Multicol Error}\fi
15064 \nointerlineskip
15065 \setbox\z@\hbox{p}\global\dimen\tw@\dp\z@
15066 \moveright\multicol@leftmargin
15067 \hbox to\full@width{%
15068 \bidi@multicol@align@columns
15069 \rlap{\phantom p}%
15070 }%
15071 \prevdepth\z@
15072 \kern-\dimen\tw@
15073 \ifdim\dimen\tw@ > \mc@gridwarn
15074 \PackageWarning{multicol}%
15075 {Very deep columns!\MessageBreak
15076 Grid alignment might be broken}%
15077 \fi
15078 }
15079 \def\LTR@column@boxes{%
15080 \process@cols\mult@gfirstbox{%
15081 \ifdim\dp\count@>\dimen\tw@
15082 \global\dimen\tw@\dp\count@ \fi
15083 \mc@col@status@write
15084 \box\count@
15085 \hss{\columnseprulecolor\vrule
15086 \@width\columnseprule}\hss}%
15087 \ifdim\dp\mult@rightbox>\dimen\tw@
15088 \global\dimen\tw@\dp\mult@rightbox \fi
15089 \mc@lastcol@status@write
15090 \box\mult@rightbox
15091 }
15092

File multicol-xetex-bidi.def 310


15093 \def\RTL@column@boxes{%
15094 \ifnum\col@number<\tw@
15095 \LTR@column@boxes
15096 \else
15097 \process@cols\mult@gfirstbox{%
15098 \hskip\hsize
15099 \hss{\columnseprulecolor\vrule
15100 \@width\columnseprule}\hss
15101 }%
15102 \hskip\hsize
15103 \process@cols\mult@gfirstbox{%
15104 \ifdim\dp\count@>\dimen\tw@
15105 \global\dimen\tw@\dp\count@ \fi
15106 \hskip-\hsize
15107 \mc@col@status@write
15108 \box\count@
15109 \hskip-\hsize
15110 \hskip-\columnsep
15111 }%
15112 \ifdim\dp\mult@rightbox>\dimen\tw@
15113 \global\dimen\tw@\dp\mult@rightbox \fi
15114 \hskip-\hsize
15115 \mc@lastcol@status@write
15116 \box\mult@rightbox
15117 \hskip-\hsize
15118 \hskip\full@width
15119 \fi
15120 }
15121 \newcommand\RTLmulticolcolumns
15122 {\let\bidi@multicol@align@columns
15123 \RTL@column@boxes}
15124 \newcommand\LTRmulticolcolumns
15125 {\let\bidi@multicol@align@columns
15126 \LTR@column@boxes}
15127 \newcommand\bidi@multicol@align@columns
15128 {\if@RTLmain\RTL@column@boxes\else\LTR@column@boxes\fi}
15129 \bidi@AtEndPreamble{%
15130 \if@bidi@csdef{footinsv@l}{%
15131 \def\footnoterule{\kern-3\p@
15132 \hrule \@width \textwidth \kern 2.6\p@}%
15133 }{}%
15134 }
15135 \def\multicols#1{\col@number#1\relax
15136 \ifnum\col@number<\tw@
15137 \PackageWarning{multicol}%
15138 {Using `\number\col@number'
15139 columns doesn't seem a good idea.^^J
15140 I therefore use two columns instead}%
15141 \col@number\tw@ \fi
15142 \ifnum\col@number>10

File multicol-xetex-bidi.def 311


15143 \PackageError{multicol}%
15144 {Too many columns}%
15145 {Current implementation doesn't
15146 support more than 10 columns.%
15147 \MessageBreak
15148 I therefore use 10 columns instead}%
15149 \col@number10 \fi
15150 \ifx\@footnotetext\mult@footnotetext\else
15151 \let\orig@footnotetext\@footnotetext
15152 \let\@footnotetext\mult@footnotetext
15153 \fi
15154 \ifx\@LTRfootnotetext\mult@LTRfootnotetext\else
15155 \let\orig@LTRfootnotetext\@LTRfootnotetext
15156 \let\@LTRfootnotetext\mult@LTRfootnotetext
15157 \fi
15158 \ifx\@RTLfootnotetext\mult@RTLfootnotetext\else
15159 \let\orig@RTLfootnotetext\@RTLfootnotetext
15160 \let\@RTLfootnotetext\mult@RTLfootnotetext
15161 \fi
15162 \@ifnextchar[\mult@cols{\mult@cols[]}}
15163 \long\def\mult@footnotetext#1{\begingroup
15164 \hsize\textwidth
15165 \columnwidth\textwidth
15166 \orig@footnotetext{#1}\endgroup}
15167 \long\def\mult@LTRfootnotetext#1{\begingroup
15168 \hsize\textwidth
15169 \columnwidth\textwidth
15170 \orig@LTRfootnotetext{#1}\endgroup}
15171 \long\def\mult@RTLfootnotetext#1{\begingroup
15172 \hsize\textwidth
15173 \columnwidth\textwidth
15174 \orig@RTLfootnotetext{#1}\endgroup}
15175 \def\right@footnoterule{%
15176 \kern-3\p@
15177 \hbox to \textwidth{\hskip \dimexpr\textwidth-.4\columnwidth\relax \hrulefill }
15178 \kern2.6\p@}
15179 \def\textwidth@footnoterule{\kern-3\p@
15180 \hrule \@width \textwidth \kern 2.6\p@}
15181 \def\bidi@leave@mult@copyins{%
15182 \advance\dimen@-\skip\@bidi@copyins@
15183 \advance\dimen@-\ht\@bidi@copyins@
15184 }
15185 \bidi@AtEndPreamble{%
15186 \if@bidi@csdef{footinsv@l}{%
15187 \def\bidi@leave@mult@footins@vr{%
15188 \advance\dimen@-\skip\footinsv@r
15189 \advance\dimen@-\ht\footinsv@r
15190 }%
15191 \def\bidi@leave@mult@footins@vl{%
15192 \advance\dimen@-\skip\footinsv@l

File multicol-xetex-bidi.def 312


15193 \advance\dimen@-\ht\footinsv@l
15194 }%
15195 \def\bidi@init@mult@footinsv@r{%
15196 \multiply\count\footinsv@r\col@number
15197 \multiply\skip \footinsv@r\col@number
15198 }%
15199 \def\bidi@init@mult@footinsv@l{%
15200 \multiply\count\footinsv@l\col@number
15201 \multiply\skip \footinsv@l\col@number
15202 }%
15203 \def\bidi@reinsert@footnotesv@r{\ifvoid\footinsv@r\else
15204 \insert\footinsv@r{}\fi}%
15205 \def\bidi@reinsert@footnotesv@l{\ifvoid\footinsv@l\else
15206 \insert\footinsv@l{}\fi}%
15207 \bidi@patchcmd{\prepare@multicols}{%
15208 \reinsert@footnotes
15209 }{%
15210 \reinsert@footnotes
15211 \bidi@init@mult@footinsv@r
15212 \bidi@reinsert@footnotesv@r
15213 \bidi@init@mult@footinsv@l
15214 \bidi@reinsert@footnotesv@l
15215 }{}{}%
15216 \bidi@patchcmd{\multi@column@out}{%
15217 \ifnum \c@tracingmulticols>\thr@@
15218 }{%
15219 \ifvoid\footinsv@r
15220 \ifvoid\footinsv@l
15221 \else
15222 \PackageWarning{multicol}%
15223 {I moved some lines to
15224 the next page.\MessageBreak
15225 Footnotes on page
15226 \thepage\space might be wrong}%
15227 \fi
15228 \else
15229 \PackageWarning{multicol}%
15230 {I moved some lines to
15231 the next page.\MessageBreak
15232 Footnotes on page
15233 \thepage\space might be wrong}%
15234 \fi
15235 \ifnum \c@tracingmulticols>\thr@@
15236 }{}{}%
15237 \bidi@patchcmd{\endmulticols}{%
15238 \reinsert@footnotes
15239 }{%
15240 \reinsert@footnotes
15241 \bidi@reinsert@footnotesv@r
15242 \bidi@reinsert@footnotesv@l

File multicol-xetex-bidi.def 313


15243 }{}{}%
15244 \bidi@patchcmd{\speci@ls}{%
15245 \reinsert@footnotes
15246 }{%
15247 \reinsert@footnotes
15248 \bidi@reinsert@footnotesv@r
15249 \bidi@reinsert@footnotesv@l
15250 }{}{}%
15251 \bidi@patchcmd{\speci@ls}{%
15252 \reinsert@footnotes
15253 }{%
15254 \reinsert@footnotes
15255 \bidi@reinsert@footnotesv@r
15256 \bidi@reinsert@footnotesv@l
15257 }{}{}%
15258 }{}%
15259 \bidi@patchcmd{\multi@column@out}{%
15260 \ifvbox \@kludgeins
15261 }{%
15262 \if@bidi@csdef{footinsv@l}{%
15263 \divide\skip\footinsv@r\col@number
15264 \ifvoid\footinsv@r \else
15265 \bidi@leave@mult@footins@vr
15266 \fi
15267 \divide\skip\footinsv@l\col@number
15268 \ifvoid\footinsv@l \else
15269 \bidi@leave@mult@footins@vl
15270 \fi
15271 }{}%
15272 \ifvoid\@bidi@copyins@ \else
15273 \bidi@leave@mult@copyins
15274 \fi
15275 \ifvbox \@kludgeins
15276 }{}{}%
15277 }

86 File multienum-xetex-bidi.def
15278 \ProvidesFile{multienum-xetex-bidi.def}[2011/04/16 v0.1 bidi adaptations for multienum package
15279 \renewcommand{\itemx}[1]{\parbox[t]%
15280 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
15281 \parbox[t]{\remainx}{\bidi@raggedright #1}\par}%\smallskip
15282 \renewcommand{\itemxx}[2]{\parbox[t]%
15283 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15284 \parbox[t]{.5\remainxx}{\bidi@raggedright #1}\hfill\parbox[t]%
15285 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15286 \parbox[t]{0.5\remainxx}{\bidi@raggedright #2}\smallskip}
15287 \renewcommand{\itemxxx}[3]{\parbox[t]%
15288 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
15289 \parbox[t]{.3333\remainxxx}{\bidi@raggedright #1}\hfill\parbox[t]%

File multienum-xetex-bidi.def 314


15290 {\labelwidth}{\hfill {\labelname}}\hskip\labelsep%
15291 \parbox[t]{0.3333\remainxxx}{\bidi@raggedright #2}\hfill\parbox[t]%
15292 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
15293 \parbox[t]{0.3333\remainxxx}{\bidi@raggedright #3}\par}%\smallskip
15294 \renewcommand{\itemxxxx}[4]{\parbox[t]%
15295 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15296 \parbox[t]{.25\remainxxxx}{\bidi@raggedright #1}\hfill\parbox[t]%
15297 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15298 \parbox[t]{0.25\remainxxxx}{\bidi@raggedright #2}\hfill%
15299 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15300 \parbox[t]{0.25\remainxxxx}{\bidi@raggedright #3}\hfill%
15301 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15302 \parbox[t]{0.25\remainxxxx}{\bidi@raggedright #4}\smallskip}
15303 \renewcommand{\itemxxxxx}[5]{\parbox[t]%
15304 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15305 \parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #1}\hfill%
15306 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15307 \parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #2}\hfill%
15308 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15309 \parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #3}\hfill%
15310 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15311 \parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #4}\hfill%
15312 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15313 \parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #5}\smallskip}
15314 \renewcommand{\itemxox}[2]{\parbox[t]%
15315 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15316 \parbox[t]{\remainxox}{\bidi@raggedright #1}\hfill%
15317 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15318 \parbox[t]{0.3333\remainxxx}{\bidi@raggedright #2}\smallskip}
15319 \renewcommand{\itemxxo}[2]{\parbox[t]%
15320 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15321 \parbox[t]{0.3333\remainxxx}{\bidi@raggedright #1}\hfill%
15322 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15323 \parbox[t]{\remainxox}{\bidi@raggedright #2}\smallskip}
15324 \renewcommand{\itemxoxx}[3]{\parbox[t]%
15325 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15326 \parbox[t]{\remainxoxx}{\bidi@raggedright #1}\hfill%
15327 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15328 \parbox[t]{0.25\remainxxxx}{\bidi@raggedright #2}\hfill%
15329 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15330 \parbox[t]{0.25\remainxxxx}{\bidi@raggedright #3}\smallskip}
15331 \renewcommand{\itemxxox}[3]{\parbox[t]%
15332 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15333 \parbox[t]{.25\remainxxxx}{\bidi@raggedright #1}\hfill%
15334 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15335 \parbox[t]{\remainxoxx}{\bidi@raggedright #2}\hfill%
15336 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15337 \parbox[t]{0.25\remainxxxx}{\bidi@raggedright #3}\smallskip}
15338 \renewcommand{\itemxxxo}[3]{\parbox[t]%
15339 {\labelwidth}{\hfill{\labelname}}\hskip\labelsep

File multienum-xetex-bidi.def 315


15340 \parbox[t]{.25\remainxxxx}{\bidi@raggedright #1}\hfill%
15341 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15342 \parbox[t]{.25\remainxxxx}{\bidi@raggedright #2}\hfill%
15343 \parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
15344 \parbox[t]{\remainxoxx}{\bidi@raggedright #3}\smallskip}

87 File natbib-xetex-bidi.def
15345 \ProvidesFile{natbib-xetex-bidi.def}[2017/06/09 v0.2 bidi adaptations for natbib package for X
15346 \renewenvironment{thebibliography}[1]{%
15347 \bibsection
15348 \parindent\z@
15349 \bibpreamble
15350 \bibfont
15351 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
15352 \bidi@@thebibliography@font@hook%
15353 \list{\@biblabel{\the\c@NAT@ctr}}{\@bibsetup{#1}\global\c@NAT@ctr\z@}%
15354 \ifNAT@openbib
15355 \renewcommand\newblock{\par}%
15356 \else
15357 \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
15358 \fi
15359 \sloppy\clubpenalty4000\widowpenalty4000
15360 \sfcode`\.\@m
15361 \let\NAT@bibitem@first@sw\@firstoftwo
15362 \let\citeN\cite \let\shortcite\cite
15363 \let\citeasnoun\cite
15364 }{%
15365 \bibitem@fin
15366 \bibpostamble
15367 \def\@noitemerr{%
15368 \PackageWarning{natbib}{Empty `thebibliography' environment}%
15369 }%
15370 \endlist
15371 \bibcleanup
15372 }%

88 File newfloat-xetex-bidi.def
15373 \ProvidesFile{newfloat-xetex-bidi.def}[2013/05/22 v0.1 bidi adaptations for newfloat package f
15374 \renewcommand*\newfloat@setwithin[2]{%
15375 \ifcsname c@chapter\endcsname
15376 \@removefromreset{#1}{chapter}%
15377 \fi
15378 \@removefromreset{#1}{section}%
15379 \edef\@tempa{#2}%
15380 \ifx\@tempa\@empty
15381 \def\@tempa{none}%
15382 \fi
15383 \def\@tempb{none}%

File newfloat-xetex-bidi.def 316


15384 \ifx\@tempa\@tempb
15385 \ifcsname c@chapter\endcsname
15386 \@chapterlistsgap@off{#1}%
15387 \fi
15388 \newfloat@@setwithin{#1}{}{}%
15389 \else
15390 \def\@tempb{chapter}%
15391 \ifx\@tempa\@tempb
15392 \@addtoreset{#1}{chapter}%
15393 \@chapterlistsgap@on{#1}%
15394 \newfloat@@setwithin{#1}{\ifnum\c@chapter>\z@ \thechapter\@SepMark\fi}{\theHchapter\@Sep
15395 \else
15396 \def\@tempb{section}%
15397 \ifx\@tempa\@tempb
15398 \@addtoreset{#1}{section}%
15399 \ifcsname c@chapter\endcsname
15400 \@addtoreset{#1}{chapter}%
15401 \@chapterlistsgap@on{#1}%
15402 \newfloat@@setwithin{#1}{\thesection\@SepMark}{\theHsection\@SepMark}%
15403 \else
15404 \newfloat@@setwithin{#1}{\ifnum\c@section>\z@ \thesection\@SepMark\fi}{\theHsection\
15405 \fi
15406 \else
15407 \newfloat@Error{Invalid value `#2' for option `within'}%
15408 \fi
15409 \fi
15410 \fi}

89 File ntheorem-xetex-bidi.def
15411 \ProvidesFile{ntheorem-xetex-bidi.def}[2012/05/01 v0.1 bidi adaptations for ntheorem package f
15412 \gdef\@thm#1#2#3{%
15413 \if@thmmarks
15414 \stepcounter{end\InTheoType ctr}%
15415 \fi
15416 \renewcommand{\InTheoType}{#1}%
15417 \if@thmmarks
15418 \stepcounter{curr#1ctr}%
15419 \setcounter{end#1ctr}{0}%
15420 \fi
15421 \refstepcounter{#2}%
15422 \theorem@prework
15423 \thm@topsepadd \theorempostskipamount % cf. latex.ltx: \@trivlist
15424 \ifvmode \advance\thm@topsepadd\partopsep\fi
15425 \trivlist
15426 \@topsep \theorempreskipamount
15427 \@topsepadd \thm@topsepadd % used by \@endparenv
15428 \advance\linewidth -\theorem@indent
15429 \advance\@totalleftmargin \theorem@indent
15430 \if@RTL\parshape \@ne 0pt \linewidth\else \parshape \@ne \@totalleftmargin \linewidth\fi

File ntheorem-xetex-bidi.def 317


15431 \@ifnextchar[{\@ythm{#1}{#2}{#3}}{\@xthm{#1}{#2}{#3}}}

90 File ntheorem-hyper-xetex-bidi.def
15432 \ProvidesFile{ntheorem-hyper-xetex-bidi.def}[2012/05/01 v0.1 bidi adaptations for ntheorem-hyp
15433 \gdef\@thm#1#2#3{%
15434 \if@thmmarks
15435 \stepcounter{end\InTheoType ctr}%
15436 \fi
15437 \renewcommand{\InTheoType}{#1}%
15438 \if@thmmarks
15439 \stepcounter{curr#1ctr}%
15440 \setcounter{end#1ctr}{0}%
15441 \fi
15442 \refstepcounter{#2}%
15443 \thm@topsepadd \theorempostskipamount % cf. latex.ltx: \@trivlist
15444 \ifvmode \advance\thm@topsepadd\partopsep\fi
15445 \trivlist
15446 \@topsep \theorempreskipamount
15447 \@topsepadd \thm@topsepadd % used by \@endparenv
15448 \advance\linewidth -\theorem@indent
15449 \advance\@totalleftmargin \theorem@indent
15450 \if@RTL\parshape \@ne 0pt \linewidth\else \parshape \@ne \@totalleftmargin \linewidth\fi
15451 \@ifnextchar[{\@ythm{#1}{#2}{#3}}{\@xthm{#1}{#2}{#3}}}

91 File overpic-xetex-bidi.def
15452 \ProvidesFile{overpic-xetex-bidi.def}[2015/12/07 v0.1 bidi adaptations for overpic package for
15453 \renewenvironment{overpic}[2][]{%
15454 \sbox{\z@}{\includegraphics[#1]{#2}}%
15455 \settodepth{\@tempcnta}{\usebox{\z@}}%
15456 \settoheight{\@tempcntb}{\usebox{\z@}}%
15457 \advance\@tempcntb\@tempcnta%
15458 \settowidth{\@tempcnta}{\usebox{\z@}}%
15459 \setlength{\@tempdima}{\unitlength}%
15460 \count@=\z@\Gin@gridfalse\setkeys{Gin}{#1}%
15461 %
15462 \OVP@calc%
15463 %
15464 \begin{picture}(\@tempcnta,\@tempcntb)%
15465 \if@RTL\else\put(0,0){\makebox(0,0)[bl]{\usebox{\z@}}}%
15466 \ifGin@grid%
15467 \put(0,0){\normalfont\fontsize\@viipt\@viiipt\selectfont%
15468 \grid(\@tempcnta,\@tempcntb)(\count@,\count@)[0,0]}%
15469 \fi\fi%
15470 % reset the graphics parameter
15471 \let\Gin@outer@scalex\relax
15472 \let\Gin@outer@scaley\relax
15473 \let\Gin@angle\relax
15474 \let\Gin@ewidth\Gin@exclamation

File overpic-xetex-bidi.def 318


15475 \let\Gin@eheight\Gin@ewidth
15476 \def\Gin@scalex{1}
15477 \let\Gin@scaley\Gin@exclamation
15478 }{%
15479 \if@RTL\ifGin@grid%
15480 \put(0,0){\normalfont\fontsize\@viipt\@viiipt\selectfont%
15481 \grid(\@tempcnta,\@tempcntb)(\count@,\count@)[0,0]}%
15482 \fi%
15483 \put(0,0){\makebox(0,0)[bl]{\usebox{\z@}}}\fi%
15484 \end{picture}%
15485 }%

92 File pdfbase-xetex-bidi.def
15486 \ProvidesFile{pdfbase-xetex-bidi.def}[2020/05/13 v0.3 bidi adaptations for pdfbase package for
15487 \ExplSyntaxOn
15488 \cs_set_eq:NN\pbs_outputpage_orig:\@outputpage
15489 \cs_set_nopar:Npn\@outputpage{
15490 \int_gincr:N\g_pbs_page_int
15491 \iow_now:Nx\@mainaux{
15492 \token_to_str:N\pbs@newkey{pbs@last@page}{\int_use:N\g_pbs_page_int}
15493 }
15494 \box_if_vertical:cTF{@outputbox}{
15495 \bool_set_true:N\l_pbs_is_vertical_bool
15496 }{
15497 \bool_set_false:N\l_pbs_is_vertical_bool
15498 }
15499 \hbox_set:Nn\@outputbox{
15500 %begin of page
15501 \hbox_overlap_right:n{\seq_map_inline:Nn\g_pbs_bop_seq{##1}}
15502 \box_use_drop:N\@outputbox
15503 %end of page
15504 \hbox_overlap_right:n{\seq_map_inline:Nn\g_pbs_eop_seq{##1}}
15505 }
15506 \bool_if:NT\l_pbs_is_vertical_bool{
15507 \vbox_set:Nn\@outputbox{\box_use_drop:N\@outputbox}
15508 }
15509 \pbs_outputpage_orig:
15510 }
15511 \ExplSyntaxOff

93 File pdfpages-xetex-bidi.def
15512 \ProvidesFile{pdfpages-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for pdfpages package f
15513 \renewcommand*{\includepdf}[2][]{%
15514 \begingroup
15515 \@RTLfalse
15516 \let\AM@threadname\relax
15517 \AM@split@options{pdfpages}{#1}%
15518 \edef\AM@temp{{pdfpages}{\the\@temptokena}}%

File pdfpages-xetex-bidi.def 319


15519 \expandafter\setkeys\AM@temp
15520 \ifthenelse{\boolean{AM@pkg@draft} \and \boolean{AM@survey}}{%
15521 \let\AM@currentdocname\relax
15522 \renewcommand\includegraphics[2][]{Survey in draft-mode}%
15523 \def\AM@pagecount{0}%
15524 }{%
15525 \AM@findfile{#2}%
15526 \if\AM@threadname\relax
15527 \def\AM@threadname{\AM@currentdocname}%
15528 \fi
15529 }%
15530 \ifAM@survey
15531 \def\AM@pagestemp{}%
15532 \@tempcnta=0
15533 \def\foo{%
15534 \@ifundefined{r@\AM@xrprefix pdfpages@page\the\@tempcnta}%
15535 {\let\foo\relax}
15536 {\expandafter\ifx\expandafter\\\AM@pagestemp\\
15537 \edef\AM@pagestemp{%
15538 \AM@pageref{\AM@xrprefix pdfpages@page\the\@tempcnta}}%
15539 \else
15540 \edef\AM@pagestemp{\AM@pagestemp,%
15541 \AM@pageref{\AM@xrprefix pdfpages@page\the\@tempcnta}}%
15542 \fi
15543 \advance\@tempcnta 1\relax
15544 }%
15545 \foo
15546 }%
15547 \foo
15548 \expandafter\ifx\expandafter\\\AM@pagestemp\\
15549 \def\AM@pagestemp{1}%
15550 \fi
15551 \fi
15552 \ifAM@output
15553 \expandafter\AM@readlist\expandafter{\AM@pagestemp}%
15554 \AM@output{#1}%
15555 \fi
15556 \AM@CheckAtEnd
15557 \endgroup
15558 \AM@ClearShipoutPicture
15559 }

94 File pgfcorescopes.code-xetex-bidi.def
15560 \ProvidesFile{pgfcorescopes.code-xetex-bidi.def}[2015/11/14 v0.1 bidi adaptations for pgf pack
15561 \def\pgfpicture{%
15562 \begingroup%
15563 \ifmmode\else\@RTLfalse\beginL\fi%
15564 \pgfpicturetrue%
15565 \global\advance\pgf@picture@serial@count by1\relax%

File pgfcorescopes.code-xetex-bidi.def 320


15566 \edef\pgfpictureid{pgfid\the\pgf@picture@serial@count}%
15567 \let\pgf@nodecallback=\pgfutil@gobble%
15568 \pgf@picmaxx=-16000pt\relax%
15569 \pgf@picminx=16000pt\relax%
15570 \pgf@picmaxy=-16000pt\relax%
15571 \pgf@picminy=16000pt\relax%
15572 \pgf@relevantforpicturesizetrue%
15573 \pgf@resetpathsizes%
15574 \pgfutil@ifnextchar\bgroup\pgf@oldpicture\pgf@picture}
15575 \def\endpgfpicture{%
15576 \ifpgfrememberpicturepositiononpage%
15577 \hbox to0pt{\pgfsys@markposition{\pgfpictureid}}%
15578 \fi%
15579 % ok, now let's position the box
15580 \ifdim\pgf@picmaxx=-16000pt\relax%
15581 % empty picture. make size 0.
15582 \global\pgf@picmaxx=0pt\relax%
15583 \global\pgf@picminx=0pt\relax%
15584 \global\pgf@picmaxy=0pt\relax%
15585 \global\pgf@picminy=0pt\relax%
15586 \fi%
15587 % Shift baseline outside:
15588 \pgf@relevantforpicturesizefalse%
15589 \pgf@process{\pgf@baseline}%
15590 \xdef\pgf@shift@baseline{\the\pgf@y}%
15591 %
15592 \pgf@process{\pgf@trimleft}%
15593 \global\advance\pgf@x by-\pgf@picminx
15594 % prepare \hskip\pgf@trimleft@final.
15595 % note that \pgf@trimleft@final is also queried
15596 % by the pgf image externalization.
15597 \xdef\pgf@trimleft@final{-\the\pgf@x}%
15598 %
15599 \pgf@process{\pgf@trimright}%
15600 \global\advance\pgf@x by-\pgf@picmaxx
15601 % prepare \hskip\pgf@trimright@final.
15602 % note that \pgf@trimright@final is also queried
15603 % by the pgf image externalization.
15604 \xdef\pgf@trimright@final{\the\pgf@x}%
15605 %
15606 \pgf@remember@layerlist@globally
15607 \endgroup%
15608 \hss%
15609 \egroup%
15610 \pgf@restore@layerlist@from@global
15611 \pgf@insertlayers%
15612 \endgroup%
15613 \pgfsys@discardpath%
15614 \endgroup%
15615 \pgfsys@endscope%

File pgfcorescopes.code-xetex-bidi.def 321


15616 \pgfsys@endpicture%
15617 \endgroup%
15618 \hss
15619 \egroup%
15620 \pgfsys@typesetpicturebox\pgfpic%
15621 \ifmmode\else\endL\fi%
15622 \endgroup%
15623 }

95 File picinpar-xetex-bidi.def
15624 \ProvidesFile{picinpar-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for picinpar package f
15625 \long\def\@makewincaption#1#2{%
15626 \setbox\@tempboxa\hbox{\footnotesize{\bf #1:\enspace}{#2}}%
15627 \ifdim\wd\@tempboxa>\picwd
15628 {\footnotesize{\bf #1:\enspace}{#2\par}}
15629 \else
15630 \hbox to\picwd{\if@RTL\beginR\fi\hfil\box\@tempboxa\hfil\if@RTL\endR\fi}
15631 \fi}
15632 \def\endwindow{%
15633 \global\tcd=\tcdsav
15634 \egroup\vskip\parskip\parshape=0 % reset parshape; end \box\rawtext
15635 \vbadness=10000
15636 \splittopskip=0pt
15637 %
15638 % Typeset the lines above the window
15639 %
15640 \ifnum\tcd>0\setbox\holder=\vsplit\rawtext to \tcd\baselineskip
15641 \tcn=\tcd
15642 \loop\advance\tcn -1
15643 \setbox\fslice=\vsplit\holder to\baselineskip
15644 \prune\fslice\linewidth
15645 \topheight=0pt
15646 \ifnum\dp\fslice>\dp\wstrutbox
15647 \advance\topheight-\dp\fslice
15648 \advance\topheight\dp\wstrutbox
15649 \advance\topheight\ilg\fi
15650 \hbox to\linewidth{\box\fslice}
15651 \vskip-\topheight
15652 \ifdim\ht\holder>0pt\repeat
15653 \fi
15654 %
15655 % Now we build the boxes beside the window
15656 %
15657 \global\topheight=\tcl\baselineskip
15658 \ifnum\cumpartcl>0\global\tcl=\cumtcl
15659 \global\topheight=\vpic
15660 \fi
15661 \ifnum\bl>0 \ifnum\br>0 \multiply\topheight by 2\fi\fi
15662 \ifnum\bl>0\setbox\holder=\vsplit\rawtext to\topheight

File picinpar-xetex-bidi.def 322


15663 \else\ifnum\br>0\setbox\holder=\vsplit\rawtext to\topheight\fi\fi
15664 \tcn=\tcl \na=0 \nb=0
15665 \ifnum\bl>0 \ifnum\br>0 \multiply\tcn by 2\fi\fi
15666 \ifnum\bl>0\na=\tcn\ifnum\br>0\divide\na by 2\fi\fi
15667 \ifnum\br>0\nb=\tcn\ifnum\bl>0\divide\nb by 2\fi\fi
15668 \ifnum\na=0\ifnum\nb=0
15669 \setbox\waslice=\vbox to\vpic{\vss}
15670 \setbox\wbslice=\vbox to\vpic{\vss}
15671 \bl=1\br=1
15672 \vskip\ilg
15673 \fi\fi
15674 %
15675 % both sides
15676 %
15677 \ifnum\na>0 \ifnum\nb>0
15678 \loop\advance\nb -1
15679 \advance\na -1
15680 \if@RTL%
15681 \setbox\bslice=\vsplit\holder to\baselineskip
15682 \prune\bslice\rtside
15683 \setbox\wbslice=\vbox{\unvbox\wbslice\hbox
15684 to\rtside{\box\bslice\hfil}}
15685 \setbox\aslice=\vsplit\holder to\baselineskip
15686 \prune\aslice\lftside
15687 \setbox\waslice=\vbox{\unvbox\waslice\hbox
15688 to\lftside{\box\aslice\hfil}}
15689 \else%
15690 \setbox\aslice=\vsplit\holder to\baselineskip
15691 \prune\aslice\lftside
15692 \setbox\waslice=\vbox{\unvbox\waslice\hbox
15693 to\lftside{\box\aslice\hfil}}
15694 \setbox\bslice=\vsplit\holder to\baselineskip
15695 \prune\bslice\rtside
15696 \setbox\wbslice=\vbox{\unvbox\wbslice\hbox
15697 to\rtside{\box\bslice\hfil}}
15698 \fi%
15699 \ifnum\nb>0\repeat
15700 \fi\fi
15701 %
15702 % only text on the left side
15703 %
15704 \ifnum\na>0
15705 \loop\advance\na -1
15706 \setbox\aslice=\vsplit\holder to\baselineskip
15707 \prune\aslice\lftside
15708 \setbox\waslice=\vbox{\unvbox\waslice\hbox
15709 to\lftside{\box\aslice\hfil}}
15710 \ifdim\ht\holder>0pt\repeat
15711 \fi
15712 %

File picinpar-xetex-bidi.def 323


15713 % only text on the right side
15714 %
15715 \ifnum\nb>0
15716 \loop\advance\nb -1
15717 \setbox\bslice=\vsplit\holder to\baselineskip
15718 \prune\bslice\rtside
15719 \setbox\wbslice=\vbox{\unvbox\wbslice\hbox
15720 to\rtside{\box\bslice\hfil}}
15721 \ifdim\ht\holder>0pt\repeat
15722 \fi
15723 %
15724 % fixing the dimensions of the window part
15725 %
15726 \ifnum\bl=0\topheight=\ht\wbslice
15727 \else\ifnum\br=0\topheight=\ht\waslice
15728 \else\ifdim\ht\waslice>\ht\wbslice\topheight=\ht\waslice
15729 \else\topheight=\ht\wbslice\fi\fi\fi
15730 %
15731 % ship out the window material to the main vertical list
15732 %
15733 \ifnum\bl>0 \ifnum\br>0 \ifdim\ht\wbslice<\topheight
15734 \setbox\wbslice=\vbox to\topheight{\box\wbslice\vfill}
15735 \fi\fi\fi
15736 \setbox\windowbox=\vbox{\hbox to\linewidth{%
15737 \ifnum\bl>0\box\waslice\hfill\fi%
15738 \vbox to\topheight{\hrule width\picwd height0pt depth0pt\vskip0pt%
15739 \vfill\unvbox\picbox%
15740 \ifnum\picwd>0\vfill\fi%
15741 \vss}\ifnum\br>0\hfill\vbox{\box\wbslice}\fi}}%
15742 \unvbox\windowbox%
15743 \loop
15744 \setbox\bslice=\vsplit\rawtext to\baselineskip
15745 \prune\bslice\linewidth
15746 \setbox\wbslice=\vbox{\hbox to\linewidth{\box\bslice\hfil}}
15747 \unvbox\wbslice
15748 \ifdim\ht\rawtext>0pt
15749 \repeat
15750 }% FINITO

96 File plain-xetex-bidi.def
15751 \def\TeXXeTOn{\TeXXeTstate=1 }
15752 \def\TeXXeTOff{\TeXXeTstate=0 }
15753 \TeXXeTOn
15754 \def\usebox#1{\leavevmode\copy #1\relax}
15755 \def\bidi@RTL@everypar{{\setbox\z@\lastbox\if@RTL\beginR\else\beginL\fi\ifvoid\z@\else\usebox\
15756 \let\bidi@o@everypar=\everypar
15757 \newtoks\bidi@n@everypar
15758 \bidi@n@everypar\expandafter{\the\bidi@o@everypar}
15759 \bidi@o@everypar{\bidi@RTL@everypar\the\bidi@n@everypar}

File plain-xetex-bidi.def 324


15760 \let\everypar=\bidi@n@everypar
15761 \def\moreLRE{\bracetext \aftergroup\endL \beginL\@RTLfalse}
15762 \def\moreRLE{\bracetext \aftergroup\endR \beginR\@RTLtrue}
15763 \protected\def\hboxR{\hbox\bgroup
15764 \everyhbox{%
15765 \aftergroup\egroup
15766 \everyhbox{}%
15767 \beginR
15768 \@hboxRconstructtrue
15769 \bgroup
15770 \aftergroup\endR
15771 \aftergroup\egroup
15772 }\hbox}
15773 \protected\def\hboxL{\hbox\bgroup
15774 \everyhbox{%
15775 \aftergroup\egroup
15776 \everyhbox{}%
15777 \beginL
15778 \@hboxRconstructfalse
15779 \bgroup
15780 \aftergroup\endL
15781 \aftergroup\egroup
15782 }\hbox}
15783 \protected\def\vboxR{\vbox\bgroup
15784 \everyvbox{%
15785 \aftergroup\egroup
15786 \everyvbox{}%
15787 \@RTLtrue
15788 \bgroup
15789 \aftergroup\egroup
15790 }\vbox}
15791 \protected\def\vboxL{\vbox\bgroup
15792 \everyvbox{%
15793 \aftergroup\egroup
15794 \everyvbox{}%
15795 \@RTLfalse
15796 \bgroup
15797 \aftergroup\egroup
15798 }\vbox}
15799 \def\LTR{\par\@RTLfalse\@RTL@footnotefalse\hsize\linewidth\parshape\z@}
15800 \def\endLTR{\par}
15801 \def\RTL{\par\@RTLtrue\@RTL@footnotetrue\hsize\linewidth\parshape\z@}
15802 \def\endRTL{\par}
15803 \def\setRTL{\@RTLtrue\@RTL@footnotetrue}
15804 \def\setLTR{\@RTLfalse\@RTL@footnotefalse}
15805 \let\unsetRTL=\setLTR
15806 \let\unsetLTR=\setRTL
15807 \let\LR=\LRE
15808 \let\RL=\RLE
15809 \def\@ensure@RTL#1{\if@RTL#1\else\RLE{#1}\fi}

File plain-xetex-bidi.def 325


15810 \def\@ensure@LTR#1{\if@RTL\LRE{#1}\else#1\fi}
15811 \let\@ensure@RL=\@ensure@RTL
15812 \let\@ensure@LR=\@ensure@LTR
15813 \def\@ensure@dir#1{\if@RTL\RLE{#1}\else{#1}\fi}
15814 \let\@ensure@maindir=\@ensure@dir
15815 \def\@@RTL{RTL}
15816 \def\@@LTR{LTR}
15817 \def\save@dir{\if@RTL\gdef\saved@@dir{RTL}\else\gdef\saved@@dir{LTR}\fi}
15818 \def\reset@dir{\ifx\saved@@dir\@@RTL\setRTL\else\ifx\saved@@dir\@@LTR\setLTR\else\relax\fi\fi}
15819 \let\@@TeX\TeX
15820 \def\TeX{\@ensure@LTR{\@@TeX}}
15821 \def\pagecontents{\ifvoid\topins\else\unvbox\topins\fi
15822 \dimen@=\dp\@cclv \unvbox\@cclv % open up \box255
15823 \ifvoid\footins\else % footnote info is present
15824 \vskip\skip\footins
15825 \footnoterule
15826 \unvbox\footins\fi
15827 \ifr@ggedbottom \kern-\dimen@ \vfil \fi
15828 \ifvoid\@bidi@copyins@
15829 \else
15830 \vskip\skip\@bidi@copyins@
15831 \unvbox\@bidi@copyins@
15832 \fi
15833 }
15834 \long\def\bidi@reflect@box#1{%
15835 \leavevmode
15836 \setbox\z@\hbox{{#1}}%
15837 \setbox\tw@\hbox{\special{x:gsave}\special{x:scale -1 1}\rlap{\copy\z@}\special{x:grestore}}
15838 \hbox to \wd\z@{\kern\wd\z@\box\tw@\hss}%
15839 }
15840 \def\XeTeX{\LR{\leavevmode$\smash{\hbox{X\lower.5ex
15841 \hbox{\kern-.125em\bidi@reflect@box{E}}\kern-.1667em \TeX}}$}}
15842 \let\setRL=\setRTL
15843 \let\setLR=\setLTR
15844 \let\unsetRL=\setLTR
15845 \let\bidi@saved@eqno=\eqno
15846 \let\bidi@saved@leqno=\leqno
15847 \def\eqno{\ifnum\predisplaydirection<\z@ \bidi@saved@leqno \else \bidi@saved@eqno \fi}
15848 \def\leqno{\ifnum\predisplaydirection<\z@ \bidi@saved@eqno \else \bidi@saved@leqno \fi}
15849 \def\centerline#1{\line{\hss\if@RTL\beginR\fi#1\if@RTL\endR\fi\hss}}
15850 \def\leftline#1{\line{\if@RTL\beginR\fi#1\if@RTL\endR\fi\hss}}
15851 \def\rightline#1{\line{\hss\if@RTL\beginR\fi#1\if@RTL\endR\fi}}

97 File pstricks-xetex-bidi.def
15852 \ProvidesFile{pstricks-xetex-bidi.def}[2015/11/18 v0.5 bidi adaptations for pstricks package f
15853 \def\pspicture{\begingroup\ifmmode\else\@RTLfalse\beginL\fi\pst@ifstar\pst@picture}
15854 \def\endpspicture{%
15855 \ifshowgrid\ifnum\showgridp@s>0
15856 \psgrid[xunit=\sh@wgridXunit,yunit=\sh@wgridYunit,style=gridstyle]\fi\fi%

File pstricks-xetex-bidi.def 326


15857 \pst@killglue
15858 % \global\pst@shift=\pst@shift% in fact of the following endgroup
15859 \endgroup
15860 \egroup
15861 \ifdim\wd\pst@hbox=\z@\else
15862 %\@pstrickserr{Extraneous space in the pspicture environment}%
15863 %{Type \space <return> \space to proceed.}%
15864 \fi
15865 \ht\pst@hbox=\pst@dimd
15866 \dp\pst@hbox=-\pst@dimb
15867 \setbox\pst@hbox=\hbox{%
15868 \kern-\pst@dima
15869 % Orig version ----------
15870 %\ifx\pst@tempa\@empty\else
15871 %\advance\pst@dimd-\pst@dimb
15872 %\pst@dimd=\pst@tempa\pst@dimd
15873 %\advance\pst@dimd\pst@dimb
15874 %\lower\pst@dimd
15875 %\fi
15876 %----- end Orig
15877 \ifPst@shift@star%\typeout{==pstricks== old behaviour of the shift option}% shift=*
15878 \advance\pst@dimd-\pst@dimb
15879 \pst@dimd=0.5\pst@dimd
15880 \else\pst@dimd-\pst@shift\fi
15881 \advance\pst@dimd\pst@dimb
15882 \lower\pst@dimd
15883 \box\pst@hbox
15884 \kern\pst@dimc}%
15885 \if@star\setbox\pst@hbox=\hbox{\clipbox@@\z@}\fi
15886 \leavevmode\ifdim\overfullrule=\z@\box\pst@hbox\else
15887 \fboxsep=0pt
15888 \fbox{\rule[-\pst@shift]{0pt}{\ht\pst@hbox}\rule{\wd\pst@hbox}{0pt}}\fi
15889 \ifmmode\else\endL\fi
15890 \endgroup%
15891 \psset[pstricks]{shift=0}% reset value
15892 }

98 File quotchap-xetex-bidi.def
15893 \ProvidesFile{quotchap-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for quotchap package f
15894 \renewcommand{\qauthor}[1]{%
15895 \par\smallskip
15896 {\if@RTL\raggedright\else\raggedleft\fi\upshape #1\qquad\hbox{}\par}\bigskip}
15897 \renewcommand{\@makechapterhead}[1]{\chapterheadstartvskip%
15898 {\size@chapter{\sectfont\if@RTL\raggedright\else\raggedleft\fi
15899 {\chapnumfont
15900 \ifnum \c@secnumdepth >\m@ne%
15901 \if@mainmatter\thechapter%
15902 \fi\fi
15903 \par\nobreak}%

File quotchap-xetex-bidi.def 327


15904 {\if@RTL\raggedright\else\raggedleft\fi\advance\if@RTL\rightmargin\else\leftmargin\fi10e
15905 \nobreak\chapterheadendvskip}}
15906 \renewcommand*{\@iprintcites}{%
15907 \vbox to\z@{\leavevmode\copy\@quotebox\vss}
15908 \global\let\@printcites\relax}

99 File ragged2e-xetex-bidi.def
15909 \ProvidesFile{ragged2e-xetex-bidi.def}[2018/10/17 v0.3 bidi adaptations for ragged2e package f
15910 \renewcommand{\Centering}{%
15911 \ifx\\\@raggedtwoe@savedcr
15912 \let\\\@centercr
15913 \fi
15914 \let\@gnewline\@raggedtwoe@gnewline
15915 \if@RTL\rightskip\else\leftskip\fi\CenteringLeftskip
15916 \@rightskip\CenteringRightskip
15917 \if@RTL\leftskip\else\rightskip\fi\@rightskip
15918 \parfillskip\CenteringParfillskip
15919 \parindent\CenteringParindent
15920 \@raggedtwoe@spaceskiptrue
15921 \@raggedtwoe@everyselectfont
15922 }
15923 \renewcommand{\RaggedLeft}{%
15924 \ifx\\\@raggedtwoe@savedcr
15925 \let\\\@centercr
15926 \fi
15927 \let\@gnewline\@raggedtwoe@gnewline
15928 \if@RTL\rightskip\else\leftskip\fi\RaggedLeftLeftskip
15929 \@rightskip\RaggedLeftRightskip
15930 \if@RTL\leftskip\else\rightskip\fi\@rightskip
15931 \parfillskip\RaggedLeftParfillskip
15932 \parindent\RaggedLeftParindent
15933 \@raggedtwoe@spaceskiptrue
15934 \@raggedtwoe@everyselectfont
15935 }
15936 \renewcommand{\RaggedRight}{%
15937 \ifx\\\@raggedtwoe@savedcr
15938 \let\\\@centercr
15939 \fi
15940 \let\@gnewline\@raggedtwoe@gnewline
15941 \if@RTL\rightskip\else\leftskip\fi\RaggedRightLeftskip
15942 \@rightskip\RaggedRightRightskip
15943 \if@RTL\leftskip\else\rightskip\fi\@rightskip
15944 \parfillskip\RaggedRightParfillskip
15945 \parindent\RaggedRightParindent
15946 \@raggedtwoe@spaceskiptrue
15947 \@raggedtwoe@everyselectfont
15948 }
15949 \renewcommand{\justifying}{%
15950 \let\\\@raggedtwoe@savedcr

File ragged2e-xetex-bidi.def 328


15951 \let\@gnewline\@raggedtwoe@saved@gnewline
15952 \if@RTL\rightskip\else\leftskip\fi\z@
15953 \@rightskip\z@
15954 \if@RTL\leftskip\else\rightskip\fi\@rightskip
15955 \parfillskip\JustifyingParfillskip
15956 \parindent\JustifyingParindent
15957 \@raggedtwoe@spaceskipfalse
15958 \@raggedtwoe@everyselectfont
15959 }
15960 \def\@raggedtwoe@raggedrightboxes@opt{%
15961 \renewcommand{\@arrayparboxrestore}{%
15962 \let\if@nobreak\iffalse
15963 \let\if@noskipsec\iffalse
15964 \let\par\@@par
15965 \let\-\@dischyph
15966 \let\'\@acci\let\`\@accii\let\=\@acciii
15967 \parskip\z@skip
15968 \everypar{}%
15969 \linewidth\hsize
15970 \@totalleftmargin\z@
15971 \if@RTL
15972 \RaggedLeft
15973 \else
15974 \RaggedRight
15975 \fi
15976 \lineskip\normallineskip
15977 \baselineskip\normalbaselineskip
15978 \sloppy}%
15979 \let\@raggedtwoe@raggedrightboxes@opt\relax
15980 }
15981 \def\@raggedtwoe@document@opt{%
15982 \AtBeginDocument{\@raggedtwoe@abdhook}%
15983 \@raggedtwoe@raggedrightboxes@opt
15984 \@raggedtwoe@footmisctrue
15985 \let\@raggedtwoe@document@opt\relax
15986 }
15987 \def\@raggedtwoe@abdhook{%
15988 \PackageInfo{ragged2e}{ABD: executing `\string\RaggedLeft' for
15989 right to left documents and `\string\RaggedRight' for left
15990 to right documents}%
15991 \if@RTL
15992 \RaggedLeft
15993 \else
15994 \RaggedRight
15995 \fi
15996 \@ifundefined{@tocrmarg}{}{\edef\@tocrmarg{\@tocrmarg plus 2em}}%
15997 \let\@raggedtwoe@abdhook\relax
15998 }
15999 \@ifpackagewith{ragged2e}{raggedrightboxes}{%
16000 \@raggedtwoe@raggedrightboxes@opt

File ragged2e-xetex-bidi.def 329


16001 }{}
16002 \@ifpackagewith{ragged2e}{document}{%
16003 \@raggedtwoe@document@opt
16004 }{}
16005 \let\origin@RaggedLeft=\RaggedLeft
16006 \let\origin@RaggedRight=\RaggedRight
16007 \def\RaggedLeft{\if@RTL\origin@RaggedRight\else\origin@RaggedLeft\fi}
16008 \def\RaggedRight{\if@RTL\origin@RaggedLeft\else\origin@RaggedRight\fi}

100 File rapport1-xetex-bidi.def


16009 \ProvidesFile{rapport1-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for rapport1 class for
16010 \renewenvironment{theindex}{%
16011 \if@twocolumn
16012 \@restonecolfalse
16013 \else
16014 \@restonecoltrue
16015 \fi
16016 \columnseprule \z@
16017 \columnsep 35\p@
16018 \twocolumn[\@makeschapterhead{\indexname}]%
16019 \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
16020 \thispagestyle{plain}\parindent\z@
16021 \parskip\z@ \@plus .3\p@\relax
16022 \let\item\@idxitem
16023 }{%
16024 \if@restonecol\onecolumn\else\clearpage\fi}
16025 \renewcommand*\head@style{%
16026 \interlinepenalty \@M
16027 \hyphenpenalty=\@M \exhyphenpenalty=\@M
16028 \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
16029 \if@titlepage
16030 \renewenvironment{abstract}{%
16031 \titlepage
16032 \null\vfil
16033 \section*{\SectFont\abstractname}%
16034 \noindent\ignorespaces}
16035 {\par\vfil\null\endtitlepage}
16036 \else
16037 \renewenvironment{abstract}{%
16038 \if@twocolumn
16039 \section*{\abstractname}%
16040 \else
16041 \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
16042 \section*{\small\SectFont\abstractname}%
16043 \noindent\ignorespaces
16044 \fi}
16045 {\if@twocolumn\else\par\egroup\fi}
16046 \fi
16047 \renewcommand*\@regtocline[3]{%

File rapport1-xetex-bidi.def 330


16048 \ifnum #1>\c@tocdepth
16049 \else
16050 \vskip\z@\@plus.2\p@
16051 {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
16052 \if@RTL\rightskip\else\leftskip\fi\unitindent
16053 \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
16054 \parfillskip\z@
16055 \@tempdima\unitindent
16056 \parindent\z@
16057 \leavevmode
16058 \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
16059 \hskip 1em \nobreak{\slshape #3}\par
16060 }%
16061 \fi}
16062 \if@oldtoc
16063 \renewcommand*\l@part[2]{%
16064 \ifnum \c@tocdepth >-2\relax
16065 \addpenalty{-\@highpenalty}%
16066 \addvspace{2.25em \@plus\p@}%
16067 \begingroup
16068 \setlength\@tempdima{3em}%
16069 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
16070 \parfillskip -\@pnumwidth
16071 {\leavevmode
16072 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
16073 \nobreak
16074 \global\@nobreaktrue
16075 \everypar{\global\@nobreakfalse\everypar{}}%
16076 \endgroup
16077 \fi}
16078 \else
16079 \renewcommand*\l@part{%
16080 \ifnum \c@tocdepth >-2\relax
16081 \addpenalty{-\@highpenalty}%
16082 \addvspace{2.25em \@plus \p@}%
16083 \@regtocline{0}%
16084 \fi}
16085 \fi
16086 \if@oldtoc
16087 \renewcommand*\l@chapter[2]{%
16088 \addpenalty{-\@highpenalty}%
16089 \vskip 1.0em \@plus\p@
16090 \setlength\@tempdima{1.5em}%
16091 \begingroup
16092 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
16093 \parfillskip -\@pnumwidth
16094 \leavevmode \bfseries
16095 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
16096 \hskip -\if@RTL\rightskip\else\leftskip\fi
16097 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par

File rapport1-xetex-bidi.def 331


16098 \penalty\@highpenalty
16099 \endgroup}
16100 \else
16101 \renewcommand*\l@chapter{\@regtocline{0}}
16102 \fi
16103 \renewcommand*\left@footnoterule{%
16104 \kern-3\p@
16105 \kern.5\baselineskip
16106 \hrule\@width\unitindent
16107 \kern.4\baselineskip
16108 }
16109 \renewcommand*\right@footnoterule{%
16110 \kern-3\p@
16111 \kern.5\baselineskip
16112 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
16113 \kern.4\baselineskip}
16114 \renewenvironment{thebibliography}[1]
16115 {\chapter*{\bibname}%
16116 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
16117 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
16118 \bidi@@thebibliography@font@hook%
16119 \list{\@biblabel{\@arabic\c@enumiv}}%
16120 {\settowidth\labelwidth{\@biblabel{#1}}%
16121 \leftmargin\labelwidth
16122 \advance\leftmargin\labelsep
16123 \@openbib@code
16124 \usecounter{enumiv}%
16125 \let\p@enumiv\@empty
16126 \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
16127 \sloppy\clubpenalty4000\widowpenalty4000%
16128 \sfcode`\.\@m}
16129 {\def\@noitemerr
16130 {\@latex@warning{Empty `thebibliography' environment}}%
16131 \endlist}
16132 \renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
16133 \renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
16134 \renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
16135 \renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
16136 \renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
16137 \renewcommand*\theequation{%
16138 \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
16139 \renewcommand*\thefigure{%
16140 \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
16141 \renewcommand*\thetable{%
16142 \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
16143 \if@titlepage
16144 \renewcommand*\TitleFont{\rmfamily}
16145 \renewcommand*\maketitle{%
16146 \begin{titlepage}%
16147 \let\footnotesize\small

File rapport1-xetex-bidi.def 332


16148 \let\right@footnoterule\relax
16149 \let\left@footnoterule\relax
16150 \let\textwidth@footnoterule\relax
16151 \let \footnote \thanks
16152 \long\def\@makefntext##1{\parindent\z@
16153 \def\labelitemi{\textendash}\@revlabeltrue
16154 \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
16155 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
16156 \if@compatibility\setcounter{page}{0}\fi
16157 \null\vfil
16158 \vskip 60\p@
16159 \begin{center}%
16160 \TitleFont
16161 {\LARGE \def\\{\penalty -\@M}
16162 \if@allcaps
16163 \expandafter\uc@nothanks\@title\thanks\relax
16164 \else
16165 \@title
16166 \fi\par}%
16167 \vskip 3em%
16168 {\large
16169 \lineskip .75em \parindent\z@
16170 \begin{tabular}[t]{c}%
16171 \if@allcaps
16172 \expandafter\uc@authornothanks\@author\and\relax
16173 \else
16174 \@author
16175 \fi
16176 \end{tabular}\par}%
16177 \vskip 1.5em%
16178 {\large
16179 \if@allcaps
16180 \uppercase\expandafter{\@date}%
16181 \else
16182 \@date
16183 \fi\par}%
16184 \end{center}\par
16185 \@thanks
16186 \vfil\null
16187 \end{titlepage}%
16188 \setcounter{footnote}{0}%
16189 \global\let\thanks\relax
16190 \global\let\maketitle\relax
16191 \global\let\@thanks\@empty
16192 \global\let\@author\@empty
16193 \global\let\@title\@empty
16194 \global\let\@date\@empty
16195 \global\let\title\relax
16196 \global\let\author\relax
16197 \global\let\date\relax

File rapport1-xetex-bidi.def 333


16198 \global\let\and\relax
16199 }
16200 \def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
16201 \def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
16202 \futurelet\@tempa\uc@ax}
16203 \def\uc@ax{%
16204 \ifx\@tempa\relax
16205 \else
16206 \\ \andname \\ \expandafter\uc@authornothanks
16207 \fi}
16208 \def\uc@tx{\ifx\@tempa\relax
16209 \else \expandafter\uc@ty \fi}
16210 \def\uc@ty#1{\thanks{#1}\uc@nothanks}
16211 \else
16212 \renewcommand*\maketitle{\par
16213 \begingroup
16214 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
16215 \def\@makefnmark{\rlap{%
16216 \@textsuperscript{\normalfont\@thefnmark}}}%
16217 \long\def\@makefntext{\@xmakefntext{%
16218 \@textsuperscript{\normalfont\@thefnmark}}}%
16219 \if@twocolumn
16220 \ifnum \col@number=\@ne
16221 \@maketitle
16222 \else
16223 \twocolumn[\@maketitle]%
16224 \fi
16225 \else
16226 \newpage
16227 \global\@topnum\z@
16228 \@maketitle
16229 \fi
16230 \thispagestyle{plain}\@thanks
16231 \endgroup
16232 \setcounter{footnote}{0}%
16233 \global\let\thanks\relax
16234 \global\let\maketitle\relax
16235 \global\let\@maketitle\relax
16236 \global\let\@thanks\@empty
16237 \global\let\@author\@empty
16238 \global\let\@title\@empty
16239 \global\let\@date\@empty
16240 \global\let\title\relax
16241 \global\let\author\relax
16242 \global\let\date\relax
16243 \global\let\and\relax
16244 }
16245 \def\@maketitle{%
16246 \newpage
16247 \null

File rapport1-xetex-bidi.def 334


16248 \vskip 2em%
16249 \begin{center}%
16250 \let \footnote \thanks
16251 {\LARGE \TitleFont \@title \par}%
16252 \vskip 1.5em%
16253 {\large \TitleFont
16254 \lineskip .5em%
16255 \begin{tabular}[t]{c}%
16256 \@author
16257 \end{tabular}\par}%
16258 \vskip 1em%
16259 {\large \TitleFont \@date}%
16260 \end{center}%
16261 \par
16262 \vskip 1.5em}
16263 \fi

101 File rapport3-xetex-bidi.def


16264 \ProvidesFile{rapport3-xetex-bidi.def}[2017/06/09 v0.6 bidi adaptations for rapport3 class for
16265 \renewenvironment{theindex}{%
16266 \if@twocolumn
16267 \@restonecolfalse
16268 \else
16269 \@restonecoltrue
16270 \fi
16271 \columnseprule \z@
16272 \columnsep 35\p@
16273 \twocolumn[\@makeschapterhead{\indexname}]%
16274 \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
16275 \thispagestyle{plain}\parindent\z@
16276 \parskip\z@ \@plus .3\p@\relax
16277 \let\item\@idxitem
16278 }{%
16279 \if@restonecol\onecolumn\else\clearpage\fi}
16280 \if@titlepage
16281 \renewcommand*\TitleFont{\rmfamily}
16282 \renewcommand*\maketitle{%
16283 \begin{titlepage}%
16284 \let\footnotesize\small
16285 \let\right@footnoterule\relax
16286 \let\left@footnoterule\relax
16287 \let\textwidth@footnoterule\relax
16288 \let \footnote \thanks
16289 \let \LTRfootnote \LTRthanks
16290 \let \RTLfootnote \RTLthanks
16291 \long\def\@makefntext##1{\parindent\z@
16292 \def\labelitemi{\textendash}\@revlabeltrue
16293 \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
16294 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%

File rapport3-xetex-bidi.def 335


16295 \if@compatibility\setcounter{page}{0}\fi
16296 \null\vfil
16297 \vskip 60\p@
16298 \begin{center}%
16299 \TitleFont
16300 {\LARGE \def\\{\penalty -\@M}
16301 \if@allcaps
16302 \expandafter\uc@nothanks\@title\thanks\relax
16303 \else
16304 \@title
16305 \fi\par}%
16306 \vskip 3em%
16307 {\large
16308 \lineskip .75em \parindent\z@
16309 \begin{tabular}[t]{c}%
16310 \if@allcaps
16311 \expandafter\uc@authornothanks\@author\and\relax
16312 \else
16313 \@author
16314 \fi
16315 \end{tabular}\par}%
16316 \vskip 1.5em%
16317 {\large
16318 \if@allcaps
16319 \uppercase\expandafter{\@date}%
16320 \else
16321 \@date
16322 \fi\par}%
16323 \end{center}\par
16324 \@thanks
16325 \vfil\null
16326 \end{titlepage}%
16327 \setcounter{footnote}{0}%
16328 \global\let\thanks\relax
16329 \global\let\LTRthanks\relax
16330 \global\let\RTLthanks\relax
16331 \global\let\maketitle\relax
16332 \global\let\@thanks\@empty
16333 \global\let\@author\@empty
16334 \global\let\@title\@empty
16335 \global\let\@date\@empty
16336 \global\let\title\relax
16337 \global\let\author\relax
16338 \global\let\date\relax
16339 \global\let\and\relax
16340 }
16341 \def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
16342 \def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
16343 \futurelet\@tempa\uc@ax}
16344 \def\uc@ax{%

File rapport3-xetex-bidi.def 336


16345 \ifx\@tempa\relax
16346 \else
16347 \\ \andname \\ \expandafter\uc@authornothanks
16348 \fi}
16349 \def\uc@tx{\ifx\@tempa\relax
16350 \else \expandafter\uc@ty \fi}
16351 \def\uc@ty#1{\thanks{#1}\uc@nothanks}
16352 \else
16353 \renewcommand*\maketitle{\par
16354 \begingroup
16355 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
16356 \def\@makefnmark{\rlap{%
16357 \@textsuperscript{\normalfont\@thefnmark}}}%
16358 \long\def\@makefntext{\@xmakefntext{%
16359 \@textsuperscript{\normalfont\@thefnmark}}}%
16360 \if@twocolumn
16361 \ifnum \col@number=\@ne
16362 \@maketitle
16363 \else
16364 \twocolumn[\@maketitle]%
16365 \fi
16366 \else
16367 \newpage
16368 \global\@topnum\z@
16369 \@maketitle
16370 \fi
16371 \thispagestyle{plain}\@thanks
16372 \endgroup
16373 \setcounter{footnote}{0}%
16374 \global\let\thanks\relax
16375 \global\let\LTRthanks\relax
16376 \global\let\RTLthanks\relax
16377 \global\let\maketitle\relax
16378 \global\let\@maketitle\relax
16379 \global\let\@thanks\@empty
16380 \global\let\@author\@empty
16381 \global\let\@title\@empty
16382 \global\let\@date\@empty
16383 \global\let\title\relax
16384 \global\let\author\relax
16385 \global\let\date\relax
16386 \global\let\and\relax
16387 }
16388 \def\@maketitle{%
16389 \newpage
16390 \null
16391 \vskip 2em%
16392 \if@titlecentered
16393 \begin{center}%
16394 \let \footnote \thanks

File rapport3-xetex-bidi.def 337


16395 \let \LTRfootnote \LTRthanks
16396 \let \RTLfootnote \RTLthanks
16397 {\LARGE \TitleFont \@title \par}%
16398 \vskip 1.5em%
16399 {\large \TitleFont
16400 \lineskip .5em%
16401 \begin{tabular}[t]{c}%
16402 \@author
16403 \end{tabular}\par}%
16404 \vskip 1em%
16405 {\large \TitleFont \@date}%
16406 \end{center}%
16407 \else
16408 {\LARGE \TitleFont \head@style \@title \par} \vskip 1.5em
16409 {\large \TitleFont \lineskip .5em \tabcolsep\z@
16410 \def\and{%%% \begin{tabular} has already started
16411 \end{tabular}\hskip 1em plus .17fil
16412 \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi}%% \end{tabula
16413 \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi\@author\end{tabular}\pa
16414 \vskip 1em {\large \TitleFont \@date}
16415 \fi
16416 \par
16417 \vskip 1.5em}
16418 \fi
16419 \renewcommand*\@regtocline[3]{%
16420 \ifnum #1>\c@tocdepth
16421 \else
16422 \vskip\z@\@plus.2\p@
16423 {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
16424 \if@RTL\rightskip\else\leftskip\fi\unitindent
16425 \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
16426 \parfillskip\z@
16427 \@tempdima\unitindent
16428 \parindent\z@
16429 \leavevmode
16430 \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
16431 \hskip 1em \nobreak{\slshape #3}\par
16432 }%
16433 \fi}
16434 \if@oldtoc
16435 \renewcommand*\l@part[2]{%
16436 \ifnum \c@tocdepth >-2\relax
16437 \addpenalty{-\@highpenalty}%
16438 \addvspace{2.25em \@plus\p@}%
16439 \begingroup
16440 \setlength\@tempdima{3em}%
16441 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
16442 \parfillskip -\@pnumwidth
16443 {\leavevmode
16444 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par

File rapport3-xetex-bidi.def 338


16445 \nobreak
16446 \global\@nobreaktrue
16447 \everypar{\global\@nobreakfalse\everypar{}}%
16448 \endgroup
16449 \fi}
16450 \else
16451 \renewcommand*\l@part{%
16452 \ifnum \c@tocdepth >-2\relax
16453 \addpenalty{-\@highpenalty}%
16454 \addvspace{2.25em \@plus \p@}%
16455 \@regtocline{0}%
16456 \fi}
16457 \fi
16458 \if@oldtoc
16459 \renewcommand*\l@chapter[2]{%
16460 \addpenalty{-\@highpenalty}%
16461 \vskip 1.0em \@plus\p@
16462 \setlength\@tempdima{1.5em}%
16463 \begingroup
16464 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
16465 \parfillskip -\@pnumwidth
16466 \leavevmode \bfseries
16467 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
16468 \hskip -\if@RTL\rightskip\else\leftskip\fi
16469 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
16470 \penalty\@highpenalty
16471 \endgroup}
16472 \else
16473 \renewcommand*\l@chapter{\@regtocline{0}}
16474 \fi
16475 \renewcommand*\head@style{%
16476 \interlinepenalty \@M
16477 \hyphenpenalty=\@M \exhyphenpenalty=\@M
16478 \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
16479 \if@titlepage
16480 \renewenvironment{abstract}{%
16481 \titlepage
16482 \null\vfil
16483 \section*{\SectFont\abstractname}%
16484 \noindent\ignorespaces}
16485 {\par\vfil\null\endtitlepage}
16486 \else
16487 \renewenvironment{abstract}{%
16488 \if@twocolumn
16489 \section*{\abstractname}%
16490 \else
16491 \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
16492 \section*{\small\SectFont\abstractname}%
16493 \noindent\ignorespaces
16494 \fi}

File rapport3-xetex-bidi.def 339


16495 {\if@twocolumn\else\par\egroup\fi}
16496 \fi
16497 \renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
16498 \renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
16499 \renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
16500 \renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
16501 \renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
16502 \renewcommand*\thefigure{%
16503 \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
16504 \renewcommand*\thetable{%
16505 \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
16506 \renewcommand*\theequation{%
16507 \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
16508 \renewenvironment{thebibliography}[1]
16509 {\chapter*{\bibname}%
16510 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
16511 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
16512 \bidi@@thebibliography@font@hook%
16513 \list{\@biblabel{\@arabic\c@enumiv}}%
16514 {\settowidth\labelwidth{\@biblabel{#1}}%
16515 \leftmargin\labelwidth
16516 \advance\leftmargin\labelsep
16517 \@openbib@code
16518 \usecounter{enumiv}%
16519 \let\p@enumiv\@empty
16520 \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
16521 \sloppy\clubpenalty4000\widowpenalty4000%
16522 \sfcode`\.\@m}
16523 {\def\@noitemerr
16524 {\@latex@warning{Empty `thebibliography' environment}}%
16525 \endlist}
16526 \renewcommand*\left@footnoterule{%
16527 \kern-3\p@
16528 \kern.5\baselineskip
16529 \hrule\@width\unitindent
16530 \kern.4\baselineskip
16531 }
16532 \renewcommand*\right@footnoterule{%
16533 \kern-3\p@
16534 \kern.5\baselineskip
16535 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
16536 \kern.4\baselineskip}
16537 \renewcommand*\head@style{%
16538 \interlinepenalty \@M
16539 \hyphenpenalty=\@M \exhyphenpenalty=\@M
16540 \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}

102 File refrep-xetex-bidi.def


16541 \ProvidesFile{refrep-xetex-bidi.def}[2017/06/09 v0.5 bidi adaptations for refrep class for XeT

File refrep-xetex-bidi.def 340


16542 \if@titlepage
16543 \renewcommand\maketitle{\begin{titlepage}%
16544 \let\footnotesize\small
16545 \let\right@footnoterule\relax
16546 \let\left@footnoterule\relax
16547 \let\textwidth@footnoterule\relax
16548 \let\footnote\thanks
16549 \let\LTRfootnote\LTRthanks
16550 \let\RTLfootnote\RTLthanks
16551 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
16552 \def\@makefnmark%
16553 {\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
16554 \long\def\@makefntext##1{%
16555 \@setpar{\@@par
16556 \@tempdima = \hsize
16557 \advance\@tempdima -1em
16558 \parshape \@ne 1em \@tempdima}%
16559 \par\parindent 1em \noindent
16560 \hb@xt@\z@{\hss\@textsuperscript{\normalfont\@thefnmark}\,}##1}
16561 \null\vfil
16562 \vskip 60\p@
16563 \begin{center}%
16564 {\LARGE \@title \par}%
16565 \vskip 3em%
16566 {\large
16567 \lineskip .75em%
16568 \begin{tabular}[t]{c}%
16569 \@author
16570 \end{tabular}\par}%
16571 \vskip 1.5em%
16572 {\large \@date \par}% % Set date in \large size.
16573 \end{center}\par
16574 \@thanks
16575 \vfil\null
16576 \end{titlepage}%
16577 \setcounter{footnote}{0}%
16578 \global\let\thanks\relax
16579 \global\let\LTRthanks\relax
16580 \global\let\RTLthanks\relax
16581 \global\let\maketitle\relax
16582 \global\let\@thanks\@empty
16583 \global\let\@author\@empty
16584 \global\let\@date\@empty
16585 \global\let\@title\@empty
16586 \global\let\title\relax
16587 \global\let\author\relax
16588 \global\let\date\relax
16589 \global\let\and\relax
16590 }
16591 \else

File refrep-xetex-bidi.def 341


16592 \renewcommand\maketitle{\par
16593 \begingroup
16594 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
16595 \def\@makefnmark%
16596 {\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
16597 \long\def\@makefntext##1{%
16598 \@setpar{\@@par
16599 \@tempdima = \hsize
16600 \advance\@tempdima -1em
16601 \parshape \@ne 1em \@tempdima}%
16602 \par\parindent 1em \noindent
16603 \hb@xt@\z@{\hss\@textsuperscript{\normalfont\@thefnmark}\,}##1}
16604 \if@twocolumn
16605 \ifnum \col@number=\@ne
16606 \@maketitle
16607 \else
16608 \twocolumn[\@maketitle]%
16609 \fi
16610 \else
16611 \newpage
16612 \global\@topnum\z@ % Prevents figures from going at top of page.
16613 \@maketitle
16614 \fi
16615 \thispagestyle{empty}\@thanks
16616 \endgroup
16617 \setcounter{footnote}{0}%
16618 \global\let\thanks\relax
16619 \global\let\LTRthanks\relax
16620 \global\let\RTLthanks\relax
16621 \global\let\maketitle\relax
16622 \global\let\@maketitle\relax
16623 \global\let\@thanks\@empty
16624 \global\let\@author\@empty
16625 \global\let\@date\@empty
16626 \global\let\@title\@empty
16627 \global\let\title\relax
16628 \global\let\author\relax
16629 \global\let\date\relax
16630 \global\let\and\relax
16631 }
16632 \def\@maketitle{%
16633 \newpage
16634 \null
16635 \longthickrule\vskip1.5em%
16636 \let \footnote \thanks
16637 \let \LTRfootnote \LTRthanks
16638 \let \RTLfootnote \RTLthanks
16639 {\secshape \parskip\z@ \parindent\z@
16640 \Large\bfseries \@title \par}%
16641 \vskip1.5em\longthickrule\vskip1.5em%

File refrep-xetex-bidi.def 342


16642 {\normalsize
16643 \lineskip .5em%
16644 \begin{flushright}%
16645 {\slshape\@author\par}
16646 \vskip 1em%
16647 {\@date}%
16648 \end{flushright}\par}%
16649 \vskip 1.5em}
16650 \fi
16651 \renewcommand*\l@part[2]{%
16652 \ifnum \c@tocdepth >-2\relax
16653 \addpenalty{-\@highpenalty}%
16654 \addvspace{2.25em \@plus\p@}%
16655 \begingroup
16656 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
16657 \parfillskip -\@pnumwidth
16658 {\leavevmode
16659 \large \bfseries #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
16660 \nobreak
16661 \global\@nobreaktrue
16662 \everypar{\global\@nobreakfalse\everypar{}}%
16663 \endgroup
16664 \fi}
16665 \renewcommand*\l@chapter[2]{%
16666 \ifnum \c@tocdepth >\m@ne
16667 \addpenalty{-\@highpenalty}%
16668 \vskip 1.0em \@plus\p@
16669 \setlength\@tempdima{1.5em}%
16670 \begingroup
16671 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
16672 \parfillskip -\@pnumwidth
16673 \leavevmode \bfseries
16674 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
16675 \hskip -\if@RTL\rightskip\else\leftskip\fi
16676 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
16677 \penalty\@highpenalty
16678 \endgroup
16679 \fi}
16680 \renewcommand\secshape{\if@RTL\rightskip\else\leftskip\fi=-\leftmarginwidth%
16681 \if@RTL\leftskip\else\rightskip\fi=\@flushglue%
16682 \hyphenpenalty=2000}
16683 \renewcommand\left@footnoterule{%
16684 \kern-3\p@
16685 \hrule\@width.4\columnwidth
16686 \kern 2.6\p@}
16687 \renewcommand\right@footnoterule{%
16688 \kern-3\p@
16689 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
16690 \kern2.6\p@}
16691 \renewcommand\theequation

File refrep-xetex-bidi.def 343


16692 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
16693 \renewcommand\thefigure
16694 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
16695 \renewcommand\thetable%
16696 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
16697 \renewcommand\thesection {\thechapter\@SepMark\@arabic\c@section}
16698 \renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
16699 \renewcommand\thesubsubsection {\thesubsection \@SepMark\@arabic\c@subsubsection}
16700 \renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
16701 \renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
16702 \renewenvironment{thebibliography}[1]
16703 {\chapter*{\bibname
16704 \@mkboth{\bibname}{\bibname}}%
16705 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
16706 \bidi@@thebibliography@font@hook%
16707 \list{\@biblabel{\@arabic\c@enumiv}}%
16708 {\settowidth\labelwidth{\@biblabel{#1}}%
16709 \leftmargin\labelwidth
16710 \advance\leftmargin\labelsep
16711 \@openbib@code
16712 \usecounter{enumiv}%
16713 \let\p@enumiv\@empty
16714 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
16715 \sloppy
16716 \clubpenalty4000
16717 \@clubpenalty \clubpenalty
16718 \widowpenalty4000%
16719 \sfcode`\.=\@m}
16720 {\def\@noitemerr
16721 {\@latex@warning{Empty `thebibliography' environment}}%
16722 \endlist}

103 File report-xetex-bidi.def


16723 \ProvidesFile{report-xetex-bidi.def}[2017/06/09 v0.8 bidi adaptations for standard report clas
16724 \renewenvironment{theindex}
16725 {\if@twocolumn
16726 \@restonecolfalse
16727 \else
16728 \@restonecoltrue
16729 \fi
16730 \columnseprule \z@
16731 \columnsep 35\p@
16732 \twocolumn[\@makeschapterhead{\indexname}]%
16733 \@mkboth{\MakeUppercase\indexname}%
16734 {\MakeUppercase\indexname}%
16735 \thispagestyle{plain}\parindent\z@
16736 \parskip\z@ \@plus .3\p@\relax
16737 \let\item\@idxitem}
16738 {\if@restonecol\onecolumn\else\clearpage\fi}

File report-xetex-bidi.def 344


16739 \if@titlepage
16740 \renewcommand\maketitle{\begin{titlepage}%
16741 \let\footnotesize\small
16742 \let\right@footnoterule\relax
16743 \let\left@footnoterule\relax
16744 \let\textwidth@footnoterule\relax
16745 \let \footnote \thanks
16746 \let \LTRfootnote \LTRthanks
16747 \let \RTLfootnote \RTLthanks
16748 \null\vfil
16749 \vskip 60\p@
16750 \begin{center}%
16751 {\LARGE \@title \par}%
16752 \vskip 3em%
16753 {\large
16754 \lineskip .75em%
16755 \begin{tabular}[t]{c}%
16756 \@author
16757 \end{tabular}\par}%
16758 \vskip 1.5em%
16759 {\large \@date \par}% % Set date in \large size.
16760 \end{center}\par
16761 \@thanks
16762 \vfil\null
16763 \end{titlepage}%
16764 \setcounter{footnote}{0}%
16765 \global\let\thanks\relax
16766 \global\let\LTRthanks\relax
16767 \global\let\RTLthanks\relax
16768 \global\let\maketitle\relax
16769 \global\let\@thanks\@empty
16770 \global\let\@author\@empty
16771 \global\let\@date\@empty
16772 \global\let\@title\@empty
16773 \global\let\title\relax
16774 \global\let\author\relax
16775 \global\let\date\relax
16776 \global\let\and\relax
16777 }
16778 \else
16779 \renewcommand\maketitle{\par
16780 \begingroup
16781 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
16782 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
16783 \long\def\@makefntext##1{\parindent 1em\noindent
16784 \hb@[email protected]{%
16785 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
16786 \if@twocolumn
16787 \ifnum \col@number=\@ne
16788 \@maketitle

File report-xetex-bidi.def 345


16789 \else
16790 \twocolumn[\@maketitle]%
16791 \fi
16792 \else
16793 \newpage
16794 \global\@topnum\z@ % Prevents figures from going at top of page.
16795 \@maketitle
16796 \fi
16797 \thispagestyle{plain}\@thanks
16798 \endgroup
16799 \setcounter{footnote}{0}%
16800 \global\let\thanks\relax
16801 \global\let\LTRthanks\relax
16802 \global\let\RTLthanks\relax
16803 \global\let\maketitle\relax
16804 \global\let\@maketitle\relax
16805 \global\let\@thanks\@empty
16806 \global\let\@author\@empty
16807 \global\let\@date\@empty
16808 \global\let\@title\@empty
16809 \global\let\title\relax
16810 \global\let\author\relax
16811 \global\let\date\relax
16812 \global\let\and\relax
16813 }
16814 \def\@maketitle{%
16815 \newpage
16816 \null
16817 \vskip 2em%
16818 \begin{center}%
16819 \let \footnote \thanks
16820 \let \LTRfootnote \LTRthanks
16821 \let \RTLfootnote \RTLthanks
16822 {\LARGE \@title \par}%
16823 \vskip 1.5em%
16824 {\large
16825 \lineskip .5em%
16826 \begin{tabular}[t]{c}%
16827 \@author
16828 \end{tabular}\par}%
16829 \vskip 1em%
16830 {\large \@date}%
16831 \end{center}%
16832 \par
16833 \vskip 1.5em}
16834 \fi
16835 \renewcommand*\l@part[2]{%
16836 \ifnum \c@tocdepth >-2\relax
16837 \addpenalty{-\@highpenalty}%
16838 \addvspace{2.25em \@plus\p@}%

File report-xetex-bidi.def 346


16839 \setlength\@tempdima{3em}%
16840 \begingroup
16841 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
16842 \parfillskip -\@pnumwidth
16843 {\leavevmode
16844 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
16845 \nobreak
16846 \global\@nobreaktrue
16847 \everypar{\global\@nobreakfalse\everypar{}}%
16848 \endgroup
16849 \fi}
16850 \renewcommand*\l@chapter[2]{%
16851 \ifnum \c@tocdepth >\m@ne
16852 \addpenalty{-\@highpenalty}%
16853 \vskip 1.0em \@plus\p@
16854 \setlength\@tempdima{1.5em}%
16855 \begingroup
16856 \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
16857 \parfillskip -\@pnumwidth
16858 \leavevmode \bfseries
16859 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
16860 \hskip -\if@RTL\rightskip\else\leftskip\fi
16861 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
16862 \penalty\@highpenalty
16863 \endgroup
16864 \fi}
16865 \renewcommand\left@footnoterule{%
16866 \kern-3\p@
16867 \hrule\@width.4\columnwidth
16868 \kern2.6\p@}
16869 \renewcommand\right@footnoterule{%
16870 \kern-3\p@
16871 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
16872 \kern2.6\p@}
16873 \renewcommand\theequation
16874 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
16875 \renewcommand \thefigure
16876 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
16877 \renewcommand \thetable
16878 {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
16879 \renewcommand \thechapter {\@arabic\c@chapter}
16880 \renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
16881 \renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
16882 \renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
16883 \renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
16884 \renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
16885 \def\@makechapterhead#1{%
16886 \vspace*{50\p@}%
16887 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
16888 \ifnum \c@secnumdepth >\m@ne

File report-xetex-bidi.def 347


16889 \huge\bfseries \@chapapp\space \thechapter
16890 \par\nobreak
16891 \vskip 20\p@
16892 \fi
16893 \interlinepenalty\@M
16894 \Huge \bfseries #1\par\nobreak
16895 \vskip 40\p@
16896 }}
16897 \def\@makeschapterhead#1{%
16898 \vspace*{50\p@}%
16899 {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
16900 \normalfont
16901 \interlinepenalty\@M
16902 \Huge \bfseries #1\par\nobreak
16903 \vskip 40\p@
16904 }}
16905 \renewenvironment{thebibliography}[1]
16906 {\chapter*{\bibname}%
16907 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
16908 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
16909 \bidi@@thebibliography@font@hook%
16910 \list{\@biblabel{\@arabic\c@enumiv}}%
16911 {\settowidth\labelwidth{\@biblabel{#1}}%
16912 \leftmargin\labelwidth
16913 \advance\leftmargin\labelsep
16914 \@openbib@code
16915 \usecounter{enumiv}%
16916 \let\p@enumiv\@empty
16917 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
16918 \sloppy
16919 \clubpenalty4000
16920 \@clubpenalty \clubpenalty
16921 \widowpenalty4000%
16922 \sfcode`\.\@m}
16923 {\def\@noitemerr
16924 {\@latex@warning{Empty `thebibliography' environment}}%
16925 \endlist}

104 File rotating-xetex-bidi.def


16926 \ProvidesFile{rotating-xetex-bidi.def}[2013/05/22 v0.2 bidi adaptations for rotating package f
16927 \def\end@rotfloat{%
16928 \end{minipage}\end{lrbox}%
16929 \stepcounter{r@tfl@t}%
16930 \rot@label{RF\ther@tfl@t}%
16931 \rot@pageref{RF\ther@tfl@t}{\R@@page}%
16932 \edef\@tempa{Adding sideways \@captype\space on page \R@@page\space}
16933 \rot@mess@toks\expandafter{\@tempa}
16934 \wd\rot@float@box\z@
16935 \ht\rot@float@box\z@

File rotating-xetex-bidi.def 348


16936 \dp\rot@float@box\z@
16937 \vboxL to \textheight{%
16938 \setkeys{Grot}{units=360}%
16939 \if@rot@twoside
16940 \else
16941 \let\R@@page\rot@LR
16942 \fi
16943 \ifthenelse{\isodd{\R@@page}}{%
16944 \if@rot@twoside
16945 \rot@mess@toks\expandafter{\the\rot@mess@toks (right hand page)}%
16946 \fi
16947 \vfill
16948 \@@line{%
16949 \hskip\rotFPtop
16950 \rotatebox{90}{\box\rot@float@box}%
16951 \hskip\rotFPbot
16952 }%
16953 }{%
16954 \if@rot@twoside
16955 \rot@mess@toks\expandafter{\the\rot@mess@toks (left hand page)}%
16956 \fi
16957 \@@line{%
16958 \hskip\rotFPbot
16959 \rotatebox{-90}{\box\rot@float@box}%
16960 \hskip\rotFPtop
16961 }%
16962 \vfill
16963 }%
16964 \rot@message{\the\rot@mess@toks}
16965 }%
16966 \end@float
16967 }
16968 \let\endsidewaysfigure\end@rotfloat
16969 \let\endsidewaystable\end@rotfloat
16970 \def\end@rotdblfloat{%
16971 \end{minipage}\end{lrbox}%
16972 \stepcounter{r@tfl@t}%
16973 \rot@label{RF\ther@tfl@t}%
16974 \rot@pageref{RF\ther@tfl@t}{\R@@page}%
16975 \edef\@tempa{Adding sideways \@captype\space on page \R@@page\space}
16976 \rot@mess@toks\expandafter{\@tempa}
16977 \@tempdima\ht\rot@float@box
16978 \advance\@tempdima by \dp\rot@float@box
16979 \wd\rot@float@box\z@
16980 \ht\rot@float@box\z@
16981 \dp\rot@float@box\z@
16982 \vboxL to \textheight{%
16983 \setkeys{Grot}{units=360}%
16984 \if@rot@twoside
16985 \else

File rotating-xetex-bidi.def 349


16986 \let\R@@page\rot@LR
16987 \fi
16988 \ifthenelse{\isodd{\R@@page}}{%
16989 \ifrot@messages
16990 \if@rot@twoside
16991 \rot@mess@toks\expandafter{\the\rot@mess@toks (right hand page)}%
16992 \fi
16993 \fi
16994 \vfill
16995 \@@line{%
16996 \hskip\rotFPtop
16997 \rotatebox{90}{\box\rot@float@box}%
16998 \hskip\rotFPbot
16999 }%
17000 }{%
17001 \ifrot@messages
17002 \if@rot@twoside
17003 \rot@mess@toks\expandafter{\the\rot@mess@toks (left hand page)}%
17004 \fi
17005 \fi%
17006 \@@line{%
17007 \hskip\rotFPbot
17008 \rotatebox{-90}{\box\rot@float@box}%
17009 \hskip\rotFPtop
17010 }%
17011 \vfill
17012 }%
17013 \rot@message{\the\rot@mess@toks}%
17014 }%
17015 \end@dblfloat
17016 }
17017 \def\turn#1{%
17018 \Grot@setangle{#1}%
17019 \setbox\z@\color@hbox\ifmmode\if@RTL\beginR\fi\else\if@RTL\beginR\fi\fi\ignorespaces}
17020 \def\endturn{%
17021 \ifmmode\if@RTL\endR\fi\else\if@RTL\endR\fi\fi
17022 \unskip\color@endbox
17023 \Grot@x\z@
17024 \Grot@y\z@
17025 \ifmmode\else\if@RTL\beginL\fi\fi\Grot@box\ifmmode\else\if@RTL\endL\fi\fi
17026 }
17027 \def\rotate#1{%
17028 \Grot@setangle{#1}%
17029 \setbox\z@\color@hbox\ifmmode\if@RTL\beginR\fi\else\if@RTL\beginR\fi\fi\ignorespaces}
17030 \def\endrotate{%
17031 \ifmmode\if@RTL\endR\fi\else\if@RTL\endR\fi\fi
17032 \unskip\color@endbox
17033 \Grot@x\z@
17034 \Grot@y\z@
17035 \wd0\z@\dp0\z@\ht0\z@

File rotating-xetex-bidi.def 350


17036 \ifmmode\else\if@RTL\beginL\fi\fi\Grot@box\ifmmode\else\if@RTL\endL\fi\fi
17037 }
17038 \def\turnbox#1#2{%
17039 \Grot@setangle{#1}%
17040 \setbox\z@\hbox{{\ifmmode\if@RTL\beginR\fi\else\if@RTL\beginR\fi\fi#2\ifmmode\if@RTL\endR\fi
17041 \Grot@x\z@\Grot@y\z@
17042 \wd0\z@\dp0\z@\ht0\z@
17043 \ifmmode\else\if@RTL\beginL\fi\fi\Grot@box\ifmmode\else\if@RTL\endL\fi\fi
17044 }
17045 \def\sideways{%
17046 \Grot@setangle{90}%
17047 \setbox\z@\color@hbox\ifmmode\if@RTL\beginR\fi\else\if@RTL\beginR\fi\fi\ignorespaces}
17048 \def\endsideways{%
17049 \ifmmode\if@RTL\endR\fi\else\if@RTL\endR\fi\fi
17050 \unskip\color@endbox
17051 \Grot@x\z@
17052 \Grot@y\z@
17053 \ifmmode\else\if@RTL\beginL\fi\fi\Grot@box\ifmmode\else\if@RTL\endL\fi\fi
17054 }

105 File scrartcl-xetex-bidi.def


17055 \ProvidesFile{scrartcl-xetex-bidi.def}[2017/06/09 v1.1 bidi adaptations for scrartcl class for
17056 \newcommand{\scr@saved@LTRfootnotetext}{}
17057 \newcommand{\scr@saved@RTLfootnotetext}{}
17058 \let\scr@saved@footnotetext\@footnotetext
17059 \let\scr@saved@LTRfootnotetext\@LTRfootnotetext
17060 \let\scr@saved@RTLfootnotetext\@RTLfootnotetext
17061 \renewcommand{\@footnotetext}[1]{%
17062 \scr@saved@footnotetext{#1}%
17063 \csname FN@mf@prepare\endcsname
17064 }
17065 \renewcommand{\@LTRfootnotetext}[1]{%
17066 \scr@saved@LTRfootnotetext{#1}%
17067 \csname FN@mf@prepare\endcsname
17068 }
17069 \renewcommand{\@RTLfootnotetext}[1]{%
17070 \scr@saved@RTLfootnotetext{#1}%
17071 \csname FN@mf@prepare\endcsname
17072 }
17073 \renewcommand\deffootnote[4][]{%
17074 \long\def\@makefntext##1{%
17075 \setlength{\@tempdimc}{#3}%
17076 \def\@tempa{#1}\ifx\@tempa\@empty
17077 \@setpar{\@@par
17078 \@tempdima = \hsize
17079 \addtolength{\@tempdima}{-#2}%
17080 \if@RTL\parshape \@ne 0pt \@tempdima\else\parshape \@ne #2 \@tempdima\fi}%
17081 \else
17082 \addtolength{\@tempdimc}{#2}%

File scrartcl-xetex-bidi.def 351


17083 \addtolength{\@tempdimc}{-#1}%
17084 \@setpar{\@@par
17085 \@tempdima = \hsize
17086 \addtolength{\@tempdima}{-#1}%
17087 \@tempdimb = \hsize
17088 \addtolength{\@tempdimb}{-#2}%
17089 \if@RTL\parshape \tw@ 0pt \@tempdima 0pt \@tempdimb\else\parshape \tw@ #1 \@tempdima #
17090 }%
17091 \fi
17092 \par
17093 \parindent\@tempdimc\noindent
17094 \ftn@font\hbox to \z@{\hss\@@makefnmark}##1%
17095 }%
17096 \def\@@makefnmark{\hbox{\ftnm@font{#4}}}%
17097 }
17098 \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
17099 \renewcommand*\left@footnoterule{%
17100 \normalsize\ftn@rule@test@values
17101 \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
17102 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
17103 {\usekomafont{footnoterule}{%
17104 \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
17105 \kern 2.6\p@}
17106 \renewcommand*\right@footnoterule{%
17107 \normalsize\ftn@rule@test@values
17108 \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
17109 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
17110 {\usekomafont{footnoterule}{%
17111 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\ftn@rule@width\relax \leavevmode\lea
17112 \kern 2.6\p@}
17113 \renewcommand*\maketitle[1][1]{%
17114 \if@titlepage
17115 \begin{titlepage}
17116 \setcounter{page}{%
17117 #1%
17118 }%
17119 \let\footnotesize\small
17120 \let\right@footnoterule\relax
17121 \let\left@footnoterule\relax
17122 \let\textwidth@footnoterule\relax
17123 \let\footnote\thanks
17124 \let\LTRfootnote\LTRthanks
17125 \let\RTLfootnote\RTLthanks
17126 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
17127 \let\@oldmakefnmark\@makefnmark
17128 \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
17129 \ifx\@extratitle\@empty \else
17130 \noindent\@extratitle\next@tpage\cleardoubleemptypage
17131 \thispagestyle{empty}%
17132 \fi

File scrartcl-xetex-bidi.def 352


17133 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
17134 \ifx\@titlehead\@empty \else
17135 \begin{minipage}[t]{\textwidth}%
17136 \@titlehead
17137 \end{minipage}\par
17138 \fi
17139 \null\vfill
17140 \begin{center}
17141 \ifx\@subject\@empty \else
17142 {\subject@font \@subject \par}%
17143 \vskip 3em
17144 \fi
17145 {\titlefont\huge \@title\par}%
17146 \vskip 1em
17147 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
17148 \vskip 2em
17149 {\Large \lineskip 0.75em
17150 \begin{tabular}[t]{c}
17151 \@author
17152 \end{tabular}\par
17153 }%
17154 \vskip 1.5em
17155 {\Large \@date \par}%
17156 \vskip \z@ \@plus3fill
17157 {\Large \@publishers \par}%
17158 \vskip 3em
17159 \end{center}\par
17160 \@thanks
17161 \vfill\null
17162 \if@twoside\next@tpage
17163 \begin{minipage}[t]{\textwidth}
17164 \@uppertitleback
17165 \end{minipage}\par
17166 \vfill
17167 \begin{minipage}[b]{\textwidth}
17168 \@lowertitleback
17169 \end{minipage}
17170 \fi
17171 \ifx\@dedication\@empty \else
17172 \next@tpage\null\vfill
17173 {\centering \Large \@dedication \par}%
17174 \vskip \z@ \@plus3fill
17175 \if@twoside \next@tpage\cleardoubleemptypage \fi
17176 \fi
17177 \end{titlepage}
17178 \else
17179 \par
17180 \@tempcnta=%
17181 #1%
17182 \relax\ifnum\@tempcnta=1\else

File scrartcl-xetex-bidi.def 353


17183 \ClassWarning{\KOMAClassName}{%
17184 Optional argument of \string\maketitle\space ignored
17185 at\MessageBreak
17186 notitlepage-mode%
17187 }%
17188 \fi
17189 \begingroup
17190 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
17191 \let\@oldmakefnmark\@makefnmark
17192 \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
17193 \if@twocolumn
17194 \ifnum \col@number=\@ne
17195 \@maketitle
17196 \else
17197 \twocolumn[\@maketitle]%
17198 \fi
17199 \else
17200 \newpage
17201 \global\@topnum\z@
17202 \@maketitle
17203 \fi
17204 \thispagestyle{\titlepagestyle}\@thanks
17205 \endgroup
17206 \fi
17207 \setcounter{footnote}{0}%
17208 \let\thanks\relax
17209 \let\LTRthanks\relax
17210 \let\RTLthanks\relax
17211 \let\maketitle\relax
17212 \let\@maketitle\relax
17213 \global\let\@thanks\@empty
17214 \global\let\@author\@empty
17215 \global\let\@date\@empty
17216 \global\let\@title\@empty
17217 \global\let\@subtitle\@empty
17218 \global\let\@extratitle\@empty
17219 \global\let\@titlehead\@empty
17220 \global\let\@subject\@empty
17221 \global\let\@publishers\@empty
17222 \global\let\@uppertitleback\@empty
17223 \global\let\@lowertitleback\@empty
17224 \global\let\@dedication\@empty
17225 \global\let\author\relax
17226 \global\let\title\relax
17227 \global\let\extratitle\relax
17228 \global\let\titlehead\relax
17229 \global\let\subject\relax
17230 \global\let\publishers\relax
17231 \global\let\uppertitleback\relax
17232 \global\let\lowertitleback\relax

File scrartcl-xetex-bidi.def 354


17233 \global\let\dedication\relax
17234 \global\let\date\relax
17235 \global\let\and\relax
17236 }%
17237 \renewcommand*{\@maketitle}{%
17238 \clearpage
17239 \let\footnote\thanks
17240 \let\LTRfootnote\LTRthanks
17241 \let\RTLfootnote\RTLthanks
17242 \ifx\@extratitle\@empty \else
17243 \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
17244 \fi
17245 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
17246 \ifx\@titlehead\@empty \else
17247 \begin{minipage}[t]{\textwidth}
17248 \@titlehead
17249 \end{minipage}\par
17250 \fi
17251 \null
17252 \vskip 2em%
17253 \begin{center}%
17254 \ifx\@subject\@empty \else
17255 {\subject@font \@subject \par}
17256 \vskip 1.5em
17257 \fi
17258 {\titlefont\huge \@title \par}%
17259 \vskip .5em
17260 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
17261 \vskip 1em
17262 {\Large
17263 \lineskip .5em%
17264 \begin{tabular}[t]{c}
17265 \@author
17266 \end{tabular}\par
17267 }%
17268 \vskip 1em%
17269 {\Large \@date \par}%
17270 \vskip \z@ \@plus 1em
17271 {\Large \@publishers \par}
17272 \ifx\@dedication\@empty \else
17273 \vskip 2em
17274 {\Large \@dedication \par}
17275 \fi
17276 \end{center}%
17277 \par
17278 \vskip 2em
17279 }%
17280 \def\raggedsection{\if@RTL\raggedleft\else\raggedright\fi}
17281 \def\raggedpart{\if@RTL\raggedleft\else\raggedright\fi}
17282 \renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}

File scrartcl-xetex-bidi.def 355


17283 \renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
17284 \renewcommand*{\thesubsubsection}{%
17285 \thesubsection\@SepMark\@arabic\c@subsubsection
17286 }
17287 \renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
17288 \renewcommand*{\thesubparagraph}{%
17289 \theparagraph\@SepMark\@arabic\c@subparagraph
17290 }
17291 \renewenvironment{thebibliography}[1]{%
17292 \if@bib@break@
17293 \bib@beginhook
17294 \else
17295 \bib@heading
17296 \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
17297 \noindent\bibpreamble\par\nobreak
17298 \fi\fi
17299 \bib@beginhook
17300 \bib@before@hook
17301 \fi
17302 \renewcommand{\BreakBibliography}[1]{%
17303 \@bib@break
17304 \end{thebibliography}%
17305 \begingroup ##1\endgroup
17306 \begin{thebibliography}{#1}
17307 }%
17308 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
17309 \bidi@@thebibliography@font@hook%
17310 \list{%
17311 \@biblabel{\@arabic\c@enumiv}%
17312 }{%
17313 \settowidth\labelwidth{\@biblabel{#1}}%
17314 \leftmargin\labelwidth
17315 \advance\leftmargin\labelsep
17316 \@openbib@code
17317 \if@bib@break@
17318 \edef\@tempa{%
17319 \noexpand\usecounter{enumiv}%
17320 \noexpand\setcounter{enumiv}{\the\c@enumiv}%
17321 }\@tempa
17322 \no@bib@break
17323 \else
17324 \usecounter{enumiv}%
17325 \fi
17326 \let\p@enumiv\@empty
17327 \renewcommand*\theenumiv{\@arabic\c@enumiv}%
17328 }%
17329 \sloppy\clubpenalty4000 \widowpenalty4000
17330 \sfcode`\.=\@m
17331 }{%
17332 \if@bib@break@

File scrartcl-xetex-bidi.def 356


17333 \def\@noitemerr{%
17334 \@latex@warning{%
17335 \string\BreakBibliography\space at begin of `thebibliography'
17336 environment\MessageBreak
17337 or following \string\BreakBibliography}%
17338 }%
17339 \else
17340 \def\@noitemerr{%
17341 \@latex@warning{%
17342 Empty `thebibliography' environment or
17343 \string\BreakBibliography\MessageBreak
17344 before end of `thebibliography' environment}%
17345 }%
17346 \fi
17347 \endlist
17348 \if@bib@break@
17349 \else
17350 \bib@after@hook
17351 \let\bib@before@hook\@empty
17352 \let\bib@after@hook\@empty
17353 \fi
17354 \bib@endhook
17355 }
17356 \renewcommand*\left@footnoterule{%
17357 \kern-3\p@
17358 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
17359 \hrule\@width.4\columnwidth
17360 \kern 2.6\p@}
17361 \renewcommand*\right@footnoterule{%
17362 \kern-3\p@
17363 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
17364 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
17365 \kern2.6\p@}
17366 \renewcommand*{\raggeddictum}{\if@RTL\raggedright\else\raggedleft\fi}
17367 \renewcommand*{\raggeddictumtext}{\if@RTL\raggedleft\else\raggedright\fi}
17368 \renewcommand*{\raggeddictumauthor}{\if@RTL\raggedright\else\raggedleft\fi}
17369 \renewcommand\marginline[1]{%
17370 \marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\f
17371 }
17372 \renewcommand{\@@makecaption}[3]{%
17373 \cap@margin
17374 \ifonelinecaptions
17375 \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
17376 \let\scr@tmp@footnotetext=\@footnotetext
17377 \let\@footnotetext=\@gobble
17378 \let\scr@tmp@LTRfootnotetext=\@LTRfootnotetext
17379 \let\@LTRfootnotetext=\@gobble
17380 \let\scr@tmp@RTLfootnotetext=\@RTLfootnotetext
17381 \let\@RTLfootnotetext=\@gobble
17382 \sbox\@tempboxa{%

File scrartcl-xetex-bidi.def 357


17383 {\capfont{\strut\ignorespaces
17384 #1{{\caplabelfont{#2\captionformat}}}%
17385 #3\unskip\strut}}%
17386 }%
17387 \let\@footnotetext=\scr@tmp@footnotetext
17388 \let\scr@tmp@footnotetext=\undefined
17389 \let\@LTRfootnotetext=\scr@tmp@LTRfootnotetext
17390 \let\scr@tmp@LTRfootnotetext=\undefined
17391 \let\@RTLfootnotetext=\scr@tmp@RTLfootnotetext
17392 \let\scr@tmp@RTLfootnotetext=\undefined
17393 \setcounter{footnote}{\@tempcntb}%
17394 \setcounter{mpfootnote}{\@tempcnta}%
17395 \else
17396 \sbox\@tempboxa{\hspace*{2\cap@width}}%
17397 \fi
17398 \begingroup%
17399 \setlength{\@tempdima}{\cap@width}%
17400 \ifdim \wd\@tempboxa >\@tempdima
17401 \hb@xt@\hsize{%
17402 \setbox\@tempboxa\vbox{\hsize=\cap@width
17403 \ifdofullc@p
17404 {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
17405 #1{{\caplabelfont{#2\captionformat}}}}}%
17406 {#3\unskip\strut\par}}}%
17407 \else%
17408 \ifdim\cap@indent<\z@
17409 {\capfont{\strut\ignorespaces
17410 #1{{\caplabelfont{#2\captionformat\par}}}%
17411 \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
17412 \else%
17413 \if@capbreak
17414 {\capfont{\strut\ignorespaces
17415 #1{{\caplabelfont{#2\captionformat\par}}}%
17416 \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
17417 \else
17418 {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
17419 {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
17420 {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
17421 \fi
17422 \fi
17423 \fi
17424 }%
17425 \setlength{\@tempdima}{\ht\@tempboxa}%
17426 \addtolength{\@tempdima}{\dp\@tempboxa}%
17427 \addtolength{\@tempdima}{-\ht\strutbox}%
17428 \ht\@tempboxa\ht\strutbox
17429 \dp\@tempboxa\@tempdima
17430 \strut\cap@left
17431 \box\@tempboxa
17432 \cap@right\strut

File scrartcl-xetex-bidi.def 358


17433 }%
17434 \else
17435 \global \@minipagefalse
17436 \sbox\@tempboxa{%
17437 {\capfont{\scr@smashdp{\strut\ignorespaces
17438 #1{{\caplabelfont{#2\captionformat}}}}%
17439 #3}}%
17440 }%
17441 {\capfont{\hb@xt@\hsize{\strut\cap@left\if@RTL\beginR\fi\box\@tempboxa\if@RTL\endR\fi\ca
17442 \fi
17443 \endgroup
17444 }
17445 \renewcommand{\@makecaption}[2]{%
17446 \if@captionabove
17447 \vskip\belowcaptionskip
17448 \else
17449 \vskip\abovecaptionskip
17450 \fi
17451 \@@makecaption\@firstofone{#1}{#2}%
17452 \if@captionabove
17453 \vskip\abovecaptionskip
17454 \else
17455 \vskip\belowcaptionskip
17456 \fi
17457 }
17458 \bidi@AfterFile{longtable-xetex-bidi.def}{%
17459 \@ifpackageloaded{caption2}{\@komalongtablefalse
17460 \scr@caption@before@longtable@warning{caption2}%
17461 }{}%
17462 \if@komalongtable
17463 \renewcommand{\LT@makecaption}[3]{%
17464 \noalign{%
17465 \if@captionabove
17466 \vskip\belowcaptionskip
17467 \else
17468 \vskip\abovecaptionskip
17469 \fi
17470 }%
17471 \LT@mcol\LT@cols c{%
17472 \hbox to\z@{\hss\parbox[t]\linewidth{%
17473 \@@makecaption{#1}{#2}{#3}%
17474 \endgraf
17475 \if@captionabove
17476 \vskip\abovecaptionskip
17477 \else
17478 \vskip\belowcaptionskip
17479 \fi
17480 }%
17481 \hss
17482 }%

File scrartcl-xetex-bidi.def 359


17483 }%
17484 }%
17485 \renewcommand*{\scr@LT@array}{}%
17486 \let\scr@LT@array=\LT@array
17487 \renewcommand*{\LT@array}{%
17488 \let\scr@caption=\LT@caption
17489 \def\captionabove{\noalign{\global\@captionabovetrue}%
17490 \scr@caption}%
17491 \def\captionbelow{\noalign{\global\@captionabovefalse}%
17492 \scr@caption}%
17493 \if@tablecaptionabove
17494 \let\LT@caption=\captionabove
17495 \else
17496 \let\LT@caption=\captionbelow
17497 \fi
17498 \scr@LT@array
17499 }%
17500 \ClassInfo{\KOMAClassName}{%
17501 longtable captions redefined%
17502 }%
17503 \fi
17504 }
17505
17506 \CloneTOCEntryStyle{tocline}{part}
17507 \TOCEntryStyleStartInitCode{part}{%
17508 \expandafter\renewcommand%
17509 \csname scr@tso@#1@linefill\endcsname{\hfill}%
17510 \expandafter\renewcommand%
17511 \csname scr@tso@#1@entryformat\endcsname[1]{\usekomafont{partentry}{##1}}%
17512 \expandafter\renewcommand%
17513 \csname scr@tso@#1@pagenumberformat\endcsname[1]{%
17514 \usekomafont{partentry}{\usekomafont{partentrypagenumber}{##1}}}%
17515 \expandafter\renewcommand\expandafter*%
17516 \csname scr@tso@#1@beforeskip\endcsname{2.25em \@plus\p@}%
17517 }
17518
17519 \CloneTOCEntryStyle{tocline}{section}
17520 \TOCEntryStyleStartInitCode{section}{%
17521 \expandafter\renewcommand%
17522 \csname scr@tso@#1@linefill\endcsname{%
17523 \if@sectionentrywithdots
17524 \TOCLineLeaderFill\relax
17525 \else
17526 \hfill
17527 \fi
17528 }%
17529 % F^^fcr die Eintr^^e4ge die Schrift von Element sectionentry verwenden.
17530 \expandafter\renewcommand%
17531 \csname scr@tso@#1@entryformat\endcsname{\usekomafont{sectionentry}}%
17532 \expandafter\renewcommand%

File scrartcl-xetex-bidi.def 360


17533 \csname scr@tso@#1@pagenumberformat\endcsname[1]{\usekomafont{sectionentry}{\usekomafont{sec
17534 \expandafter\renewcommand\expandafter*%
17535 \csname scr@tso@#1@beforeskip\endcsname{1.0em \@plus\p@}%
17536 }
17537
17538 \CloneTOCEntryStyle{tocline}{subsection}
17539 \TOCEntryStyleStartInitCode{subsection}{%
17540 \expandafter\renewcommand%
17541 \csname scr@tso@#1@linefill\endcsname{\TOCLineLeaderFill\relax}%
17542 }
17543
17544 \CloneTOCEntryStyle{subsection}{default}
17545
17546 \DeclareSectionCommand[%
17547 style=part,%
17548 level=\z@,%
17549 tocstyle=part,%
17550 toclevel=\m@ne,%
17551 tocindent=\z@,%
17552 tocnumwidth=2em%
17553 ]{part}
17554 \DeclareSectionCommand[%
17555 style=section,%
17556 level=1,%
17557 indent=\z@,%
17558 beforeskip=-3.5ex \@plus -1ex \@minus -.2ex,%
17559 afterskip=2.3ex \@plus.2ex,%
17560 tocstyle=section,%
17561 tocindent=0pt,%
17562 tocnumwidth=1.5em%
17563 ]{section}
17564 \DeclareSectionCommand[%
17565 style=section,%
17566 level=2,%
17567 indent=\z@,%
17568 beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
17569 afterskip=1.5ex \@plus .2ex,%
17570 tocstyle=subsection,%
17571 tocindent=1.5em,%
17572 tocnumwidth=2.3em%
17573 ]{subsection}
17574 \DeclareSectionCommand[%
17575 style=section,%
17576 level=3,%
17577 indent=\z@,%
17578 beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
17579 afterskip=1.5ex \@plus .2ex,%
17580 tocstyle=subsection,%
17581 tocindent=3.8em,%
17582 tocnumwidth=3.2em%

File scrartcl-xetex-bidi.def 361


17583 ]{subsubsection}
17584 \DeclareSectionCommand[%
17585 style=section,%
17586 level=4,%
17587 indent=\z@,%
17588 beforeskip=3.25ex \@plus1ex \@minus.2ex,%
17589 afterskip=-1em,%
17590 tocstyle=subsection,%
17591 tocindent=7.0em,%
17592 tocnumwidth=4.1em%
17593 ]{paragraph}
17594 \DeclareSectionCommand[%
17595 style=section,%
17596 level=5,%
17597 indent=\scr@parindent,%
17598 beforeskip=3.25ex \@plus1ex \@minus .2ex,%
17599 afterskip=-1em,%
17600 tocstyle=subsection,%
17601 tocindent=10em,%
17602 tocnumwidth=5em%
17603 ]{subparagraph}

106 File scrbook-xetex-bidi.def


17604 \ProvidesFile{scrbook-xetex-bidi.def}[2017/06/09 v1.1 bidi adaptations for scrbook class for X
17605 \newcommand{\scr@saved@LTRfootnotetext}{}
17606 \newcommand{\scr@saved@RTLfootnotetext}{}
17607 \let\scr@saved@footnotetext\@footnotetext
17608 \let\scr@saved@LTRfootnotetext\@LTRfootnotetext
17609 \let\scr@saved@RTLfootnotetext\@RTLfootnotetext
17610 \renewcommand{\@footnotetext}[1]{%
17611 \scr@saved@footnotetext{#1}%
17612 \csname FN@mf@prepare\endcsname
17613 }
17614 \renewcommand{\@LTRfootnotetext}[1]{%
17615 \scr@saved@LTRfootnotetext{#1}%
17616 \csname FN@mf@prepare\endcsname
17617 }
17618 \renewcommand{\@RTLfootnotetext}[1]{%
17619 \scr@saved@RTLfootnotetext{#1}%
17620 \csname FN@mf@prepare\endcsname
17621 }
17622 \renewcommand\deffootnote[4][]{%
17623 \long\def\@makefntext##1{%
17624 \setlength{\@tempdimc}{#3}%
17625 \def\@tempa{#1}\ifx\@tempa\@empty
17626 \@setpar{\@@par
17627 \@tempdima = \hsize
17628 \addtolength{\@tempdima}{-#2}%
17629 \if@RTL\parshape \@ne 0pt \@tempdima\else\parshape \@ne #2 \@tempdima\fi}%

File scrbook-xetex-bidi.def 362


17630 \else
17631 \addtolength{\@tempdimc}{#2}%
17632 \addtolength{\@tempdimc}{-#1}%
17633 \@setpar{\@@par
17634 \@tempdima = \hsize
17635 \addtolength{\@tempdima}{-#1}%
17636 \@tempdimb = \hsize
17637 \addtolength{\@tempdimb}{-#2}%
17638 \if@RTL\parshape \tw@ 0pt \@tempdima 0pt \@tempdimb\else\parshape \tw@ #1 \@tempdima #
17639 }%
17640 \fi
17641 \par
17642 \parindent\@tempdimc\noindent
17643 \ftn@font\hbox to \z@{\hss\@@makefnmark}##1%
17644 }%
17645 \def\@@makefnmark{\hbox{\ftnm@font{#4}}}%
17646 }
17647 \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
17648 \renewcommand*\left@footnoterule{%
17649 \normalsize\ftn@rule@test@values
17650 \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
17651 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
17652 {\usekomafont{footnoterule}{%
17653 \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
17654 \kern 2.6\p@}
17655 \renewcommand*\right@footnoterule{%
17656 \normalsize\ftn@rule@test@values
17657 \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
17658 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
17659 {\usekomafont{footnoterule}{%
17660 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\ftn@rule@width\relax \leavevmode\lea
17661 \kern 2.6\p@}
17662 \renewcommand*\maketitle[1][1]{%
17663 \if@titlepage
17664 \begin{titlepage}
17665 \setcounter{page}{%
17666 #1%
17667 }%
17668 \let\footnotesize\small
17669 \let\right@footnoterule\relax
17670 \let\left@footnoterule\relax
17671 \let\textwidth@footnoterule\relax
17672 \let\footnote\thanks
17673 \let\LTRfootnote\LTRthanks
17674 \let\RTLfootnote\RTLthanks
17675 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
17676 \let\@oldmakefnmark\@makefnmark
17677 \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
17678 \ifx\@extratitle\@empty \else
17679 \noindent\@extratitle\next@tpage\cleardoubleemptypage

File scrbook-xetex-bidi.def 363


17680 \thispagestyle{empty}%
17681 \fi
17682 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
17683 \ifx\@titlehead\@empty \else
17684 \begin{minipage}[t]{\textwidth}%
17685 \@titlehead
17686 \end{minipage}\par
17687 \fi
17688 \null\vfill
17689 \begin{center}
17690 \ifx\@subject\@empty \else
17691 {\subject@font \@subject \par}%
17692 \vskip 3em
17693 \fi
17694 {\titlefont\huge \@title\par}%
17695 \vskip 1em
17696 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
17697 \vskip 2em
17698 {\Large \lineskip 0.75em
17699 \begin{tabular}[t]{c}
17700 \@author
17701 \end{tabular}\par
17702 }%
17703 \vskip 1.5em
17704 {\Large \@date \par}%
17705 \vskip \z@ \@plus3fill
17706 {\Large \@publishers \par}%
17707 \vskip 3em
17708 \end{center}\par
17709 \@thanks
17710 \vfill\null
17711 \if@twoside\next@tpage
17712 \begin{minipage}[t]{\textwidth}
17713 \@uppertitleback
17714 \end{minipage}\par
17715 \vfill
17716 \begin{minipage}[b]{\textwidth}
17717 \@lowertitleback
17718 \end{minipage}
17719 \fi
17720 \ifx\@dedication\@empty \else
17721 \next@tpage\null\vfill
17722 {\centering \Large \@dedication \par}%
17723 \vskip \z@ \@plus3fill
17724 \if@twoside \next@tpage\cleardoubleemptypage \fi
17725 \fi
17726 \end{titlepage}
17727 \else
17728 \par
17729 \@tempcnta=%

File scrbook-xetex-bidi.def 364


17730 #1%
17731 \relax\ifnum\@tempcnta=1\else
17732 \ClassWarning{\KOMAClassName}{%
17733 Optional argument of \string\maketitle\space ignored
17734 at\MessageBreak
17735 notitlepage-mode%
17736 }%
17737 \fi
17738 \begingroup
17739 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
17740 \let\@oldmakefnmark\@makefnmark
17741 \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
17742 \if@twocolumn
17743 \ifnum \col@number=\@ne
17744 \@maketitle
17745 \else
17746 \twocolumn[\@maketitle]%
17747 \fi
17748 \else
17749 \newpage
17750 \global\@topnum\z@
17751 \@maketitle
17752 \fi
17753 \thispagestyle{\titlepagestyle}\@thanks
17754 \endgroup
17755 \fi
17756 \setcounter{footnote}{0}%
17757 \let\thanks\relax
17758 \let\LTRthanks\relax
17759 \let\RTLthanks\relax
17760 \let\maketitle\relax
17761 \let\@maketitle\relax
17762 \global\let\@thanks\@empty
17763 \global\let\@author\@empty
17764 \global\let\@date\@empty
17765 \global\let\@title\@empty
17766 \global\let\@subtitle\@empty
17767 \global\let\@extratitle\@empty
17768 \global\let\@titlehead\@empty
17769 \global\let\@subject\@empty
17770 \global\let\@publishers\@empty
17771 \global\let\@uppertitleback\@empty
17772 \global\let\@lowertitleback\@empty
17773 \global\let\@dedication\@empty
17774 \global\let\author\relax
17775 \global\let\title\relax
17776 \global\let\extratitle\relax
17777 \global\let\titlehead\relax
17778 \global\let\subject\relax
17779 \global\let\publishers\relax

File scrbook-xetex-bidi.def 365


17780 \global\let\uppertitleback\relax
17781 \global\let\lowertitleback\relax
17782 \global\let\dedication\relax
17783 \global\let\date\relax
17784 \global\let\and\relax
17785 }%
17786 \renewcommand*{\@maketitle}{%
17787 \clearpage
17788 \let\footnote\thanks
17789 \let\LTRfootnote\LTRthanks
17790 \let\RTLfootnote\RTLthanks
17791 \ifx\@extratitle\@empty \else
17792 \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
17793 \fi
17794 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
17795 \ifx\@titlehead\@empty \else
17796 \begin{minipage}[t]{\textwidth}
17797 \@titlehead
17798 \end{minipage}\par
17799 \fi
17800 \null
17801 \vskip 2em%
17802 \begin{center}%
17803 \ifx\@subject\@empty \else
17804 {\subject@font \@subject \par}
17805 \vskip 1.5em
17806 \fi
17807 {\titlefont\huge \@title \par}%
17808 \vskip .5em
17809 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
17810 \vskip 1em
17811 {\Large
17812 \lineskip .5em%
17813 \begin{tabular}[t]{c}
17814 \@author
17815 \end{tabular}\par
17816 }%
17817 \vskip 1em%
17818 {\Large \@date \par}%
17819 \vskip \z@ \@plus 1em
17820 {\Large \@publishers \par}
17821 \ifx\@dedication\@empty \else
17822 \vskip 2em
17823 {\Large \@dedication \par}
17824 \fi
17825 \end{center}%
17826 \par
17827 \vskip 2em
17828 }%
17829 \def\raggedsection{\if@RTL\raggedleft\else\raggedright\fi}

File scrbook-xetex-bidi.def 366


17830 \renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}
17831 \renewcommand*\thesection{%
17832 \ifnum \scr@compatibility>\@nameuse{scr@[email protected]}\relax
17833 \if@mainmatter\thechapter\@SepMark\fi
17834 \else
17835 \thechapter\@SepMark%
17836 \fi
17837 \@arabic\c@section
17838 }
17839 \renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
17840 \renewcommand*{\thesubsubsection}{%
17841 \thesubsection\@SepMark\@arabic\c@subsubsection
17842 }
17843 \renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
17844 \renewcommand*{\thesubparagraph}{%
17845 \theparagraph\@SepMark\@arabic\c@subparagraph
17846 }
17847 \renewcommand*\thefigure{%
17848 \ifnum \scr@compatibility>\@nameuse{scr@[email protected]}\relax
17849 \if@mainmatter\thechapter\@SepMark\fi
17850 \else
17851 \thechapter\@SepMark%
17852 \fi
17853 \@arabic\c@figure
17854 }
17855 \renewcommand*\thetable{%
17856 \ifnum \scr@compatibility>\@nameuse{scr@[email protected]}\relax
17857 \if@mainmatter\thechapter\@SepMark\fi
17858 \else
17859 \thechapter\@SepMark%
17860 \fi
17861 \@arabic\c@table
17862 }
17863 \renewcommand*\theequation{%
17864 \ifnum \scr@compatibility>\@nameuse{scr@[email protected]}\relax
17865 \if@mainmatter\thechapter\@SepMark\fi
17866 \else
17867 \thechapter\@SepMark%
17868 \fi
17869 \@arabic\c@equation
17870 }
17871 \renewenvironment{thebibliography}[1]{%
17872 \if@bib@break@
17873 \bib@beginhook
17874 \else
17875 \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
17876 \setchapterpreamble{\bibpreamble}%
17877 \fi\fi
17878 \bib@heading
17879 \bib@beginhook

File scrbook-xetex-bidi.def 367


17880 \bib@before@hook
17881 \fi
17882 \renewcommand{\BreakBibliography}[1]{%
17883 \@bib@break
17884 \end{thebibliography}%
17885 \begingroup ##1\endgroup
17886 \begin{thebibliography}{#1}
17887 }%
17888 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
17889 \bidi@@thebibliography@font@hook%
17890 \list{%
17891 \@biblabel{\@arabic\c@enumiv}%
17892 }{%
17893 \settowidth\labelwidth{\@biblabel{#1}}%
17894 \leftmargin\labelwidth
17895 \advance\leftmargin\labelsep
17896 \@openbib@code
17897 \if@bib@break@
17898 \edef\@tempa{%
17899 \noexpand\usecounter{enumiv}%
17900 \noexpand\setcounter{enumiv}{\the\c@enumiv}%
17901 }\@tempa
17902 \no@bib@break
17903 \else
17904 \usecounter{enumiv}%
17905 \fi
17906 \let\p@enumiv\@empty
17907 \renewcommand*\theenumiv{\@arabic\c@enumiv}%
17908 }%
17909 \sloppy\clubpenalty4000 \widowpenalty4000
17910 \sfcode`\.=\@m
17911 }{%
17912 \if@bib@break@
17913 \def\@noitemerr{%
17914 \@latex@warning{%
17915 \string\BreakBibliography\space at begin of `thebibliography'
17916 environment\MessageBreak
17917 or following \string\BreakBibliography}%
17918 }%
17919 \else
17920 \def\@noitemerr{%
17921 \@latex@warning{%
17922 Empty `thebibliography' environment or
17923 \string\BreakBibliography\MessageBreak
17924 before end of `thebibliography' environment}%
17925 }%
17926 \fi
17927 \endlist
17928 \if@bib@break@
17929 \else

File scrbook-xetex-bidi.def 368


17930 \bib@after@hook
17931 \let\bib@before@hook\@empty
17932 \let\bib@after@hook\@empty
17933 \fi
17934 \bib@endhook
17935 }
17936 \renewcommand*\left@footnoterule{%
17937 \kern-3\p@
17938 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
17939 \hrule\@width.4\columnwidth
17940 \kern 2.6\p@}
17941 \renewcommand*\right@footnoterule{%
17942 \kern-3\p@
17943 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
17944 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
17945 \kern2.6\p@}
17946 \renewcommand*{\raggeddictum}{\if@RTL\raggedright\else\raggedleft\fi}
17947 \renewcommand*{\raggeddictumtext}{\if@RTL\raggedleft\else\raggedright\fi}
17948 \renewcommand*{\raggeddictumauthor}{\if@RTL\raggedright\else\raggedleft\fi}
17949 \renewcommand\marginline[1]{%
17950 \marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\f
17951 }
17952 \renewcommand{\@@makecaption}[3]{%
17953 \cap@margin
17954 \ifonelinecaptions
17955 \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
17956 \let\scr@tmp@footnotetext=\@footnotetext
17957 \let\@footnotetext=\@gobble
17958 \let\scr@tmp@LTRfootnotetext=\@LTRfootnotetext
17959 \let\@LTRfootnotetext=\@gobble
17960 \let\scr@tmp@RTLfootnotetext=\@RTLfootnotetext
17961 \let\@RTLfootnotetext=\@gobble
17962 \sbox\@tempboxa{%
17963 {\capfont{\strut\ignorespaces
17964 #1{{\caplabelfont{#2\captionformat}}}%
17965 #3\unskip\strut}}%
17966 }%
17967 \let\@footnotetext=\scr@tmp@footnotetext
17968 \let\scr@tmp@footnotetext=\undefined
17969 \let\@LTRfootnotetext=\scr@tmp@LTRfootnotetext
17970 \let\scr@tmp@LTRfootnotetext=\undefined
17971 \let\@RTLfootnotetext=\scr@tmp@RTLfootnotetext
17972 \let\scr@tmp@RTLfootnotetext=\undefined
17973 \setcounter{footnote}{\@tempcntb}%
17974 \setcounter{mpfootnote}{\@tempcnta}%
17975 \else
17976 \sbox\@tempboxa{\hspace*{2\cap@width}}%
17977 \fi
17978 \begingroup%
17979 \setlength{\@tempdima}{\cap@width}%

File scrbook-xetex-bidi.def 369


17980 \ifdim \wd\@tempboxa >\@tempdima
17981 \hb@xt@\hsize{%
17982 \setbox\@tempboxa\vbox{\hsize=\cap@width
17983 \ifdofullc@p
17984 {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
17985 #1{{\caplabelfont{#2\captionformat}}}}}%
17986 {#3\unskip\strut\par}}}%
17987 \else%
17988 \ifdim\cap@indent<\z@
17989 {\capfont{\strut\ignorespaces
17990 #1{{\caplabelfont{#2\captionformat\par}}}%
17991 \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
17992 \else%
17993 \if@capbreak
17994 {\capfont{\strut\ignorespaces
17995 #1{{\caplabelfont{#2\captionformat\par}}}%
17996 \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
17997 \else
17998 {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
17999 {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
18000 {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
18001 \fi
18002 \fi
18003 \fi
18004 }%
18005 \setlength{\@tempdima}{\ht\@tempboxa}%
18006 \addtolength{\@tempdima}{\dp\@tempboxa}%
18007 \addtolength{\@tempdima}{-\ht\strutbox}%
18008 \ht\@tempboxa\ht\strutbox
18009 \dp\@tempboxa\@tempdima
18010 \strut\cap@left
18011 \box\@tempboxa
18012 \cap@right\strut
18013 }%
18014 \else
18015 \global \@minipagefalse
18016 \sbox\@tempboxa{%
18017 {\capfont{\scr@smashdp{\strut\ignorespaces
18018 #1{{\caplabelfont{#2\captionformat}}}}%
18019 #3}}%
18020 }%
18021 {\capfont{\hb@xt@\hsize{\strut\cap@left\if@RTL\beginR\fi\box\@tempboxa\if@RTL\endR\fi\ca
18022 \fi
18023 \endgroup
18024 }
18025 \renewcommand{\@makecaption}[2]{%
18026 \if@captionabove
18027 \vskip\belowcaptionskip
18028 \else
18029 \vskip\abovecaptionskip

File scrbook-xetex-bidi.def 370


18030 \fi
18031 \@@makecaption\@firstofone{#1}{#2}%
18032 \if@captionabove
18033 \vskip\abovecaptionskip
18034 \else
18035 \vskip\belowcaptionskip
18036 \fi
18037 }
18038 \bidi@AfterFile{longtable-xetex-bidi.def}{%
18039 \@ifpackageloaded{caption2}{\@komalongtablefalse
18040 \scr@caption@before@longtable@warning{caption2}%
18041 }{}%
18042 \if@komalongtable
18043 \renewcommand{\LT@makecaption}[3]{%
18044 \noalign{%
18045 \if@captionabove
18046 \vskip\belowcaptionskip
18047 \else
18048 \vskip\abovecaptionskip
18049 \fi
18050 }%
18051 \LT@mcol\LT@cols c{%
18052 \hbox to\z@{\hss\parbox[t]\linewidth{%
18053 \@@makecaption{#1}{#2}{#3}%
18054 \endgraf
18055 \if@captionabove
18056 \vskip\abovecaptionskip
18057 \else
18058 \vskip\belowcaptionskip
18059 \fi
18060 }%
18061 \hss
18062 }%
18063 }%
18064 }%
18065 \renewcommand*{\scr@LT@array}{}%
18066 \let\scr@LT@array=\LT@array
18067 \renewcommand*{\LT@array}{%
18068 \let\scr@caption=\LT@caption
18069 \def\captionabove{\noalign{\global\@captionabovetrue}%
18070 \scr@caption}%
18071 \def\captionbelow{\noalign{\global\@captionabovefalse}%
18072 \scr@caption}%
18073 \if@tablecaptionabove
18074 \let\LT@caption=\captionabove
18075 \else
18076 \let\LT@caption=\captionbelow
18077 \fi
18078 \scr@LT@array
18079 }%

File scrbook-xetex-bidi.def 371


18080 \ClassInfo{\KOMAClassName}{%
18081 longtable captions redefined%
18082 }%
18083 \fi
18084 }
18085
18086 \CloneTOCEntryStyle{tocline}{part}
18087 \TOCEntryStyleStartInitCode{part}{%
18088 \expandafter\renewcommand%
18089 \csname scr@tso@#1@linefill\endcsname{\hfill}%
18090 \expandafter\renewcommand%
18091 \csname scr@tso@#1@entryformat\endcsname[1]{\usekomafont{partentry}{##1}}%
18092 \expandafter\renewcommand%
18093 \csname scr@tso@#1@pagenumberformat\endcsname[1]{%
18094 \usekomafont{partentry}{\usekomafont{partentrypagenumber}{##1}}}%
18095 \expandafter\renewcommand\expandafter*%
18096 \csname scr@tso@#1@beforeskip\endcsname{2.25em \@plus\p@}%
18097 }
18098
18099 \CloneTOCEntryStyle{tocline}{chapter}
18100 \TOCEntryStyleStartInitCode{chapter}{%
18101 \expandafter\renewcommand%
18102 \csname scr@tso@#1@linefill\endcsname{%
18103 \if@chapterentrywithdots
18104 \TOCLineLeaderFill\relax
18105 \else
18106 \hfill
18107 \fi
18108 }%
18109 \expandafter\renewcommand%
18110 \csname scr@tso@#1@entryformat\endcsname{\usekomafont{chapterentry}}%
18111 \expandafter\renewcommand%
18112 \csname scr@tso@#1@pagenumberformat\endcsname[1]{%
18113 \usekomafont{chapterentry}{\usekomafont{chapterentrypagenumber}{##1}}}%
18114 \expandafter\renewcommand\expandafter*%
18115 \csname scr@tso@#1@beforeskip\endcsname{1.0em \@plus\p@}%
18116 }
18117
18118 \CloneTOCEntryStyle{tocline}{section}
18119 \TOCEntryStyleStartInitCode{section}{%
18120 \expandafter\renewcommand%
18121 \csname scr@tso@#1@linefill\endcsname{\TOCLineLeaderFill\relax}%
18122 }
18123
18124 \CloneTOCEntryStyle{section}{default}
18125
18126 \DeclareSectionCommand[%
18127 style=part,%
18128 level=\m@ne,%
18129 pagestyle=plain,%

File scrbook-xetex-bidi.def 372


18130 tocstyle=part,%
18131 toclevel=\m@ne,%
18132 tocindent=\z@,%
18133 tocnumwidth=2em%
18134 ]{part}
18135 \DeclareSectionCommand[%
18136 style=chapter,%
18137 level=\z@,%
18138 pagestyle=plain,%
18139 tocstyle=chapter,%
18140 tocindent=\z@,%
18141 tocnumwidth=1.5em%
18142 ]{chapter}
18143 \DeclareSectionCommand[%
18144 style=section,%
18145 level=1,%
18146 indent=\z@,%
18147 beforeskip=-3.5ex \@plus -1ex \@minus -.2ex,%
18148 afterskip=2.3ex \@plus.2ex,%
18149 tocstyle=section,%
18150 tocindent=1.5em,%
18151 tocnumwidth=2.3em%
18152 ]{section}
18153 \DeclareSectionCommand[%
18154 style=section,%
18155 level=2,%
18156 indent=\z@,%
18157 beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
18158 afterskip=1.5ex \@plus .2ex,%
18159 tocstyle=section,%
18160 tocindent=3.8em,%
18161 tocnumwidth=3.2em%
18162 ]{subsection}
18163 \DeclareSectionCommand[%
18164 style=section,%
18165 level=3,%
18166 indent=\z@,%
18167 beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
18168 afterskip=1.5ex \@plus .2ex,%
18169 tocstyle=section,%
18170 tocindent=7.0em,%
18171 tocnumwidth=4.1em%
18172 ]{subsubsection}
18173 \DeclareSectionCommand[%
18174 style=section,%
18175 level=4,%
18176 indent=\z@,%
18177 beforeskip=3.25ex \@plus1ex \@minus.2ex,%
18178 afterskip=-1em,%
18179 tocstyle=section,%

File scrbook-xetex-bidi.def 373


18180 tocindent=10em,%
18181 tocnumwidth=5em%
18182 ]{paragraph}
18183 \DeclareSectionCommand[%
18184 style=section,%
18185 level=5,%
18186 indent=\scr@parindent,%
18187 beforeskip=3.25ex \@plus1ex \@minus .2ex,%
18188 afterskip=-1em,%
18189 tocstyle=section,%
18190 tocindent=12em,%
18191 tocnumwidth=6em%
18192 ]{subparagraph}
18193
18194

107 File scrlettr-xetex-bidi.def


18195 \ProvidesFile{scrlettr-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for scrlettr class for
18196 \renewcommand\deffootnote[4][]{%
18197 \long\def\@makefntext##1{%
18198 \edef\@tempa{#1}\ifx\@tempa\@empty
18199 \@setpar{\@@par
18200 \@tempdima = \hsize
18201 \addtolength{\@tempdima}{-#2}
18202 \if@RTL\parshape \@ne 0pt \@tempdima\else\parshape \@ne #2 \@tempdima\fi}%
18203 \else
18204 \@setpar{\@@par
18205 \@tempdima = \hsize
18206 \addtolength{\@tempdima}{-#1}
18207 \@tempdimb = \hsize
18208 \addtolength{\@tempdimb}{-#2}
18209 \if@RTL\parshape \tw@ 0pt \@tempdima 0pt \@tempdimb\else\parshape \tw@ #1 \@tempdima #
18210 \fi
18211 \par
18212 \parindent #3\noindent
18213 \hbox to \z@{\hss\@@makefnmark}##1}
18214 \def\@@makefnmark{\hbox{#4}}
18215 }
18216 \deffootnote[1em]{1.5em}{1em}
18217 {\textsuperscript{\thefootnotemark}}
18218 \def\left@footnoterule{\kern-1\p@
18219 \hrule width 0.4\columnwidth
18220 \kern .6\p@}
18221 \def\right@footnoterule{%
18222 \kern-1\p@
18223 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
18224 \kern .6\p@}
18225 \def\@datefield{\@reffalse
18226 \ifx\varyourref\@empty \else \@reftrue \fi

File scrlettr-xetex-bidi.def 374


18227 \ifx\varyourmail\@empty \else \@reftrue \fi
18228 \ifx\varmyref\@empty \else \@reftrue \fi
18229 \ifx\varcustomer\@empty \else \@reftrue \fi
18230 \ifx\varinvoice\@empty \else \@reftrue \fi
18231 \ifx\varrefitemi\@empty \else \@reftrue \fi
18232 \ifx\varrefitemii\@empty \else \@reftrue \fi
18233 \ifx\varrefitemiii\@empty \else \@reftrue \fi
18234 \vskip -\parskip
18235 \vskip \refvskip
18236 \if@ref
18237 \ifx\varyourref\@empty \else
18238 \settowidth{\sc@temp}{\varyourref}
18239 \setbox0\hbox{\scriptsize \sf \yourrefname}
18240 \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
18241 \parbox[t]{\sc@@temp}{\noindent \box0\par \varyourref}\hfill
18242 \fi
18243 \ifx\varyourmail\@empty \else
18244 \settowidth{\sc@temp}{\varyourmail}
18245 \setbox0\hbox{\scriptsize \sf \yourmailname}
18246 \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
18247 \parbox[t]{\sc@@temp}{\noindent \box0\par \varyourmail}\hfill
18248 \fi
18249 \ifx\varmyref\@empty \else
18250 \settowidth{\sc@temp}{\varmyref}
18251 \setbox0\hbox{\scriptsize \sf \myrefname}
18252 \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
18253 \parbox[t]{\sc@@temp}{\noindent \box0\par \varmyref}\hfill
18254 \fi
18255 \ifx\varcustomer\@empty \else
18256 \settowidth{\sc@temp}{\varcustomer}
18257 \setbox0\hbox{\scriptsize \sf \customername}
18258 \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
18259 \parbox[t]{\sc@@temp}{\noindent \box0\par \varcustomer}\hfill
18260 \fi
18261 \ifx\varinvoice\@empty \else
18262 \settowidth{\sc@temp}{\varinvoice}
18263 \setbox0\hbox{\scriptsize \sf \invoicename}
18264 \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
18265 \parbox[t]{\sc@@temp}{\noindent \box0\par \varinvoice}\hfill
18266 \fi
18267 \ifx\varrefitemi\@empty \else
18268 \settowidth{\sc@temp}{\varrefitemi}
18269 \setbox0\hbox{\scriptsize \sf \varrefitemnamei}
18270 \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
18271 \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemi}\hfill
18272 \fi
18273 \ifx\varrefitemii\@empty \else
18274 \settowidth{\sc@temp}{\varrefitemii}
18275 \setbox0\hbox{\scriptsize \sf \varrefitemnameii}
18276 \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi

File scrlettr-xetex-bidi.def 375


18277 \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemii}\hfill
18278 \fi
18279 \ifx\varrefitemiii\@empty \else
18280 \settowidth{\sc@temp}{\varrefitemiii}
18281 \setbox0\hbox{\scriptsize \sf \varrefitemnameiii}
18282 \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
18283 \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemiii}\hfill
18284 \fi
18285 \ifx\@date\@empty \else
18286 \settowidth{\sc@temp}{\@date}
18287 \setbox0\hbox{\scriptsize \sf \datename}
18288 \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
18289 \parbox[t]{\sc@@temp}{\noindent \box0\par \@date}
18290 \fi
18291 \par
18292 \vspace{2.5\baselineskip}
18293 \else
18294 {\ifx\@date\@empty \else \if@RTL\raggedright\else\raggedleft\fi\fromplace\ \@date\par \fi}
18295 \vspace{1.5\baselineskip}
18296 \fi}
18297 \long\def\closing#1{\par\nobreak\vspace{0.5\baselineskip}
18298 \stopbreaks \noindent \sc@temp\textwidth \advance\sc@temp by
18299 -\sigindent \hspace{\sigindent}%
18300 \parbox{\sc@temp}{\if@RTL\raggedleft\else\raggedright\fi\ignorespaces #1\mbox{}\\[\presig@ski
18301 \fromsig\strut}\par
18302 \vspace{1.5\baselineskip}}

108 File scrreprt-xetex-bidi.def


18303 \ProvidesFile{scrreprt-xetex-bidi.def}[2017/06/09 v1.1 bidi adaptations for scrreprt class for
18304 \newcommand{\scr@saved@LTRfootnotetext}{}
18305 \newcommand{\scr@saved@RTLfootnotetext}{}
18306 \let\scr@saved@footnotetext\@footnotetext
18307 \let\scr@saved@LTRfootnotetext\@LTRfootnotetext
18308 \let\scr@saved@RTLfootnotetext\@RTLfootnotetext
18309 \renewcommand{\@footnotetext}[1]{%
18310 \scr@saved@footnotetext{#1}%
18311 \csname FN@mf@prepare\endcsname
18312 }
18313 \renewcommand{\@LTRfootnotetext}[1]{%
18314 \scr@saved@LTRfootnotetext{#1}%
18315 \csname FN@mf@prepare\endcsname
18316 }
18317 \renewcommand{\@RTLfootnotetext}[1]{%
18318 \scr@saved@RTLfootnotetext{#1}%
18319 \csname FN@mf@prepare\endcsname
18320 }
18321 \renewcommand\deffootnote[4][]{%
18322 \long\def\@makefntext##1{%
18323 \setlength{\@tempdimc}{#3}%

File scrreprt-xetex-bidi.def 376


18324 \def\@tempa{#1}\ifx\@tempa\@empty
18325 \@setpar{\@@par
18326 \@tempdima = \hsize
18327 \addtolength{\@tempdima}{-#2}%
18328 \if@RTL\parshape \@ne 0pt \@tempdima\else\parshape \@ne #2 \@tempdima\fi}%
18329 \else
18330 \addtolength{\@tempdimc}{#2}%
18331 \addtolength{\@tempdimc}{-#1}%
18332 \@setpar{\@@par
18333 \@tempdima = \hsize
18334 \addtolength{\@tempdima}{-#1}%
18335 \@tempdimb = \hsize
18336 \addtolength{\@tempdimb}{-#2}%
18337 \if@RTL\parshape \tw@ 0pt \@tempdima 0pt \@tempdimb\else\parshape \tw@ #1 \@tempdima #
18338 }%
18339 \fi
18340 \par
18341 \parindent\@tempdimc\noindent
18342 \ftn@font\hbox to \z@{\hss\@@makefnmark}##1%
18343 }%
18344 \def\@@makefnmark{\hbox{\ftnm@font{#4}}}%
18345 }
18346 \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
18347 \renewcommand*\left@footnoterule{%
18348 \normalsize\ftn@rule@test@values
18349 \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
18350 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
18351 {\usekomafont{footnoterule}{%
18352 \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
18353 \kern 2.6\p@}
18354 \renewcommand*\right@footnoterule{%
18355 \normalsize\ftn@rule@test@values
18356 \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
18357 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
18358 {\usekomafont{footnoterule}{%
18359 \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\ftn@rule@width\relax \leavevmode\lea
18360 \kern 2.6\p@}
18361 \renewcommand*\maketitle[1][1]{%
18362 \if@titlepage
18363 \begin{titlepage}
18364 \setcounter{page}{%
18365 #1%
18366 }%
18367 \let\footnotesize\small
18368 \let\right@footnoterule\relax
18369 \let\left@footnoterule\relax
18370 \let\textwidth@footnoterule\relax
18371 \let\footnote\thanks
18372 \let\LTRfootnote\LTRthanks
18373 \let\RTLfootnote\RTLthanks

File scrreprt-xetex-bidi.def 377


18374 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
18375 \let\@oldmakefnmark\@makefnmark
18376 \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
18377 \ifx\@extratitle\@empty \else
18378 \noindent\@extratitle\next@tpage\cleardoubleemptypage
18379 \thispagestyle{empty}%
18380 \fi
18381 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
18382 \ifx\@titlehead\@empty \else
18383 \begin{minipage}[t]{\textwidth}%
18384 \@titlehead
18385 \end{minipage}\par
18386 \fi
18387 \null\vfill
18388 \begin{center}
18389 \ifx\@subject\@empty \else
18390 {\subject@font \@subject \par}%
18391 \vskip 3em
18392 \fi
18393 {\titlefont\huge \@title\par}%
18394 \vskip 1em
18395 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
18396 \vskip 2em
18397 {\Large \lineskip 0.75em
18398 \begin{tabular}[t]{c}
18399 \@author
18400 \end{tabular}\par
18401 }%
18402 \vskip 1.5em
18403 {\Large \@date \par}%
18404 \vskip \z@ \@plus3fill
18405 {\Large \@publishers \par}%
18406 \vskip 3em
18407 \end{center}\par
18408 \@thanks
18409 \vfill\null
18410 \if@twoside\next@tpage
18411 \begin{minipage}[t]{\textwidth}
18412 \@uppertitleback
18413 \end{minipage}\par
18414 \vfill
18415 \begin{minipage}[b]{\textwidth}
18416 \@lowertitleback
18417 \end{minipage}
18418 \fi
18419 \ifx\@dedication\@empty \else
18420 \next@tpage\null\vfill
18421 {\centering \Large \@dedication \par}%
18422 \vskip \z@ \@plus3fill
18423 \if@twoside \next@tpage\cleardoubleemptypage \fi

File scrreprt-xetex-bidi.def 378


18424 \fi
18425 \end{titlepage}
18426 \else
18427 \par
18428 \@tempcnta=%
18429 #1%
18430 \relax\ifnum\@tempcnta=1\else
18431 \ClassWarning{\KOMAClassName}{%
18432 Optional argument of \string\maketitle\space ignored
18433 at\MessageBreak
18434 notitlepage-mode%
18435 }%
18436 \fi
18437 \begingroup
18438 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
18439 \let\@oldmakefnmark\@makefnmark
18440 \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
18441 \if@twocolumn
18442 \ifnum \col@number=\@ne
18443 \@maketitle
18444 \else
18445 \twocolumn[\@maketitle]%
18446 \fi
18447 \else
18448 \newpage
18449 \global\@topnum\z@
18450 \@maketitle
18451 \fi
18452 \thispagestyle{\titlepagestyle}\@thanks
18453 \endgroup
18454 \fi
18455 \setcounter{footnote}{0}%
18456 \let\thanks\relax
18457 \let\LTRthanks\relax
18458 \let\RTLthanks\relax
18459 \let\maketitle\relax
18460 \let\@maketitle\relax
18461 \global\let\@thanks\@empty
18462 \global\let\@author\@empty
18463 \global\let\@date\@empty
18464 \global\let\@title\@empty
18465 \global\let\@subtitle\@empty
18466 \global\let\@extratitle\@empty
18467 \global\let\@titlehead\@empty
18468 \global\let\@subject\@empty
18469 \global\let\@publishers\@empty
18470 \global\let\@uppertitleback\@empty
18471 \global\let\@lowertitleback\@empty
18472 \global\let\@dedication\@empty
18473 \global\let\author\relax

File scrreprt-xetex-bidi.def 379


18474 \global\let\title\relax
18475 \global\let\extratitle\relax
18476 \global\let\titlehead\relax
18477 \global\let\subject\relax
18478 \global\let\publishers\relax
18479 \global\let\uppertitleback\relax
18480 \global\let\lowertitleback\relax
18481 \global\let\dedication\relax
18482 \global\let\date\relax
18483 \global\let\and\relax
18484 }%
18485 \renewcommand*{\@maketitle}{%
18486 \clearpage
18487 \let\footnote\thanks
18488 \let\LTRfootnote\LTRthanks
18489 \let\RTLfootnote\RTLthanks
18490 \ifx\@extratitle\@empty \else
18491 \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
18492 \fi
18493 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
18494 \ifx\@titlehead\@empty \else
18495 \begin{minipage}[t]{\textwidth}
18496 \@titlehead
18497 \end{minipage}\par
18498 \fi
18499 \null
18500 \vskip 2em%
18501 \begin{center}%
18502 \ifx\@subject\@empty \else
18503 {\subject@font \@subject \par}
18504 \vskip 1.5em
18505 \fi
18506 {\titlefont\huge \@title \par}%
18507 \vskip .5em
18508 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
18509 \vskip 1em
18510 {\Large
18511 \lineskip .5em%
18512 \begin{tabular}[t]{c}
18513 \@author
18514 \end{tabular}\par
18515 }%
18516 \vskip 1em%
18517 {\Large \@date \par}%
18518 \vskip \z@ \@plus 1em
18519 {\Large \@publishers \par}
18520 \ifx\@dedication\@empty \else
18521 \vskip 2em
18522 {\Large \@dedication \par}
18523 \fi

File scrreprt-xetex-bidi.def 380


18524 \end{center}%
18525 \par
18526 \vskip 2em
18527 }%
18528 \def\raggedsection{\if@RTL\raggedleft\else\raggedright\fi}
18529 \renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}
18530 \renewcommand*\thesection{%
18531 \thechapter\@SepMark%
18532 \@arabic\c@section
18533 }
18534 \renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
18535 \renewcommand*{\thesubsubsection}{%
18536 \thesubsection\@SepMark\@arabic\c@subsubsection
18537 }
18538 \renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
18539 \renewcommand*{\thesubparagraph}{%
18540 \theparagraph\@SepMark\@arabic\c@subparagraph
18541 }
18542 \renewcommand*\thefigure{%
18543 \thechapter\@SepMark%
18544 \@arabic\c@figure
18545 }
18546 \renewcommand*\thetable{%
18547 \thechapter\@SepMark%
18548 \@arabic\c@table
18549 }
18550 \renewcommand*\theequation{%
18551 \thechapter\@SepMark%
18552 \@arabic\c@equation
18553 }
18554 \renewenvironment{thebibliography}[1]{%
18555 \if@bib@break@
18556 \bib@beginhook
18557 \else
18558 \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
18559 \setchapterpreamble{\bibpreamble}%
18560 \fi\fi
18561 \bib@heading
18562 \bib@beginhook
18563 \bib@before@hook
18564 \fi
18565 \renewcommand{\BreakBibliography}[1]{%
18566 \@bib@break
18567 \end{thebibliography}%
18568 \begingroup ##1\endgroup
18569 \begin{thebibliography}{#1}
18570 }%
18571 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
18572 \bidi@@thebibliography@font@hook%
18573 \list{%

File scrreprt-xetex-bidi.def 381


18574 \@biblabel{\@arabic\c@enumiv}%
18575 }{%
18576 \settowidth\labelwidth{\@biblabel{#1}}%
18577 \leftmargin\labelwidth
18578 \advance\leftmargin\labelsep
18579 \@openbib@code
18580 \if@bib@break@
18581 \edef\@tempa{%
18582 \noexpand\usecounter{enumiv}%
18583 \noexpand\setcounter{enumiv}{\the\c@enumiv}%
18584 }\@tempa
18585 \no@bib@break
18586 \else
18587 \usecounter{enumiv}%
18588 \fi
18589 \let\p@enumiv\@empty
18590 \renewcommand*\theenumiv{\@arabic\c@enumiv}%
18591 }%
18592 \sloppy\clubpenalty4000 \widowpenalty4000
18593 \sfcode`\.=\@m
18594 }{%
18595 \if@bib@break@
18596 \def\@noitemerr{%
18597 \@latex@warning{%
18598 \string\BreakBibliography\space at begin of `thebibliography'
18599 environment\MessageBreak
18600 or following \string\BreakBibliography}%
18601 }%
18602 \else
18603 \def\@noitemerr{%
18604 \@latex@warning{%
18605 Empty `thebibliography' environment or
18606 \string\BreakBibliography\MessageBreak
18607 before end of `thebibliography' environment}%
18608 }%
18609 \fi
18610 \endlist
18611 \if@bib@break@
18612 \else
18613 \bib@after@hook
18614 \let\bib@before@hook\@empty
18615 \let\bib@after@hook\@empty
18616 \fi
18617 \bib@endhook
18618 }
18619 \renewcommand*\left@footnoterule{%
18620 \kern-3\p@
18621 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
18622 \hrule\@width.4\columnwidth
18623 \kern 2.6\p@}

File scrreprt-xetex-bidi.def 382


18624 \renewcommand*\right@footnoterule{%
18625 \kern-3\p@
18626 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
18627 \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
18628 \kern2.6\p@}
18629 \renewcommand*{\raggeddictum}{\if@RTL\raggedright\else\raggedleft\fi}
18630 \renewcommand*{\raggeddictumtext}{\if@RTL\raggedleft\else\raggedright\fi}
18631 \renewcommand*{\raggeddictumauthor}{\if@RTL\raggedright\else\raggedleft\fi}
18632 \renewcommand\marginline[1]{%
18633 \marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\f
18634 }
18635 \renewcommand{\@@makecaption}[3]{%
18636 \cap@margin
18637 \ifonelinecaptions
18638 \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
18639 \let\scr@tmp@footnotetext=\@footnotetext
18640 \let\@footnotetext=\@gobble
18641 \let\scr@tmp@LTRfootnotetext=\@LTRfootnotetext
18642 \let\@LTRfootnotetext=\@gobble
18643 \let\scr@tmp@RTLfootnotetext=\@RTLfootnotetext
18644 \let\@RTLfootnotetext=\@gobble
18645 \sbox\@tempboxa{%
18646 {\capfont{\strut\ignorespaces
18647 #1{{\caplabelfont{#2\captionformat}}}%
18648 #3\unskip\strut}}%
18649 }%
18650 \let\@footnotetext=\scr@tmp@footnotetext
18651 \let\scr@tmp@footnotetext=\undefined
18652 \let\@LTRfootnotetext=\scr@tmp@LTRfootnotetext
18653 \let\scr@tmp@LTRfootnotetext=\undefined
18654 \let\@RTLfootnotetext=\scr@tmp@RTLfootnotetext
18655 \let\scr@tmp@RTLfootnotetext=\undefined
18656 \setcounter{footnote}{\@tempcntb}%
18657 \setcounter{mpfootnote}{\@tempcnta}%
18658 \else
18659 \sbox\@tempboxa{\hspace*{2\cap@width}}%
18660 \fi
18661 \begingroup%
18662 \setlength{\@tempdima}{\cap@width}%
18663 \ifdim \wd\@tempboxa >\@tempdima
18664 \hb@xt@\hsize{%
18665 \setbox\@tempboxa\vbox{\hsize=\cap@width
18666 \ifdofullc@p
18667 {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
18668 #1{{\caplabelfont{#2\captionformat}}}}}%
18669 {#3\unskip\strut\par}}}%
18670 \else%
18671 \ifdim\cap@indent<\z@
18672 {\capfont{\strut\ignorespaces
18673 #1{{\caplabelfont{#2\captionformat\par}}}%

File scrreprt-xetex-bidi.def 383


18674 \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
18675 \else%
18676 \if@capbreak
18677 {\capfont{\strut\ignorespaces
18678 #1{{\caplabelfont{#2\captionformat\par}}}%
18679 \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
18680 \else
18681 {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
18682 {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
18683 {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
18684 \fi
18685 \fi
18686 \fi
18687 }%
18688 \setlength{\@tempdima}{\ht\@tempboxa}%
18689 \addtolength{\@tempdima}{\dp\@tempboxa}%
18690 \addtolength{\@tempdima}{-\ht\strutbox}%
18691 \ht\@tempboxa\ht\strutbox
18692 \dp\@tempboxa\@tempdima
18693 \strut\cap@left
18694 \box\@tempboxa
18695 \cap@right\strut
18696 }%
18697 \else
18698 \global \@minipagefalse
18699 \sbox\@tempboxa{%
18700 {\capfont{\scr@smashdp{\strut\ignorespaces
18701 #1{{\caplabelfont{#2\captionformat}}}}%
18702 #3}}%
18703 }%
18704 {\capfont{\hb@xt@\hsize{\strut\cap@left\if@RTL\beginR\fi\box\@tempboxa\if@RTL\endR\fi\ca
18705 \fi
18706 \endgroup
18707 }
18708 \renewcommand{\@makecaption}[2]{%
18709 \if@captionabove
18710 \vskip\belowcaptionskip
18711 \else
18712 \vskip\abovecaptionskip
18713 \fi
18714 \@@makecaption\@firstofone{#1}{#2}%
18715 \if@captionabove
18716 \vskip\abovecaptionskip
18717 \else
18718 \vskip\belowcaptionskip
18719 \fi
18720 }
18721 \bidi@AfterFile{longtable-xetex-bidi.def}{%
18722 \@ifpackageloaded{caption2}{\@komalongtablefalse
18723 \scr@caption@before@longtable@warning{caption2}%

File scrreprt-xetex-bidi.def 384


18724 }{}%
18725 \if@komalongtable
18726 \renewcommand{\LT@makecaption}[3]{%
18727 \noalign{%
18728 \if@captionabove
18729 \vskip\belowcaptionskip
18730 \else
18731 \vskip\abovecaptionskip
18732 \fi
18733 }%
18734 \LT@mcol\LT@cols c{%
18735 \hbox to\z@{\hss\parbox[t]\linewidth{%
18736 \@@makecaption{#1}{#2}{#3}%
18737 \endgraf
18738 \if@captionabove
18739 \vskip\abovecaptionskip
18740 \else
18741 \vskip\belowcaptionskip
18742 \fi
18743 }%
18744 \hss
18745 }%
18746 }%
18747 }%
18748 \renewcommand*{\scr@LT@array}{}%
18749 \let\scr@LT@array=\LT@array
18750 \renewcommand*{\LT@array}{%
18751 \let\scr@caption=\LT@caption
18752 \def\captionabove{\noalign{\global\@captionabovetrue}%
18753 \scr@caption}%
18754 \def\captionbelow{\noalign{\global\@captionabovefalse}%
18755 \scr@caption}%
18756 \if@tablecaptionabove
18757 \let\LT@caption=\captionabove
18758 \else
18759 \let\LT@caption=\captionbelow
18760 \fi
18761 \scr@LT@array
18762 }%
18763 \ClassInfo{\KOMAClassName}{%
18764 longtable captions redefined%
18765 }%
18766 \fi
18767 }
18768
18769 \CloneTOCEntryStyle{tocline}{part}
18770 \TOCEntryStyleStartInitCode{part}{%
18771 \expandafter\renewcommand%
18772 \csname scr@tso@#1@linefill\endcsname{\hfill}%
18773 \expandafter\renewcommand%

File scrreprt-xetex-bidi.def 385


18774 \csname scr@tso@#1@entryformat\endcsname[1]{\usekomafont{partentry}{##1}}%
18775 \expandafter\renewcommand%
18776 \csname scr@tso@#1@pagenumberformat\endcsname[1]{%
18777 \usekomafont{partentry}{\usekomafont{partentrypagenumber}{##1}}}%
18778 \expandafter\renewcommand\expandafter*%
18779 \csname scr@tso@#1@beforeskip\endcsname{2.25em \@plus\p@}%
18780 }
18781
18782 \CloneTOCEntryStyle{tocline}{chapter}
18783 \TOCEntryStyleStartInitCode{chapter}{%
18784 \expandafter\renewcommand%
18785 \csname scr@tso@#1@linefill\endcsname{%
18786 \if@chapterentrywithdots
18787 \TOCLineLeaderFill\relax
18788 \else
18789 \hfill
18790 \fi
18791 }%
18792 \expandafter\renewcommand%
18793 \csname scr@tso@#1@entryformat\endcsname{\usekomafont{chapterentry}}%
18794 \expandafter\renewcommand%
18795 \csname scr@tso@#1@pagenumberformat\endcsname[1]{%
18796 \usekomafont{chapterentry}{\usekomafont{chapterentrypagenumber}{##1}}}%
18797 \expandafter\renewcommand\expandafter*%
18798 \csname scr@tso@#1@beforeskip\endcsname{1.0em \@plus\p@}%
18799 }
18800
18801 \CloneTOCEntryStyle{tocline}{section}
18802 \TOCEntryStyleStartInitCode{section}{%
18803 \expandafter\renewcommand%
18804 \csname scr@tso@#1@linefill\endcsname{\TOCLineLeaderFill\relax}%
18805 }
18806
18807 \CloneTOCEntryStyle{section}{default}
18808
18809 \DeclareSectionCommand[%
18810 style=part,%
18811 level=\m@ne,%
18812 pagestyle=plain,%
18813 tocstyle=part,%
18814 toclevel=\m@ne,%
18815 tocindent=\z@,%
18816 tocnumwidth=2em%
18817 ]{part}
18818 \DeclareSectionCommand[%
18819 style=chapter,%
18820 level=\z@,%
18821 pagestyle=plain,%
18822 tocstyle=chapter,%
18823 tocindent=\z@,%

File scrreprt-xetex-bidi.def 386


18824 tocnumwidth=1.5em%
18825 ]{chapter}
18826 \DeclareSectionCommand[%
18827 style=section,%
18828 level=1,%
18829 indent=\z@,%
18830 beforeskip=-3.5ex \@plus -1ex \@minus -.2ex,%
18831 afterskip=2.3ex \@plus.2ex,%
18832 tocstyle=section,%
18833 tocindent=1.5em,%
18834 tocnumwidth=2.3em%
18835 ]{section}
18836 \DeclareSectionCommand[%
18837 style=section,%
18838 level=2,%
18839 indent=\z@,%
18840 beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
18841 afterskip=1.5ex \@plus .2ex,%
18842 tocstyle=section,%
18843 tocindent=3.8em,%
18844 tocnumwidth=3.2em%
18845 ]{subsection}
18846 \DeclareSectionCommand[%
18847 style=section,%
18848 level=3,%
18849 indent=\z@,%
18850 beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
18851 afterskip=1.5ex \@plus .2ex,%
18852 tocstyle=section,%
18853 tocindent=7.0em,%
18854 tocnumwidth=4.1em%
18855 ]{subsubsection}
18856 \DeclareSectionCommand[%
18857 style=section,%
18858 level=4,%
18859 indent=\z@,%
18860 beforeskip=3.25ex \@plus1ex \@minus.2ex,%
18861 afterskip=-1em,%
18862 tocstyle=section,%
18863 tocindent=10em,%
18864 tocnumwidth=5em%
18865 ]{paragraph}
18866 \DeclareSectionCommand[%
18867 style=section,%
18868 level=5,%
18869 indent=\scr@parindent,%
18870 beforeskip=3.25ex \@plus1ex \@minus .2ex,%
18871 afterskip=-1em,%
18872 tocstyle=section,%
18873 tocindent=12em,%

File scrreprt-xetex-bidi.def 387


18874 tocnumwidth=6em%
18875 ]{subparagraph}
18876
18877

109 File sidecap-xetex-bidi.def


18878 \ProvidesFile{sidecap-xetex-bidi.def}[2010/08/01 v0.1 bidi adaptations for sidecap package for
18879 \renewcommand*{\SC@FLOAT}[2]{\if@RTL%
18880 \isSC@ODD{{#1}\hspace{\sidecaptionsep}{#2}} {{#2}\hspace{\sidecaptionsep}{#1}}\else%
18881 \isSC@ODD{{#2}\hspace{\sidecaptionsep}{#1}} {{#1}\hspace{\sidecaptionsep}{#2}}\fi}
18882 \renewcommand*\SC@justify@caption{\if@RTL%
18883 \isSC@ODD{\RaggedLeft}{\RaggedRight}\else%
18884 \isSC@ODD{\RaggedRight}{\RaggedLeft}\fi}

110 File soul-xetex-bidi.def


18885 \ProvidesFile{soul-xetex-bidi.def}[2015/10/16 v0.1 bidi adaptations for soul package for XeTeX
18886 \long\def\SOUL@start#1{{%
18887 \let\bidi@RTL@everypar\@empty
18888 \let\<\SOUL@lowerthan
18889 \let\>\empty
18890 \def\soulomit{\noexpand\soulomit}%
18891 \gdef\SOUL@eventuallyexhyphen##1{}%
18892 \let\SOUL@soeventuallyskip\relax
18893 \SOUL@spaceskip=\fontdimen\tw@\font\@plus\fontdimen\thr@@\font
18894 \@minus\fontdimen4\font
18895 \SOUL@ignorespacesfalse
18896 \leavevmode
18897 \SOUL@preamble
18898 \SOUL@lasttoken={}%
18899 \SOUL@word={}%
18900 \SOUL@minus\z@
18901 \SOUL@comma\z@
18902 \SOUL@apo\z@
18903 \SOUL@grave\z@
18904 \SOUL@do{#1}%
18905 \SOUL@postamble
18906 }}
18907 \def\SOUL@ulunderline#1{{%
18908 \setbox\z@\hbox{#1}%
18909 \dimen@=\wd\z@
18910 \dimen@i=\SOUL@uloverlap
18911 \advance\dimen@2\dimen@i
18912 \if@RTL
18913 \unhcopy\z@
18914 \llap{%
18915 \null
18916 \kern-\dimen@i
18917 \SOUL@ulcolor{\SOUL@ulleaders\hskip\dimen@}%

File soul-xetex-bidi.def 388


18918 }%
18919 \else
18920 \rlap{%
18921 \null
18922 \kern-\dimen@i
18923 \SOUL@ulcolor{\SOUL@ulleaders\hskip\dimen@}%
18924 }%
18925 \unhcopy\z@
18926 \fi
18927 }}
18928 \def\bidi@SOUL@ulleaders{%
18929 \leaders\hb@[email protected]{\hss\SOUL@ulcolor{\vrule\@depth\SOUL@uldp\@height\SOUL@ulht}\hss}\rel
18930 }
18931 \def\SOUL@uleveryspace#1{%
18932 \if@RTL
18933 #1%
18934 \bidi@SOUL@ulleaders
18935 \hskip\spaceskip
18936 \else
18937 \SOUL@ulcolor{%
18938 #1%
18939 \SOUL@ulleaders
18940 \hskip\spaceskip
18941 }%
18942 \fi
18943 \null
18944 }

111 File stabular-xetex-bidi.def


18945 \ProvidesFile{stabular-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for stabular package f
18946 \def\@stabular{%
18947 \leavevmode \bgroup \if@RTLtab\beginR \fi
18948 \let\@acol\@tabacol
18949 \let\@classz\@tabclassz
18950 \let\@classiv\@tabclassiv \let\\\@tabularcr\@stabarray}
18951 \def\endstabular{\crcr\egroup\if@RTLtab\egroup\endR\egroup\fi
18952 \egroup \if@RTLtab\endR\fi\egroup}
18953 \expandafter \let \csname endstabular*\endcsname = \endstabular
18954 \def\@sarray[#1]#2{%
18955 \bgroup
18956 \setbox\@arstrutbox\hbox{%
18957 \vrule \@height\arraystretch\ht\strutbox
18958 \@depth\arraystretch \dp\strutbox
18959 \@width\z@}%
18960 \@mkpream{#2}%
18961 \edef\@preamble{%
18962 \ialign \noexpand\@halignto
18963 \bgroup \@arstrut \@preamble \tabskip\z@skip \cr}%
18964 \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox

File stabular-xetex-bidi.def 389


18965 \let\tabularnewline\\%
18966 \let\@sharp##%
18967 \set@typeset@protect
18968 \lineskip\z@skip\baselineskip\z@skip
18969 \if@RTLtab\hbox\bgroup\beginR\@hboxRconstructtrue\if #1t\vtop \else \vbox \fi\bgroup\fi
18970 \@preamble}

112 File subfigure-xetex-bidi.def


18971 \ProvidesFile{subfigure-xetex-bidi.def}[2010/03/01 v0.1 bidi adaptations for subfigure package
18972 \AtBeginDocument{%
18973 \let\p@subfigure=\thefigure
18974 \let\p@subtable=\thetable%
18975 }

113 File tabls-xetex-bidi.def


18976 \ProvidesFile{tabls-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for tabls package for XeT
18977 \def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup}
18978
18979 \expandafter\let\csname endtabular*\endcsname=\endtabular
18980
18981 \def\endarray{\ifvmode\csname crcr\endcsname % just do \crcr if \\ given
18982 \else \\[\z@ \global\advance\@arstdepth-\@otarlinesep]%
18983 \fi\egroup\if@RTLtab\egroup\endR\egroup\fi\@unrecurse\egroup}
18984
18985 \def\@array[#1]#2{% remember global variables to allow recursion:
18986 \edef\@unrecurse{\global\@skip@bove\the\@skip@bove
18987 \global\@arstheight\the\@arstheight\global\@arstdepth\the\@arstdepth}%
18988 \let\@otarlinesep\@tarlinesep \global\@skip@bove-\@otarlinesep
18989 \ifx\@classz\@arrayclassz \let\@tarlinesep\arraylinesep
18990 \else \let\@tarlinesep\tablinesep \fi
18991 \divide\@tarlinesep\tw@ % half sep is applied to height & depth
18992 \let\@seesize\relax \let\@rememsize\relax \@mkpream{#2}%
18993 \@tempdima\arraystretch\ht\strutbox \@tempdimb\arraystretch\dp\strutbox
18994 \ifdim\@tarlinesep>\z@ % (need \protect for \multicolumn)
18995 \def\@rememsize{\protect\@r@m@msize}\let\@seesize\@s@@size
18996 \advance\@tempdima-\@tarlinesep \advance\@tempdimb-\@tarlinesep
18997 \fi \setbox\@arstrutbox\hbox{% set up smaller strut
18998 \vrule \@height\@tempdima \@depth\@tempdimb \@width\z@}%
18999 \let\protect\noexpand
19000 \edef\@preamble{\ialign \noexpand\@halignto \bgroup
19001 \unhcopy\@arstrutbox \@preamble \tabskip\z@skip &\@sharp \cr}%
19002 \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
19003 \if#1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi
19004 \bgroup \let\par\@empty
19005 \global\@arstheight\ht\@arstrutbox \global\@arstdepth\dp\@arstrutbox
19006 \advance\extrarulesep.5\arrayrulewidth
19007 \let\@sharp##\let\protect\relax \lineskip\z@skip \baselineskip\z@skip
19008 \if@RTLtab\hbox\bgroup\beginR\@hboxRconstructtrue\if#1t\vtop \else \vbox \fi\bgroup\fi

File tabls-xetex-bidi.def 390


19009 \@preamble}

114 File tabularx-xetex-bidi.def


19010 \ProvidesFile{tabularx-xetex-bidi.def}[2014/11/08 v0.1 bidi adaptations for tabularx package f
19011 \def\TX@endtabularx{%
19012 \expandafter\expandafter\expandafter
19013 \TX@find@endtabularxa\csname end\TX@\endcsname
19014 \endtabularx\TX@\endtabularx\TX@find@endtabularxa
19015 \expandafter\TX@newcol\expandafter{\tabularxcolumn{\TX@col@width}}%
19016 \let\verb\TX@verb
19017 \def\@elt##1{\global\value{##1}\the\value{##1}\relax}%
19018 \edef\TX@ckpt{\cl@@ckpt}%
19019 \let\@elt\relax
19020 \TX@old@table\maxdimen
19021 \TX@col@width\TX@target
19022 \global\TX@cols\@ne
19023 \TX@typeout@
19024 {\@spaces Table Width\@spaces Column Width\@spaces X Columns}%
19025 \TX@trial{\def\NC@rewrite@X{%
19026 \global\advance\TX@cols\@ne\NC@find p{\TX@col@width}}}%
19027 \loop
19028 \TX@arith
19029 \ifTX@
19030 \TX@trial{}%
19031 \repeat
19032 {\let\@footnotetext\TX@ftntext\let\@xfootnotenext\TX@xftntext
19033 \let\@LTRfootnotetext\TX@LTRftntext\let\@xLTRfootnotenext\TX@xLTRftntext
19034 \let\@RTLfootnotetext\TX@RTLftntext\let\@xRTLfootnotenext\TX@xRTLftntext
19035 \csname tabular*\expandafter\endcsname\expandafter\TX@target
19036 \the\toks@
19037 \csname endtabular*\endcsname}%
19038 \global\TX@ftn\expandafter{\expandafter}\the\TX@ftn
19039 \ifnum0=`{\fi}%
19040 \expandafter\expandafter\expandafter
19041 \TX@find@endtabularxbb
19042 \expandafter\end\expandafter{\TX@}%
19043 \endtabularx\TX@\endtabularx\TX@find@endtabularxb
19044 }
19045
19046 \def\TX@trial#1{%
19047 \setbox\@tempboxa\hbox{%
19048 #1\relax
19049 \let\@footnotetext\TX@trial@ftn
19050 \let\@LTRfootnotetext\TX@trial@ftn
19051 \let\@RTLfootnotetext\TX@trial@ftn
19052 \let\TX@vwarn\@empty
19053 \expandafter\let\expandafter\tabularx\csname tabular*\endcsname
19054 \expandafter\let\expandafter\endtabularx\csname endtabular*\endcsname
19055 \def\write{\begingroup

File tabularx-xetex-bidi.def 391


19056 \def\let{\afterassignment\endgroup\toks@}%
19057 \afterassignment\let\count@}%
19058 \hbadness\@M
19059 \hfuzz\maxdimen
19060 \let\hbadness\@tempcnta
19061 \let\hfuzz\@tempdima
19062 \expandafter\tabular\the\toks@
19063 \endtabular}%
19064 \TX@ckpt
19065 \TX@typeout@{\@spaces
19066 \expandafter\TX@align
19067 \the\wd\@tempboxa\space\space\space\space\space\@@
19068 \expandafter\TX@align
19069 \the\TX@col@width\space\space\space\space\space\@@
19070 \@spaces\the\TX@cols}}
19071
19072 \long\def\TX@LTRftntext#1{%
19073 \edef\@tempa{\the\TX@ftn\noexpand\LTRfootnotetext
19074 [\the\csname c@\@mpfn\endcsname]}%
19075 \global\TX@ftn\expandafter{\@tempa{#1}}}%
19076 \long\def\TX@xLTRftntext[#1]#2{%
19077 \global\TX@ftn\expandafter{\the\TX@ftn\LTRfootnotetext[#1]{#2}}}
19078
19079 \long\def\TX@RTLftntext#1{%
19080 \edef\@tempa{\the\TX@ftn\noexpand\RTLfootnotetext
19081 [\the\csname c@\@mpfn\endcsname]}%
19082 \global\TX@ftn\expandafter{\@tempa{#1}}}%
19083 \long\def\TX@xRTLftntext[#1]#2{%
19084 \global\TX@ftn\expandafter{\the\TX@ftn\RTLfootnotetext[#1]{#2}}}

115 File tabulary-xetex-bidi.def


19085 \ProvidesFile{tabulary-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for tabulary package f
19086 \def\@testpach{\@chclass
19087 \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
19088 \ifnum \@lastchclass=7 5 \else
19089 \ifnum \@lastchclass=8 \tw@ \else
19090 \ifnum \@lastchclass=9 \thr@@
19091 \else \z@
19092 \ifnum \@lastchclass = 10 \else
19093 \edef\@nextchar{\expandafter\string\@nextchar}%
19094 \@chnum
19095 \if \@nextchar c\z@ \else
19096 \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
19097 \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
19098 \if \@nextchar C7 \else
19099 \if \@nextchar L8 \else
19100 \if \@nextchar R9 \else
19101 \if \@nextchar J10 \else
19102 \z@ \@chclass

File tabulary-xetex-bidi.def 392


19103 \if\@nextchar |\@ne \else
19104 \if \@nextchar !6 \else
19105 \if \@nextchar @7 \else
19106 \if \@nextchar <8 \else
19107 \if \@nextchar >9 \else
19108 10
19109 \@chnum
19110 \if \@nextchar m\thr@@\else
19111 \if \@nextchar p4 \else
19112 \if \@nextchar b5 \else
19113 \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi\fi \fi \fi\fi \fi
19114 \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}

116 File tc-xetex-bidi.def


19115 \ProvidesFile{tc-xetex-bidi.def}[2014/07/08 v0.1 bidi adaptations for Clipping driver for XeTe
19116 \def\@cliptoboxdim#1{%
19117 \setbox#1=\hbox{%
19118 \Gin@defaultbp\WIDTH{\wd#1}%
19119 \Gin@defaultbp\DEPTH{\dp#1}%
19120 \@tempdima\ht#1%
19121 \advance\@tempdima\dp#1%
19122 \Gin@defaultbp\TOTALHEIGHT{\@tempdima}%
19123 \beginL\special{pdf:bcontent }%
19124 \special{%
19125 pdf:literal direct
19126 0 -\DEPTH\space \WIDTH\space \TOTALHEIGHT\space re
19127 }%
19128 \special{pdf:literal direct W }%
19129 \special{pdf:literal direct n }%
19130 \if@RTL\beginR\fi\box#1\if@RTL\endR\fi%
19131 \special{pdf:econtent }\endL%
19132 }%
19133 }

117 File tcolorbox-xetex-bidi.def


19134 \ProvidesFile{tcolorbox-xetex-bidi.def}[2018/11/11 v0.2 bidi adaptations for tcolorbox package
19135 \let\endtcb@lrbox=\endminipage
19136 \let\endtcb@savebox=\endtcb@lrbox
19137
19138 \bidi@patchcmd{\tcb@vbox}{%
19139 \let\@footnotetext\@mpfootnotetext%
19140 }{%
19141 \let\@footnotetext\@mpfootnotetext%
19142 \let\@LTRfootnotetext\@mpLTRfootnotetext%
19143 \let\@RTLfootnotetext\@mpRTLfootnotetext%
19144 }{}{}
19145
19146 \bidi@patchcmd{\endtcb@vbox}{%

File tcolorbox-xetex-bidi.def 393


19147 \footnoterule%
19148 }{%
19149 \bidi@mpfootnoterule%
19150 }{}{}
19151 \bidi@apptocmd\tcb@@icolorbox{%
19152 \@bidi@list@minipage@parboxfalse
19153 }{}{}

118 File titlesec-xetex-bidi.def


19154 \ProvidesFile{titlesec-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for titlesec package f
19155 \renewcommand\filright{%
19156 \gdef\ttl@filleft##1{\hskip##1}%
19157 \gdef\ttl@filright##1{\hfill}%
19158 \let\\\@centercr
19159 \advance\rightskip\z@ \@plus 1fil
19160 \parfillskip\z@}
19161 \def\ttlh@hang#1#2#3#4#5#6#7#8{%
19162 \gdef\ttl@makeline##1{\ttl@calc\hspace{#6}##1\ttl@calc\hspace{#7}}%
19163 \setlength\leftskip{#6}%
19164 \setlength\rightskip{#7}%
19165 \interlinepenalty\@M
19166 \ttl@changecentercr
19167 \ttl@beginlongest
19168 #1{\ifhmode\ttl@hmode@error\fi
19169 \ttl@glcmds
19170 \parindent\z@
19171 \leavevmode
19172 \begingroup
19173 \ifttl@label
19174 \sbox\z@{#2\strut\ttl@calc\hspace{#3}}%
19175 \if@RTL\advance\rightskip\wd\z@\else\advance\leftskip\wd\z@\fi
19176 \llap{\box\z@}%
19177 \fi
19178 #4{#8}%
19179 \kern\z@\strut\@@par
19180 \endgroup
19181 \nobreak\ttl@midlongest#5\@@par}%
19182 \ttl@endlongest}

119 File titletoc-xetex-bidi.def


19183 \ProvidesFile{titletoc-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for titletoc package f
19184 \renewcommand\filright{%
19185 \gdef\ttl@filleft##1{\hskip##1}%
19186 \gdef\ttl@filright##1{\hfill}%
19187 \let\\\@centercr
19188 \advance\rightskip\z@ \@plus 1fil
19189 \parfillskip\z@}
19190 \renewcommand\contentspush[1]{%

File titletoc-xetex-bidi.def 394


19191 \sbox\z@{#1}%
19192 \xdef\ttl@b{\advance\if@RTL\rightskip\else\leftskip\fi\the\wd\z@}%
19193 \aftergroup\ttl@b
19194 \leavevmode\llap{\box\z@}}
19195 \def\ttl@outnoblock#1#2#3{%
19196 \begingroup
19197 \ifnum\ttl@b>\ttl@a
19198 \nobreak
19199 \else\ifnum\ttl@b<\ttl@a
19200 \addpenalty{\@secpenalty}%
19201 \else
19202 \addpenalty{\z@}%
19203 \fi\fi
19204 \ttl@contentsstretch
19205 \nobreak
19206 \ifcase#1\relax\else\interlinepenalty\@M\fi
19207 \parindent\z@
19208 \ifx\@nil#2%
19209 \PackageError{titletoc}{Unimplemented}%
19210 {The optional argument is currently mandatory}%
19211 \else
19212 \if@RTL\setlength\rightskip{#2}\else
19213 \setlength\leftskip{#2}\fi%
19214 \fi
19215 \if@RTL\setlength\leftskip{\@pnumwidth}\else\setlength\rightskip{\@pnumwidth}\fi%
19216 \let\contentsmargin\ttl@margin
19217 \def\ttl@makeline##1{##1}%
19218 #3%
19219 \addtolength{\parfillskip}{-\ttl@corr}%
19220 \if@RTL\addtolength{\leftskip}{\ttl@corr}\else\addtolength{\rightskip}{\ttl@corr}\fi%
19221 \let\ttl@leaders\leaders}
19222 \renewcommand\ttl@margin[2][\z@]{%
19223 \def\ttl@corr{#1}%
19224 \advance\if@RTL\leftskip\else\rightskip\fi-\@pnumwidth\relax
19225 \advance\if@RTL\leftskip\else\rightskip\fi#2\relax
19226 \def\@pnumwidth{#2}}
19227 \let\ttl@savel@part\l@part
19228 \def\l@part{\ttl@lselect{part}}
19229
19230 \let\ttl@savel@chapter\l@chapter
19231 \def\l@chapter{\ttl@lselect{chapter}}

120 File tocbibind-xetex-bidi.def


19232 \ProvidesFile{tocbibind-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for tocbibind package
19233 \if@dotocbib
19234 \@ifpackageloaded{natbib}{}{% natbib not loaded
19235 \renewcommand{\bibsection}{\t@cb@bchapsec}
19236 \renewenvironment{thebibliography}[1]{%
19237 \bibsection

File tocbibind-xetex-bidi.def 395


19238 \begin{thebibitemlist}{#1}}{\end{thebibitemlist}}}
19239 \renewenvironment{thebibitemlist}[1]{
19240 \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
19241 \bidi@@thebibliography@font@hook%
19242 \list{\@biblabel{\@arabic\c@enumiv}}%
19243 {\settowidth\labelwidth{\@biblabel{#1}}%
19244 \leftmargin\labelwidth
19245 \advance\leftmargin\labelsep
19246 \@openbib@code
19247 \usecounter{enumiv}%
19248 \let\p@enumiv\@empty
19249 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
19250 \sloppy
19251 \clubpenalty4000
19252 \@clubpenalty \clubpenalty
19253 \widowpenalty4000%
19254 \sfcode`\.\@m}
19255 {\def\@noitemerr
19256 {\@latex@warning{Empty `thebibliography' environment}}%
19257 \endlist}
19258
19259 \@ifpackagewith{chapterbib}{sectionbib}%
19260 {\renewcommand{\sectionbib}[2]{}}%
19261 {}
19262
19263 \fi
19264 \if@inltxdoc\else
19265 \renewenvironment{theindex}%
19266 {\if@twocolumn
19267 \@restonecolfalse
19268 \else
19269 \@restonecoltrue
19270 \fi
19271 \if@bibchapter
19272 \if@donumindex
19273 \refstepcounter{chapter}
19274 \twocolumn[\vspace*{2\topskip}%
19275 \@makechapterhead{\indexname}]%
19276 \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}\indexname}
19277 \chaptermark{\indexname}
19278 \else
19279 \if@dotocind
19280 \twocolumn[\vspace*{2\topskip}%
19281 \@makeschapterhead{\indexname}]%
19282 \prw@mkboth{\indexname}
19283 \addcontentsline{toc}{chapter}{\indexname}
19284 \else
19285 \twocolumn[\vspace*{2\topskip}%
19286 \@makeschapterhead{\indexname}]%
19287 \prw@mkboth{\indexname}

File tocbibind-xetex-bidi.def 396


19288 \fi
19289 \fi
19290 \else
19291 \if@donumindex
19292 \twocolumn[\vspace*{-1.5\topskip}%
19293 \@nameuse{\@tocextra}{\indexname}]%
19294 \csname \@tocextra mark\endcsname{\indexname}
19295 \else
19296 \if@dotocind
19297 \twocolumn[\vspace*{-1.5\topskip}%
19298 \toc@headstar{\@tocextra}{\indexname}]%
19299 \prw@mkboth{\indexname}
19300 \addcontentsline{toc}{\@tocextra}{\indexname}
19301 \else
19302 \twocolumn[\vspace*{-1.5\topskip}%
19303 \toc@headstar{\@tocextra}{\indexname}]%
19304 \prw@mkboth{\indexname}
19305 \fi
19306 \fi
19307 \fi
19308 \thispagestyle{plain}\parindent\z@
19309 \parskip\z@ \@plus .3\p@\relax
19310 \let\item\@idxitem}
19311 {\if@restonecol\onecolumn\else\clearpage\fi}
19312 \fi

121 File tocloft-xetex-bidi.def


19313 \ProvidesFile{tocloft-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for tocloft package for
19314 \let\cftdot\@SepMark
19315 \if@cfthaspart
19316 \renewcommand*{\l@part}[2]{
19317 \@cftdopartfalse
19318 \ifnum \c@tocdepth >-2\relax
19319 \if@cfthaschapter
19320 \@cftdoparttrue
19321 \fi
19322 \ifnum \c@tocdepth >\m@ne
19323 \if@cfthaschapter\else
19324 \@cftdoparttrue
19325 \fi
19326 \fi
19327 \fi
19328 \if@cftdopart
19329 \if@cfthaschapter
19330 \addpenalty{-\@highpenalty}
19331 \else
19332 \addpenalty\@secpenalty
19333 \fi
19334 \addvspace{\cftbeforepartskip}

File tocloft-xetex-bidi.def 397


19335 \begingroup
19336 {\if@RTL\rightskip\else\leftskip\fi \cftpartindent\relax
19337 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19338 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
19339 \parindent \cftpartindent\relax\@afterindenttrue
19340 \interlinepenalty\@M
19341 \leavevmode
19342 \@tempdima \cftpartnumwidth\relax
19343 \let\@cftbsnum \cftpartpresnum
19344 \let\@cftasnum \cftpartaftersnum
19345 \let\@cftasnumb \cftpartaftersnumb
19346 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\righ
19347 {\cftpartfont \cftpartpresnum #1}
19348 \cftpartfillnum{#2}}
19349 \nobreak
19350 \if@cfthaschapter
19351 \global\@nobreaktrue
19352 \everypar{\global\@nobreakfalse\everypar{}}
19353 \else
19354 \if@compatibility
19355 \global\@nobreaktrue
19356 \everypar{\global\@nobreakfalse\everypar{}}
19357 \fi
19358 \fi
19359 \endgroup
19360 \fi}
19361 \fi
19362 \if@cfthaschapter
19363 \renewcommand*{\l@chapter}[2]{
19364 \ifnum \c@tocdepth >\m@ne
19365 \addpenalty{-\@highpenalty}
19366 \vskip \cftbeforechapskip
19367 {\if@RTL\rightskip\else\leftskip\fi \cftchapindent\relax
19368 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19369 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
19370 \parindent \cftchapindent\relax\@afterindenttrue
19371 \interlinepenalty\@M
19372 \leavevmode
19373 \@tempdima \cftchapnumwidth\relax
19374 \let\@cftbsnum \cftchappresnum
19375 \let\@cftasnum \cftchapaftersnum
19376 \let\@cftasnumb \cftchapaftersnumb
19377 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
19378 {\cftchapfont #1}\nobreak
19379 \cftchapfillnum{#2}}
19380 \fi}
19381 \fi
19382 \renewcommand*{\l@section}[2]{%
19383 \ifnum \c@tocdepth >\z@
19384 \if@cfthaschapter

File tocloft-xetex-bidi.def 398


19385 \vskip \cftbeforesecskip
19386 \else
19387 \addpenalty\@secpenalty
19388 \addvspace{\cftbeforesecskip}
19389 \fi
19390 {\if@RTL\rightskip\else\leftskip\fi \cftsecindent\relax
19391 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19392 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
19393 \parindent \cftsecindent\relax\@afterindenttrue
19394 \interlinepenalty\@M
19395 \leavevmode
19396 \@tempdima \cftsecnumwidth\relax
19397 \let\@cftbsnum \cftsecpresnum
19398 \let\@cftasnum \cftsecaftersnum
19399 \let\@cftasnumb \cftsecaftersnumb
19400 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
19401 {\cftsecfont #1}\nobreak
19402 \cftsecfillnum{#2}}
19403 \fi}
19404 \renewcommand*{\l@subsection}[2]{%
19405 \ifnum \c@tocdepth >\@ne
19406 \vskip \cftbeforesubsecskip
19407 {\if@RTL\rightskip\else\leftskip\fi \cftsubsecindent\relax
19408 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19409 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
19410 \parindent \cftsubsecindent\relax\@afterindenttrue
19411 \interlinepenalty\@M
19412 \leavevmode
19413 \@tempdima \cftsubsecnumwidth\relax
19414 \let\@cftbsnum \cftsubsecpresnum
19415 \let\@cftasnum \cftsubsecaftersnum
19416 \let\@cftasnumb \cftsubsecaftersnumb
19417 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
19418 {\cftsubsecfont #1}\nobreak
19419 \cftsubsecfillnum{#2}}
19420 \fi}
19421 \renewcommand*{\l@subsubsection}[2]{%
19422 \ifnum \c@tocdepth >\tw@
19423 \vskip \cftbeforesubsubsecskip
19424 {\if@RTL\rightskip\else\leftskip\fi \cftsubsubsecindent\relax
19425 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19426 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
19427 \parindent \cftsubsubsecindent\relax\@afterindenttrue
19428 \interlinepenalty\@M
19429 \leavevmode
19430 \@tempdima \cftsubsubsecnumwidth\relax
19431 \let\@cftbsnum \cftsubsubsecpresnum
19432 \let\@cftasnum \cftsubsubsecaftersnum
19433 \let\@cftasnumb \cftsubsubsecaftersnumb
19434 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights

File tocloft-xetex-bidi.def 399


19435 {\cftsubsubsecfont #1}\nobreak
19436 \cftsubsubsecfillnum{#2}}
19437 \fi}
19438 \renewcommand*{\l@paragraph}[2]{%
19439 \ifnum \c@tocdepth >3\relax
19440 \vskip \cftbeforeparaskip
19441 {\if@RTL\rightskip\else\leftskip\fi \cftparaindent\relax
19442 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19443 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
19444 \parindent \cftparaindent\relax\@afterindenttrue
19445 \interlinepenalty\@M
19446 \leavevmode
19447 \@tempdima \cftparanumwidth\relax
19448 \let\@cftbsnum \cftparapresnum
19449 \let\@cftasnum \cftparaaftersnum
19450 \let\@cftasnumb \cftparaaftersnumb
19451 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
19452 {\cftparafont #1}\nobreak
19453 \cftparafillnum{#2}}
19454 \fi}
19455 \renewcommand*{\l@subparagraph}[2]{%
19456 \ifnum \c@tocdepth >4\relax
19457 \vskip \cftbeforesubparaskip
19458 {\if@RTL\rightskip\else\leftskip\fi \cftsubparaindent\relax
19459 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19460 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
19461 \parindent \cftsubparaindent\relax\@afterindenttrue
19462 \interlinepenalty\@M
19463 \leavevmode
19464 \@tempdima \cftsubparanumwidth\relax
19465 \let\@cftbsnum \cftsubparapresnum
19466 \let\@cftasnum \cftsubparaaftersnum
19467 \let\@cftasnumb \cftsubparaaftersnumb
19468 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
19469 {\cftsubparafont #1}\nobreak
19470 \cftsubparafillnum{#2}}
19471 \fi}
19472 \renewcommand*{\l@figure}[2]{%
19473 \ifnum \c@lofdepth >\z@
19474 \vskip \cftbeforefigskip
19475 {\if@RTL\rightskip\else\leftskip\fi \cftfigindent\relax
19476 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19477 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
19478 \parindent \cftfigindent\relax\@afterindenttrue
19479 \interlinepenalty\@M
19480 \leavevmode
19481 \@tempdima \cftfignumwidth\relax
19482 \let\@cftbsnum \cftfigpresnum
19483 \let\@cftasnum \cftfigaftersnum
19484 \let\@cftasnumb \cftfigaftersnumb

File tocloft-xetex-bidi.def 400


19485 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
19486 {\cftfigfont #1}\nobreak
19487 \cftfigfillnum{#2}}
19488 \fi
19489 }
19490 \renewcommand*{\l@table}[2]{%
19491 \ifnum\c@lotdepth >\z@
19492 \vskip \cftbeforetabskip
19493 {\if@RTL\rightskip\else\leftskip\fi \cfttabindent\relax
19494 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19495 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
19496 \parindent \cfttabindent\relax\@afterindenttrue
19497 \interlinepenalty\@M
19498 \leavevmode
19499 \@tempdima \cfttabnumwidth\relax
19500 \let\@cftbsnum \cfttabpresnum
19501 \let\@cftasnum \cfttabaftersnum
19502 \let\@cftasnumb \cfttabaftersnumb
19503 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
19504 {\cfttabfont #1}\nobreak
19505 \cfttabfillnum{#2}}
19506 \fi
19507 }
19508 \renewcommand{\@cftl@subfig}{
19509 \renewcommand*{\l@subfigure}[2]{%
19510 \ifnum \c@lofdepth > \toclevel@subfigure
19511 \vskip \cftbeforesubfigskip
19512 {\if@RTL\rightskip\else\leftskip\fi \cftsubfigindent\relax
19513 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19514 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
19515 \parindent \cftsubfigindent\relax\@afterindenttrue
19516 \interlinepenalty\@M
19517 \leavevmode
19518 \@tempdima \cftsubfignumwidth\relax
19519 \let\@cftbsnum \cftsubfigpresnum
19520 \let\@cftasnum \cftsubfigaftersnum
19521 \let\@cftasnumb \cftsubfigaftersnumb
19522 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
19523 {\cftsubfigfont ##1}\nobreak
19524 \cftsubfigfillnum{##2}}
19525 \fi
19526 }
19527 }
19528 \renewcommand{\@cftl@subtab}{
19529 \renewcommand*{\l@subtable}[2]{%
19530 \ifnum \c@lotdepth > \toclevel@subtable
19531 \vskip \cftbeforesubtabskip
19532 {\if@RTL\rightskip\else\leftskip\fi \cftsubtabindent\relax
19533 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19534 \parfillskip -\if@RTL\leftskip\else\rightskip\fi

File tocloft-xetex-bidi.def 401


19535 \parindent \cftsubtabindent\relax\@afterindenttrue
19536 \interlinepenalty\@M
19537 \leavevmode
19538 \@tempdima \cftsubtabnumwidth\relax
19539 \let\@cftbsnum \cftsubtabpresnum
19540 \let\@cftasnum \cftsubtabaftersnum
19541 \let\@cftasnumb \cftsubtabaftersnumb
19542 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
19543 {\cftsubtabfont ##1}\nobreak
19544 \cftsubtabfillnum{##2}}
19545 \fi
19546 }
19547 }
19548 \renewcommand{\newlistentry}[4][\@empty]{%
19549 \@ifundefined{c@#2}{% check & set the counter
19550 \ifx \@empty#1\relax
19551 \newcounter{#2}
19552 \else
19553 \@ifundefined{c@#1}{\PackageWarning{tocloft}%
19554 {#1 has no counter for use as a `within'}
19555 \newcounter{#2}}%
19556 {\newcounter{#2}[#1]%
19557 \expandafter\edef\csname the#2\endcsname{%
19558 \expandafter\noexpand\csname the#1\endcsname\@SepMark\noexpand\arabic{#2}}}
19559 \fi
19560 \setcounter{#2}{0}
19561 }
19562 {\PackageError{tocloft}{#2 has been previously defined}{\@eha}}
19563
19564 \@namedef{l@#2}##1##2{%
19565 \ifnum \@nameuse{c@#3depth} > #4\relax
19566 \vskip \@nameuse{cftbefore#2skip}
19567 {\if@RTL\rightskip\else\leftskip\fi \@nameuse{cft#2indent}\relax
19568 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
19569 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
19570 \parindent \@nameuse{cft#2indent}\relax\@afterindenttrue
19571 \interlinepenalty\@M
19572 \leavevmode
19573 \@tempdima \@nameuse{cft#2numwidth}\relax
19574 \expandafter\let\expandafter\@cftbsnum\csname cft#2presnum\endcsname
19575 \expandafter\let\expandafter\@cftasnum\csname cft#2aftersnum\endcsname
19576 \expandafter\let\expandafter\@cftasnumb\csname cft#2aftersnumb\endcsname
19577 \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima \null\nobreak\hskip -\if@RTL\right
19578 {\@nameuse{cft#2font}##1}\nobreak
19579 \@nameuse{cft#2fillnum}{##2}}
19580 \fi
19581 } % end of \l@#2
19582
19583 \expandafter\newlength\csname cftbefore#2skip\endcsname
19584 \setlength{\@nameuse{cftbefore#2skip}}{\z@ \@plus .2\p@}

File tocloft-xetex-bidi.def 402


19585 \expandafter\newlength\csname cft#2indent\endcsname
19586 \expandafter\newlength\csname cft#2numwidth\endcsname
19587 \ifcase #4\relax % 0
19588 \setlength{\@nameuse{cft#2indent}}{0em}
19589 \setlength{\@nameuse{cft#2numwidth}}{1.5em}
19590 \or % 1
19591 \setlength{\@nameuse{cft#2indent}}{1.5em}
19592 \setlength{\@nameuse{cft#2numwidth}}{2.3em}
19593 \or % 2
19594 \setlength{\@nameuse{cft#2indent}}{3.8em}
19595 \setlength{\@nameuse{cft#2numwidth}}{3.2em}
19596 \or % 3
19597 \setlength{\@nameuse{cft#2indent}}{7.0em}
19598 \setlength{\@nameuse{cft#2numwidth}}{4.1em}
19599 \else % anything else
19600 \setlength{\@nameuse{cft#2indent}}{10.0em}
19601 \setlength{\@nameuse{cft#2numwidth}}{5.0em}
19602 \fi
19603 \@namedef{cft#2font}{\normalfont}
19604 \@namedef{cft#2presnum}{}
19605 \@namedef{cft#2aftersnum}{}
19606 \@namedef{cft#2aftersnumb}{}
19607 \@namedef{cft#2dotsep}{\cftdotsep}
19608 \@namedef{cft#2leader}{\normalfont\cftdotfill{\@nameuse{cft#2dotsep}}}
19609 \@namedef{cft#2pagefont}{\normalfont}
19610 \@namedef{cft#2afterpnum}{}
19611 \@namedef{toclevel@#2}{#4}
19612 \@namedef{cft#2fillnum}##1{%
19613 {\@nameuse{cft#2leader}}\nobreak
19614 \hb@xt@\@pnumwidth{\hfil\@nameuse{cft#2pagefont}##1}\@nameuse{cft#2afterpnum}\par}
19615 } % end \newlistentry
19616 \renewcommand{\cftchapterprecistoc}[1]{\addtocontents{toc}{%
19617 {\if@RTL\rightskip\else\leftskip\fi \cftchapindent\relax
19618 \advance\if@RTL\righskip\else\leftskip\fi \cftchapnumwidth\relax
19619 \if@RTL\leftskip\else\rightskip\fi \@tocrmarg\relax
19620 \textit{#1}\protect\par}}}

122 File tocbasic-xetex-bidi.def


19621 \ProvidesFile{tocbasic-xetex-bidi.def}[2016/09/14 v0.2 bidi adaptations for tocbasic package f
19622 \bidi@undef\scr@dte@def@l@undottedtocline
19623 \bidi@undef\scr@dte@undottedtocline@init
19624 \DeclareTOCEntryStyle{undottedtocline}[{%
19625 \DefineTOCEntryLengthOption{indent}%
19626 {scr@tso@}{@indent}{entry indent}%
19627 \DefineTOCEntryLengthOption{numwidth}%
19628 {scr@tso@}{@numwidth}{entry number width}%
19629 \@ifundefined{#1tocdepth}{%
19630 \ifstr{#1}{part}{\@namedef{#1tocdepth}{-1}}{%
19631 \ifstr{#1}{chapter}{\@namedef{#1tocdepth}{0}}{%

File tocbasic-xetex-bidi.def 403


19632 \ifstr{#1}{section}{\@namedef{#1tocdepth}{1}}{%
19633 \ifstr{#1}{subsection}{\@namedef{#1tocdepth}{2}}{%
19634 \ifstr{#1}{subsubsection}{\@namedef{#1tocdepth}{3}}{%
19635 \ifstr{#1}{paragraph}{\@namedef{#1tocdepth}{4}}{%
19636 \ifstr{#1}{subparagraph}{\@namedef{#1tocdepth}{5}}{%
19637 \ifstr{#1}{figure}{\@namedef{#1tocdepth}{1}}{%
19638 \ifstr{#1}{table}{\@namedef{#1tocdepth}{1}}{%
19639 \expandafter\let\csname #1tocdepth\expandafter\endcsname
19640 \csname #1numdepth\endcsname
19641 }%
19642 }%
19643 }%
19644 }%
19645 }%
19646 }%
19647 }%
19648 }%
19649 }%
19650 }{}%
19651 \@ifundefined{scr@tso@#1@indent}{%
19652 \@ifundefined{scr@#1@tocindent}{%
19653 \ifstr{#1}{figure}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
19654 \ifstr{#1}{table}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
19655 \ifstr{#1}{part}{\@namedef{scr@tso@#1@indent}{0em}}{%
19656 \ifstr{#1}{chapter}{\@namedef{scr@tso@#1@indent}{0em}}{%
19657 \scr@ifundefinedorrelax{l@chapter}{%
19658 \ifstr{#1}{section}{\@namedef{scr@tso@#1@indent}{0pt}}{%
19659 \ifstr{#1}{subsection}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
19660 \ifstr{#1}{subsubsection}{%
19661 \@namedef{scr@tso@#1@indent}{3.8em}%
19662 }{%
19663 \ifstr{#1}{paragraph}{%
19664 \@namedef{scr@tso@#1@indent}{7em}%
19665 }{%
19666 \ifstr{#1}{subparagraph}{%
19667 \@namedef{scr@tso@#1@indent}{10em}%
19668 }{%
19669 }%
19670 }%
19671 }%
19672 }%
19673 }%
19674 }{%
19675 \ifstr{#1}{section}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
19676 \ifstr{#1}{subsection}{\@namedef{scr@tso@#1@indent}{3.8em}}{%
19677 \ifstr{#1}{subsubsection}{%
19678 \@namedef{scr@tso@#1@indent}{7.0em}%
19679 }{%
19680 \ifstr{#1}{paragraph}{%
19681 \@namedef{scr@tso@#1@indent}{10em}%

File tocbasic-xetex-bidi.def 404


19682 }{%
19683 \ifstr{#1}{subparagraph}{%
19684 \@namedef{scr@tso@#1@indent}{12em}%
19685 }{%
19686 }%
19687 }%
19688 }%
19689 }%
19690 }%
19691 }%
19692 }%
19693 }%
19694 }%
19695 }%
19696 }{%
19697 \@namedef{scr@tso@#1@indent}{\@nameuse{scr@#1@tocindent}}%
19698 }%
19699 }{}%
19700 \@ifundefined{scr@tso@#1@numwidth}{%
19701 \@ifundefined{scr@#1@tocnumwidth}{%
19702 \ifstr{#1}{figure}{\@namedef{scr@tso@#1@numwidth}{2.3em}}{%
19703 \ifstr{#1}{table}{\@namedef{scr@tso@#1@numwidth}{2.3em}}{%
19704 \ifstr{#1}{chapter}{\@namedef{scr@tso@#1@numwidth}{1.5em}}{%
19705 \scr@ifundefinedorrelax{chapter}{%
19706 \ifstr{#1}{section}{\@namedef{scr@tso@#1@numwidth}{1.5em}}{%
19707 \ifstr{#1}{subsection}{\@namedef{scr@tso@#1@numwidth}{2.3em}}{%
19708 \ifstr{#1}{subsubsection}{%
19709 \@namedef{scr@tso@#1@numwidth}{3.2em}%
19710 }{%
19711 \ifstr{#1}{paragraph}{%
19712 \@namedef{scr@tso@#1@numwidth}{4.1em}%
19713 }{%
19714 \ifstr{#1}{subparagraph}{%
19715 \@namedef{scr@tso@#1@numwidth}{5m}%
19716 }{%
19717 }%
19718 }%
19719 }%
19720 }%
19721 }%
19722 }{%
19723 \ifstr{#1}{section}{\@namedef{scr@tso@#1@numwidth}{2.3em}}{%
19724 \ifstr{#1}{subsection}{\@namedef{scr@tso@#1@numwidth}{3.2em}}{%
19725 \ifstr{#1}{subsubsection}{%
19726 \@namedef{scr@tso@#1@numwidth}{3.1em}%
19727 }{%
19728 \ifstr{#1}{paragraph}{%
19729 \@namedef{scr@tso@#1@numwidth}{5em}%
19730 }{%
19731 \ifstr{#1}{subparagraph}{%

File tocbasic-xetex-bidi.def 405


19732 \@namedef{scr@tso@#1@numwidth}{6em}%
19733 }{%
19734 }%
19735 }%
19736 }%
19737 }%
19738 }%
19739 }%
19740 }%
19741 }%
19742 }%
19743 }{%
19744 \@namedef{scr@tso@#1@numwidth}{\@nameuse{scr@#1@tocnumwidth}}%
19745 }%
19746 }{}%
19747 }]{%
19748 \ifnum \c@tocdepth >\numexpr \@nameuse{#1tocdepth}-\@ne\relax
19749 \ifnum \@nameuse{#1tocdepth}<\@ne
19750 \scr@ifundefinedorrelax{chapter}{%
19751 \addpenalty\@secpenalty
19752 \addvspace{1.0em \@plus\p@}%
19753 }{%
19754 \addpenalty{-\@highpenalty}%
19755 \vskip 1.0em \@plus\p@
19756 }%
19757 \else
19758 \addpenalty\@secpenalty
19759 \addvspace{1.0em \@plus\p@}%
19760 \fi
19761 \setlength\@tempdima{\@nameuse{scr@tso@#1@numwidth}}%
19762 \begingroup
19763 \parindent \z@ \bidi@rightskip \@pnumwidth
19764 \parfillskip -\@pnumwidth
19765 \leavevmode
19766 \bfseries
19767 \advance\bidi@leftskip\@tempdima
19768 \advance\bidi@leftskip\@nameuse{scr@tso@#1@indent}%
19769 \hskip -\dimexpr \bidi@leftskip-\@nameuse{scr@tso@#1@indent}\relax
19770 ##1%
19771 \nobreak
19772 \hfil \nobreak\hb@xt@\@pnumwidth{\hss ##2}%
19773 \par
19774 \penalty\@highpenalty
19775 \endgroup
19776 \fi
19777 }
19778
19779 \bidi@undef\scr@dte@def@l@largetocline
19780 \bidi@undef\scr@dte@largetocline@init
19781 \DeclareTOCEntryStyle{largetocline}[{%

File tocbasic-xetex-bidi.def 406


19782 \DefineTOCEntryLengthOption{indent}%
19783 {scr@tso@}{@indent}{entry indent}%
19784 \@ifundefined{#1tocdepth}{%
19785 \ifstr{#1}{part}{\@namedef{#1tocdepth}{-1}}{%
19786 \ifstr{#1}{chapter}{\@namedef{#1tocdepth}{0}}{%
19787 \ifstr{#1}{section}{\@namedef{#1tocdepth}{1}}{%
19788 \ifstr{#1}{subsection}{\@namedef{#1tocdepth}{2}}{%
19789 \ifstr{#1}{subsubsection}{\@namedef{#1tocdepth}{3}}{%
19790 \ifstr{#1}{paragraph}{\@namedef{#1tocdepth}{4}}{%
19791 \ifstr{#1}{subparagraph}{\@namedef{#1tocdepth}{5}}{%
19792 \ifstr{#1}{figure}{\@namedef{#1tocdepth}{1}}{%
19793 \ifstr{#1}{table}{\@namedef{#1tocdepth}{1}}{%
19794 \expandafter\let\csname #1tocdepth\expandafter\endcsname
19795 \csname #1numdepth\endcsname
19796 }%
19797 }%
19798 }%
19799 }%
19800 }%
19801 }%
19802 }%
19803 }%
19804 }%
19805 }{}%
19806 \@ifundefined{scr@tso@#1@indent}{%
19807 \@ifundefined{scr@#1@tocindent}{%
19808 \ifstr{#1}{figure}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
19809 \ifstr{#1}{table}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
19810 \ifstr{#1}{part}{\@namedef{scr@tso@#1@indent}{0em}}{%
19811 \ifstr{#1}{chapter}{\@namedef{scr@tso@#1@indent}{0em}}{%
19812 \scr@ifundefinedorrelax{l@chapter}{%
19813 \ifstr{#1}{section}{\@namedef{scr@tso@#1@indent}{0pt}}{%
19814 \ifstr{#1}{subsection}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
19815 \ifstr{#1}{subsubsection}{%
19816 \@namedef{scr@tso@#1@indent}{3.8em}%
19817 }{%
19818 \ifstr{#1}{paragraph}{%
19819 \@namedef{scr@tso@#1@indent}{7em}%
19820 }{%
19821 \ifstr{#1}{subparagraph}{%
19822 \@namedef{scr@tso@#1@indent}{10em}%
19823 }{%
19824 }%
19825 }%
19826 }%
19827 }%
19828 }%
19829 }{%
19830 \ifstr{#1}{section}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
19831 \ifstr{#1}{subsection}{\@namedef{scr@tso@#1@indent}{3.8em}}{%

File tocbasic-xetex-bidi.def 407


19832 \ifstr{#1}{subsubsection}{%
19833 \@namedef{scr@tso@#1@indent}{7.0em}%
19834 }{%
19835 \ifstr{#1}{paragraph}{%
19836 \@namedef{scr@tso@#1@indent}{10em}%
19837 }{%
19838 \ifstr{#1}{subparagraph}{%
19839 \@namedef{scr@tso@#1@indent}{12em}%
19840 }{%
19841 }%
19842 }%
19843 }%
19844 }%
19845 }%
19846 }%
19847 }%
19848 }%
19849 }%
19850 }%
19851 }{%
19852 \@namedef{scr@tso@#1@indent}{\@nameuse{scr@#1@tocindent}}%
19853 }%
19854 }{}%
19855 }]{%
19856 \ifnum \c@tocdepth >\numexpr \@nameuse{#1tocdepth}-\@ne\relax
19857 \ifnum \@nameuse{#1tocdepth}<\@ne
19858 \scr@ifundefinedorrelax{chapter}{%
19859 \addpenalty\@secpenalty
19860 \addvspace{2.25em \@plus\p@}%
19861 }{%
19862 \addpenalty{-\@highpenalty}%
19863 \addvspace{2.25em \@plus\p@}%
19864 }%
19865 \else
19866 \addpenalty\@secpenalty
19867 \addvspace{2.25em \@plus\p@}%
19868 \fi
19869 \setlength\@tempdima{3em}%
19870 \begingroup
19871 \parindent \z@ \bidi@rightskip \@pnumwidth
19872 \parfillskip -\@pnumwidth
19873 \leavevmode
19874 \large
19875 \bfseries
19876 \advance\bidi@leftskip\@nameuse{scr@tso@#1@indent}%
19877 ##1%
19878 \hfil \nobreak\hb@xt@\@pnumwidth{\hss ##2}%
19879 \par
19880 \nobreak
19881 \ifnum 0=

File tocbasic-xetex-bidi.def 408


19882 \scr@ifundefinedorrelax{chapter}{\if@compatibility 1\else 0\fi}{1}\relax
19883 \global\@nobreaktrue
19884 \everypar{\global\@nobreakfalse\everypar{}}%
19885 \fi
19886 \endgroup
19887 \fi
19888 }
19889
19890 \renewcommand*{\scr@dte@tocline}[3]{%
19891 \ifnum \@nameuse{#1tocdepth}>\c@tocdepth
19892 \else
19893 \tocbasic@DependOnPenaltyAndTOCLevel{#1}%
19894 \addvspace{\@nameuse{scr@tso@#1@beforeskip}}\relax
19895 {%
19896 \bidi@leftskip \@nameuse{scr@tso@#1@indent}\relax
19897 \bidi@rightskip \@tocrmarg
19898 \parfillskip -\bidi@rightskip
19899 \@nameuse{Ifscr@tso@#1@raggedpage}{%
19900 \addtolength{\parfillskip}{\z@ \@plus 1fil}%
19901 }{}%
19902 \parindent \@nameuse{scr@tso@#1@indent}\relax
19903 \@afterindenttrue
19904 \interlinepenalty\@M
19905 \expandafter\ifx\csname ragged#1entry\endcsname\raggedright
19906 \addtolength\bidi@rightskip\@flushglue
19907 \else
19908 \def\reserved@a{\raggedright}%
19909 \expandafter\ifx\csname ragged#1entry\endcsname\reserved@a
19910 \addtolength\bidi@rightskip\@flushglue
19911 \else
19912 \renewcommand\reserved@a{\raggedright}%
19913 \expandafter\ifx\csname ragged#1entry\endcsname\reserved@a
19914 \addtolength\bidi@rightskip\@flushglue
19915 \fi
19916 \fi
19917 \fi
19918 \leavevmode
19919 \@tempdima \@nameuse{scr@tso@#1@numwidth}\relax
19920 \@nameuse{Ifscr@tso@#1@dynnumwidth}{%
19921 \scr@ifundefinedorrelax{scr@dte@#1@lastmaxnumwidth}{}{%
19922 \ifdim \@nameuse{scr@dte@#1@lastmaxnumwidth}>\@tempdima
19923 \@tempdima\@nameuse{scr@dte@#1@lastmaxnumwidth}\relax
19924 \fi
19925 }%
19926 }{}%
19927 \advance\bidi@leftskip \@tempdima
19928 \null\nobreak\hskip -\bidi@leftskip
19929 {%
19930 \usetocbasicnumberline
19931 \let\scr@dte@numberline@box\numberline@box

File tocbasic-xetex-bidi.def 409


19932 \def\numberline@box##1{%
19933 \sbox\scr@dte@tocline@numbox{\@nameuse{scr@tso@#1@numberformat}{##1}}%
19934 \global\scr@dte@tocline@numberwidth
19935 \dimexpr\wd\scr@dte@tocline@numbox+\@nameuse{scr@tso@#1@numsep}\relax
19936 \ifdim \scr@dte@tocline@numberwidth
19937 >\@nameuse{scr@dte@#1@maxnumwidth}\relax
19938 \global\@nameuse{scr@dte@#1@maxnumwidth}\scr@dte@tocline@numberwidth
19939 \fi
19940 \@nameuse{Ifscr@tso@#1@dynnumwidth}{}{%
19941 \ifdim \scr@dte@tocline@numberwidth
19942 >\dimexpr \@nameuse{scr@tso@#1@numwidth}%
19943 +\@nameuse{scr@tso@#1@numsep}\relax
19944 \PackageWarning{tocbasic%
19945 }{%
19946 number width of #1 toc entries should be
19947 increased!\MessageBreak
19948 Currently used number width =
19949 \the\wd\scr@dte@tocline@numbox,\MessageBreak
19950 Wanted number separation
19951 \space\space\space =
19952 \the\dimexpr\@nameuse{scr@tso@#1@numsep}\relax,\MessageBreak
19953 Reserved number width \space\space\space\space\space\space =
19954 \the\dimexpr\@nameuse{scr@tso@#1@numwidth}\relax%
19955 }%
19956 \fi
19957 }%
19958 \scr@dte@numberline@box{\@nameuse{scr@tso@#1@numberformat}{##1}}%
19959 \@nameuse{Ifscr@tso@#1@breakafternumber}{%
19960 {\parfillskip\@flushglue\par}\nobreak\hskip-\bidi@leftskip
19961 }{}%
19962 }%
19963 \@nameuse{scr@tso@#1@entryformat}{%
19964 #2%
19965 \nobreak
19966 {%
19967 \normalfont\normalsize\@nameuse{scr@tso@#1@linefill}%
19968 \nobreak
19969 \@nameuse{scr@tso@#1@pagenumberbox}{%
19970 \@nameuse{scr@tso@#1@pagenumberformat}{#3}%
19971 }%
19972 }%
19973 \@par
19974 }%
19975 }%
19976 }%
19977 \tocbasic@SetPenaltyByTOCLevel{#1}%
19978 \fi
19979 }
19980
19981 \bidi@undef\scr@dte@def@l@tocline

File tocbasic-xetex-bidi.def 410


19982 \bidi@undef\scr@dte@tocline@init
19983 \DeclareTOCEntryStyle{tocline}[{%
19984 \DefineTOCEntryLengthOption{beforeskip}%
19985 {scr@tso@}{@beforeskip}{vertical skip before the entry}%
19986 \DefineTOCEntryIfOption{breakafternumber}%
19987 {scr@tso@}{@breakafternumber}{line break after number flag}%
19988 \DefineTOCEntryIfOption{dynnumwidth}%
19989 {scr@tso@}{@dynnumwidth}{dynamic number width flag}%
19990 \DefineTOCEntryCommandOption{entryformat}%
19991 {scr@tso@}{@entryformat}[1]{entry format}%
19992 \DefineTOCEntryCommandOption{entrynumberformat}%
19993 {scr@tso@}{@numberformat}[1]{entry number format}%
19994 \DefineTOCEntryCommandOption{linefill}[\TOCLineLeaderFill]%
19995 {scr@tso@}{@linefill}{filling between text and page number}%
19996 \DefineTOCEntryLengthOption{numsep}%
19997 {scr@tso@}{@numsep}{entry number separation}%
19998 \DefineTOCEntryCommandOption{onstarthigherlevel}%
19999 {scr@tso@}{@LastTOCLevelWasLower}{start higher level entry hook}%
20000 \DefineTOCEntryCommandOption{onstartlowerlevel}%
20001 {scr@tso@}{@LastTOCLevelWasHigher}{start lower level entry hook}%
20002 \DefineTOCEntryCommandOption{onstartsamelevel}%
20003 {scr@tso@}{@LastTOCLevelWasSame}{start same level entry hook}%
20004 \DefineTOCEntryCommandOption{pagenumberbox}%
20005 {scr@tso@}{@pagenumberbox}[1]{page number box}%
20006 \DefineTOCEntryCommandOption{pagenumberformat}%
20007 {scr@tso@}{@pagenumberformat}[1]{page number format}%
20008 \DefineTOCEntryOption{raggedentrytext}[true]{%
20009 \FamilySetBool{KOMAarg}{raggedentrytext}{@tempswa}{##1}%
20010 \ifx\FamilyKeyState\FamilyKeyStateProcessed
20011 \if@tempswa
20012 \expandafter\let\csname ragged\scr@dte@current entry\endcsname
20013 \raggedright
20014 \else
20015 \expandafter\let\csname ragged\scr@dte@current entry\endcsname
20016 \relax
20017 \fi
20018 \fi
20019 }%
20020 \DefineTOCEntryIfOption{raggedpagenumber}%
20021 {scr@tso@}{@raggedpage}{page number ragged flag}%
20022 \DefineTOCEntryLengthOption{indent}%
20023 {scr@tso@}{@indent}{entry indent}%
20024 \DefineTOCEntryLengthOption{numwidth}%
20025 {scr@tso@}{@numwidth}{entry number width}%
20026 \scr@ifundefinedorrelax{#1tocdepth}{%
20027 \ifstrstart{#1}{sub}{%
20028 \scr@ifundefinedorrelax{\scr@dte@nosub{#1}tocdepth}{}{%
20029 \expandafter\edef\csname #1tocdepth\endcsname{%
20030 \the\numexpr \noexpand\@nameuse{\scr@dte@nosub{#1}tocdepth}+\@ne\relax
20031 }%

File tocbasic-xetex-bidi.def 411


20032 }%
20033 }{}%
20034 }{}%
20035 \@ifundefined{#1tocdepth}{%
20036 \ifstr{#1}{part}{\@namedef{#1tocdepth}{-1}}{%
20037 \ifstr{#1}{chapter}{\@namedef{#1tocdepth}{0}}{%
20038 \ifstr{#1}{section}{\@namedef{#1tocdepth}{1}}{%
20039 \ifstr{#1}{subsection}{\@namedef{#1tocdepth}{2}}{%
20040 \ifstr{#1}{subsubsection}{\@namedef{#1tocdepth}{3}}{%
20041 \ifstr{#1}{paragraph}{\@namedef{#1tocdepth}{4}}{%
20042 \ifstr{#1}{subparagraph}{\@namedef{#1tocdepth}{5}}{%
20043 \ifstr{#1}{figure}{\@namedef{#1tocdepth}{1}}{%
20044 \ifstr{#1}{table}{\@namedef{#1tocdepth}{1}}{%
20045 \expandafter\let\csname #1tocdepth\expandafter\endcsname
20046 \csname #1numdepth\endcsname
20047 }%
20048 }%
20049 }%
20050 }%
20051 }%
20052 }%
20053 }%
20054 }%
20055 }%
20056 }{}%
20057 \scr@ifundefinedorrelax{scr@tso@#1@indent}{%
20058 \@ifundefined{scr@#1@tocindent}{%
20059 \ifstrstart{#1}{sub}{%
20060 \scr@ifundefinedorrelax{scr@tso@\scr@dte@nosub{#1}@indent}{%
20061 \scr@ifundefinedorrelax{scr@tso@\scr@dte@nosub{#1}@numwidth}{}{%
20062 \expandafter\edef\csname scr@tso@#1@indent\endcsname{%
20063 \glueexpr \noexpand\@nameuse{scr@tso@\scr@dte@nosub{#1}@numwidth}%
20064 \relax
20065 }%
20066 }%
20067 }{%
20068 \scr@ifundefinedorrelax{scr@tso@\scr@dte@nosub{#1}@numwidth}{%
20069 \expandafter\edef\csname scr@tso@#1@indent\endcsname{%
20070 \glueexpr \noexpand\@nameuse{scr@tso@\scr@dte@nosub{#1}@indent}%
20071 \relax
20072 }%
20073 }{%
20074 \expandafter\edef\csname scr@tso@#1@indent\endcsname{%
20075 \glueexpr \noexpand\@nameuse{scr@tso@\scr@dte@nosub{#1}@indent}%
20076 +\noexpand\@nameuse{scr@tso@\scr@dte@nosub{#1}@numwidth}%
20077 \relax
20078 }%
20079 }%
20080 }%
20081 }{}%

File tocbasic-xetex-bidi.def 412


20082 }{%
20083 \@namedef{scr@tso@#1@indent}{\@nameuse{scr@#1@tocindent}}%
20084 }%
20085 }{}%
20086 \@ifundefined{scr@tso@#1@indent}{%
20087 \ifstr{#1}{figure}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
20088 \ifstr{#1}{table}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
20089 \ifstr{#1}{part}{\@namedef{scr@tso@#1@indent}{0em}}{%
20090 \ifstr{#1}{chapter}{\@namedef{scr@tso@#1@indent}{0em}}{%
20091 \scr@ifundefinedorrelax{l@chapter}{%
20092 \ifstr{#1}{section}{\@namedef{scr@tso@#1@indent}{0pt}}{%
20093 \ifstr{#1}{subsection}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
20094 \ifstr{#1}{subsubsection}{%
20095 \@namedef{scr@tso@#1@indent}{3.8em}%
20096 }{%
20097 \ifstr{#1}{paragraph}{%
20098 \@namedef{scr@tso@#1@indent}{7em}%
20099 }{%
20100 \ifstr{#1}{subparagraph}{%
20101 \@namedef{scr@tso@#1@indent}{10em}%
20102 }{%
20103 }%
20104 }%
20105 }%
20106 }%
20107 }%
20108 }{%
20109 \ifstr{#1}{section}{\@namedef{scr@tso@#1@indent}{1.5em}}{%
20110 \ifstr{#1}{subsection}{\@namedef{scr@tso@#1@indent}{3.8em}}{%
20111 \ifstr{#1}{subsubsection}{%
20112 \@namedef{scr@tso@#1@indent}{7.0em}%
20113 }{%
20114 \ifstr{#1}{paragraph}{%
20115 \@namedef{scr@tso@#1@indent}{10em}%
20116 }{%
20117 \ifstr{#1}{subparagraph}{%
20118 \@namedef{scr@tso@#1@indent}{12em}%
20119 }{%
20120 }%
20121 }%
20122 }%
20123 }%
20124 }%
20125 }%
20126 }%
20127 }%
20128 }%
20129 }%
20130 }{}%
20131 \scr@ifundefinedorrelax{scr@tso@#1@numwidth}{%

File tocbasic-xetex-bidi.def 413


20132 \scr@ifundefinedorrelax{scr@#1@tocnumwidth}{%
20133 \ifstrstart{#1}{sub}{%
20134 \scr@ifundefinedorrelax{scr@tso@\scr@dte@nosub{#1}@numwidth}{}{%
20135 \expandafter\edef\csname scr@tso@#1@numwidth\endcsname{%
20136 \glueexpr \noexpand\@nameuse{scr@tso@\scr@dte@nosub{#1}@numwidth}%
20137 +.9em%
20138 \relax
20139 }%
20140 }%
20141 }{}%
20142 }{%
20143 \@namedef{scr@tso@#1@numwidth}{\@nameuse{scr@#1@tocnumwidth}}%
20144 }%
20145 }{}%
20146 \@ifundefined{scr@tso@#1@numwidth}{%
20147 \ifstr{#1}{figure}{\@namedef{scr@tso@#1@numwidth}{2.3em}}{%
20148 \ifstr{#1}{table}{\@namedef{scr@tso@#1@numwidth}{2.3em}}{%
20149 \ifstr{#1}{chapter}{\@namedef{scr@tso@#1@numwidth}{1.5em}}{%
20150 \scr@ifundefinedorrelax{chapter}{%
20151 \ifstr{#1}{section}{\@namedef{scr@tso@#1@numwidth}{1.5em}}{%
20152 \ifstr{#1}{subsection}{\@namedef{scr@tso@#1@numwidth}{2.3em}}{%
20153 \ifstr{#1}{subsubsection}{%
20154 \@namedef{scr@tso@#1@numwidth}{3.2em}%
20155 }{%
20156 \ifstr{#1}{paragraph}{%
20157 \@namedef{scr@tso@#1@numwidth}{4.1em}%
20158 }{%
20159 \ifstr{#1}{subparagraph}{%
20160 \@namedef{scr@tso@#1@numwidth}{5m}%
20161 }{%
20162 }%
20163 }%
20164 }%
20165 }%
20166 }%
20167 }{%
20168 \ifstr{#1}{section}{\@namedef{scr@tso@#1@numwidth}{2.3em}}{%
20169 \ifstr{#1}{subsection}{\@namedef{scr@tso@#1@numwidth}{3.2em}}{%
20170 \ifstr{#1}{subsubsection}{%
20171 \@namedef{scr@tso@#1@numwidth}{3.1em}%
20172 }{%
20173 \ifstr{#1}{paragraph}{%
20174 \@namedef{scr@tso@#1@numwidth}{5em}%
20175 }{%
20176 \ifstr{#1}{subparagraph}{%
20177 \@namedef{scr@tso@#1@numwidth}{6em}%
20178 }{%
20179 }%
20180 }%
20181 }%

File tocbasic-xetex-bidi.def 414


20182 }%
20183 }%
20184 }%
20185 }%
20186 }%
20187 }%
20188 }{}%
20189 \expandafter\renewcommand%
20190 \csname scr@tso@#1@LastTOCLevelWasLower\endcsname{\LastTOCLevelWasLower}%
20191 \expandafter\renewcommand%
20192 \csname scr@tso@#1@LastTOCLevelWasSame\endcsname{\LastTOCLevelWasSame}%
20193 \expandafter\renewcommand%
20194 \csname scr@tso@#1@LastTOCLevelWasHigher\endcsname{\LastTOCLevelWasHigher}%
20195 \@ifundefined{scr@tso@#1@beforeskip}{%
20196 \ifstr{#1}{part}{%
20197 \@namedef{scr@tso@#1@beforeskip}{\glueexpr 2.25em \@plus\p@\relax}%
20198 }{%
20199 \ifstr{#1}{chapter}{%
20200 \@namedef{scr@tso@#1@beforeskip}{\glueexpr 1.0em \@plus\p@\relax}%
20201 }{%
20202 \ifstr{#1}{section}{%
20203 \scr@ifundefinedorrelax{l@chapter}{%
20204 \@namedef{scr@tso@#1@beforeskip}{\glueexpr 1.0em \@plus\p@\relax}%
20205 }{}%
20206 }{}%
20207 }%
20208 }%
20209 \expandafter\renewcommand\expandafter*%
20210 \csname scr@tso@#1@beforeskip\endcsname{\glueexpr \z@ plus .2\p@\relax}%
20211 }{}%
20212 \@ifundefined{scr@dte@#1@maxnumwidth}{%
20213 \expandafter\newlength\csname scr@dte@#1@maxnumwidth\endcsname
20214 \setlength{\@nameuse{scr@dte@#1@maxnumwidth}}{\z@}%
20215 }{}%
20216 \renewcommand*{\scr@dte@donumwidth}{}%
20217 \g@addto@macro{\scr@dte@donumwidth}{\do{#1}}%
20218 \expandafter\renewcommand\expandafter*%
20219 \csname scr@tso@#1@numsep\endcsname{.4em}%
20220 \expandafter\renewcommand%
20221 \csname scr@tso@#1@numberformat\endcsname[1]{##1}%
20222 \ifstr{#1}{part}{%
20223 \expandafter\renewcommand%
20224 \csname scr@tso@#1@entryformat\endcsname[1]{\large\bfseries ##1}%
20225 }{%
20226 \ifstr{#1}{chapter}{%
20227 \expandafter\renewcommand%
20228 \csname scr@tso@#1@entryformat\endcsname[1]{\bfseries ##1}%
20229 }{%
20230 \scr@ifundefinedorrelax{l@chapter}{%
20231 \ifstr{#1}{section}{%

File tocbasic-xetex-bidi.def 415


20232 \expandafter\renewcommand%
20233 \csname scr@tso@#1@entryformat\endcsname[1]{\bfseries ##1}%
20234 }{}%
20235 }{}%
20236 \expandafter\renewcommand%
20237 \csname scr@tso@#1@entryformat\endcsname[1]{##1}%
20238 }%
20239 }%
20240 \expandafter\renewcommand
20241 \csname Ifscr@tso@#1@breakafternumber\endcsname[2]{##2}%
20242 \@ifundefined{scr@tso@#1@linefill}{%
20243 \ifstr{#1}{part}{%
20244 \@namedef{scr@tso@#1@linefill}{\hfill}%
20245 }{%
20246 \ifstr{#1}{chapter}{%
20247 \@namedef{scr@tso@#1@linefill}{\hfill}%
20248 }{%
20249 \scr@ifundefinedorrelax{l@chapter}{%
20250 \ifstr{#1}{section}{%
20251 \@namedef{scr@tso@#1@linefill}{\hfill}%
20252 }{}
20253 }{}
20254 \expandafter\renewcommand%
20255 \csname scr@tso@#1@linefill\endcsname{\TOCLineLeaderFill\relax}%
20256 }%
20257 }%
20258 }{}%
20259 \expandafter\renewcommand\csname Ifscr@tso@#1@raggedpage\endcsname[2]{##2}%
20260 \ifstr{#1}{part}{%
20261 \expandafter\renewcommand%
20262 \csname scr@tso@#1@pagenumberformat\endcsname[1]{\large\bfseries ##1}%
20263 }{%
20264 \expandafter\renewcommand%
20265 \csname scr@tso@#1@pagenumberformat\endcsname[1]{%
20266 {\normalfont\normalcolor ##1}}%
20267 }%
20268 \expandafter\renewcommand%
20269 \csname scr@tso@#1@pagenumberbox\endcsname[1]{%
20270 \hb@xt@\@pnumwidth{\hfil ##1}}%
20271 \expandafter\renewcommand\csname Ifscr@tso@#1@dynnumwidth\endcsname[2]{##2}%
20272 }]{%
20273 \scr@dte@tocline{#1}{##1}{##2}%
20274 }
20275

123 File tocstyle-xetex-bidi.def


20276 \ProvidesFile{tocstyle-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for tocstyle package f
20277 \renewcommand*{\tocstyle@dottedtocline}[5]{%
20278 \let\numberline\tocstyle@numberline

File tocstyle-xetex-bidi.def 416


20279 \ifnum #1>\c@tocdepth \else
20280 \if@tocstyle@penalties
20281 \begingroup
20282 \@tempcnta 20010
20283 \advance \@tempcnta by -#1
20284 \ifnum \@tempcnta>\lastpenalty
20285 \aftergroup\penalty\aftergroup\@lowpenalty
20286 \fi
20287 \endgroup
20288 \fi
20289 \edef\tocstyledepth{#1}%
20290 \tocstyle@activate@features
20291 \ifx\tocstyle@feature@entryvskip\relax
20292 \vskip \z@ \@plus.2\p@
20293 \else
20294 \addvspace{\tocstyle@feature@entryvskip}%
20295 \fi
20296 {%
20297 \parskip \z@ \parindent \z@ \if@RTL\rightskip\else\leftskip\fi \z@ \if@RTL\leftskip\else
20298 \tocstyle@feature@raggedhook
20299 \@tempdima #3\relax
20300 \@tempdimb #2\relax
20301 \typeout{m (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
20302 \ifnum #1>\z@\relax
20303 \@tempcnta #1\relax \advance\@tempcnta \m@ne
20304 \ifcsname tocstyle@skipwidth@\tocstyleTOC @\the\@tempcnta\endcsname
20305 \ifcsname tocstyle@numwidth@\tocstyleTOC @\the\@tempcnta\endcsname
20306 \@tempdimb
20307 \csname tocstyle@skipwidth@\tocstyleTOC @\the\@tempcnta\endcsname
20308 \advance\@tempdimb
20309 \csname tocstyle@numwidth@\tocstyleTOC @\the\@tempcnta\endcsname
20310 \fi
20311 \fi
20312 \fi
20313 \typeout{C (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
20314 \ifcsname tocstyle@skipwidth@\tocstyleTOC @#1\endcsname
20315 \ifdim \@tempdimb>
20316 \csname tocstyle@skipwidth@\tocstyleTOC @#1\endcsname\relax
20317 \expandafter\xdef\csname tocstyle@skipwidth@\tocstyleTOC
20318 @#1\endcsname{\the\@tempdimb}%
20319 \fi
20320 \else
20321 \expandafter\xdef\csname tocstyle@skipwidth@\tocstyleTOC
20322 @#1\endcsname{\the\@tempdimb}%
20323 \fi
20324 \iftocstyle@autolength
20325 \ifcsname tocstyle@maxskipwidth@\tocstyleTOC @#1\endcsname
20326 \@tempdimb \csname tocstyle@maxskipwidth@\tocstyleTOC @#1\endcsname
20327 \relax
20328 \fi

File tocstyle-xetex-bidi.def 417


20329 \ifcsname tocstyle@maxnumwidth@\tocstyleTOC @#1\endcsname
20330 \@tempdima \csname tocstyle@maxnumwidth@\tocstyleTOC @#1\endcsname
20331 \relax
20332 \fi
20333 \typeout{a (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
20334 \typeout{A (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
20335 \else
20336 \@tempdimb #2\relax
20337 \typeout{M (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
20338 \fi
20339 \ifcsname tocstyle@unumwidth@\tocstyleTOC @\endcsname
20340 \ifdim \@tempdima>
20341 \csname tocstyle@unumwidth@\tocstyleTOC @\endcsname\relax
20342 \expandafter\xdef\csname tocstyle@unumwidth@\tocstyleTOC
20343 @\endcsname{\the\@tempdima}%
20344 \fi
20345 \else
20346 \expandafter\xdef\csname tocstyle@unumwidth@\tocstyleTOC
20347 @\endcsname{\the\@tempdima}%
20348 \fi
20349 \ifcase\tocstyle@indentstyle\relax\else
20350 \@tempdimb \z@
20351 \ifcsname tocstyle@maxunumwidth@\tocstyleTOC @\endcsname
20352 \@tempdima \csname tocstyle@maxunumwidth@\tocstyleTOC @\endcsname
20353 \relax
20354 \fi
20355 \typeout{s (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
20356 \typeout{S (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
20357 \fi
20358 \advance\parindent \@tempdimb\@afterindenttrue
20359 \advance\if@RTL\rightskip\else\leftskip\fi \parindent
20360 \advance\if@RTL\leftskip\else\rightskip\fi \@tocrmarg
20361 \parfillskip -\if@RTL\leftskip\else\rightskip\fi
20362 \ifx\tocstyle@feature@parfillskip\relax\else
20363 \advance\parfillskip \tocstyle@feature@parfillskip\relax
20364 \fi
20365 \interlinepenalty\@M
20366 \leavevmode
20367 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima
20368 \null\nobreak
20369 \iftocstyle@indentnotnumbered\else
20370 \hskip -\if@RTL\rightskip\else\leftskip\fi
20371 \fi
20372 \tocstyle@feature@entryhook
20373 {#4}\nobreak
20374 \ifx\tocstyle@feature@leaders\relax
20375 \leaders\hbox{$\m@th
20376 \mkern \@dotsep mu\hbox{\tocstyle@feature@dothook .}%
20377 \mkern \@dotsep mu$}\hfill
20378 \else

File tocstyle-xetex-bidi.def 418


20379 \tocstyle@feature@leaders
20380 \fi
20381 \nobreak
20382 \ifx\tocstyle@feature@pagenumberbox\relax
20383 \hb@xt@\@pnumwidth{\hfil\tocstyle@feature@pagenumberhook #5}%
20384 \else
20385 \tocstyle@feature@pagenumberbox{\tocstyle@feature@pagenumberhook #5}%
20386 \fi
20387 \par
20388 }%
20389 \if@tocstyle@penalties
20390 \bgroup
20391 \@tempcnta 20009
20392 \advance\@tempcnta by -#1
20393 \edef\reserved@a{\egroup\penalty\the\@tempcnta\relax}%
20394 \reserved@a
20395 \fi
20396 \fi}
20397 \renewcommand*{\tocstyle@numberline}[1]{%
20398 \begingroup
20399 \ifx\tocstyle@feature@spaceafternumber\relax
20400 \settowidth\@tempdima{\tocstyle@@numberline{#1}\enskip}%
20401 \else
20402 \settowidth\@tempdima{\tocstyle@@numberline{#1}}%
20403 \advance \@tempdima \tocstyle@feature@spaceafternumber\relax
20404 \fi
20405 \ifcsname tocstyle@numwidth@\tocstyleTOC @\tocstyledepth\endcsname
20406 \ifdim \@tempdima >
20407 \csname tocstyle@numwidth@\tocstyleTOC @\tocstyledepth\endcsname\relax
20408 \expandafter\xdef\csname tocstyle@numwidth@\tocstyleTOC
20409 @\tocstyledepth\endcsname{\the\@tempdima}%
20410 \fi
20411 \else
20412 \expandafter\xdef\csname tocstyle@numwidth@\tocstyleTOC
20413 @\tocstyledepth\endcsname{\the\@tempdima}%
20414 \fi
20415 \endgroup
20416 \iftocstyle@indentnotnumbered
20417 \hskip -\if@RTL\rightskip\else\leftskip\fi
20418 \fi
20419 \ifcase \tocstyle@indentstyle
20420 \hb@xt@\@tempdima{\tocstyle@@numberline{#1}\hfil}%
20421 \or
20422 \hb@xt@\@tempdima{\tocstyle@@numberline{#1}\hfil}%
20423 \else
20424 \ifx\tocstyle@feature@spaceafternumber\relax
20425 \hbox{\tocstyle@@numberline{#1}\enskip}%
20426 \else
20427 \hbox{\tocstyle@@numberline{#1}\hskip
20428 \tocstyle@feature@spaceafternumber\relax}%

File tocstyle-xetex-bidi.def 419


20429 \fi
20430 \fi
20431 }
20432 \AtBeginDocument{%
20433 \ifcsname l@part\endcsname
20434 \ifcsname l@chapter\endcsname
20435 \setbox\@tempboxa\vbox{\hsize\maxdimen
20436 \l@part{\tocstyle@l@define{part}{-1}}{}}%
20437 \else
20438 \setbox\@tempboxa\vbox{\hsize\maxdimen
20439 \l@part{\tocstyle@l@define{part}{0}}{}}%
20440 \fi
20441 \fi
20442 \ifcsname l@chapter\endcsname
20443 \setbox\@tempboxa\vbox{\hsize\maxdimen
20444 \l@chapter{\tocstyle@l@define{chapter}{0}}{}}%
20445 \fi
20446 \ifcsname l@section\endcsname
20447 \setbox\@tempboxa\vbox{\hsize\maxdimen
20448 \l@section{\tocstyle@l@define{section}{1}}{}}%
20449 \fi
20450 \ifcsname l@subsection\endcsname
20451 \setbox\@tempboxa\vbox{\hsize\maxdimen
20452 \l@subsection{\tocstyle@l@define{subsection}{2}}{}}%
20453 \fi
20454 \ifcsname l@subsubsection\endcsname
20455 \setbox\@tempboxa\vbox{\hsize\maxdimen
20456 \l@subsubsection{\tocstyle@l@define{subsubsection}{3}}{}}%
20457 \fi
20458 \ifcsname l@paragraph\endcsname
20459 \setbox\@tempboxa\vbox{\hsize\maxdimen
20460 \l@paragraph{\tocstyle@l@define{paragraph}{4}}{}}%
20461 \fi
20462 \ifcsname l@subparagraph\endcsname
20463 \setbox\@tempboxa\vbox{\hsize\maxdimen
20464 \l@subparagraph{\tocstyle@l@define{subparagraph}{5}}{}}%
20465 \fi
20466 \ifcsname l@table\endcsname
20467 \setbox\@tempboxa\vbox{\hsize\maxdimen
20468 \l@table{\tocstyle@l@define{table}{1}}{}}%
20469 \fi
20470 \ifcsname l@figure\endcsname
20471 \setbox\@tempboxa\vbox{\hsize\maxdimen
20472 \l@figure{\tocstyle@l@define{figure}{1}}{}}%
20473 \fi
20474 \def\@tempa#1#2#3#4#5{%
20475 \ifnum #1>\c@tocdepth \else
20476 \vskip \z@ \@plus.2\p@
20477 {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrma
20478 \parindent #2\relax\@afterindenttrue

File tocstyle-xetex-bidi.def 420


20479 \interlinepenalty\@M
20480 \leavevmode
20481 \@tempdima #3\relax
20482 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\righ
20483 {#4}\nobreak
20484 \leaders\hbox{$\m@th
20485 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
20486 mu$}\hfill
20487 \nobreak
20488 \hb@xt@\@pnumwidth{{\hfil \normalfont \normalcolor #5}}%
20489 \par}%
20490 \fi}%
20491 \ifx\@dottedtocline\@tempa\else
20492 \tocstyle@macrochangewarning\@dottedtocline
20493 \fi
20494 \let\tocstyle@saved@dottedtocline\@dottedtocline
20495 \def\@tempa#1{\hb@xt@\@tempdima{#1\autodot\hfil}}%
20496 \ifx\numberline\@tempa\else
20497 \def\@tempa#1{\hb@xt@\@tempdima{#1\hfil}}%
20498 \ifx\numberline@tempa\else
20499 \tocstyle@macrochangewarning\numberline
20500 \fi
20501 \fi
20502 \let\tocstyle@saved@numberline\numberline
20503 }
20504 \renewcommand*{\tocstyle@l@define}[2]{%
20505 \advance\if@RTL\rightskip\else\leftskip\fi-\@tempdima
20506 \edef\@tempa{%
20507 \noexpand\global\noexpand\let
20508 \expandafter\noexpand\csname tocstyle@saved@l@#1\endcsname
20509 \expandafter\noexpand\csname l@#1\endcsname
20510 \noexpand\gdef
20511 \expandafter\noexpand\csname tocstyle@l@#1\endcsname{%
20512 \noexpand\@dottedtocline{#2}{\the\if@RTL\rightskip\else\leftskip\fi}{\the\@tempdima}}%
20513 \noexpand\g@addto@macro\noexpand\tocstyle@activate@all@l{%
20514 \noexpand\let\expandafter\noexpand\csname l@#1\endcsname
20515 \expandafter\noexpand\csname tocstyle@l@#1\endcsname
20516 }%
20517 }%
20518 \PackageInfo{tocstyle}{prepare \expandafter\string
20519 \csname l@#1\endcsname\space for redefinition}%
20520 \@tempa
20521 }

124 File todonotes-xetex-bidi.def


20522 \ProvidesFile{todonotes-xetex-bidi.def}[2016/11/08 v0.4 bidi adaptations for todonotes package
20523 \newif\if@bidi@todonotes@textdirection@RTL
20524 \newif\if@bidi@todonotes@figposition@right
20525 \newcommand{\@bidi@todonotes@align}{}%

File todonotes-xetex-bidi.def 421


20526 \define@key{todonotes}{align}{\renewcommand{\@bidi@todonotes@align}{#1}}%
20527 \newcommand{\@bidi@todonotes@textdirection}{}%
20528 \define@choicekey{todonotes}{textdirection}[\bidi@todonotes@tempa\bidi@todonotes@tempb]{rightt
20529 \ifcase\bidi@todonotes@tempb\relax
20530 \@bidi@todonotes@textdirection@RTLtrue
20531 \let\@bidi@todonotes@textdirection\RLE
20532 \or
20533 \@bidi@todonotes@textdirection@RTLfalse
20534 \let\@bidi@todonotes@textdirection\LRE
20535 \fi}
20536 \define@choicekey{todonotes}{figposition}[\bidi@todonotes@tempa\bidi@todonotes@tempb]{right,le
20537 \ifcase\bidi@todonotes@tempb\relax
20538 \@bidi@todonotes@figposition@righttrue
20539 \or
20540 \@bidi@todonotes@figposition@rightfalse
20541 \fi}
20542 \if@todonotes@disabled%
20543 \else % \if@todonotes@disabled
20544 \renewcommand{\@todonotes@drawInlineNote}{%
20545 \if@todonotes@dviStyle%
20546 {\par\noindent\begin{tikzpicture}[remember picture]%
20547 \draw node[inlinenotestyle] {};\end{tikzpicture}\par}%
20548 \if@todonotes@authorgiven%
20549 {\noindent \@todonotes@sizecommand \@todonotes@author:\,\@todonotes@text}%
20550 \else%
20551 {\noindent \@todonotes@sizecommand \@todonotes@text}%
20552 \fi
20553 {\par\noindent\begin{tikzpicture}[remember picture]%
20554 \draw node[inlinenotestyle] {};\end{tikzpicture}\par}%
20555 \else%
20556 {\par\noindent\begin{tikzpicture}[remember picture]%
20557 \if@bidi@todonotes@textdirection@RTL\setRTL\fi%
20558 \draw node[inlinenotestyle,font=\@todonotes@sizecommand,align=\@bidi@todonotes@ali
20559 \if@todonotes@authorgiven%
20560 {\noindent \@todonotes@sizecommand \@todonotes@author:\,\@todonotes@text}%
20561 \else%
20562 {\noindent \@todonotes@sizecommand \@todonotes@text}%
20563 \fi};%
20564 \end{tikzpicture}\par}%
20565 \fi}%
20566 \renewcommand{\@todonotes@drawMarginNoteWithLine}{%
20567 \begin{tikzpicture}[remember picture, overlay, baseline=-0.75ex]%
20568 \node [coordinate] (inText) {};%
20569 \end{tikzpicture}%
20570 \marginpar[{% Draw note in left margin
20571 \@todonotes@drawMarginNote%
20572 \if@RTL\@todonotes@drawLineToRightMargin\else\@todonotes@drawLineToLeftMargin\fi%
20573 }]{% Draw note in right margin
20574 \@todonotes@drawMarginNote%
20575 \if@RTL\@todonotes@drawLineToLeftMargin\else\@todonotes@drawLineToRightMargin\fi%

File todonotes-xetex-bidi.def 422


20576 }%
20577 }%
20578 \renewcommand{\@todonotes@drawMarginNote}{%
20579 \if@todonotes@dviStyle%
20580 \begin{tikzpicture}[remember picture]%
20581 \draw node[notestyle] {};%
20582 \end{tikzpicture}\\%
20583 \begin{minipage}{\@todonotes@textwidth}%
20584 \if@todonotes@authorgiven%
20585 \@todonotes@sizecommand \@todonotes@author \@todonotes@text%
20586 \else%
20587 \@todonotes@sizecommand \@todonotes@text%
20588 \fi%
20589 \end{minipage}\\%
20590 \begin{tikzpicture}[remember picture]%
20591 \draw node[notestyle] (inNote) {};%
20592 \end{tikzpicture}%
20593 \else%
20594 \let\originalHbadness\hbadness%
20595 \hbadness 100000%
20596 \begin{tikzpicture}[remember picture,baseline=(X.base)]%
20597 \if@bidi@todonotes@textdirection@RTL\setRTL\fi%
20598 \node(X){\vphantom{X}};%
20599 \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todonotes@
20600 {\@todonotes@text};%
20601 \if@todonotes@authorgiven%
20602 \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todono
20603 {\@todonotes@sizecommand\@todonotes@author};%
20604 \node(Y)[below=of X]{};%
20605 \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todono
20606 {\@todonotes@text};%
20607 \else%
20608 \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todono
20609 {\@todonotes@text};%
20610 \fi%
20611 \end{tikzpicture}%
20612 \hbadness \originalHbadness%
20613 \fi}%
20614 \renewcommand{\missingfigure}[2][]{%
20615 \setkeys{todonotes}{#1}%
20616 \addcontentsline{tdo}{todo}{\@todonotes@MissingFigureText: #2}%
20617 \par
20618 \noindent
20619 \begin{tikzpicture}
20620 \draw[fill=\@todonotes@currentfigcolor, draw = black!40, line width=2pt]
20621 (-2, -2.5) rectangle +(\@todonotes@currentfigwidth, \@todonotes@currentfigheight);
20622 \if@bidi@todonotes@figposition@right%
20623 \begin{scope}[xshift=\@todonotes@currentfigwidth-4cm]
20624 \fi%
20625 \draw[red, fill=white, rounded corners = 5pt, line width=10pt]

File todonotes-xetex-bidi.def 423


20626 (30:2cm) -- (150:2cm) -- (270:2cm) -- cycle;
20627 \if@bidi@todonotes@figposition@right%
20628 \end{scope}
20629 \begin{scope}[xshift=-3.8cm]
20630 \fi%
20631 \if@bidi@todonotes@textdirection@RTL\setRTL\fi%
20632 \draw (2, -0.3) node[right, text
20633 width=\@[email protected],align=\@bidi@todonotes@align] {#2};
20634 \if@bidi@todonotes@figposition@right%
20635 \end{scope}
20636 \begin{scope}[xshift=\@todonotes@currentfigwidth-4cm]
20637 \fi%
20638 \draw (0, 0.3) node[align=\@bidi@todonotes@align] {\@bidi@todonotes@textdirection{\@todonotes@
20639 \draw (0, -0.3) node[align=\@bidi@todonotes@align] {\@bidi@todonotes@textdirection{\@todonotes
20640 \if@bidi@todonotes@figposition@right%
20641 \end{scope}
20642 \fi%
20643 \end{tikzpicture}\hfill
20644 }% Ending \missingfigure command
20645 \fi % Ending \@todonotes@ifdisabled
20646 \presetkeys%
20647 {todonotes}%
20648 {align=left,%
20649 textdirection=lefttoright,%
20650 figposition=left}{}%

125 File wrapfig-xetex-bidi.def


20651 \ProvidesFile{wrapfig-xetex-bidi.def}[2014/04/23 v0.3 bidi adaptations for wrapfig package for
20652 \let\WF@@everypar\bidi@n@everypar
20653 \def\WF@putfigmaybe{%
20654 \ifinner
20655 \vskip-\parskip \global\WF@floatfalse
20656 \let\pagetotal\maxdimen % kludge flag for "not top of page"
20657 \else % outer page
20658 \@tempdima\pagedepth % save page depth
20659 {\advance\parskip\@tempdima\if@RTL\advance\parskip\baselineskip\fi\vskip-\parskip}% back up
20660 \penalty\interlinepenalty % update pg. parameters
20661 \@tempdimb\pagegoal \advance\@tempdimb-\pagetotal % room left on page
20662 \ifdim\@tempdimb<\z@ % \WF@info{Page overfull already;}%
20663 \global\WF@floatfalse
20664 \ifdim-\@tempdimb>\pageshrink \else \pagebreak \fi
20665 \else
20666 \ifdim\WF@size>\@tempdimb
20667 \ifWF@float \[email protected]\baselineskip \else \dimen@ 2\baselineskip\fi
20668 \ifdim\pagestretch>\dimen@ \dimen@\pagestretch \fi
20669 \ifdim\pagefilstretch>\z@ \dimen@\@tempdimb \fi
20670 \ifdim\pagefillstretch>\z@ \dimen@\@tempdimb \fi
20671 \advance\[email protected]\baselineskip
20672 \ifdim\dimen@>\@tempdimb % \WF@info{Page nearly full; can stretch}%

File wrapfig-xetex-bidi.def 424


20673 \global\WF@floatfalse \pagebreak
20674 \fi
20675 \else % \WF@info{Fits in \the\@tempdimb;}%
20676 \global\WF@floatfalse
20677 \fi\fi
20678 \vskip\@tempdima\relax % (return erased page depth)
20679 \fi
20680 \noindent
20681 \ifWF@float
20682 \WF@fltmes
20683 \else % putting here;
20684 \WF@info{Put \WF@wfname here:}%
20685 {\ifodd\if@twoside\c@page\else\@ne\fi % assign l/r to i/o placement
20686 \lccode`i`l\lccode`o`r\else \lccode`i`r\lccode`o`l\fi
20687 \xdef\WF@place{\the\lccode\lccode\WF@place}}% twice to get only l or r
20688 \hbox to\z@{% llap or rlap depending on {l} or {r}; calc effective width
20689 \@tempdima\wd\WF@box \@tempdimb\WF@ovh
20690 \advance\@tempdima-\@tempdimb \advance\@tempdima\columnsep
20691 \@tempdimb\hsize \advance\@tempdimb-\@tempdima
20692 \xdef\WF@adjlw{\the\@tempdima}%
20693 \ifnum `l=\WF@place % fig on left
20694 \if@RTL%
20695 \kern\@tempdimb \kern\columnsep
20696 \def\@tempa{\hss}% position to left of the gap
20697 \else%
20698 \hss % figure overlaps space to the left
20699 \def\@tempa{\kern\columnsep}% position to left of the gap
20700 \fi%
20701 \else % fig on right
20702 \if@RTL%
20703 \hss
20704 \@tempdima\z@
20705 \def\@tempa{\kern\columnsep}
20706 \else%
20707 \@tempdima\z@ % no left indentation
20708 \kern\@tempdimb \kern\columnsep
20709 \def\@tempa{\hss}% figure overlaps space to the right
20710 \fi%
20711 \fi
20712 \ifdim\@tempdimb<\hsize
20713 \xdef\WF@wrapil{\the\@tempdima \the\@tempdimb}% indentation and length
20714 \xdef\WF@adjtlm{\the\@tempdima}%
20715 \else
20716 \xdef\WF@wrapil{\z@ \the\hsize}%
20717 \xdef\WF@adjlw{\z@}\xdef\WF@adjtlm{\z@}%
20718 \fi
20719 \ifdim\pagetotal=\z@ % \WF@info{Put \WF@wfname at top of p.\thepage}%
20720 \global\advance\WF@size-\intextsep
20721 \else % \WF@info{Putting \WF@wfname in middle of page}%
20722 \setbox\WF@box\hbox{\lower\intextsep\box\WF@box}%

File wrapfig-xetex-bidi.def 425


20723 \fi \dp\WF@box\z@ \box\WF@box \@tempa
20724 }% end \hbox to 0pt
20725 \aftergroup\WF@startwrapping % after the \endgroup which immediately follows
20726 \fi}

126 File xcolor-xetex-bidi.def


20727 \ProvidesFile{xcolor-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for xcolor package for X
20728 \long\def\color@b@x#1#2#3%
20729 {\leavevmode\ifmmode\else\if@RTL\beginL\fi\fi
20730 \setbox\z@\hbox{\kern\fboxsep{\set@color\if@RTL\beginR\fi#3\if@RTL\endR\fi}\kern\fboxsep}%
20731 \dimen@\ht\z@\advance\dimen@\fboxsep\ht\z@\dimen@
20732 \dimen@\dp\z@\advance\dimen@\fboxsep\dp\z@\dimen@
20733 {#1{#2\color@block{\wd\z@}{\ht\z@}{\dp\z@}\box\z@}}\ifmmode\else\if@RTL\endL\fi\fi}
20734 \def\normalcolor{\let\current@color\default@color\ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\
20735 \DeclareRobustCommand\color
20736 {\ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\@ifnextchar[\@undeclaredcolor\@declaredcolor}
20737 \def\@undeclaredcolor[#1]#2%
20738 {\begingroup
20739 \let\@@cls\@empty
20740 \XC@getmodclr12{#1}{#2}{}%
20741 {\ifblendcolors
20742 \ifx\colorblend\@empty\else
20743 \edef\@@mix{\expandafter\@gobble\colorblend}\@tempswafalse
20744 \XC@coremodel\@@mod\@@clr\@xcolor@{}{}\@@mod\@@clr
20745 \fi
20746 \fi
20747 \ifconvertcolorsU
20748 \edef\@@tmp{\XC@tgt@mod{\@@mod}}%
20749 \convertcolorspec\@@mod\@@clr\@@tmp\@@clr \let\@@mod\@@tmp
20750 \fi
20751 \ifmaskcolors
20752 \convertcolorspec\@@mod\@@clr\XC@mmod\@@clr
20753 \let\@@mod\XC@mmod
20754 \XC@inflate\@@mod\XC@mclr\@@clr\@@tmp
20755 \expandafter\XC@mul\@@tmp,\@@clr
20756 \fi
20757 \edef\@@tmp{\noexpand\XC@undeclaredcolor{\@@mod}{\@@clr}}%
20758 \expandafter\endgroup\@@tmp}}
20759 \def\@declaredcolor#1%
20760 {\XC@edef\XC@@tmp{#1}\XC@@tstfalse
20761 \ifcase\XC@type\XC@@tmp\relax \XC@@tsttrue\or \relax\else
20762 \ifblendcolors\XC@@tsttrue\fi \ifmaskcolors\XC@@tsttrue\fi
20763 \ifconvertcolorsU\XC@@tsttrue\fi
20764 \fi
20765 \ifXC@@tst
20766 \expandafter\XC@declaredcolor\else
20767 \expandafter\XC@declaredc@lor\fi}
20768 \def\XC@undeclaredcolor#1#2%
20769 {\@ifundefinedmodel{#1}%

File xcolor-xetex-bidi.def 426


20770 {\c@lor@error{model `#1'}}%
20771 {\@nameuse{color@#1}\current@color{#2}%
20772 \edef\XC@current@color{\noexpand\xcolor@{}{\current@color}{#1}{#2}}%
20773 \XC@display}\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi\ignorespaces}
20774 \def\XC@declaredc@lor
20775 {\XC@let@Nc\XC@current@color{\string\color@\XC@@tmp}%
20776 \edef\current@color{\XC@current@color}%
20777 \XC@display\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi\ignorespaces}
20778 \DeclareRobustCommand\bidicolor
20779 {\@ifnextchar[\@bidiundeclaredcolor\@bidideclaredcolor}
20780 \def\@bidiundeclaredcolor[#1]#2%
20781 {\begingroup
20782 \let\@@cls\@empty
20783 \XC@getmodclr12{#1}{#2}{}%
20784 {\ifblendcolors
20785 \ifx\colorblend\@empty\else
20786 \edef\@@mix{\expandafter\@gobble\colorblend}\@tempswafalse
20787 \XC@coremodel\@@mod\@@clr\@xcolor@{}{}\@@mod\@@clr
20788 \fi
20789 \fi
20790 \ifconvertcolorsU
20791 \edef\@@tmp{\XC@tgt@mod{\@@mod}}%
20792 \convertcolorspec\@@mod\@@clr\@@tmp\@@clr \let\@@mod\@@tmp
20793 \fi
20794 \ifmaskcolors
20795 \convertcolorspec\@@mod\@@clr\XC@mmod\@@clr
20796 \let\@@mod\XC@mmod
20797 \XC@inflate\@@mod\XC@mclr\@@clr\@@tmp
20798 \expandafter\XC@mul\@@tmp,\@@clr
20799 \fi
20800 \edef\@@tmp{\noexpand\XC@bidiundeclaredcolor{\@@mod}{\@@clr}}%
20801 \expandafter\endgroup\@@tmp}}
20802 \def\XC@bidiundeclaredcolor#1#2%
20803 {\@ifundefinedmodel{#1}%
20804 {\c@lor@error{model `#1'}}%
20805 {\@nameuse{color@#1}\current@color{#2}%
20806 \edef\XC@current@color{\noexpand\xcolor@{}{\current@color}{#1}{#2}}%
20807 \XC@display}}
20808 \def\@bidideclaredcolor#1%
20809 {\XC@edef\XC@@tmp{#1}\XC@@tstfalse
20810 \ifcase\XC@type\XC@@tmp\relax \XC@@tsttrue\or \relax\else
20811 \ifblendcolors\XC@@tsttrue\fi \ifmaskcolors\XC@@tsttrue\fi
20812 \ifconvertcolorsU\XC@@tsttrue\fi
20813 \fi
20814 \ifXC@@tst
20815 \expandafter\XC@bidideclaredcolor\else
20816 \expandafter\XC@bidideclaredc@lor\fi}
20817 \def\XC@bidideclaredcolor
20818 {\XC@split\XC@@tmp
20819 \edef\@@tmp{\noexpand\@bidiundeclaredcolor[\@@mod]{\@@clr}}%

File xcolor-xetex-bidi.def 427


20820 \expandafter\endgroup\@@tmp}
20821 \def\XC@bidideclaredc@lor
20822 {\XC@let@Nc\XC@current@color{\string\color@\XC@@tmp}%
20823 \edef\current@color{\XC@current@color}%
20824 \XC@display}
20825 \def\color@box#1#2{\color@b@x\relax{\bidicolor#1{#2}}}
20826 \def\color@fbox#1#2#3#{\protect\color@fb@x{#1}{#2}{#3}}
20827 \def\color@fb@x#1#2#3#4%
20828 {\color@b@x{\fboxsep\z@\bidicolor#1{#2}\XC@fbox}%
20829 {\@ifxempty{#3}{\bidicolor#1}{\bidicolor#3}{#4}}}
20830 \def\color@setgroup{\begingroup\ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\set@color\ifhmode\

127 File latex-xetex-bidi.def


20831 \ProvidesFile{latex-xetex-bidi.def}[2019/03/03 v1.3.7 bidi adaptations for `latex.ltx' for Xe
20832 \newcommand{\TeXXeTOn}{\TeXXeTstate\@ne}
20833 \newcommand{\TeXXeTOff}{\TeXXeTstate\z@}
20834 \TeXXeTOn
20835 \def\bidi@RTL@everypar{{\setbox\z@\lastbox\if@RTL\beginR\else\beginL\fi\ifvoid\z@\else\usebox\
20836 \let\bidi@o@everypar=\everypar
20837 \newtoks\bidi@n@everypar
20838 \bidi@n@everypar\expandafter{\the\bidi@o@everypar}
20839 \bidi@o@everypar{\bidi@RTL@everypar\the\bidi@n@everypar}
20840 \let\everypar=\bidi@n@everypar
20841 \def\moreLRE{\bracetext \aftergroup\endL \beginL\@RTLfalse}
20842 \def\moreRLE{\bracetext \aftergroup\endR \beginR\@RTLtrue}
20843 \protected\def\hboxR{\hbox\bgroup
20844 \everyhbox{%
20845 \aftergroup\egroup
20846 \everyhbox{}%
20847 \beginR
20848 \@hboxRconstructtrue
20849 \bgroup
20850 \aftergroup\endR
20851 \aftergroup\egroup
20852 }\hbox}
20853 \protected\def\hboxL{\hbox\bgroup
20854 \everyhbox{%
20855 \aftergroup\egroup
20856 \everyhbox{}%
20857 \beginL
20858 \@hboxRconstructfalse
20859 \bgroup
20860 \aftergroup\endL
20861 \aftergroup\egroup
20862 }\hbox}
20863 \protected\def\vboxR{\vbox\bgroup
20864 \everyvbox{%
20865 \aftergroup\egroup
20866 \everyvbox{}%

File latex-xetex-bidi.def 428


20867 \@RTLtrue
20868 \@RTLtabtrue
20869 \bgroup
20870 \aftergroup\egroup
20871 }\vbox}
20872 \protected\def\vboxL{\vbox\bgroup
20873 \everyvbox{%
20874 \aftergroup\egroup
20875 \everyvbox{}%
20876 \@RTLfalse
20877 \@RTLtabfalse
20878 \bgroup
20879 \aftergroup\egroup
20880 }\vbox}
20881 \newcommand*{\bidi@leftskip}{\if@RTL\rightskip\else\leftskip\fi}
20882 \newcommand*{\bidi@rightskip}{\if@RTL\leftskip\else\rightskip\fi}
20883 \def\LTR{\par\@RTLfalse\@RTL@footnotefalse\@RTLtabfalse\hsize\linewidth\parshape\z@}
20884 \def\endLTR{\par}
20885 \newenvironment{LTR*}{\LTR
20886 \everypar{%
20887 {\setbox\z@\lastbox
20888 \ifvoid\z@
20889 \kern-\parindent
20890 \fi}%
20891 }%
20892 }{\endLTR\@endpetrue}
20893 \def\RTL{\par\@RTLtrue\@RTL@footnotetrue\@RTLtabtrue\hsize\linewidth\parshape\z@}
20894 \def\endRTL{\par}
20895 \newenvironment{RTL*}{\RTL
20896 \everypar{%
20897 {\setbox\z@\lastbox
20898 \ifvoid\z@
20899 \kern-\parindent
20900 \fi}%
20901 }%
20902 }{\endRTL\@endpetrue}
20903 \def\setRTL{\@RTLtrue\@RTL@footnotetrue\@RTLtabtrue}
20904 \def\setLTR{\@RTLfalse\@RTL@footnotefalse\@RTLtabfalse}
20905 \let\unsetRTL=\setLTR
20906 \let\unsetLTR=\setRTL
20907 \let\LR=\LRE
20908 \let\RL=\RLE
20909 \def\@ensure@RTL#1{\if@RTL#1\else\RLE{#1}\fi}
20910 \def\@ensure@LTR#1{\if@RTL\LRE{#1}\else#1\fi}
20911 \let\@ensure@RL=\@ensure@RTL
20912 \let\@ensure@LR=\@ensure@LTR
20913 \def\@ensure@dir#1{\if@RTL\RLE{#1}\else{#1}\fi}
20914 \let\@ensure@maindir=\@ensure@dir
20915 \def\@@RTL{RTL}
20916 \def\@@LTR{LTR}

File latex-xetex-bidi.def 429


20917 \def\save@dir{\if@RTL\gdef\saved@@dir{RTL}\else\gdef\saved@@dir{LTR}\fi}
20918 \def\reset@dir{\ifx\saved@@dir\@@RTL\setRTL\else\ifx\saved@@dir\@@LTR\setLTR\else\relax\fi\fi}
20919 \let\@@TeX\TeX
20920 \def\TeX{\@ensure@LTR{\@@TeX}}
20921 \let\@@LaTeX\LaTeX
20922 \def\LaTeX{\@ensure@LTR{\@@LaTeX}}
20923 \let\@@LaTeXe\LaTeXe
20924 \def\LaTeXe{\@ensure@LTR{\@@LaTeXe}}
20925 \long\def\bidi@reflect@box#1{%
20926 \leavevmode
20927 \setbox\z@\hbox{{#1}}%
20928 \setbox\tw@\hbox{\special{x:gsave}\special{x:scale -1 1}\rlap{\copy\z@}\special{x:grestore}}
20929 \hb@xt@\wd\z@{\kern\wd\z@\box\tw@\hss}%
20930 }
20931 \bidi@newrobustcmd*{\XeTeX}{\LR{\leavevmode$\smash{\hbox{X\lower.5ex
20932 \hbox{\kern-.125em\bidi@reflect@box{E}}\kern-.1667em \TeX}}$}}
20933 \bidi@newrobustcmd*{\XeLaTeX}{\LR{\leavevmode$\smash{\hbox{X\lower.5ex
20934 \hbox{\kern-.125em\bidi@reflect@box{E}}\kern-.1667em \LaTeX}}$}}
20935 \let\setRL=\setRTL
20936 \let\setLR=\setLTR
20937 \let\unsetRL=\setLTR
20938 \def\bidi@tabular@RTLcases{\let\@halignto\@empty\@bidi@tabular@RTLcases}
20939 \@ifpackageloaded{array}{%
20940 \def\@bidi@tabular@RTLcases{\@RTLtabtrue%
20941 \leavevmode
20942 \hbox \bgroup $\left.\col@sep\tabcolsep \let\d@llarbegin\begingroup
20943 \let\d@llarend\endgroup
20944 \@tabarray}
20945 \def\endbidi@tabular@RTLcases{\endarray \right\rbrace$\egroup}
20946 }{%
20947 \def\@bidi@tabular@RTLcases{\@RTLtabtrue%
20948 \leavevmode \hbox \bgroup
20949 $\left.\let\@acol\@tabacol
20950 \let\@classz\@tabclassz
20951 \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
20952
20953 \def\endbidi@tabular@RTLcases{\crcr\egroup\if@RTLtab\egroup\endR\egroup\fi
20954 \egroup\right\rbrace $\egroup}}
20955 \def\RTLcases#1{\left.\vcenter{\normalbaselines\m@th
20956 \ialign{$##\hfil$&\quad{##}\hfil\crcr#1\crcr}}\,\right\}}
20957 \renewenvironment{RTLcases}{%
20958 \bidi@matrix@check\RTLcases\env@RTLcases
20959 }{%
20960 \endbidi@tabular@RTLcases%
20961 }
20962 \def\env@RTLcases{%
20963 \let\@ifnextchar\bidi@new@ifnextchar
20964 \def\arraystretch{1.2}%
20965 \bidi@tabular@RTLcases{@{}r@{\quad}r@{}}%
20966 }

File latex-xetex-bidi.def 430


20967 \def\SepMark#1{\gdef\@SepMark{#1}}
20968 \SepMark{.}
20969 \def\@thmcountersep{\@SepMark}
20970 \def\setRTLbibitems{\@RTLbibitemstrue\@LTRbibitemsfalse}
20971 \def\setLTRbibitems{\@LTRbibitemstrue\@RTLbibitemsfalse}
20972 \def\setdefaultbibitems{\@RTLbibitemsfalse\@LTRbibitemsfalse}
20973 \newcommand*{\bidi@@thebibliography@font@hook}{}
20974 \def\list#1#2{%
20975 \ifnum \@listdepth >5\relax
20976 \@toodeep
20977 \else
20978 \global\advance\@listdepth\@ne
20979 \fi
20980 \rightmargin\z@
20981 \listparindent\z@
20982 \itemindent\z@
20983 \csname @list\romannumeral\the\@listdepth\endcsname
20984 \def\@itemlabel{#1}%
20985 \let\makelabel\@mklab
20986 \@nmbrlistfalse
20987 #2\relax
20988 \@trivlist
20989 \parskip\parsep
20990 \parindent\listparindent
20991 \advance\linewidth -\rightmargin
20992 \advance\linewidth -\leftmargin
20993 \if@bidi@list@minipage@parbox
20994 \if@RTL
20995 \advance\@totalleftmargin \leftmargin
20996 \else
20997 \advance\@totalleftmargin \rightmargin
20998 \fi
20999 \else
21000 \if@hboxRconstruct
21001 \if@bidi@list@minipage@parbox@not@nob
21002 \if@RTL
21003 \advance\@totalleftmargin \rightmargin
21004 \else
21005 \advance\@totalleftmargin \leftmargin
21006 \fi
21007 \else
21008 \if@RTL
21009 \advance\@totalleftmargin \leftmargin
21010 \else
21011 \advance\@totalleftmargin \rightmargin
21012 \fi\fi
21013 \else
21014 \if@RTL
21015 \advance\@totalleftmargin \rightmargin
21016 \else

File latex-xetex-bidi.def 431


21017 \advance\@totalleftmargin \leftmargin
21018 \fi\fi\fi
21019 \parshape \@ne \@totalleftmargin \linewidth
21020 \ignorespaces}
21021 \long\def\@iiiparbox#1#2[#3]#4#5{%
21022 \leavevmode
21023 \@pboxswfalse
21024 \if@hboxRconstruct
21025 \@bidi@list@minipage@parbox@not@nobtrue
21026 \fi
21027 \if@RTL
21028 \ifx#1t%
21029 \@bidi@list@minipage@parboxtrue
21030 \else
21031 \ifx#1b%
21032 \@bidi@list@minipage@parboxtrue
21033 \fi
21034 \fi
21035 \fi
21036 \setlength\@tempdima{#4}%
21037 \@begin@tempboxa\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}%
21038 \ifx\relax#2\else
21039 \setlength\@tempdimb{#2}%
21040 \edef\@parboxto{to\the\@tempdimb}%
21041 \fi
21042 \if#1b\vbox
21043 \else\if #1t\vtop
21044 \else\ifmmode\vcenter
21045 \else\@pboxswtrue $\vcenter
21046 \fi\fi\fi
21047 \@parboxto{\let\hss\vss\let\unhbox\unvbox
21048 \csname bm@#3\endcsname}%
21049 \if@pboxsw \m@th$\fi
21050 \@end@tempboxa}
21051 \newenvironment{LTRitems}
21052 {\par\@RTLfalse\@RTLtabfalse
21053 \if@bidi@list@minipage@parbox
21054 \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth
21055 \else \if@hboxRconstruct\if@bidi@list@minipage@parbox@not@nob
21056 \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\else
21057 \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi
21058 \else \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi\f
21059 \ignorespaces}{\vskip\z@}
21060 \newenvironment{RTLitems}
21061 {\par\@RTLtrue\@RTLtabtrue
21062 \if@bidi@list@minipage@parbox
21063 \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth
21064 \else \if@hboxRconstruct\if@bidi@list@minipage@parbox@not@nob
21065 \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\else
21066 \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi

File latex-xetex-bidi.def 432


21067 \else \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi\f
21068 \ignorespaces}{\vskip\z@}
21069 \newenvironment{LTRbibitems}
21070 {\par\@RTLfalse\@RTLtabfalse
21071 \if@bidi@list@minipage@parbox
21072 \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth
21073 \else \if@hboxRconstruct\if@bidi@list@minipage@parbox@not@nob
21074 \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\else
21075 \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi
21076 \else \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi\f
21077 \ignorespaces}{\vskip\z@}
21078 \newenvironment{RTLbibitems}
21079 {\par\@RTLtrue\@RTLtabtrue
21080 \if@bidi@list@minipage@parbox
21081 \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth
21082 \else \if@hboxRconstruct\if@bidi@list@minipage@parbox@not@nob
21083 \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\else
21084 \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi
21085 \else \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi\f
21086 \ignorespaces}{\vskip\z@}
21087 \def\raggedright{%
21088 \let\\\@centercr\@rightskip\@flushglue \rightskip\@rightskip
21089 \leftskip\z@skip
21090 \parindent\z@\parfillskip\z@skip}
21091 \let\bidi@orig@raggedleft\raggedleft
21092 \let\bidi@orig@raggedright\raggedright
21093 \renewcommand\raggedleft{\if@bidi@list@minipage@parbox\bidi@orig@raggedright\else\if@hboxRcons
21094 \renewcommand\raggedright{\if@bidi@list@minipage@parbox\bidi@orig@raggedleft\else\if@hboxRcons
21095 \newcommand{\bidi@raggedright}{\if@RTL\raggedleft\else\raggedright\fi}
21096 \newcommand{\bidi@raggedleft}{\if@RTL\raggedright\else\raggedleft\fi}
21097 \def\centerline#1{%
21098 \if@RTL\@@line{\hss\beginR#1\endR\hss}
21099 \else\@@line{\hss#1\hss}\fi}
21100 \def\leftline#1{%
21101 \if@RTL\@@line{\beginR#1\endR\hss}
21102 \else\@@line{#1\hss}\fi}
21103 \def\rightline#1{%
21104 \if@RTL\@@line{\hss\beginR#1\endR}
21105 \else\@@line{\hss#1}\fi}
21106 \let\bidi@orig@leftline\leftline
21107 \let\bidi@orig@rightline\rightline
21108 \def\leftline#1{\ifhmode\if@RTL\bidi@orig@rightline{#1}\else\bidi@orig@leftline{#1}\fi\else\if
21109 \def\rightline#1{\ifhmode\if@RTL\bidi@orig@leftline{#1}\else\bidi@orig@rightline{#1}\fi\else\i
21110 \def\bidirlap#1{\hb@xt@\z@{\if@RTL\hss\fi#1\if@RTL\else\hss\fi}}
21111 \def\bidillap#1{\hb@xt@\z@{\if@RTL\else\hss\fi#1\if@RTL\hss\fi}}
21112 \def\@hangfrom#1{\setbox\@tempboxa\hbox{{#1}}%
21113 \hangindent \if@RTL-\else\fi\wd\@tempboxa\noindent\box\@tempboxa}
21114 \def\narrower{%
21115 \advance\if@RTL\rightskip\else\leftskip\fi\parindent
21116 \advance\if@RTL\leftskip\else\rightskip\fi\parindent}

File latex-xetex-bidi.def 433


21117 \def\underline#1{%
21118 \relax
21119 \ifmmode\@@underline{#1}%
21120 \else
21121 \if@RTL $\@@underline{\hbox{\beginR#1\endR}}\m@th$\relax
21122 \else
21123 $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
21124 \if@compatibility
21125 \let\undertext=\underline
21126 \fi
21127 \def\@tabular{%
21128 \leavevmode \hbox \bgroup \if@RTLtab\beginR \fi
21129 $\let\@acol\@tabacol
21130 \let\@classz\@tabclassz
21131 \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
21132 \def\endtabular{\crcr\egroup\if@RTLtab\egroup\endR\egroup\fi
21133 \egroup $\if@RTLtab\endR\fi\egroup}
21134 \expandafter \let \csname endtabular*\endcsname = \endtabular
21135 \def\@array[#1]#2{%
21136 \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi
21137 \bgroup
21138 \setbox\@arstrutbox\hbox{%
21139 \vrule \@height\arraystretch\ht\strutbox
21140 \@depth\arraystretch \dp\strutbox
21141 \@width\z@}%
21142 \@mkpream{#2}%
21143 \edef\@preamble{%
21144 \ialign \noexpand\@halignto
21145 \bgroup \@arstrut \@preamble \tabskip\z@skip \cr}%
21146 \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
21147 \let\tabularnewline\\%
21148 \let\par\@empty
21149 \let\@sharp##%
21150 \set@typeset@protect
21151 \lineskip\z@skip\baselineskip\z@skip
21152 \ifhmode \@preamerr\z@ \@@par\fi
21153 \if@RTLtab\hbox\bgroup\beginR\@hboxRconstructtrue\if #1t\vtop \else \vbox \fi\bgroup\fi
21154 \@preamble}
21155 \def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
21156 \let\@classiv\@arrayclassiv
21157 \let\\\@arraycr\let\@halignto\@empty\@RTLtabfalse\@tabarray}
21158 \def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4 \else
21159 \ifnum \@lastchclass=3 5 \else
21160 \z@ \if #1c\@chnum \z@ \else
21161 \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else
21162 \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else
21163 \@chclass \if #1|\@ne \else
21164 \if #1@\tw@ \else
21165 \if #1p3 \else \z@ \@preamerr 0\fi
21166 \fi \fi \fi \fi \fi \fi

File latex-xetex-bidi.def 434


21167 \fi}
21168 \def\bm@l{\if@RTL\hss\unhbox\@tempboxa\else\unhbox\@tempboxa\hss\fi}
21169 \def\bm@r{\if@RTL\unhbox\@tempboxa\hss\else\hss\unhbox\@tempboxa\fi}
21170 \def\bm@t{\unhbox\@tempboxa\hss}
21171 \def\bm@b{\hss\unhbox\@tempboxa}
21172 \def\@dottedtocline#1#2#3#4#5{%
21173 \ifnum #1>\c@tocdepth \else
21174 \vskip \z@ \@plus.2\p@
21175 {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
21176 \parindent #2\relax\@afterindenttrue
21177 \interlinepenalty\@M
21178 \leavevmode
21179 \@tempdima #3\relax
21180 \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rights
21181 {#4}\nobreak
21182 \leaders\hbox{$\m@th
21183 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
21184 mu$}\hfill
21185 \nobreak
21186 \hb@xt@\@pnumwidth{{\hfil\normalfont \normalcolor #5}}%
21187 \par}%
21188 \fi}
21189
21190 \newcount\bidi@column@check@number
21191
21192 \def\bidi@column@status#1{\gdef\bidi@current@column@status{#1}}
21193
21194 \def\bidi@set@column@status#1#2{%
21195 \global\expandafter\let\csname #1\endcsname\bidi@current@column@status}
21196
21197 \if@twocolumn
21198 \newcommand\DetectColumn[3][1]{%
21199 \ifx\bidi@firstcolumn@status@write\relax
21200 \PackageError{bidi}%
21201 {Option 'DetectColumn' not selected}%
21202 {\string\DetectColumn\space
21203 requires the use of the 'DetectColumn'
21204 option on the package}%
21205 \fi
21206 \global\advance\bidi@column@check@number\@ne
21207 \edef\bidi@column@type{\expandafter\ifx
21208 \csname bidi@column-\the\bidi@column@check@number\endcsname\relax
21209 0\else
21210 \csname bidi@column-\the\bidi@column@check@number\endcsname
21211 \fi}%
21212 \ifcase \bidi@column@type\relax
21213 \ifcase #1\or #2\or#3\fi % 0 not known use first column as default
21214 \or
21215 #2% % 1 First column
21216 \or

File latex-xetex-bidi.def 435


21217 #3% % 2 Second (Last column)
21218 \else
21219 \ERROR
21220 \fi
21221 \edef\next{\write\@auxout
21222 {\string\bidi@set@column@status{bidi@column-\the\bidi@column@check@number}%
21223 {\bidi@column@type}}}%
21224 \next
21225 }
21226
21227 \AtEndDocument{\def\bidi@set@column@status#1#2{%
21228 \ifnum #2=\bidi@current@column@status\else
21229 \@tempswatrue
21230 \fi}%
21231 }
21232 \fi
21233
21234 \def\RTL@outputdblcol{%
21235 \if@firstcolumn
21236 \global\@firstcolumnfalse
21237 \global\setbox\@leftcolumn\copy\@outputbox
21238 \splitmaxdepth\maxdimen
21239 \vbadness\maxdimen
21240 \setbox\@outputbox\vbox{\unvbox\@outputbox\unskip}%
21241 \setbox\@outputbox\vsplit\@outputbox to\maxdimen
21242 \toks@\expandafter{\topmark}%
21243 \xdef\@firstcoltopmark{\the\toks@}%
21244 \toks@\expandafter{\splitfirstmark}%
21245 \xdef\@firstcolfirstmark{\the\toks@}%
21246 \ifx\@firstcolfirstmark\@empty
21247 \global\let\@setmarks\relax
21248 \else
21249 \gdef\@setmarks{%
21250 \let\firstmark\@firstcolfirstmark
21251 \let\topmark\@firstcoltopmark}%
21252 \fi
21253 \else
21254 \global\@firstcolumntrue
21255 \setbox\@outputbox\vbox{%
21256 \hb@xt@\textwidth{%
21257 \hskip \columnwidth
21258 \hfil
21259 {\normalcolor\vrule \@width\columnseprule}%
21260 \hfil
21261 \hb@xt@\columnwidth{%
21262 \bidi@firstcolumn@status@write%
21263 \box\@leftcolumn \hss}%
21264 \hskip -\textwidth
21265 \hb@xt@\columnwidth{%
21266 \bidi@lastcolumn@status@write%

File latex-xetex-bidi.def 436


21267 \box\@outputbox \hss}%
21268 \hskip \columnsep
21269 \hskip \columnwidth }}%
21270 \@combinedblfloats
21271 \@setmarks
21272 \@outputpage
21273 \begingroup
21274 \@dblfloatplacement
21275 \@startdblcolumn
21276 \@whilesw\if@fcolmade \fi{\@outputpage
21277 \@startdblcolumn}%
21278 \endgroup
21279 \fi}%
21280
21281 \def\LTR@outputdblcol{%
21282 \if@firstcolumn
21283 \global\@firstcolumnfalse
21284 \global\setbox\@leftcolumn\copy\@outputbox
21285 \splitmaxdepth\maxdimen
21286 \vbadness\maxdimen
21287 \setbox\@outputbox\vbox{\unvbox\@outputbox\unskip}%
21288 \setbox\@outputbox\vsplit\@outputbox to\maxdimen
21289 \toks@\expandafter{\topmark}%
21290 \xdef\@firstcoltopmark{\the\toks@}%
21291 \toks@\expandafter{\splitfirstmark}%
21292 \xdef\@firstcolfirstmark{\the\toks@}%
21293 \ifx\@firstcolfirstmark\@empty
21294 \global\let\@setmarks\relax
21295 \else
21296 \gdef\@setmarks{%
21297 \let\firstmark\@firstcolfirstmark
21298 \let\topmark\@firstcoltopmark}%
21299 \fi
21300 \else
21301 \global\@firstcolumntrue
21302 \setbox\@outputbox\vbox{%
21303 \hb@xt@\textwidth{%
21304 \hb@xt@\columnwidth{%
21305 \bidi@firstcolumn@status@write%
21306 \box\@leftcolumn \hss}%
21307 \hfil
21308 {\normalcolor\vrule \@width\columnseprule}%
21309 \hfil
21310 \hb@xt@\columnwidth{%
21311 \bidi@lastcolumn@status@write%
21312 \box\@outputbox \hss}}}%
21313 \@combinedblfloats
21314 \@setmarks
21315 \@outputpage
21316 \begingroup

File latex-xetex-bidi.def 437


21317 \@dblfloatplacement
21318 \@startdblcolumn
21319 \@whilesw\if@fcolmade \fi{\@outputpage
21320 \@startdblcolumn}%
21321 \endgroup
21322 \fi}%
21323
21324
21325 \renewcommand{\@outputdblcol}{\if@RTLmain\RTL@outputdblcol\else\LTR@outputdblcol\fi}
21326 \newcommand{\RTLdblcol}{\renewcommand{\@outputdblcol}{\RTL@outputdblcol}}
21327 \newcommand{\LTRdblcol}{\renewcommand{\@outputdblcol}{\LTR@outputdblcol}}
21328
21329 \bidi@patchcmd\@makecol{%
21330 \ifvoid\footins
21331 \setbox\@outputbox \box\@cclv
21332 \else
21333 \setbox\@outputbox \vbox {%
21334 \boxmaxdepth \@maxdepth
21335 \unvbox \@cclv
21336 \vskip \skip\footins
21337 \color@begingroup
21338 \normalcolor
21339 \footnoterule
21340 \unvbox \footins
21341 \color@endgroup
21342 }%
21343 \fi
21344 }{%
21345 \ifvoid\footins
21346 \ifvoid\@bidi@copyins@
21347 \setbox\@outputbox \box\@cclv
21348 \else
21349 \setbox\@outputbox \vbox {%
21350 \boxmaxdepth \@maxdepth
21351 \unvbox \@cclv
21352 \vskip \skip\@bidi@copyins@
21353 \color@begingroup
21354 \normalcolor
21355 \unvbox \@bidi@copyins@
21356 \color@endgroup
21357 }%
21358 \fi
21359 \else
21360 \setbox\@outputbox \vbox {%
21361 \boxmaxdepth \@maxdepth
21362 \unvbox \@cclv
21363 \vskip \skip\footins
21364 \color@begingroup
21365 \normalcolor
21366 \footnoterule

File latex-xetex-bidi.def 438


21367 \unvbox \footins
21368 \color@endgroup
21369 \ifvoid\@bidi@copyins@
21370 \else
21371 \vskip \skip\@bidi@copyins@
21372 \color@begingroup
21373 \normalcolor
21374 \unvbox \@bidi@copyins@
21375 \color@endgroup
21376 \fi
21377 }%
21378 \fi
21379 }{}{}
21380
21381 \def\LTRmarginpar{%
21382 \ifhmode
21383 \@bsphack
21384 \@floatpenalty -\@Mii
21385 \else
21386 \@floatpenalty-\@Miii
21387 \fi
21388 \ifinner
21389 \@parmoderr
21390 \@floatpenalty\z@
21391 \else
21392 \@next\@currbox\@freelist{}{}%
21393 \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
21394 {\@floatpenalty\z@
21395 \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
21396 \fi
21397 \@ifnextchar [\@LTRxmpar\@LTRympar}
21398 \long\def\@LTRxmpar[#1]#2{%
21399 \@LTRsavemarbox\@marbox{#1}%
21400 \@LTRsavemarbox\@currbox{#2}%
21401 \@xympar}
21402 \long\def\@LTRympar#1{%
21403 \@LTRsavemarbox\@marbox{#1}%
21404 \global\setbox\@currbox\copy\@marbox
21405 \@xympar}
21406 \long\def \@LTRsavemarbox #1#2{%
21407 \global\setbox #1%
21408 \color@vbox
21409 \vtop{%
21410 \hsize\marginparwidth
21411 \@parboxrestore
21412 \@LTRmarginparreset
21413 #2%
21414 \@minipagefalse
21415 \outer@nobreak
21416 }%

File latex-xetex-bidi.def 439


21417 \color@endbox
21418 }
21419 \def \@LTRmarginparreset {%
21420 \reset@font
21421 \normalsize
21422 \@minipagetrue
21423 \everypar{\@minipagefalse\everypar{}\beginL}%
21424 }
21425 \def\RTLmarginpar{%
21426 \ifhmode
21427 \@bsphack
21428 \@floatpenalty -\@Mii
21429 \else
21430 \@floatpenalty-\@Miii
21431 \fi
21432 \ifinner
21433 \@parmoderr
21434 \@floatpenalty\z@
21435 \else
21436 \@next\@currbox\@freelist{}{}%
21437 \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
21438 {\@floatpenalty\z@
21439 \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
21440 \fi
21441 \@ifnextchar [\@RTLxmpar\@RTLympar}
21442 \long\def\@RTLxmpar[#1]#2{%
21443 \@RTLsavemarbox\@marbox{#1}%
21444 \@RTLsavemarbox\@currbox{#2}%
21445 \@xympar}
21446 \long\def\@RTLympar#1{%
21447 \@RTLsavemarbox\@marbox{#1}%
21448 \global\setbox\@currbox\copy\@marbox
21449 \@xympar}
21450 \long\def \@RTLsavemarbox #1#2{%
21451 \global\setbox #1%
21452 \color@vbox
21453 \vtop{%
21454 \hsize\marginparwidth
21455 \@parboxrestore
21456 \@RTLmarginparreset
21457 #2%
21458 \@minipagefalse
21459 \outer@nobreak
21460 }%
21461 \color@endbox
21462 }
21463 \def \@RTLmarginparreset {%
21464 \reset@font
21465 \normalsize
21466 \@minipagetrue

File latex-xetex-bidi.def 440


21467 \everypar{\@minipagefalse\everypar{}\beginR}%
21468 }
21469 \def\@addmarginpar{\@next\@marbox\@currlist{\@cons\@freelist\@marbox
21470 \@cons\@freelist\@currbox}\@latexbug\@tempcnta\@ne
21471 \if@twocolumn
21472 \if@firstcolumn \@tempcnta\m@ne \fi
21473 \else
21474 \if@mparswitch
21475 \ifodd\c@page \else\@tempcnta\m@ne \fi
21476 \fi
21477 \if@reversemargin \@tempcnta -\@tempcnta \fi
21478 \fi
21479 \ifnum\@tempcnta <\z@ \global\setbox\@marbox\box\@currbox \fi
21480 \@tempdima\@mparbottom
21481 \advance\@tempdima -\@pageht
21482 \advance\@tempdima\ht\@marbox
21483 \ifdim\@tempdima >\z@
21484 \@latex@warning@no@line {Marginpar on page \thepage\space moved}%
21485 \else
21486 \@tempdima\z@
21487 \fi
21488 \global\@mparbottom\@pageht
21489 \global\advance\@mparbottom\@tempdima
21490 \global\advance\@mparbottom\dp\@marbox
21491 \global\advance\@mparbottom\marginparpush
21492 \advance\@tempdima -\ht\@marbox
21493 \global\setbox \@marbox
21494 \vbox {\vskip \@tempdima
21495 \box \@marbox}%
21496 \global \ht\@marbox \z@
21497 \global \dp\@marbox \z@
21498 \kern -\@pagedp
21499 \nointerlineskip
21500 \hb@xt@\columnwidth
21501 {\if@RTL\if@LTRmarginpar\beginL\else\beginR\fi\else\if@RTLmarginpar\beginR\else\beginL\f
21502 \hskip\columnwidth \hskip\marginparsep
21503 \else
21504 \hskip -\marginparsep \hskip -\marginparwidth
21505 \fi
21506 \box\@marbox \hss\if@RTL\if@LTRmarginpar\endL\else\endR\fi\else\if@RTLmarginpar\endR\el
21507 \nointerlineskip
21508 \hbox{\vrule \@height\z@ \@width\z@ \@depth\@pagedp}}
21509 \long\def\@ympar#1{%
21510 \@savemarbox\@marbox{\if@RTL\if@LTRmarginpar\@RTLfalse\else\@RTLtrue\fi\else\if@RTLmarginpar
21511 \global\setbox\@currbox\copy\@marbox
21512 \@xympar}
21513 \def\setRTLmarginpar{\@RTLmarginpartrue\@LTRmarginparfalse}
21514 \def\setLTRmarginpar{\@LTRmarginpartrue\@RTLmarginparfalse}
21515 \def\setdefaultmarginpar{\@RTLmarginparfalse\@LTRmarginparfalse}
21516 \def\@stopline{\unskip\@stopfield\if@rjfield \global\@rjfieldfalse

File latex-xetex-bidi.def 441


21517 \@tempdima\@totalleftmargin \advance\@tempdima\linewidth
21518 \hbox to\@tempdima{\if@RTL\beginR\fi\@itemfudge\hskip\dimen\@curtabmar
21519 \box\@curline\hfil\box\@curfield\if@RTL\endR\fi}\else\@addfield
21520 \hbox to\linewidth{\if@RTL\beginR\fi\@itemfudge
21521 \hskip\dimen\@curtabmar\box\@curline\hfil\if@RTL\endR\fi}%
21522 \fi}
21523
21524 \newcommand*{\bidi@font@@outputpage}{}
21525
21526 \def\@outputpage{%
21527 \begingroup % the \endgroup is put in by \aftergroup
21528 \let \protect \noexpand
21529 \@resetactivechars
21530 \global\let\@@if@newlist\if@newlist
21531 \global\@newlistfalse
21532 \@parboxrestore
21533 \global\let\bidi@BeforeOutputPageShipOut\@firstofone
21534 \bidi@beforeoutputpageshipouthook
21535 \shipout \vbox{%
21536 \set@typeset@protect
21537 \aftergroup \endgroup
21538 \aftergroup \set@typeset@protect
21539 % correct? or just restore by ending
21540 % the group?
21541 \if@specialpage
21542 \global\@specialpagefalse\@nameuse{ps@\@specialstyle}%
21543 \fi
21544 \if@twoside
21545 \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
21546 \if@RTLmain
21547 \let\@themargin\evensidemargin
21548 \else
21549 \let\@themargin\oddsidemargin
21550 \fi
21551 \else \let\@thehead\@evenhead \let\@thefoot\@evenfoot
21552 \if@RTLmain
21553 \let\@themargin\oddsidemargin
21554 \else
21555 \let\@themargin\evensidemargin
21556 \fi
21557 \fi
21558 \ifx\@thehead\@empty \let\@thehead\hfil \fi
21559 \ifx\@thefoot\@empty \let\@thefoot\hfil \fi
21560 \else %% not @twoside
21561 \ifx\@oddhead\@empty \let\@thehead\hfil \fi
21562 \ifx\@oddfoot\@empty \let\@thefoot\hfil \fi
21563 \fi
21564 \reset@font
21565 \normalsize
21566 \bidi@font@@outputpage

File latex-xetex-bidi.def 442


21567 \normalsfcodes
21568 \let\label\@gobble
21569 \let\index\@gobble
21570 \let\glossary\@gobble
21571 \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@
21572 \@begindvi
21573 \vskip \topmargin
21574 \moveright\@themargin \vbox {%
21575 \global\let\bidi@BeforeHeader\@firstofone
21576 \bidi@beforeheaderhook
21577 \setbox\@tempboxa \vbox to\headheight{%
21578 \vfil
21579 \color@hbox
21580 \normalcolor
21581 \hb@xt@\textwidth{\if@RTLmain\@RTLtrue\beginR\else\@RTLfalse\beginL\fi\@thehead\if@R
21582 \color@endbox
21583 }% %% 22 Feb 87
21584 \dp\@tempboxa \z@
21585 \box\@tempboxa
21586 \vskip \headsep
21587 \global\let\bidi@BeforeOutputBoxOutputPage\@firstofone
21588 \bidi@beforeoutputboxoutputpagehook
21589 \box\@outputbox
21590 \global\let\bidi@AfterOutputBoxOutputPage\@firstofone
21591 \bidi@afteroutputboxoutputpagehook
21592 \global\let\bidi@BeforeFooter\@firstofone
21593 \bidi@beforefooterhook
21594 \baselineskip \footskip
21595 \color@hbox
21596 \normalcolor
21597 \hb@xt@\textwidth{\if@RTLmain\@RTLtrue\beginR\else\@RTLfalse\beginL\fi\@thefoot\if@RTL
21598 \color@endbox
21599 \global\let\bidi@AfterFooter\@firstofone
21600 \bidi@afterfooterhook
21601 }%
21602 }%
21603 \global\let\bidi@AfterOutputPageShipOut\@firstofone
21604 \bidi@afteroutputpageshipouthook
21605 \global\let\if@newlist\@@if@newlist
21606 \global \@colht \textheight
21607 \stepcounter{page}%
21608 \let\firstmark\botmark
21609 \global\let\bidi@AtEndOutputPage\@firstofone
21610 \bidi@atendoutputpagehook
21611 }
21612 \long\def\@makecaption#1#2{%
21613 \vskip\abovecaptionskip
21614 \sbox\@tempboxa{#1: #2}%
21615 \ifdim \wd\@tempboxa >\hsize
21616 \if@RTL\beginR\fi#1: #2\if@RTL\endR\fi\par

File latex-xetex-bidi.def 443


21617 \else
21618 \global \@minipagefalse
21619 \hb@xt@\hsize{\if@RTL\beginR\fi\hfil\box\@tempboxa\hfil\if@RTL\endR\fi}%
21620 \fi
21621 \vskip\belowcaptionskip}
21622 \let\bidi@saved@eqno=\eqno
21623 \let\bidi@saved@leqno=\leqno
21624 \def\eqno{\ifnum\predisplaydirection<\z@ \bidi@saved@leqno \else \bidi@saved@eqno \fi}
21625 \def\leqno{\ifnum\predisplaydirection<\z@ \bidi@saved@eqno \else \bidi@saved@leqno \fi}
21626 \@ifpackageloaded{amsmath}{}{
21627 \def\@eqnnum{{\normalfont \normalcolor \if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi}}
21628 }
21629 \input{footnote-xetex-bidi.def}
21630 \if@twocolumn
21631 \let\autofootnoterule\relax
21632 \let\leftfootnoterule\relax
21633 \let\rightfootnoterule\relax
21634 \textwidthfootnoterule
21635 \fi
21636 \if@bidi@csundef{@idxitem}{}{%
21637 \renewcommand\@idxitem{\par\hangindent \if@RTL-\fi40\p@}%
21638 }
21639 \@ifpackageloaded{tocbasic}{\input{tocbasic-xetex-bidi.def}}{}
21640 \@ifclassloaded{article}{\@ifclassloaded{svmult}{}{\input{article-xetex-bidi.def}}}{}
21641 \@ifclassloaded{extarticle}{\input{extarticle-xetex-bidi.def}}{}
21642 \@ifclassloaded{artikel1}{\input{artikel1-xetex-bidi.def}}{}
21643 \@ifclassloaded{artikel2}{\input{artikel2-xetex-bidi.def}}{}
21644 \@ifclassloaded{artikel3}{\input{artikel3-xetex-bidi.def}}{}
21645 \@ifclassloaded{amsart}{\input{amsart-xetex-bidi.def}}{}
21646 \@ifclassloaded{letter}{\input{letter-xetex-bidi.def}}{}
21647 \@ifclassloaded{scrlettr}{\input{scrlettr-xetex-bidi.def}}{}
21648 \@ifclassloaded{extletter}{\input{extletter-xetex-bidi.def}}{}
21649 \@ifclassloaded{memoir}{\input{memoir-xetex-bidi.def}}{}
21650 \@ifclassloaded{refrep}{\input{refrep-xetex-bidi.def}}{}
21651 \@ifclassloaded{extreport}{\input{extreport-xetex-bidi.def}}{}
21652 \@ifclassloaded{report}{\@ifpackageloaded{flowfram}{}{\input{report-xetex-bidi.def}}}{}
21653 \@ifclassloaded{rapport1}{\input{rapport1-xetex-bidi.def}}{}
21654 \@ifclassloaded{rapport3}{\input{rapport3-xetex-bidi.def}}{}
21655 \@ifclassloaded{scrartcl}{\input{scrartcl-xetex-bidi.def}}{}
21656 \@ifclassloaded{scrbook}{\input{scrbook-xetex-bidi.def}}{}
21657 \@ifclassloaded{scrreprt}{\input{scrreprt-xetex-bidi.def}}{}
21658 \@ifclassloaded{amsbook}{\input{amsbook-xetex-bidi.def}}{}
21659 \@ifclassloaded{extbook}{\input{extbook-xetex-bidi.def}}{}
21660 \@ifclassloaded{boek}{\input{boek-xetex-bidi.def}}{}
21661 \@ifclassloaded{boek3}{\input{boek3-xetex-bidi.def}}{}
21662 \@ifclassloaded{book}{\@ifpackageloaded{flowfram}{}{\input{book-xetex-bidi.def}}}{}
21663 \@ifclassloaded{bookest}{\input{bookest-xetex-bidi.def}}{}
21664 \@ifclassloaded{combine}{\input{combine-xetex-bidi.def}}{}
21665 \@ifclassloaded{imsproc}{\input{imsproc-xetex-bidi.def}}{}
21666 \@ifpackageloaded{amsmath}{}{%

File latex-xetex-bidi.def 444


21667 \@iftagsloaded{leqno}{\input{leqno-xetex-bidi.def}}{}
21668 \@iftagsloaded{fleqn}{\input{fleqn-xetex-bidi.def}}{}
21669 }
21670 \@ifpackageloaded{mathtools}{%
21671 \RequirePackage{graphicx}%
21672 \input{mathtools-xetex-bidi.def}%
21673 }{}
21674 \@ifpackageloaded{crop}{\RequirePackage{graphicx}}{}
21675 \@ifpackageloaded{sidecap}{\RequirePackage{ragged2e}}{}
21676 \@ifpackageloaded{floatrow}{\RequirePackage{color}}{}
21677 \@ifpackageloaded{algorithm2e}{\input{algorithm2e-xetex-bidi.def}}{}
21678 \@ifpackagewith{algorithm2e}{algonl}{%
21679 \renewcommand{\theAlgoLine}{\expandafter\csname the\algocf@float\endcsname\@SepMark\arabic{Alg
21680 }{}
21681 \@ifpackagewith{algorithm2e}{algopart}{\renewcommand{\algocf@within}{part}}{}
21682 \@ifpackagewith{algorithm2e}{algochapter}{\renewcommand{\algocf@within}{chapter}}{}
21683 \@ifpackagewith{algorithm2e}{algosection}{\renewcommand{\algocf@within}{section}}{}
21684 \@ifpackageloaded{amsmath}{\input{amsmath-xetex-bidi.def}}{}
21685 \@ifpackageloaded{amstext}{\input{amstext-xetex-bidi.def}}{}
21686 \@ifpackageloaded{amsthm}{\input{amsthm-xetex-bidi.def}}{}
21687 \@ifpackageloaded{breqn}{\input{breqn-xetex-bidi.def}}{}
21688 \@ifpackageloaded{cals}{\input{cals-xetex-bidi.def}}{}
21689 \@ifpackageloaded{caption}{\input{caption-xetex-bidi.def}}{}
21690 \@ifpackageloaded{caption3}{\input{caption3-xetex-bidi.def}}{}
21691 \@ifpackageloaded{floatrow}{\input{floatrow-xetex-bidi.def}}{}
21692 \@ifpackageloaded{crop}{\@ifclassloaded{memoir}{}{\input{crop-xetex-bidi.def}}}{}
21693 \@ifpackageloaded{color}{\input{color-xetex-bidi.def}}{}
21694 \@ifpackageloaded{cutwin}{\input{cutwin-xetex-bidi.def}}{}
21695 \@ifpackageloaded{cuted}{\input{cuted-xetex-bidi.def}}{}
21696 \@ifpackageloaded{xcolor}{\input{xcolor-xetex-bidi.def}}{}
21697 \@ifpackageloaded{colortbl}{\input{colortbl-xetex-bidi.def}}{}
21698 \@ifpackageloaded{float}{\@ifpackageloaded{floatrow}{}{\input{float-xetex-bidi.def}}}{}
21699 \@ifpackageloaded{flowfram}{\input{flowfram-xetex-bidi.def}}{}
21700 \@ifpackageloaded{xltxtra}{\input{xltxtra-xetex-bidi.def}}{}
21701 \@ifpackageloaded{wrapfig}{\input{wrapfig-xetex-bidi.def}}{}
21702 \@ifpackageloaded{graphicx}{\input{graphicx-xetex-bidi.def}}{}
21703 \@ifpackageloaded{geometry}{\input{geometry-xetex-bidi.def}}{}
21704 \@ifpackageloaded{hvfloat}{\input{hvfloat-xetex-bidi.def}}{}
21705 \@ifpackageloaded{ntheorem}{\input{ntheorem-xetex-bidi.def}}{}
21706 \@ifpackageloaded{tabularx}{\input{tabularx-xetex-bidi.def}}{}
21707 \@ifpackageloaded{longtable}{\input{longtable-xetex-bidi.def}}{}
21708 \@ifpackageloaded{hyperref}{\input{hyperref-xetex-bidi.def}}{}
21709 \@ifpackageloaded{ntheorem-hyper}{\input{ntheorem-hyper-xetex-bidi.def}}{}
21710 \@ifpackageloaded{fancybox}{\input{fancybox-xetex-bidi.def}}{}
21711 \@ifpackageloaded{fancyhdr}{\input{fancyhdr-xetex-bidi.def}}{}
21712 \@ifpackageloaded{fix2col}{\input{fix2col-xetex-bidi.def}}{}
21713 \@ifpackageloaded{ftnright}{\input{ftnright-xetex-bidi.def}}{}
21714 \@ifpackageloaded{midfloat}{\input{midfloat-xetex-bidi.def}}{}
21715 \@ifpackageloaded{draftwatermark}{\input{draftwatermark-xetex-bidi.def}}{}
21716 \@ifpackageloaded{dblfnote}{\input{dblfnote-xetex-bidi.def}}{}

File latex-xetex-bidi.def 445


21717 \@ifpackageloaded{diagbox}{\input{diagbox-xetex-bidi.def}}{}
21718 \@ifpackageloaded{eso-pic}{\input{eso-pic-xetex-bidi.def}}{}
21719 \@ifpackageloaded{empheq}{\input{empheq-xetex-bidi.def}}{}
21720 \@ifpackageloaded{framed}{\input{framed-xetex-bidi.def}}{}
21721 \@ifpackageloaded{overpic}{\input{overpic-xetex-bidi.def}}{}
21722 \@ifpackageloaded{pdfbase}{\input{pdfbase-xetex-bidi.def}}{}
21723 \@ifpackageloaded{pdfpages}{\input{pdfpages-xetex-bidi.def}}{}
21724 \@ifpackageloaded{lettrine}{\input{lettrine-xetex-bidi.def}}{}
21725 \@ifpackageloaded{lineno}{\input{lineno-xetex-bidi.def}}{}
21726 \@ifpackageloaded{listings}{\input{listings-xetex-bidi.def}}{}
21727 \@ifpackageloaded{media9}{\RequirePackage{bidi-media9}}{}
21728 \@iftexfileloaded{pstricks}{\input{pstricks-xetex-bidi.def}}{}
21729 \@iftexfileloaded{pgfcorescopes.code}{\input{pgfcorescopes.code-xetex-bidi.def}}{}
21730 \@ifpackageloaded{titlesec}{\input{titlesec-xetex-bidi.def}}{}
21731 \@ifpackageloaded{titletoc}{\input{titletoc-xetex-bidi.def}}{}
21732 \@ifpackageloaded{array}{\input{array-xetex-bidi.def}}{}
21733 \@ifpackageloaded{sidecap}{\input{sidecap-xetex-bidi.def}}{}
21734 \@ifpackagewith{sidecap}{innercaption}{%
21735 \if@RTL \renewcommand*{\SC@FLOAT}[2]{%
21736 \isSC@ODD{{#2}\hspace{\sidecaptionsep}{#1}} {{#1}\hspace{\sidecaptionsep}{#2}}}
21737 \renewcommand*\SC@justify@caption{%
21738 \isSC@ODD{\RaggedRight}{\RaggedLeft}}\else
21739 \renewcommand*{\SC@FLOAT}[2]{%
21740 \isSC@ODD{{#1}\hspace{\sidecaptionsep}{#2}} {{#2}\hspace{\sidecaptionsep}{#1}}}
21741 \renewcommand*\SC@justify@caption{%
21742 \isSC@ODD{\RaggedLeft}{\RaggedRight}}\fi
21743 }{}
21744 \@ifpackagewith{sidecap}{rightcaption}{%
21745 \if@RTL\renewcommand*{\SC@FLOAT}[2]{{#1}\hspace{\sidecaptionsep}{#2}}
21746 \def\SC@justify@caption{\RaggedLeft}\else%
21747 \renewcommand*{\SC@FLOAT}[2]{{#2}\hspace{\sidecaptionsep}{#1}}
21748 \def\SC@justify@caption{\RaggedRight}\fi%
21749 }{}
21750 \@ifpackagewith{sidecap}{leftcaption}{%
21751 \if@RTL \renewcommand*{\SC@FLOAT}[2]{{#2}\hspace{\sidecaptionsep}{#1}}
21752 \def\SC@justify@caption{\RaggedRight}\else%
21753 \renewcommand*{\SC@FLOAT}[2]{{#1}\hspace{\sidecaptionsep}{#2}}
21754 \def\SC@justify@caption{\RaggedLeft}\fi%
21755 }{}
21756 \@ifpackageloaded{soul}{\input{soul-xetex-bidi.def}}{}
21757 \@ifpackageloaded{stabular}{\input{stabular-xetex-bidi.def}}{}
21758 \@ifpackageloaded{subfigure}{\input{subfigure-xetex-bidi.def}}{}
21759 \@ifpackageloaded{arydshln}{\input{arydshln-xetex-bidi.def}}{}
21760 \@ifpackageloaded{mdframed}{\input{mdframed-xetex-bidi.def}}{}
21761 \@ifpackageloaded{multicol}{\input{multicol-xetex-bidi.def}}{}
21762 \@ifpackageloaded{adjmulticol}{\input{adjmulticol-xetex-bidi.def}}{}
21763 \@ifpackageloaded{multienum}{\input{multienum-xetex-bidi.def}}{}
21764 \@ifpackageloaded{natbib}{\input{natbib-xetex-bidi.def}}{}
21765 \@ifpackageloaded{newfloat}{\input{newfloat-xetex-bidi.def}}{}
21766 \@ifpackageloaded{minitoc}{\input{minitoc-xetex-bidi.def}}{}

File latex-xetex-bidi.def 446


21767 \@ifpackageloaded{picinpar}{\input{picinpar-xetex-bidi.def}}{}
21768 \@ifpackageloaded{quotchap}{\input{quotchap-xetex-bidi.def}}{}
21769 \@ifpackageloaded{ragged2e}{\input{ragged2e-xetex-bidi.def}}{}
21770 \@ifpackageloaded{rotating}{\input{rotating-xetex-bidi.def}}{}
21771 \@ifpackageloaded{tabls}{\input{tabls-xetex-bidi.def}}{}
21772 \@ifpackageloaded{tabulary}{\input{tabulary-xetex-bidi.def}}{}
21773 \@ifpackageloaded{tcolorbox}{\input{tcolorbox-xetex-bidi.def}}{}
21774 \@ifpackageloaded{tocstyle}{\input{tocstyle-xetex-bidi.def}}{}
21775 \@ifpackageloaded{tocbibind}{\@ifclassloaded{memoir}{}{\input{tocbibind-xetex-bidi.def}}}{}
21776 \@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xetex-bidi.def}}}{}
21777 \@ifdefinitionfileloaded{tc-xetex}{\input{tc-xetex-bidi.def}}{}
21778 \@ifpackageloaded{todonotes}{\input{todonotes-xetex-bidi.def}}{}

128 File xltxtra-xetex-bidi.def


21779 \ProvidesFile{xltxtra-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for xltxtra package for
21780 \let\@@XeTeX\XeTeX
21781 \def\XeTeX{\@ensure@LTR{\@@XeTeX}}
21782 \let\@@XeLaTeX\XeLaTeX
21783 \def\XeLaTeX{\@ensure@LTR{\@@XeLaTeX}}

129 Index
Numbers written in italic refer to the page where the corresponding entry is described;
numbers underlined refer to the code line of the definition; numbers in roman refer to the
code lines where the entry is used.

Symbols \< . . . . . . . . . . . . . 18888 \@@LTR . . . . . . . 15816,


\# . .
3279, 3325, 3434, 3442 \= . . . 11749, 13970, 15966 15818, 20916, 20918
\% . .
. . . . . . . . . . . 11629 \> . . . . . . . . . . . . . 18889 \@@LaTeX . . . 20921, 20922
\' . .
. 11749, 13970, 15966 \@ . . . . . . . . . . . . . . 3349 \@@LaTeXe . . 20923, 20924
\( . .
. . . . . . . . . . . 14071 \@@ . . . . . . . . 19067, 19069 \@@RTL . . . . . . . 15815,
\) . .
. . . . . . . . . . . 14072 \@@@bidi@AfterClass 15818, 20915, 20918
\, . .
. . . . 5522, 12012, . . . . . . . 4208, 4213 \@@Radio . . . 13081, 13089
16560, 16603, \@@@bidi@AfterPackage \@@TeX . . . . . . . 15819,
20549, 20560, 20956 . . . . . . . 4253, 4257 15820, 20919, 20920
\- 1782, 11748, 13969, 15965 \@@H@@footnotetext \@@XeLaTeX . 21782, 21783
\. . . . . . . 93, 296, 586, . . . . . . . 9048, 9063 \@@XeTeX . . . 21780, 21781
718, 981, 1231, \@@H@@mpfootnotetext \@@author 6138, 6141, 6144
1781, 6709, 6897, . . . . . . . 9051, 9069 \@@bidi@AfterClass
7209, 8730, 9004, \@@HLTR@@LTRfootnotetext . . . . . . . 4207, 4224
10838, 13142, . . . . . . . 9049, 9065 \@@bidi@AfterPackage
15360, 16128, \@@HLTR@@mpLTRfootnotetext . . . . . . . 4252, 4267
16522, 16719, . . . . . . . 9052, 9071 \@@bidi@PreventPackageFromLoading
16922, 17330, \@@HRTL@@RTLfootnotetext . . . 4298, 4300, 4302
17910, 18593, 19254 . . . . . . . 9050, 9067 \@@bidi@pop . . . . 3920,
\/ . . . . . . . . . . . . . . 2050 \@@HRTL@@mpRTLfootnotetext 3923, 3924, 3927, 3929
\: . . . . . . . . 14113, 14172 . . . . . . . 9053, 9073 \@@bidi@popinto . . .

Index 447
. . . 3920, 3923, 3924 18332, 19179, 11421, 11465,
\@@clr . . 20744, 20749, 19181, 21037, 21152 11491, 11549,
20752, 20754, \@@para@footstart@@v@l 11574, 11580,
20755, 20757, . . . . . 10428, 10486 12515, 12543,
20787, 20792, \@@protect . . . . . . . 3210 12622, 12641,
20795, 20797, \@@startpbox . . 13844, 12835, 12839,
20798, 20800, 20819 18964, 19002, 21146 12859, 12860,
\@@cls . . . . . 20739, 20782 \@@title . 6137, 6140, 6143 13905, 14026,
\@@date . . 6139, 6142, 6145 \@@tmp . . . . . . . 20748, 15154, 15155,
\@@end . . . . . . . 3574, 3575 20749, 20754, 15156, 17059,
\@@endpbox . . . 13845, 20755, 20757, 17065, 17378,
18964, 19002, 21146 20758, 20791, 17379, 17389,
20792, 20797, 17608, 17614,
\@@footstart@@v@l .
20798, 20800, 17958, 17959,
. 9278, 10428, 10486
20801, 20819, 20820 17969, 18307,
\@@if@newlist . 11160,
\@@underline . . . . . . 18313, 18641,
11192, 21530, 21605
. 21119, 21121, 21123 18642, 18652,
\@@input . . . . . . . . . 4123
\@DEBUGfalse . . . . . . 2330 19033, 19050, 19142
\@@italiccorr . . . . .
\@False . . . . . . 7232, 7234 \@LTRmarginparfalse
. . . 336, 7253, 13950
\@LTRbibitemsfalse . . . . . 21513, 21515
\@@line . . . . . . . 9372, . . . . . 20970, 20972 \@LTRmarginparreset
9376, 16948, \@LTRbibitemstrue 20971 . . . . . 21412, 21419
16957, 16995, \@LTRbidituftesidenote@sidenote \@LTRmarginpartrue 21514
17006, 21098, . . . 5638, 5697, 5701 \@LTRsavemarbox 21399,
21099, 21101, \@LTRbidituftesidenotemarginparreset 21400, 21403, 21406
21102, 21104, 21105 . . . . . . . 5273, 5280 \@LTRxmpar . 21397, 21398
\@@makecaption . . . . \@LTRbidituftesidenotesavemarbox\@LTRympar . 21397, 21402
. . 17372, 17451, . . . . . . . . 5260, \@M . 6, 92, 105, 201, 225,
17473, 17952, 5261, 5264, 5267 295, 558, 622, 623,
18031, 18053, \@LTRbidituftesidenotexmpar 647, 751, 874, 929,
18635, 18714, 18736 . . . . . . . 5258, 5259 930, 1003, 1123,
\@@makefnmark . 17094, \@LTRbidituftesidenoteympar 1124, 1130, 1253,
17096, 17643, . . . . . . . 5258, 5263 2113, 2118, 5869,
17645, 18213, \@LTRfootgroupv@l . 6630, 6631, 6637,
18214, 18342, 18344 . . . . . . . . 9271, 6751, 6807, 6808,
\@@math . . . . . . . . . . 7244 9279, 10426, 10484 6814, 6928, 6978,
\@@mix . . . . . 20743, 20786 \@LTRfootnotetext . 7173, 7181, 7248,
\@@mod . . 20744, 20748, . . . . . . . 64, 81, 8697, 8710, 8967,
20749, 20752, 155, 156, 157, 266, 8976, 9372, 9376,
20753, 20754, 284, 2186, 2308, 10804, 10812,
20757, 20787, 5567, 5650, 5657, 11133, 13141,
20791, 20792, 6373, 6384, 6590, 13155, 13179,
20795, 20796, 6604, 8202, 8203, 15013, 15025,
20797, 20800, 20819 9049, 9064, 9065, 15037, 15904,
\@@par . . . . . . . 13968, 9135, 9183, 9191, 16026, 16027,
15964, 16555, 9388, 9497, 9600, 16051, 16161,
16598, 17077, 9709, 9818, 9927, 16300, 16423,
17084, 17626, 10036, 10145, 16476, 16477,
17633, 18199, 10254, 10413, 16538, 16539,
18204, 18325, 10471, 11415, 16893, 16901,

Index 448
19058, 19165, 1220, 1666, 1672, 10037, 10146,
19206, 19340, 1690, 2556, 6698, 10255, 10414,
19371, 19394, 6886, 7195, 7214, 10472, 11406,
19411, 19428, 7226, 7239, 8719, 11412, 11449,
19445, 19462, 8990, 9109, 9137, 11490, 11550,
19479, 19497, 9150, 9161, 9402, 11589, 11595,
19516, 19536, 9412, 9447, 9459, 12514, 12532,
19571, 19904, 9511, 9520, 9553, 12607, 12642,
20365, 20479, 21177 9564, 9614, 9624, 12834, 12838,
\@MM . . . 41, 55, 71, 244, 9659, 9671, 9723, 12856, 12857,
258, 273, 8200, 9733, 9768, 9780, 13906, 14027,
8221, 8268, 8275, 9832, 9842, 9876, 15158, 15159,
8320, 8327, 9299, 9888, 9941, 9951, 15160, 17060,
11438, 11455, 11471 9985, 9997, 10050, 17069, 17380,
\@Mi . . . . . . . . 7244, 13919 10060, 10095, 17381, 17391,
\@Mii . 2261, 5201, 5245, 10107, 10159, 17609, 17618,
5289, 7723, 7732, 10169, 10204, 17960, 17961,
7742, 7897, 7906, 10216, 10268, 17971, 18308,
7916, 21384, 21428 10278, 10313, 18317, 18643,
\@Miii 2263, 5203, 5247, 10325, 10647, 18644, 18654,
5291, 21386, 21430 10666, 10827, 19034, 19051, 19143
\@RTL@footnotefalse 11433, 11466, \@RTLmainfalse . 1591,
. . . 1708, 11258, 11509, 11523, 1595, 1874, 1878
11425, 15799, 13136, 13459, \@RTLmaintrue . 1594, 1877
15804, 20883, 20904 13482, 13486, \@RTLmarginparfalse
\@RTL@footnotetrue 13493, 13502, . . . . . 21514, 21515
. . . 1706, 11258, 13959, 14766, \@RTLmarginparreset
11424, 15801, 15351, 15515, . . . . . 21456, 21463
15803, 20893, 20903 15563, 15761, \@RTLmarginpartrue 21513
\@RTLbibitemsfalse 15795, 15799, \@RTLsavemarbox 21443,
. . . . . 20971, 20972 15804, 15853, 21444, 21447, 21450
\@RTLbibitemstrue 20970 16117, 16511, \@RTLtabfalse . . 409,
\@RTLbidituftesidenote@sidenote 16705, 16908, 1570, 1678, 20877,
. . . 5667, 5698, 5702 17308, 17888, 20883, 20904,
\@RTLbidituftesidenotemarginparreset 18571, 19240, 21052, 21070, 21157
. . . . . . . 5317, 5324 20841, 20876, \@RTLtabtrue . . . . . .
\@RTLbidituftesidenotesavemarbox 20883, 20904, . . . . 1569, 1676,
. . . . . . . . 5304, 21052, 21070, 20868, 20893,
5305, 5308, 5311 21510, 21581, 21597 20903, 20940,
\@RTLbidituftesidenotexmpar \@RTLfootnotetext . 20947, 21061, 21079
. . . . . . . 5302, 5303 . . . . . . . 48, 80, \@RTLtrue . . . . . . 36,
\@RTLbidituftesidenoteympar 159, 160, 161, 251, 50, 87, 239, 253,
. . . . . . . 5302, 5307 283, 2187, 2309, 290, 572, 707, 970,
\@RTLcolumnfootnotesfalse 5585, 5679, 5686, 1220, 1664, 1670,
. . . . . . . . . . . 9201 6374, 6385, 6591, 1688, 2556, 6698,
\@RTLcolumnfootnotestrue 6605, 8223, 8224, 6886, 7195, 7253,
. . . . . . . . . . . 9200 9050, 9066, 9067, 7255, 8719, 8990,
\@RTLfalse . . . . . 36, 9121, 9184, 9192, 9109, 9123, 9150,
66, 87, 239, 268, 9389, 9498, 9601, 9172, 9402, 9422,
290, 572, 707, 970, 9710, 9819, 9928, 9447, 9472, 9511,

Index 449
9529, 9553, 9576, 8833, 8946, 8948, 18531, 18534,
9614, 9634, 9659, 8950, 8952, 8953, 18536, 18538,
9684, 9723, 9743, 8954, 8955, 8956, 18540, 18543,
9768, 9793, 9832, 10930, 10931, 18547, 18551,
9852, 9876, 9901, 10932, 10933, 19314, 19558,
9941, 9961, 9985, 10934, 10936, 20967, 20969, 21679
10010, 10050, 10938, 10940, \@Submit . . . 13097, 13106
10070, 10095, 11100, 11106, \@TextField . 13065, 13073
10120, 10159, 11228, 11230, \@True . . . 7227, 7233, 7265
10179, 10204, 11232, 11234, \@Undottedtocline 15020
10229, 10268, 11235, 11236, \@Undottedtoclinep 15032
10288, 10313, 11237, 11238, \@acci 11749, 13970, 15966
10338, 10637, 11241, 11243, \@accii 11749, 13970, 15966
10657, 10827, 11245, 11247, \@acciii . . . . . . . . .
11433, 11450, 11248, 11249, . 11749, 13970, 15966
11495, 11523, 11250, 11251, \@acol 1437, 1445, 2195,
13136, 13459, 13192, 13193, 13841, 18948,
13482, 13493, 13194, 13195, 20949, 21129, 21155
13502, 13962, 13519, 14653, \@acolampacol . . 1435,
14766, 15351, 14655, 14657, 1437, 1443, 1445
15762, 15787, 14659, 14661, \@addamp . . . . . 1436, 1444
15801, 15803, 14662, 14664, \@addfield . . . . . . 21519
16117, 16511, 14665, 14666, \@addmarginpar . . . 21469
16705, 16908, 15394, 15402, \@address . . . . . 2448,
17308, 17888, 15404, 16132, 8057, 8058, 8155, 8157
18571, 19240, 16133, 16134, \@addresscolour 2417,
20842, 20867, 16135, 16136, 2434, 8056, 8154
20893, 20903, 16138, 16140, \@addtofilelist . . . 4122
21061, 21079, 16142, 16497, \@addtopreamble . . .
21510, 21581, 21597 16498, 16499, . . . 1408, 1471, 7326
\@RTLxmpar . 21441, 21442 16500, 16501, \@addtoreset . . . . . .
\@RTLympar . 21441, 21446 16503, 16505, . . . . 332, 11103,
\@Reset . . . . 13114, 13123 16507, 16692, 15392, 15398, 15400
\@SepMark . . . . . . 19, 16694, 16696, \@addviper . . . . . . . 7670
20, 21, 22, 168, 16697, 16698, \@afterheading . . . .
214, 215, 216, 217, 16699, 16700, . 568, 2096, 2106,
334, 350, 546, 547, 16701, 16874, 8707, 8715, 13982
548, 549, 700, 701, 16876, 16878, \@afterindentfalse
702, 703, 954, 955, 16880, 16881, . . 2096, 2106, 13981
956, 957, 1213, 16882, 16883, \@afterindenttrue .
1214, 1215, 1216, 16884, 17282, . . 647, 874, 1130,
6724, 6725, 6726, 17283, 17285, 5868, 6637, 6814,
6727, 6728, 6730, 17287, 17289, 15012, 15024,
6732, 6734, 6901, 17830, 17833, 15036, 16051,
6902, 6903, 6904, 17835, 17839, 16423, 19339,
6905, 6907, 6909, 17841, 17843, 19370, 19393,
6911, 7152, 7154, 17845, 17849, 19410, 19427,
7156, 7158, 7159, 17851, 17857, 19444, 19461,
7160, 7161, 7162, 17859, 17865, 19478, 19496,
8830, 8831, 8832, 17867, 18529, 19515, 19535,

Index 450
19570, 19903, 16134, 16135, \@arstrut . . . . . 394,
20358, 20478, 21176 16136, 16138, 13864, 18963, 21145
\@algocf@finish . . . 179 16140, 16142, \@arstrutbox . . . 387,
\@algocf@start . . . . 171 16497, 16498, 13852, 13909,
\@ampacol . . . . 1435, 1443 16499, 16500, 18956, 18997,
\@arabic . . . . . . 168, 16501, 16503, 19001, 19005, 21138
546, 547, 548, 549, 16505, 16507, \@author . . . . . . 428,
574, 581, 700, 701, 16513, 16520, 442, 478, 499, 762,
702, 703, 709, 716, 16692, 16694, 764, 782, 827, 846,
954, 955, 956, 957, 16696, 16697, 1014, 1016, 1034,
972, 979, 1213, 16698, 16699, 1079, 1098, 1264,
1214, 1215, 1216, 16700, 16701, 1266, 1284, 1329,
1222, 1229, 2568, 16707, 16714, 1349, 1360, 1995,
6700, 6707, 6724, 16874, 16876, 6070, 6072, 6141,
6725, 6726, 6727, 16878, 16879, 6762, 6764, 6782,
6728, 6730, 6732, 16880, 16881, 6939, 6941, 6959,
6734, 6888, 6895, 16882, 16883, 7034, 7048, 7084,
6901, 6902, 6903, 16884, 16910, 7105, 8757, 8769,
6904, 6905, 6907, 16917, 17283, 8803, 8822, 8852,
6909, 6911, 7152, 17285, 17287, 8866, 8902, 8923,
7154, 7156, 7157, 17289, 17311, 10857, 10869,
7158, 7159, 7160, 17327, 17837, 10903, 10922,
7161, 7162, 7197, 17839, 17841, 14622, 16172,
7204, 8721, 8728, 17843, 17845, 16174, 16192,
8830, 8831, 8832, 17853, 17861, 16237, 16256,
8833, 8946, 8948, 17869, 17891, 16311, 16313,
8950, 8951, 8952, 17907, 18532, 16333, 16380,
8953, 8954, 8955, 18534, 18536, 16402, 16413,
8956, 8992, 8999, 18538, 18540, 16569, 16583,
10829, 10836, 18544, 18548, 16624, 16645,
10930, 10931, 18552, 18574, 16756, 16770,
10932, 10933, 18590, 19242, 19249 16806, 16827,
10934, 10936, \@argdef . . . . . . . . . 3170 17151, 17214,
10938, 10940, \@array 384, 405, 1370, 17265, 17700,
11228, 11230, 1371, 18985, 21135 17763, 17814,
11232, 11233, \@arrayacol . . . . . . 21155 18399, 18462, 18513
11234, 11235, \@arrayclassiv . . . 21156 \@auxout . . . . . . 1726,
11236, 11237, 1730, 2611, 2946,
\@arrayclassz . . . . .
11238, 11241, 2974, 3000, 3028,
. 1435, 18989, 21155
11243, 11245, 3054, 3057, 3091,
\@arraycr 404, 13850, 21157
11246, 11247, 3094, 6537, 21221
\@arrayleft . . . . . . . 397 \@badmath . . 11065, 11079
11248, 11249,
11250, 11251, \@arrayparboxrestore \@begin@tempboxa . .
13519, 13521, . . . . . 13908, 15961 . . . . . . . 12025,
14653, 14655, \@arrayright . . . . . . 406 12121, 12128, 21037
14657, 14659, \@arrayrule 1390, 1391, \@begindvi . 11131, 21572
14661, 14664, 1392, 1428, 1429, 1430 \@beginparpenalty .
14665, 14666, \@arstdepth . . . . . . . . . . . . . . . 2109,
16119, 16126, . 18982, 18987, 19005 2118, 11068, 11082
16132, 16133, \@arstheight 18987, 19005 \@bib@break . . . . . . .

Index 451
. 17303, 17883, 18566 10034, 10143, \@bidi@logo . . . . 1626,
\@biblabel . . 89, 292, 10252, 10411, 10465 1645, 1901, 1917
574, 575, 709, 710, \@bidi@copy@stacktop \@bidi@logo@ . . . . . .
972, 973, 1222, . . . . . . . 3926, 3929 . . . . 1610, 1642,
1223, 6700, 6701, \@bidi@copyins@ 1606, 1741, 1893, 1917, 1918
6888, 6889, 7197, 1607, 1608, 1609, \@bidi@logo@hb@xt@
7198, 8721, 8722, 1610, 1889, 1890, . . . . . . . 1894, 1917
8992, 8993, 10829, 1891, 1892, 1893, \@bidi@logo@hb@xt@columnwidth
10830, 13138, 9282, 9284, 9287, . . . . . . . 1611, 1643
15353, 16119, 11777, 11778, \@bidi@lst@makecaption
16120, 16513, 11779, 11780, . . . . . . . 13456,
16514, 16707, 11790, 11791, 13472, 13473,
16708, 16910, 11839, 11840, 13504, 13505,
16911, 17311, 11896, 11897, 13506, 13510, 13512
17313, 17891, 11898, 11899, \@bidi@mdf@RTLtrue 13958
17893, 18574, 11916, 11917, \@bidi@patch@AfterPackage
18576, 19242, 19243 11935, 11944, . . . . . . . 4578, 4581
\@bibsetup . . . . . . 15353 11956, 11962, \@bidi@pdfcreator .
\@bibtitlestyle . . . 11966, 11978, . . . . . . . . 1581,
. . . . . 84, 287, 13133 11980, 11983, 1815, 1919, 1933
\@bidi@@stpelt . . . . 12014, 15182, \@bidi@pdfcustomproperties
. . . 3642, 3648, 3652 15183, 15272, . . . . . . . . 1587,
\@bidi@AfterClass . 15828, 15830, 1818, 1925, 1936
. . . . . . . . 4208, 15831, 21346, \@bidi@pdfencryptfalse
4229, 4234, 4241 21352, 21355, . . . . . . . . . . . 1795
21369, 21371, 21374 \@bidi@pdfencrypttrue
\@bidi@AfterPackage
\@bidi@emptytoks . . . . . . . . . 1797, 1800
. . . . . . . . 4253,
. . . 2660, 2665, 2689 \@bidi@pdfm@markfalse
4272, 4276, 4283
\@bidi@envbody . . . . . . . . . . . 1748, 1941
\@bidi@EqualStringX
. . . . 2659, 2661, \@bidi@pdfm@marktrue
. . . 3707, 3708, 3709
2663, 2664, 2665, . . . . . . . 1746, 1940
\@bidi@PreventPackageFromLoading 2685, 2687, 2688, 2689 \@bidi@pdfproducer
. . . 4293, 4294, 4296 \@bidi@fi . . . . . 3788, . . . . . . . . 1584,
\@bidi@UnPreventPackageFromLoading 3789, 3790, 3791, 1816, 1922, 1934
. . . 4385, 4386, 4389 3795, 3796, 3800, \@bidi@perpage@footnotefalse
\@bidi@after@Hy@hyperfootnotes 3801, 3805, 3806, . . . . . . . . . . . 1758
. . . . 9058, 9196, 3811, 3812, 3816, 3817 \@bidi@perpage@footnotetrue
9397, 9506, 9609, \@bidi@ifnxtc . . . . . . . . . . . . . . . . 1756
9718, 9827, 9936, . . . 3755, 3758, 3759 \@bidi@prepend@to@cslist
10045, 10154, \@bidi@info 1506, 1531, . . . . . . . . 3856,
10263, 10432, 10494 1533, 1830, 1855, 1857 3859, 3870, 3912, 3914
\@bidi@append@to@cslist \@bidi@inslogo@ . . . \@bidi@prepend@to@list
. . . 3854, 3858, 3868 . . . . 1610, 1739, . . . . . . . . 3859,
\@bidi@append@to@list 1741, 1893, 1918, 1943 3862, 3866, 3872, 3880
. . . . . . . . 3858, \@bidi@list@minipage@parbox@not@nobtrue
\@bidi@removefromreset
3861, 3864, 3871, 3879 . . . . . 11538, 21025 . . . 2786, 2787, 2789
\@bidi@before@Hy@hyperfootnotes \@bidi@list@minipage@parboxfalse \@bidi@replacefilewithext
. . . . 9044, 9189, . . . . . . . . . . 19152 . . . 4170, 4174, 4177
9386, 9495, 9598, \@bidi@list@minipage@parboxtrue \@bidi@saveprimitive
9707, 9816, 9925, . 11539, 21029, 21032 . . . . . . . . . . . 2647

Index 452
\@bidi@stepcounter \@bidituftefloat@caption@fill \@bidituftefloat@orig@caption
. . . . . . . 3641, 3647 . . . . . . . . 4747, . . . 4837, 4865, 4895
\@bidi@tabular@RTLcases 4756, 4757, 5138 \@bidituftefloat@orig@endfloat
. 20938, 20940, 20947 \@bidituftefloat@caption@font . . . 4800, 4878, 5129
\@bidi@todonotes@align 4712, 4713, 4767, \@bidituftefloat@orig@float
. . . . . . . 20525, 4964, 5135, 5141, 5154 . . . 4799, 4852, 5128
20526, 20558, \@bidituftefloat@caption@justification
\@bidituftefloat@orig@label
20599, 20602, . . . 4654, 4770, 4964 . . . . . . . . 4838,
20605, 20608, \@bidituftefloat@caption@vertical@offset4846, 4866, 4896
20633, 20638, 20639 . . . . 4801, 4802, \@bidituftefloat@overhang
\@bidi@todonotes@figposition@rightfalse 4810, 4874, 4875, 4902 4745, 4749, 4750,
. . . . . . . . . . 20540 \@bidituftefloat@checkoddpage 4948, 4949, 4988, 4989
\@bidi@todonotes@figposition@righttrue . . . . . . . 4729, 4826 \@bidituftefloat@pkgname
. . . . . . . . . . 20538 \@bidituftefloat@figure@box . . . 4629, 4630, 4632
\@bidi@todonotes@textdirection . . . . . . . . 4797, \@bidituftefloat@stored@caption
. . 20527, 20531, 4856, 4874, 4875, 4897 . . . . . . . . 4804,
20534, 20638, 20639 \@bidituftefloat@float@contents@width 4811, 4865, 4900
\@bidi@todonotes@textdirection@RTLfalse . . . . . . . . 4818, \@bidituftefloat@stored@label
. . . . . . . . . . 20533 4854, 4855, 4857 . . . . 4805, 4814,
\@bidi@todonotes@textdirection@RTLtrue
\@bidituftefloat@float@debug 4866, 4882, 4884, 4901
. . . . . . . . . . 20530 . . . . 4787, 4793, \@bidituftefloat@stored@shortcaption
\@bidi@unreplacefilewithext 4795, 4796, 4828, . . . . . . . . 4803,
. . . 4179, 4185, 4188 4829, 4832, 4834, 4808, 4809, 4865, 4899
\@bidi@void@@mpfootinsfalse 4835, 4912, 4919, \@bidituftegeneralstructure@reset@par
. . . . . . . . . . . 9338 4926, 4927, 4930, 4931 . . . . . . . 5914, 5920
\@bidi@void@@mpfootinstrue\@bidituftefloat@float@debug@info \@biditufteheading@newlinetospace
. . . . . . . . . . . 9336 . . . . 4786, 4788, . . . . . . . 4970, 4979
\@bidi@void@footinsfalse 4789, 4790, 4887, 4894 \@biditufteheading@newlinetospace@i
. . . . . 10739, 10753 \@bidituftefloat@float@fullwidth . . . . . . . 4971, 4973
\@bidi@void@footinstrue . . . . . . . 4874, 4922 \@biditufteheading@orig@cr
. . . . . 10736, 10751 \@bidituftefloat@float@textwidth . . . . . . . 4978, 4982
\@bidi@w@w . . . . . . . 3837 . . . . . . . 4875, 4904 \@bidituftesidenote@LTRcitation@font
\@bidi@ww . . . . . . . . 3831 \@bidituftefloat@fps . . . 5340, 5349, 5439
\@bidideclaredcolor . . . . . . . 4816, 4831 \@bidituftesidenote@LTRmarginfont
. . . . . . . . 7378, \@bidituftefloat@fullwidth . . . . . . . . 5331,
7385, 20779, 20808 . . . . . . . . 4746, 5334, 5337, 5340
\@biditufteLTRsidenote@normal@cite 4752, 4753, 4754, 4854 \@bidituftesidenote@LTRmarginnote@font
. . . . . . . . 5433, \@bidituftefloat@justification . . . 5337, 5346, 5718
5512, 5632, 5661, . . . . . . . . . . . 4714 \@bidituftesidenote@LTRsidenote@font
5690, 5712, 5721, 5730 \@bidituftefloat@justification@autodetect. . . . . . . 5334, 5343
\@biditufteRTLsidenote@normal@cite . . . . . . . 4654, 4784 \@bidituftesidenote@RTLcitation@font
. . . . . . . . 5452, \@bidituftefloat@label . . . . . . . 5341, 5350
5513, 5633, 5662, . . . . . . . 4813, 4840 \@bidituftesidenote@RTLmarginfont
5691, 5713, 5722, 5731 \@bidituftefloat@margin@floatbox . . . . . . . . 5332,
\@bidituftefloat@caption . . . 4762, 4765, 4776 5335, 5338, 5341
. . . . . . . 4806, 4839 \@bidituftefloat@margin@par \@bidituftesidenote@RTLmarginnote@font
\@bidituftefloat@caption@box . . . . . . . 4684, 4771 . . . 5338, 5347, 5727
4798, 4863, 4874, \@bidituftefloat@marginfont \@bidituftesidenote@RTLsidenote@font
4875, 4898, 5133, 5138 . . . . . . . 4711, 4712 . . . . . . . 5335, 5344

Index 453
\@bidituftesidenote@add@citation 5607, 5613, 5615, 11960, 11961,
. . . . . . . 5474, 5507 5621, 5628, 5642, 11971, 11972,
\@bidituftesidenote@check@multiple@sidenotes
5644, 5650, 5657, 13923, 13928,
. . . . . . . 5532, 5540 5671, 5673, 5679, 5686 13940, 15822,
\@bidituftesidenote@citation@font \@bidituftesidenote@trim@b 21331, 21335,
. . . . . . . . 5339, . . . . . . . 5384, 5391 21347, 21351, 21362
5348, 5420, 5458, 5486 \@bidituftesidenote@trim@c\@cclvi . . . . . . 10455,
\@bidituftesidenote@citation@justification
. . . 5388, 5391, 5396 10457, 10517, 10519
. . . . . . . 5353, 5487 \@bidituftesidenote@trim@spaces \@centercr 5942, 15912,
\@bidituftesidenote@citations 5373, 5376, 5425, 15925, 15938,
. . . . 5473, 5475, 5427, 5444, 5446, 19158, 19187, 21088
5476, 5478, 5483, 5463, 5465, 5495, 5497 \@cftasnum . . . 19344,
5492, 5611, 5640, \@bidituftesidenotemarginparreset19375, 19398,
5669, 5708, 5717, 5726 . . . . . . . 5229, 5236 19415, 19432,
\@bidituftesidenotesavemarbox
\@bidituftesidenote@infootnote@cite 19449, 19466,
5506, 5610, 5639, . . . . . . . . 5216, 19483, 19501,
5668, 5707, 5716, 5725 5217, 5220, 5223 19520, 19540, 19575
\@bidituftesidenotexmpar \@cftasnumb . . . 19345,
\@bidituftesidenote@justification@autodetect
. . . . . . . . 5351, . . . . . . . 5214, 5215 19376, 19399,
5352, 5353, 5354 \@bidituftesidenoteympar 19416, 19433,
\@bidituftesidenote@margin@par . . . . . . . 5214, 5219 19450, 19467,
. . . . . . . . 5355, \@bidituftetoc@lof@line 19484, 19502,
5488, 5555, 5573, . . . . . . . 5861, 5877 19521, 19541, 19576
5591, 5709, 5718, 5727 \@bidituftetoc@pkgname \@cftbsnum . . . 19343,
\@bidituftesidenote@marginfont . . . . . . . 5737, 5738 19374, 19397,
. . . . . . . . 5330, \@bidiundeclaredcolor 19414, 19431,
5333, 5336, 5339 . . . . 7378, 7379, 19448, 19465,
\@bidituftesidenote@marginnote@font 20779, 20780, 20819 19482, 19500,
. . . 5336, 5345, 5709 \@bscontmark . . . . . 14645 19519, 19539, 19574
\@bsmarkseries . . . 14626 \@cftdopartfalse . 19317
\@bidituftesidenote@marginnote@justification
. . . . . . . . 5352, \@bsmtitlempty . . . 14614 \@cftdoparttrue . . .
5709, 5718, 5727 \@bsphack . . . . . . . . . . . . . 19320, 19324
\@bidituftesidenote@normal@cite 2260, 5200, 5244, \@cftl@subfig . . . . 19508
. . . . . . . . 5414, 5288, 21383, 21427 \@cftl@subtab . . . . 19528
5511, 5631, 5660, \@bsthanksheadpost 14628 \@chapapp . 6973, 7168,
5689, 5711, 5720, 5729 \@bsthanksheadpre 14628 8962, 10800, 16889
\@bidituftesidenote@print@citations
\@caption . . . . . . . . \@chapterlistsgap@off
5480, 5630, 5659, . 4955, 14748, 14751 . . . . . . . . . . 15386
5688, 5710, 5719, 5728 \@captionabovefalse \@chapterlistsgap@on
\@bidituftesidenote@sidenote . 17491, 18071, 18754 . . . . . 15393, 15401
. . . 5609, 5696, 5700 \@captionabovetrue \@chclass . . 352, 364,
\@bidituftesidenote@sidenote@citations . 17489, 18069, 18752 375, 1377, 1389,
. . . . . . . . . . . 5505 \@captype . . . . . 2200, 1402, 1422, 1427,
\@bidituftesidenote@sidenote@font2248, 2296, 4768, 19086, 19102,
. . . . . . . . 5333, 14741, 14745, 19113, 21158, 21163
5342, 5518, 5519, 5522 14748, 16932, 16975 \@checkend . . . . 2678,
\@bidituftesidenote@sidenote@justification
\@cclv 8235, 8292, 10708, 2702, 4463, 4464
. . . 5351, 5518, 5519 10709, 10737, \@chnum . 353, 360, 371,
\@bidituftesidenote@sidenote@vertical@offset
10748, 11911, 1378, 1385, 1398,
. . . . . . . . 5606, 11923, 11957, 1408, 1424, 1425,

Index 454
1426, 1439, 1447, \@colourgreentrue . \@contpre . . . . 14694,
1473, 7328, 19087, . . . . . . . 7976, 8074 14700, 14705, 14710
19094, 19109, \@colourgreyfalse . \@conttfont . . . . . . .
21160, 21161, 21162 . . . . . . . 7979, 8077 . . 14684, 14696,
\@circlefnt . . . . . . 10959 \@colourgreytrue . . 14702, 14708, 14712
\@classiv . . . . . 2197, . . . . . . . 7980, 8078 \@curfield . . . . . . .
13842, 18950, \@colourorangefalse 6553, 6568, 6588,
20951, 21131, 21156 . . . . . . . 7973, 8071 6602, 6612, 21519
\@classx . 1405, 1464, 7322 \@colourorangetrue \@curline . . . . . 6551,
\@classz . . . . . . 1405, . . . . . . . 7974, 8072 6566, 21519, 21521
1464, 1498, 1499, \@colourredfalse . . \@currbox . 2268, 2299,
2196, 7322, 13842, . . . . . . . 7977, 8075 2303, 5165, 5168,
18949, 18989, \@colourredtrue 7978, 8076 5209, 5212, 5217,
20950, 21130, 21155 \@colourtrue . . . . . . 2359 5221, 5253, 5256,
\@colroom . . . . . 7736, 5261, 5265, 5297,
\@cleartopmattertags
7759, 7762, 7764, 5300, 5305, 5309,
. . . . . . . 129, 13215
7765, 7934, 7937, 21392, 21395,
\@cliptoboxdim . . . 19116
7939, 7940, 8235, 21400, 21404,
\@clsextension . . . . 8292, 11889, 21436, 21439,
4177, 4188, 4204, 11903, 11906, 21444, 21448,
4214, 4223, 4226, 4235 11908, 13934, 13943 21470, 21479, 21511
\@clubpenalty . . . . . \@combinedblfloats \@currentHlabel . . .
. 584, 7207, 9002, . . . . 7591, 7650, . 12600, 12615, 12630
16717, 16920, 19252 11018, 11054, \@currentHref . . . . .
\@colht . . . . . . . 7747, 11135, 11822, . . 12601, 12616,
7748, 7758, 7759, 11875, 14853, 12631, 12690,
7766, 7781, 7815, 14950, 21270, 21313 12728, 12761,
7818, 7840, 7841, \@combinefloats . . . 12792, 12823,
7910, 7922, 7923, . . . . . 10693, 11991 13045, 13056, 13058
7933, 7934, 7941, \@compactenum@ . . . . 5924 \@currentlabel . . 43,
7958, 7962, 10698, \@cons . . . . . 21469, 21470 57, 73, 246, 260,
11154, 11889, \@contcshortstyle 14696 275, 5557, 5575,
11901, 11902, \@contcstyle . . . . . . 5593, 9115, 9129,
11903, 11905, . 14701, 14707, 14712 9143, 9155, 9166,
11907, 11995, \@contcwidth 14690, 14691 9177, 9406, 9416,
13934, 13935, \@contdelim . . . . . . . 9426, 9452, 9465,
14789, 14792, . . 14684, 14695, 9477, 9515, 9524,
14794, 14796, 14699, 14706, 14711 9533, 9558, 9570,
14801, 14802, \@contfield . . . . . . . 9581, 9618, 9628,
14803, 14822, . . . 6554, 6569, 6601 9638, 9664, 9677,
14823, 14824, \@contfinal . . . . . . . 9689, 9727, 9737,
14828, 14889, . . 14684, 14696, 9747, 9773, 9786,
14892, 14894, 14702, 14708, 14712 9798, 9836, 9846,
14896, 14901, \@contfmark . 14683, 14686 9856, 9882, 9895,
14902, 14903, \@contfnote . 14682, 14685 9907, 9945, 9955,
14922, 14923, \@contindw . . . . . . 14707 9965, 9991, 10004,
14924, 14928, 21606 \@contnfont . . . . . . . 10016, 10054,
\@colourfalse . . . . . 2360 . . 14684, 14695, 10064, 10074,
\@colourgreenfalse 14699, 14706, 14711 10100, 10113,
. . . . . . . 7975, 8073 \@contpost . . . . . . 14716 10125, 10163,

Index 455
10173, 10183, 16807, 16830, \@dseries . . . . . . . . 7239
10209, 10222, 17155, 17215, \@eha . . . . . . . 2655, 19562
10234, 10272, 17269, 17704, \@ehc . . . . . 2758, 2760,
10282, 10292, 17764, 17818, 2766, 2768, 2774,
10318, 10331, 18285, 18286, 2776, 2782, 2784,
10343, 10538, 18289, 18294, 3186, 4051, 10404,
10550, 10562, 18403, 18463, 18517 13425, 13432,
10599, 10613, \@datefield . . . . . . 18225 13921, 14995, 15001
10627, 11440, \@dblarg . . . . . . . . 14748 \@ehd . . . . . . . . . . . 14742
11457, 11473, \@dblfloatplacement \@eightcol@footgroupv@r
11501, 11515, 11529 . . . . 7595, 7654, . . . . . . . . . . 10041
\@currentlabelname 11019, 11058, \@eightcolLTRfootfmt
. . . . . . . 12602, 11142, 11826, . 10067, 10088, 10116
12617, 12632, 11879, 14857, \@eightcolLTRfootnotetext
12691, 12729, 14954, 21274, 21317 . . . . . 10036, 10060
12762, 12793, 12824 \@declaredcolor 7363, \@eightcolRTLfootfmt
\@currenvir . . . . . . . 7364, 20736, 20759 . 10077, 10091, 10128
2664, 2667, 2668, \@dedication . . . . . . \@eightcolRTLfootnotetext
2688, 2691, 2692, 2719 . . 17171, 17173, . . . . . 10037, 10070
\@currlist . . . . . . 21469 17224, 17272, \@eightcolfootfmt .
\@curtabmar . 21518, 21521 17274, 17720, . 10057, 10085, 10103
\@cvtheme . . . . 2440, 2443 17722, 17773, \@eightcolfootnotetext
\@cvthemeoptions . . 17821, 17823, . . . . . 10035, 10050
. . . . . . . 2441, 2443 18419, 18421, \@elt . . . . . 2788, 2791,
\@date . . 431, 443, 479, 18472, 18520, 18522 5053, 5054, 5055,
502, 770, 772, 784, \@dedicatory . . . . . . 323 5056, 5057, 5058,
829, 849, 1022, \@deferlist . . . . . . 11887 5059, 5060, 5061,
1024, 1036, 1081, \@definitionfileextension 5062, 5063, 5064,
1101, 1272, 1274, . . . . . . . 2733, 2736 5094, 5095, 5096,
1286, 1331, 1352, \@depth . . . 389, 13854, 5097, 5098, 5099,
1361, 1996, 6088, 18929, 18958, 5100, 5101, 5102,
6142, 6770, 6772, 18998, 21140, 21508 5103, 5104, 5105,
6784, 6947, 6949, \@dgroup . . . . . . . . . 7226 5106, 5107, 5108,
6961, 7037, 7049, \@dischyph . . . . . . . 5109, 5110, 5111,
7085, 7108, 8760, . 11748, 13969, 15965 7265, 8201, 8222,
8770, 8804, 8825, \@displaypagenumbersfalse 8228, 8263, 8265,
8855, 8867, 8903, . . . . . . . . . . . 2539 8267, 8273, 8285,
8926, 9011, 9016, \@displaypagenumberstrue 8315, 8317, 8319,
10860, 10870, . . . . . . . . . . . 2538 8325, 19017, 19019
10904, 10925, \@dmath . . . . . . 7214, 7243 \@email . . 2452, 8063, 8161
13224, 13229, \@docolbox . . . . . . 11208 \@empty 86, 115, 134, 136,
14623, 16180, \@dodynamicthefoot 11132 289, 404, 441, 442,
16182, 16194, \@dodynamicthehead 11132 443, 444, 477, 478,
16239, 16259, \@dofilelist . . . . . . 479, 480, 580, 715,
16319, 16321, . . . 4474, 4475, 4477 781, 782, 783, 784,
16335, 16382, \@dotsep . . . . . 20376, 826, 827, 828, 829,
16405, 16414, 20377, 20485, 21183 978, 1033, 1034,
16572, 16584, \@dottedtocline . . . 1035, 1036, 1078,
16625, 16647, . . 20491, 20492, 1079, 1080, 1081,
16759, 16771, 20494, 20512, 21172 1228, 1283, 1284,

Index 456
1285, 1286, 1328, 13222, 13264, 17809, 17821,
1329, 1330, 1331, 13477, 13483, 17875, 17906,
1741, 1918, 1994, 13506, 13510, 17931, 17932,
1995, 1996, 1997, 13512, 13868, 18198, 18226,
2255, 2567, 2576, 14620, 14621, 18227, 18228,
2676, 2700, 3881, 14622, 14623, 18229, 18230,
4290, 4303, 4304, 14782, 14882, 18231, 18232,
4310, 4333, 4363, 15380, 15870, 18233, 18237,
4371, 4390, 4393, 16125, 16191, 18243, 18249,
4404, 4408, 4418, 16192, 16193, 18255, 18261,
4424, 4425, 4426, 16194, 16236, 18267, 18273,
4439, 4451, 4455, 16237, 16238, 18279, 18285,
4522, 4533, 5416, 16239, 16332, 18294, 18324,
5435, 5454, 5475, 16333, 16334, 18377, 18382,
5482, 6070, 6137, 16335, 16379, 18389, 18395,
6138, 6139, 6706, 16380, 16381, 18419, 18461,
6781, 6782, 6783, 16382, 16519, 18462, 18463,
6784, 6894, 6958, 16582, 16583, 18464, 18465,
6959, 6960, 6961, 16584, 16585, 18466, 18467,
7047, 7048, 7049, 16623, 16624, 18468, 18469,
7050, 7083, 7084, 16625, 16626, 18470, 18471,
7085, 7086, 7203, 16713, 16769, 18472, 18490,
7229, 7559, 7622, 16770, 16771, 18494, 18502,
8262, 8314, 8727, 16772, 16805, 18508, 18520,
8768, 8769, 8770, 16806, 16807, 18558, 18589,
8771, 8802, 8803, 16808, 16916, 18614, 18615,
8804, 8805, 8865, 17076, 17129, 18887, 19004,
8866, 8867, 8868, 17134, 17141, 19052, 19248,
8901, 8902, 8903, 17147, 17171, 19548, 19550,
8904, 8998, 9009, 17213, 17214, 20739, 20742,
9025, 9029, 10534, 17215, 17216, 20782, 20785,
10546, 10558, 17217, 17218, 20938, 21148,
10589, 10608, 17219, 17220, 21157, 21246,
10622, 10692, 17221, 17222, 21293, 21558,
10835, 10868, 17223, 17224, 21559, 21561, 21562
10869, 10870, 17242, 17246, \@emptycol . . . . 7751,
10871, 10902, 17254, 17260, 7754, 7770, 7773,
10903, 10904, 17272, 17296, 7926, 7929, 7945, 7948
10905, 10998, 17326, 17351, \@emptytoks . . . . . . . 7228
11034, 11585, 17352, 17625, \@end@tempboxa 12032,
11600, 11800, 17678, 17683, 12126, 12143, 21050
11849, 11887, 17690, 17696, \@endfloatbox . . . . . 2320
11990, 12005, 17720, 17762, \@endmodernpoem 6564, 6584
12006, 12007, 17763, 17764, \@endparenv . . . . 6474,
12008, 12009, 17765, 17766, 6581, 15427, 15447
12602, 12617, 17767, 17768, \@endparpenalty 2113,
12632, 12691, 17769, 17770, 2122, 11069, 11083
12729, 12762, 17771, 17772, \@endpbox . . . . . . . .
12793, 12824, 17773, 17791, 1415, 1416, 1457,
13135, 13201, 17795, 17803, 1481, 1482, 1483,

Index 457
7336, 7337, 7338, \@ff@setoffset . . . 11214 \@firstdetailselementtrue
13839, 13845, \@ffbackground . . . 11204 . . . . . . . . . . . 8140
18964, 19002, 21146 \@filebordercolor . \@firstfooterelementfalse
\@endpetrue . 20892, 20902 . . . . . 12903, 12905 . . . . 8059, 8060,
\@endtraditionalpoem \@filecolor . . . . . . 12921 8061, 8062, 8063, 8064
. . . . . . . 6455, 6520 \@filef@und . . . . . . . 4123 \@firstfooterelementtrue
\@ensure@LR . 15812, 20912 \@finalstrut . . . 9093, . . . . . . . . . . . 8044
\@ensure@LTR . . 15810, 9099, 9105, 11445, \@firstname . . . . . . .
15812, 15820, 11462, 11478, 2385, 2387, 2388,
20910, 20912, 11505, 11519, 11533 2445, 8038, 8128, 8149
20920, 20922, \@firstampfalse 1437, 1445 \@firstnamecolour .
20924, 21781, 21783 \@firstcolfirstmark . . . . . . . 2414, 2431
\@ensure@RL . 15811, 20911 . . . . . . . . 7558, \@firstofone . . . 3518,
\@ensure@RTL . . 15809, 7559, 7563, 7621, 3525, 3531, 3542,
15811, 20909, 20911 7622, 7626, 10997, 3556, 3562, 3570,
\@ensure@dir . . 15813, 10998, 11002, 3576, 4576, 11162,
15814, 20913, 20914 11033, 11034, 11180, 11184,
\@ensure@maindir . . 11038, 11799, 11187, 11190,
. . . . . 15814, 20914 11800, 11804, 11196, 13027,
\@enumctr . . . . 5925, 5926 11848, 11849, 13028, 13029,
\@eqnnum . . . . . . . . . 11853, 14781, 13030, 14746,
. 11090, 13218, 21627 14782, 14786, 17451, 18031,
\@evenfoot . . . . . . . 14881, 14882, 18714, 21533,
. 1958, 11125, 21551 14886, 21245, 21575, 21587,
\@evenhead . 11124, 21551 21246, 21250, 21590, 21592,
\@expandtwoargs . . . 4409 21292, 21293, 21297 21599, 21603, 21609
\@extrafootnotefeaturesfalse \@firstcoltopmark .
\@firstoftwo . . . 1537,
. . . . . . . . . . . 1720 . . . . 7556, 7564,
1543, 1549, 2797,
\@extrafootnotefeaturestrue 7619, 7627, 10995,
2805, 2809, 2817,
. . . . . . . . . . . 1718 11003, 11031,
2821, 2829, 2835,
\@extrainfo . . . . . . . 11039, 11797,
2839, 2852, 2860,
. . . 2453, 8064, 8162 11805, 11846,
2866, 2870, 2878,
\@extratitle . . . . . . 11854, 14779,
2884, 2887, 2890,
. . 17129, 17130, 14787, 14879,
2904, 2911, 3295,
17218, 17242, 14887, 21243,
3313, 3319, 3343,
17243, 17678, 21251, 21290, 21298
3370, 3400, 3460,
17679, 17767, \@firstcolumnfalse
3470, 4114, 15361
17791, 17792, 7549, 7612, 7966,
\@fivecol@footgroupv@r
18377, 18378, 10989, 11025,
. . . . . . . . . . . 9714
18466, 18490, 18491 11149, 11786,
\@familyname . . . . . . 11835, 14772, \@fivecolLTRfootfmt
2385, 2387, 2388, 14872, 21236, 21283 . . . 9740, 9761, 9789
2446, 8038, 8128, 8149 \@firstcolumntrue . \@fivecolLTRfootnotetext
\@familynamecolour 7567, 7630, 7920, . . . . . . . 9709, 9733
. . . . . . . 2415, 2432 11005, 11042, \@fivecolRTLfootfmt
\@fax . . . . 2451, 8062, 8160 11113, 11810, . . . 9750, 9764, 9801
\@fcolmadefalse . . 11888 11859, 14831, \@fivecolRTLfootnotetext
\@ff@do@allframes . 14931, 21254, 21301 . . . . . . . 9710, 9743
. . . . . 11134, 11139 \@firstdetailselementfalse\@fivecolfootfmt . .
\@ff@fbox . . . . . . . 11217 . . . . . . . . . . . 8143 . . . 9730, 9758, 9776

Index 458
\@fivecolfootnotetext 5549, 5621, 5628, \@fps . . . . . . . . . 2249,
. . . . . . . 9708, 9723 6372, 6383, 6589, 2250, 2252, 2255, 2272
\@float . . . . . . 4799, 5128 6603, 8181, 8182, \@fpsadddefault 2253, 2256
\@floatboxreset . . . 2318 9048, 9062, 9063, \@freelist . . . . 2268,
\@floatpenalty . 2261, 9107, 9182, 9190, 5053, 5094, 5209,
2263, 2266, 5201, 9387, 9496, 9599, 5210, 5253, 5254,
5203, 5207, 5211, 9708, 9817, 9926, 5297, 5298, 10691,
5245, 5247, 5251, 10035, 10144, 11989, 21392,
5255, 5289, 5291, 10253, 10412, 21393, 21436,
5295, 5299, 21384, 10467, 10469, 21437, 21469, 21470
21386, 21390, 11432, 11489, \@fs@capt 5142, 5155, 5163
21394, 21428, 11548, 12513, \@fs@cfont . . . . 5135,
21430, 21434, 21438 12521, 12592, 5141, 5151, 5154,
\@fltovf . . . . . . . . . 12640, 12833, 5162, 11094, 11095
2301, 5212, 5256, 12837, 12853, \@fs@iftopcapt . . . .
5300, 21395, 21439 12854, 13904, . . . 5146, 5159, 5172
\@flushglue 6357, 6358, 14025, 15150, \@fs@mid . 5145, 5158, 5170
13975, 16681, 15151, 15152,
\@fs@post 5144, 5157, 5171
19906, 19910, 17058, 17061,
\@fs@pre . 5143, 5156, 5164
19914, 19960, 21088 17376, 17377,
17387, 17607, \@g@tnextcol . . . . . 11111
\@fnsymbol . 453, 745,
804, 997, 1056, 17610, 17956, \@getcirc . . . . . . . 10955
1247, 1306, 1982, 17957, 17967, \@gnewline . . . 15914,
6745, 6922, 7059, 18306, 18309, 15927, 15940, 15951
8780, 8877, 10880, 18639, 18640, \@gobble . . 2165, 2675,
16155, 16214, 18650, 19032, 2699, 2721, 2726,
16294, 16355, 19049, 19139, 19141 3423, 3424, 3425,
16551, 16594, \@footstartv@l . . . . 3426, 3427, 3520,
16781, 17126, . 9270, 10427, 10485 3533, 3548, 3592,
17190, 17675, \@footstartv@r . . . . 3606, 3618, 3630,
17739, 18374, 18438 . 9274, 10420, 10478 4320, 4455, 4632,
\@footgroupv@r . . . . \@for . . . . . . . . . 4331, 6192, 6257, 11172,
. . . . 9275, 9364, 4392, 4405, 4427, 11173, 11174,
9393, 9502, 9605, 4431, 5417, 5422, 14743, 17377,
9714, 9823, 9932, 5436, 5441, 5455, 17379, 17381,
10041, 10150, 5460, 5483, 5492, 7527 17957, 17959,
10259, 10419, 10477 \@fourcol@footgroupv@r 17961, 18640,
\@footnote . . . . . . . 6019 . . . . . . . . . . . 9605 18642, 18644,
\@footnotemark . 2228, \@fourcolLTRfootfmt 20743, 20786,
2236, 2244, 5528, . . . 9631, 9652, 9680 21568, 21569, 21570
5621, 5628, 5650, \@fourcolLTRfootnotetext \@gobbletwo . . . . . . .
5657, 5679, 5686, . . . . . . . 9600, 9624 2746, 2747, 2750,
6502, 6509, 6516, \@fourcolRTLfootfmt 2751, 3650, 13281
11406, 11412, . . . 9641, 9655, 9692 \@gtempa . . . . . 2928, 2929
11415, 11421, \@fourcolRTLfootnotetext \@halignto . . . . 393,
12643, 12832, . . . . . . . 9601, 9634 408, 18962, 19000,
12836, 12850, 12851 \@fourcolfootfmt . . 20938, 21144, 21157
\@footnotetext 34, 79, . . . 9621, 9649, 9667 \@hangfrom . . . 17404,
151, 152, 153, 237, \@fourcolfootnotetext 17416, 17418,
282, 2185, 2307, . . . . . . . 9599, 9614 17984, 17996,

Index 459
17998, 18667, 11226, 11239, 20939, 21626,
18679, 18681, 21112 21640, 21641, 21639, 21652,
\@hboxRconstructfalse 21642, 21643, 21662, 21666,
. . . . . 15778, 20858 21644, 21645, 21670, 21674,
\@hboxRconstructtrue 21646, 21647, 21675, 21676,
404, 15768, 18969, 21648, 21649, 21677, 21684,
19008, 20848, 21153 21650, 21651, 21685, 21686,
\@height 388, 1495, 7350, 21652, 21653, 21687, 21688,
11729, 13853, 21654, 21655, 21689, 21690,
13909, 13995, 21656, 21657, 21691, 21692,
17104, 17111, 21658, 21659, 21693, 21694,
17653, 17660, 21660, 21661, 21695, 21696,
18352, 18359, 21662, 21663, 21697, 21698,
18929, 18957, 21664, 21665, 21699, 21700,
18998, 21139, 21508 21692, 21775, 21776 21701, 21702,
\@highpenalty . . 6651, \@ifdefinable . . 2916, 21703, 21704,
6667, 6674, 6684, 2919, 2922, 2931, 21705, 21706,
6828, 6844, 6851, 3173, 3188, 11329 21707, 21708,
6861, 7115, 7130, \@ifdefinitionfileloaded 21709, 21710,
7140, 8933, 10768, . . . . . . 2736, 21777 21711, 21712,
10783, 10793, \@ifempty . . 7, 202, 13180 21713, 21714,
16065, 16081, \@ifl@aded 2735, 2736, 2737 21715, 21716,
16088, 16098, \@ifnextchar . . . 163, 21717, 21718,
16437, 16453, 405, 2133, 2163, 21719, 21720,
16460, 16470, 2178, 3163, 4207, 21721, 21722,
16653, 16667, 4208, 4252, 4253, 21723, 21724,
16677, 16837, 4297, 5214, 5258, 21725, 21726,
16852, 16862, 5302, 7363, 7378, 21727, 21730,
19330, 19365, 11404, 11413, 21731, 21732,
19754, 19774, 19862 11572, 11587, 21733, 21756,
\@hintcolour . . 2422, 2438 12098, 12840, 21757, 21758,
\@holdpg . . 7681, 7687, 12864, 15162, 21759, 21760,
7694, 7705, 7715, 15431, 15451, 21761, 21762,
7815, 7816, 7818, 20736, 20779, 21763, 21764,
7821, 7825, 7830, 20963, 21397, 21441 21765, 21766,
7835, 7839, 7847, \@ifpackagelater . . 21767, 21768,
7859, 7872, 7880, 7888 . . 4616, 4621, 11275 21769, 21770,
\@hyper@launch . . . 12926 \@ifpackageloaded . 21771, 21772,
\@idxitem 102, 107, 222, . . . . . . . . . 170, 21773, 21774,
227, 603, 618, 867, 1454, 3356, 4280, 21775, 21776, 21778
1119, 5983, 5990, 4340, 4575, 4593, \@ifpackagewith . . .
6626, 6803, 7014, 4615, 4620, 5121, . . . 7504, 13411,
13152, 13157, 5126, 5179, 8632, 13414, 15999,
16022, 16277, 8633, 9369, 10377, 16002, 19259,
16737, 19310, 21637 12637, 12657, 21678, 21681,
\@ifclasslater 4618, 4623 12735, 13034, 21682, 21683,
\@ifclassloaded . . . 13499, 13624, 21734, 21744, 21750
. . . . 4238, 4617, 13881, 14722, \@ifstar . . . . . . 3280,
4622, 4652, 6032, 17459, 18039, 4206, 4251, 4293,
6034, 7016, 9199, 18722, 19234, 4385, 4971, 8636,

Index 460
9197, 9400, 9509, \@kludgeins . . . 10695, \@listdepth . . . 11388,
9612, 9721, 9830, 11992, 15260, 15275 11551, 11753,
9939, 10048, \@komalongtablefalse 11757, 13378,
10157, 10266, . 17459, 18039, 18722 20975, 20978, 20983
10461, 10523, 12101 \@lastchclass . . 353, \@listi . . 4669, 4677, 5887
\@iftagsloaded . . . . 354, 355, 356, 358, \@loadwithoptions .
. 2735, 21667, 21668 1378, 1379, 1380, . . . 4130, 4132, 4139
\@iftexfileloaded . 1381, 1383, 1422, \@lowertitleback . .
. 2737, 21728, 21729 1423, 1435, 1443, . . . . . . . 17168,
\@ifundefined . . 330, 19087, 19088, 17223, 17717,
331, 2542, 2756, 19089, 19090, 17772, 18416, 18471
2759, 2764, 2767, 19092, 21158, 21159 \@lowpenalty . 2109, 20285
2772, 2775, 2780, \@lastvipertrue 7756, \@m 93, 296, 586, 718, 981,
2783, 4195, 4199, 7775, 7931, 7950 1231, 6709, 6897,
4349, 4442, 5363, \@latex@error . . . . . 7209, 8730, 9004,
5846, 5854, 5969, . . . . 2654, 4314, 10838, 11788,
5971, 5976, 6066, 14742, 14995, 15001 11790, 11837,
6083, 7365, 7372, 11839, 13142,
\@latex@warning . . .
7380, 7386, 11097, 15360, 16128,
. . . 95, 298, 588,
11322, 13037, 16522, 16719,
720, 983, 1233,
13038, 13435, 16922, 17330,
2572, 6711, 6899,
13446, 13509, 17910, 18593, 19254
7211, 8732, 9006,
13511, 13516, 10840, 13144, \@mainaux . . . . . . . 15491
15534, 15996, 16130, 16524, \@mainmatterfalse .
19549, 19553, 16721, 16924, . . . . . . . . 6219,
19629, 19651, 17334, 17341, 6249, 7191, 8986
19652, 19700, 17914, 17921, \@mainmattertrue . .
19701, 19784, 18597, 18604, 19256 . . . . . . . 6216, 6232
19806, 19807, \@makecaption . . . . .
\@latex@warning@no@line
20035, 20058, . . . . 4966, 7311,
. . . . 7749, 7767,
20086, 20146, 14679, 14729,
7924, 7942, 21484
20195, 20212, 20242 14761, 17445,
\@latexbug . . . . . . 21470
\@ifundefinedmodel 18025, 18708, 21612
\@latexerr . . . . . . . \@makechapterhead .
. . . . . 20769, 20803
. 11926, 11936, 11946 . . . . . 301, 6968,
\@ifxempty . . . . . . 20829
\@leftcolumn . . . 7550, 7163, 8957, 10796,
\@ignoretrue . . . . . . 7250
7576, 7613, 7635, 15897, 16885, 19275
\@iiiminipage . . . . 11535 7788, 7816, 7822, \@makecol 10759, 10760,
\@iiiparbox . . . . . . . 7831, 10990, 11912, 11922,
. 9348, 11566, 21021 11011, 11026, 13929, 13941, 21329
\@indextitlestyle . 11047, 11787, \@makefnmark . . . 454,
. . . . 100, 220, 13150 11815, 11836, 805, 1307, 1983,
\@inlabelfalse . . . . 7217 11868, 14773, 5524, 5535, 7060,
\@insertfalse . 7672, 7780 14832, 14845, 8186, 8207, 8781,
\@inserttrue . . 7745, 7919 14873, 14932, 8878, 10881,
\@iprintcites . . . . 15906 14941, 21237, 13167, 14627,
\@itemfudge . 21518, 21520 21263, 21284, 21306 16215, 16356,
\@itemlabel . . . . . . 20984 \@let@token . . . 2712, 2715 16552, 16595,
\@ixpt . . . . . . . . . . . 5883 \@lettrine . . . . . . 13244 16782, 17127,
\@keywords . . . . . . . 324 \@listI . . . . . . . . . . 4669 17128, 17191,

Index 461
17192, 17676, 16228, 16235, . . . . 2322, 5231,
17677, 17740, 16245, 16362, 5240, 5275, 5284,
17741, 18375, 16364, 16369, 5319, 5328, 9345,
18376, 18439, 18440 16378, 16388, 11563, 13468,
\@makefntext . . . . 45, 16606, 16608, 14735, 17435,
59, 75, 248, 262, 16613, 16622, 18015, 18698,
277, 455, 742, 807, 16632, 16788, 21414, 21423,
994, 1057, 1244, 16790, 16795, 21458, 21467, 21618
1309, 1984, 5522, 16804, 16814, \@minipagerestore 11552
5561, 5579, 5597, 17195, 17197, \@minipagetrue . . . .
6742, 6919, 7061, 17202, 17212, . . . . 5239, 5283,
8782, 8879, 10882, 17237, 17744, 5327, 21422, 21466
11444, 11461, 17746, 17751, \@minus 2489, 2575, 4665,
11477, 11504, 17761, 17786, 4667, 4674, 4676,
11518, 11532, 18443, 18445, 4678, 4679, 5884,
12010, 14629, 18450, 18460, 18485 5886, 5888, 5889,
16152, 16217, \@maketitle@hook . . 11667, 11705,
16291, 16358, . . . . . . . 118, 13204 15357, 17558,
16554, 16597, \@makewincaption . 15625 17568, 17578,
16783, 17074, \@marbox . . . . . . 5210, 17588, 17598,
17623, 18197, 18322 5212, 5216, 5220, 18147, 18157,
\@makeother . . . . 3279, 5221, 5254, 5256, 18167, 18177,
3325, 3434, 3442 5260, 5264, 5265, 18187, 18830,
\@makeschapterhead 5298, 5300, 5304, 18840, 18850,
6622, 6799, 6988, 5308, 5309, 21393, 18860, 18870, 18894
7009, 7177, 8972, 21395, 21399, \@mkboth . . . . . . 571,
10808, 16018, 21403, 21404, 599, 615, 706, 864,
16273, 16732, 21437, 21439, 969, 1116, 1219,
16897, 19281, 19286 21443, 21447, 6623, 6697, 6800,
\@makespecialcolbox 21448, 21469, 6885, 7010, 7194,
. . . . . 10696, 11993 21479, 21482, 8718, 8989, 10826,
\@maketitle . . . . 120, 21490, 21492, 16019, 16116,
316, 320, 460, 462, 21493, 21495, 16274, 16510,
467, 476, 486, 21496, 21497, 16704, 16733, 16907
811, 813, 818, 21506, 21510, 21511 \@mklab . . . . . . . . . 20985
825, 835, 1063, \@mathmargin . . . 8588, \@mkpream . 392, 13858,
1065, 1070, 1077, 8595, 8603, 8610 18960, 18992, 21142
1087, 1313, 1315, \@maxdepth 9265, 10707, \@mobile . 2449, 8060, 8158
1320, 1327, 1337, 10722, 10745, \@modernpoem . . 6540, 6584
1987, 1993, 7066, 10758, 12003, \@mpLTRfootnotetext
7068, 7073, 7082, 21334, 21350, 21361 9052, 9070, 9071,
7092, 8787, 8789, \@memtempa . . . 14679, 9160, 9186, 9194,
8794, 8801, 8811, 14681, 14695, 9395, 9504, 9607,
8884, 8886, 8891, 14702, 14706, 14711 9716, 9825, 9934,
8900, 8910, 10887, \@menubordercolor . 10043, 10152,
10889, 10894, . . . . . 12997, 12999 10261, 10430,
10901, 10911, \@menucolor . . . . . . 13008 10492, 11507,
13206, 14632, \@midlist . . . . 10691, 11549, 12543,
14634, 14641, 10692, 11989, 11990 12558, 12581,
16221, 16223, \@minipagefalse . . . 12645, 14026, 19142

Index 462
\@mpRTLfootnotetext 9309, 9317, 9325, \@mpfourcolRTLfootnotetext
9053, 9072, 9073, 9335, 9339, 9342, . . . . . . . 9608, 9683
9171, 9187, 9195, 11495, 11496, \@mpfourcolfootnotetext
9396, 9505, 9608, 11509, 11510, . . . . . . . 9606, 9658
9717, 9826, 9935, 11523, 11524, \@mplistdepth 11388, 11551
10044, 10153, 11557, 11558, \@mpninecol@footgroupv@r
10262, 10431, 11561, 14011, 14016 . . . . . . . . . . 10156
10493, 11493, \@mpfootinsv@l . 9307, \@mpninecolLTRfootnotetext
11550, 12532, 9323, 9366, 10586, . . . . . 10152, 10215
12557, 12570, 10595, 10607, 10610 \@mpninecolRTLfootnotetext
12646, 14027, 19143 \@mpfootinsv@r . 9306, . . . . . 10153, 10228
\@mparbottom . . . . . . 9365, 9447, 9448, \@mpninecolfootnotetext
. . 21480, 21488, 9459, 9460, 9472, . . . . . 10151, 10203
21489, 21490, 21491 9473, 9553, 9554, \@mppara@LTRfootgroupv@l
\@mpargs 9348, 11541, 11566 9564, 9565, 9576, . . . . . 10436, 10498
\@mparswitchfalse . 4648 9577, 9659, 9660, \@mppara@footgroupv@r
\@mparswitchtrue . . 4643 9671, 9672, 9684, . . . . . 10435, 10497
\@mpeightcol@footgroupv@r 9685, 9768, 9769, \@mpparaLTRfootnotetext
. . . . . . . . . . 10047 9780, 9781, 9793, . 10430, 10492, 10606
\@mpeightcolLTRfootnotetext 9794, 9877, 9878,
\@mpparaRTLfootnotetext
. . . . . 10043, 10106 9889, 9890, 9902,
. . . . . 10431, 10620
\@mpeightcolRTLfootnotetext 9903, 9986, 9987,
\@mpparafootnotetext
. . . . . 10044, 10119 9998, 9999, 10011,
. 10429, 10490, 10581
\@mpeightcolfootnotetext 10012, 10095,
\@mpsevencol@footgroupv@r
. . . . . 10042, 10094 10096, 10107,
. . . . . . . . . . . 9938
\@mpfivecol@footgroupv@r 10108, 10120,
\@mpsevencolLTRfootnotetext
. . . . . . . . . . . 9720 10121, 10204,
. . . . . . . 9934, 9997
\@mpfivecolLTRfootnotetext 10205, 10216,
10217, 10229, \@mpsevencolRTLfootnotetext
. . . . . . . 9716, 9779
. . . . . . 9935, 10010
\@mpfivecolRTLfootnotetext 10230, 10313,
. . . . . . . 9717, 9792 10314, 10325, \@mpsevencolfootnotetext
\@mpfivecolfootnotetext 10326, 10338, . . . . . . . 9933, 9985
. . . . . . . 9715, 9767 10339, 10584, \@mpsixcol@footgroupv@r
\@mpfn 2203, 2206, 2209, 10593, 10621, 10624 . . . . . . . . . . . 9829
2225, 2233, 2241, \@mpfootnotetext . . \@mpsixcolLTRfootnotetext
5619, 5625, 5648, 9051, 9068, 9069, . . . . . . . 9825, 9888
5654, 5677, 5683, 9149, 9185, 9193, \@mpsixcolRTLfootnotetext
6479, 6482, 6485, 9394, 9503, 9606, . . . . . . . 9826, 9901
6499, 6506, 6513, 9715, 9824, 9933, \@mpsixcolfootnotetext
11404, 11409, 10042, 10151, . . . . . . . 9824, 9876
11413, 11418, 10260, 10429, \@mptencol@footgroupv@r
11547, 11577, 10488, 10490, . . . . . . . . . . 10265
11592, 12518, 11521, 11548, \@mptencolLTRfootnotetext
12529, 12540, 12521, 12556, . . . . . 10261, 10324
12740, 12771, 12559, 12644, \@mptencolRTLfootnotetext
12802, 12865, 14025, 19139, 19141 . . . . . 10262, 10337
14022, 19074, 19081 \@mpfourcol@footgroupv@r \@mptencolfootnotetext
\@mpfootins . . . . . . . . . . . . . . . . . . 9611 . . . . . 10260, 10312
9150, 9151, 9161, \@mpfourcolLTRfootnotetext\@mpthreecol@footgroupv@r
9162, 9172, 9173, . . . . . . . 9607, 9670 . . . . . . . . . . . 9508

Index 463
\@mpthreecolLTRfootnotetext 19706, 19707, 10031, 10134,
. . . . . . . 9504, 9563 19709, 19712, 10135, 10139,
\@mpthreecolRTLfootnotetext 19715, 19723, 10140, 10243,
. . . . . . . 9505, 9575 19724, 19726, 10244, 10248,
\@mpthreecolfootnotetext 19729, 19732, 10249, 10352,
. . . . . . . 9503, 9552 19744, 19785, 10353, 10357,
\@mptwocol@footgroupv@r 19786, 19787, 10358, 10636,
. . . . . . . . . . . 9399 19788, 19789, 10642, 10646,
\@mptwocolLTRfootnotetext 19790, 19791, 10652, 10656,
. . . . . . . 9395, 9458 19792, 19793, 10661, 10665,
\@mptwocolRTLfootnotetext 19808, 19809, 10670, 11117,
. . . . . . . 9396, 9471 19810, 19811, 17832, 17848,
\@mptwocolfootnotetext 19813, 19814, 17856, 17864,
. . . . . . . 9394, 9446 19816, 19819, 19293, 19565,
\@namedef . 4199, 4350, 19822, 19830, 19566, 19567,
6537, 9350, 9385, 19831, 19833, 19570, 19573,
9484, 9489, 9494, 19836, 19839, 19578, 19579,
9587, 9592, 9597, 19852, 20036, 19584, 19588,
9696, 9701, 9706, 20037, 20038, 19589, 19591,
9805, 9810, 9815, 20039, 20040, 19592, 19594,
9914, 9919, 9924, 20041, 20042, 19595, 19597,
10023, 10028, 20043, 20044, 19598, 19600,
10033, 10132, 20083, 20087, 19601, 19608,
10137, 10142, 20088, 20089, 19613, 19614,
10241, 10246, 20090, 20092, 19697, 19744,
10251, 10350, 20093, 20095, 19748, 19749,
10355, 10410, 20098, 20101, 19761, 19768,
10464, 10635, 20109, 20110, 19769, 19852,
10645, 10655, 20112, 20115, 19856, 19857,
10664, 10673, 20118, 20143, 19876, 19891,
10685, 13949, 20147, 20148, 19894, 19896,
19564, 19603, 20149, 20151, 19899, 19902,
19604, 19605, 20152, 20154, 19919, 19920,
19606, 19607, 20157, 20160, 19922, 19923,
19608, 19609, 20168, 20169, 19933, 19935,
19610, 19611, 20171, 20174, 19937, 19938,
19612, 19630, 20177, 20197, 19940, 19942,
19631, 19632, 20200, 20204, 19943, 19952,
19633, 19634, 20244, 20247, 20251 19954, 19958,
19635, 19636, \@nameuse . . . . . 4196, 19959, 19963,
19637, 19638, 6535, 8518, 8568, 19967, 19969,
19653, 19654, 8571, 8617, 9486, 19970, 20030,
19655, 19656, 9487, 9491, 9492, 20063, 20070,
19658, 19659, 9589, 9590, 9594, 20075, 20076,
19661, 19664, 9595, 9698, 9699, 20083, 20136,
19667, 19675, 9703, 9704, 9807, 20143, 20214,
19676, 19678, 9808, 9812, 9813, 20771, 20805, 21542
19681, 19684, 9916, 9917, 9921, \@ne . . . . . . . 137, 142,
19697, 19702, 9922, 10025, 353, 362, 365, 459,
19703, 19704, 10026, 10030, 810, 1062, 1312,

Index 464
1378, 1387, 1390, \@nextchar . . . . 359, 16074, 16446,
1391, 1392, 1425, 361, 362, 363, 16661, 16846,
1428, 1429, 1430, 365, 366, 367, 368, 19351, 19355, 19883
1778, 1783, 1784, 369, 372, 373, 374, \@nocnterr . . . . . . . 331
1785, 2278, 2580, 1384, 1386, 1387, \@nocounterr . . . . . . 330
2608, 2643, 2944, 1388, 1390, 1391, \@nodocument . . . . . . 2247
2998, 3052, 3773, 1392, 1393, 1394, \@noitemerr . . . . . 95,
3932, 4003, 4064, 1395, 1396, 1399, 298, 587, 719,
4557, 4566, 7065, 1400, 1401, 1413, 982, 1232, 2572,
7515, 8786, 8883, 1415, 1416, 1481, 6710, 6898, 7210,
10886, 11494, 1482, 1483, 7336, 8731, 9005, 10839,
11508, 11522, 7337, 7338, 19093, 13144, 15367,
11767, 12873, 19095, 19096, 16129, 16523,
12874, 12879, 19097, 19098, 16720, 16923,
13367, 13423, 19099, 19100, 17333, 17340,
13430, 13439, 19101, 19103, 17913, 17920,
13450, 13860, 19104, 19105, 18596, 18603, 19255
14631, 14708, 19106, 19107, \@nonlatinfalse 1564,
14971, 15430, 19110, 19111, 19112 1682, 13457, 13501
15450, 16220, \@nil . . . . . . . . . 1466, \@nonlatintrue . 1565,
16361, 16558, 1467, 1469, 1470, 1684, 13457, 13501
16601, 16605, 7325, 8229, 8286, \@normalLTRfootfmt
16787, 17080, 13040, 13049, . . . 9101, 9146, 9169
17194, 17629, 13051, 13063, 19208
\@normalRTLfootfmt
17743, 18202, \@ninecol@footgroupv@r
. . . 9095, 9132, 9180
18328, 18442, . . . . . . . . . . 10150
\@normalcr . . . . . . 13978
19022, 19026, \@ninecolLTRfootfmt
\@normalfootfmt . . .
19087, 19096, . 10176, 10197, 10225
. . . 9089, 9118, 9158
19103, 19405, \@ninecolLTRfootnotetext
19748, 19749, . . . . . 10145, 10169 \@notprerr . . . 3520, 3533
19856, 19857, \@ninecolRTLfootfmt \@nx . . . . . . . . . . 124,
20030, 20685, . 10186, 10200, 10237 125, 334, 13210, 13211
20832, 20978, \@ninecolRTLfootnotetext \@nxtcol . . . . . . . . .
21019, 21054, . . . . . 10146, 10179 . 11109, 11111, 11152
21056, 21057, \@ninecolfootfmt . . \@oddfoot 1953, 11122,
21058, 21063, . 10166, 10194, 10212 11129, 21545, 21562
21065, 21066, \@ninecolfootnotetext \@oddhead . . . . 11121,
21067, 21072, . . . . . 10144, 10159 11128, 21545, 21561
21074, 21075, \@nmbrlistfalse . . 20986 \@oldmakefnmark 17127,
21076, 21081, \@nobreakfalse . 520, 17128, 17191,
21083, 21084, 672, 916, 1155, 17192, 17676,
21085, 21161, 6661, 6838, 7125, 17677, 17740,
21163, 21206, 21470 8942, 10778, 17741, 18375,
\@newlistfalse . . . . 16075, 16447, 18376, 18439, 18440
. . . . . 11161, 21531 16662, 16847, \@onefilewithoptions
\@next . . . . . . . . 2268, 19352, 19356, 19884 . . . 4146, 4147, 4154
5209, 5210, 5253, \@nobreaktrue . . 519, \@onelevel@sanitize 2250
5254, 5297, 5298, 671, 915, 1154, \@onlypreamble . . . .
21392, 21393, 6660, 6837, 7124, . . . . 1659, 4369,
21436, 21437, 21469 8941, 10777, 4379, 4383, 10526

Index 465
\@openbib@code . . . . 21333, 21347, \@paraRTLfootfmt . .
. . . . . . 578, 713, 21349, 21360, 21589 . 10566, 10577, 10631
976, 1226, 2565, \@outputdblcol 11108, \@paraRTLfootnotetext
2576, 6704, 6892, 21325, 21326, 21327 . . . . . 10414, 10557
7201, 8725, 8996, \@outputpage . . . 7593, \@parafootfmt . . . . .
10833, 16123, 7597, 7652, 7656, . 10542, 10569, 10603
16517, 16711, 11018, 11021, \@parafootnotetext
16914, 17316, 11056, 11060, . 10412, 10469, 10527
17896, 18579, 19246 11136, 11140, \@parboxrestore 42, 56,
\@otarlinesep 18982, 18988 11145, 11156, 72, 245, 259, 274,
\@outerparskip . . . . 6578 11824, 11828, 2317, 4960, 5228,
\@outputbox 7550, 7553, 11877, 11881, 5272, 5316, 7255,
7554, 7568, 7580, 13930, 13942, 9154, 9165, 9176,
7585, 7587, 7613, 14855, 14860, 9302, 9451, 9463,
7616, 7617, 7631, 14952, 14957, 9476, 9557, 9568,
7641, 7644, 7646, 15488, 15489, 9580, 9663, 9675,
9264, 9266, 10698, 21272, 21276, 9688, 9772, 9784,
10700, 10701, 21315, 21319, 21526 9797, 9881, 9893,
10706, 10721, \@ovbtrue . . . . . . . 10944 9906, 9990, 10002,
10723, 10737, \@ovdx . . . . . 10957, 10965 10015, 10099,
10748, 10990, \@ovdy . . . . . 10958, 10966 10111, 10124,
10993, 11006, \@ovhorz . . . 10963, 10964 10208, 10220,
11015, 11026, \@ovltrue . . . . . . . 10944 10233, 10317,
11029, 11043, \@ovri . . . . . . . . . . 10956 10329, 10342,
11053, 11134, \@ovro 10956, 10965, 10966 10598, 10612,
11139, 11186, \@ovrtrue . . . . . . . 10944 10626, 10640,
11787, 11794, \@ovttrue . . . . . . . 10944 10650, 11161,
11795, 11811, \@ovvert . . . 10961, 10962 11439, 11456,
11821, 11836, \@ovxx . . . . . . . 10946, 11472, 11500,
11843, 11844, 10947, 10950, 11514, 11528,
11860, 11872, 10957, 10962, 11546, 14756,
11911, 11923, 10963, 10967, 10968 14970, 21037,
11957, 11959, \@ovyy . . 10948, 10949, 21411, 21455, 21532
11970, 11995, 10950, 10958, 10964 \@parboxto . 21040, 21047
11998, 11999, \@pagedp . . . 21498, 21508 \@parmoderr . . . . . . .
14773, 14776, \@pageht . . . . . . 7673, 2266, 5206, 5250,
14777, 14807, 7782, 21481, 21488 5294, 21389, 21433
14832, 14835, \@par . . . . . . . . . . . 19973 \@part . . . . . . . 550, 8689
14837, 14849, \@para@LTRfootgroupv@l \@pboxswfalse 11537, 21023
14873, 14876, . . . . . 10426, 10484 \@pboxswtrue . . . . . 21045
14877, 14907, \@para@footgroupv@r \@pdfm@mark . . . . . . .
14932, 14935, . . . . . 10419, 10477 . . 12881, 12897,
14937, 14947, \@para@footstartv@l 12931, 12962,
15499, 15502, . . . . . 10427, 10485 12991, 13066,
15507, 21237, \@para@footstartv@r 13071, 13082,
21240, 21241, . . . . . 10420, 10478 13087, 13098,
21255, 21267, \@paraLTRfootfmt . . 13104, 13115, 13121
21284, 21287, . 10554, 10573, 10617 \@pdfremotestartview
21288, 21302, \@paraLTRfootnotetext . . . . . . . . . . 12912
21312, 21331, . 10413, 10471, 10545 \@phone . . 2450, 8061, 8159

Index 466
\@photo . . . . . . . 2455, 17658, 17682, 16070, 16072,
8034, 8036, 8165, 8167 17705, 17723, 16092, 16093,
\@photowidth . . . 2454, 17794, 17819, 16097, 16441,
2455, 8036, 8132 17938, 17943, 16442, 16444,
\@pkgextension . . . . 18096, 18115, 16464, 16465,
4174, 4185, 4249, 18147, 18148, 16469, 16656,
4258, 4266, 4269, 4277 18157, 18158, 16657, 16659,
\@plus . . . . . . . . . 24, 18167, 18168, 16671, 16672,
103, 223, 510, 527, 18177, 18187, 16676, 16841,
602, 617, 646, 649, 18350, 18357, 16842, 16844,
662, 680, 687, 866, 18381, 18404, 16856, 16857,
873, 876, 889, 906, 18422, 18493, 16861, 19215,
924, 1118, 1129, 18518, 18621, 19224, 19226,
1132, 1145, 1163, 18626, 18779, 19614, 19763,
1171, 2489, 2575, 18798, 18830, 19764, 19772,
4665, 4666, 4667, 18831, 18840, 19871, 19872,
4674, 4675, 4676, 18841, 18850, 19878, 20270,
4678, 4679, 5884, 18851, 18860, 20383, 20488, 21186
5885, 5886, 5888, 18870, 18893, \@preamble . . . . 393,
5889, 5955, 6625, 19159, 19188, 394, 404, 406,
6636, 6639, 6652, 19309, 19584, 1438, 1446, 13864,
6668, 6675, 6802, 19752, 19755, 18961, 18963,
6813, 6816, 6829, 19759, 19860, 18970, 19000,
6845, 6852, 7013, 19863, 19867, 19001, 19009,
7116, 7131, 8665, 19900, 20197, 21143, 21145, 21154
8679, 8934, 10571, 20200, 20204, \@preameightfmt 10080,
10575, 10579, 20292, 20476, 21174 10086, 10089, 10092
10769, 10784, \@pnumwidth . . . 13, 15, \@preamerr . . . . . . .
11667, 11705, 208, 210, 513, 514, . 375, 1402, 1432,
13153, 13173, 516, 530, 531, 535, 19113, 21152, 21165
15022, 15034, 665, 666, 668, 690, \@preamfivefmt . 9753,
15357, 16021, 691, 695, 892, 893, 9759, 9762, 9765
16050, 16053, 897, 909, 910, 912, \@preamfntext . . . . .
16066, 16082, 1148, 1149, 1151, . . . . 9113, 9127,
16089, 16276, 1174, 1175, 1179, 9141, 9297, 9405,
16422, 16425, 6655, 6656, 6658, 9415, 9425, 9514,
16438, 16454, 6678, 6679, 6683, 9523, 9532, 9617,
16461, 16654, 6832, 6833, 6835, 9627, 9637, 9726,
16668, 16736, 6855, 6856, 6860, 9736, 9746, 9835,
16838, 16853, 7119, 7120, 7122, 9845, 9855, 9944,
17102, 17109, 7134, 7135, 7139, 9954, 9964, 10053,
17133, 17156, 7400, 7405, 7406, 10063, 10073,
17174, 17245, 8668, 8669, 8673, 10162, 10172,
17270, 17358, 8682, 8683, 8685, 10182, 10271,
17363, 17516, 8936, 8937, 8939, 10281, 10291,
17535, 17558, 10772, 10773, 10537, 10549, 10561
17559, 17568, 10775, 10787, \@preamfourfmt . 9644,
17569, 17578, 10788, 10792, 9650, 9653, 9656
17579, 17588, 13186, 13188, \@preamninefmt 10189,
17598, 17651, 15042, 16069, 10195, 10198, 10201

Index 467
\@preamnormalfmt 9085, \@raggedtwoe@spaceskiptrue 14904, 14905,
9090, 9096, 9102 . 15920, 15933, 15946 14914, 14915,
\@preamsevenfmt 9971, \@rc@ifdefinable . . 14923, 14927, 14933
9977, 9980, 9983 . . . . . . . 2931, 3188 \@rightskip . . . 13974,
\@preamsixfmt . . 9862, \@reffalse . . . . . . 18225 15916, 15917,
9868, 9871, 9874 \@reftrue . . . . 18226, 15929, 15930,
\@preamtenfmt . 10298, 18227, 18228, 15942, 15943,
10304, 10307, 10310 18229, 18230, 15953, 15954, 21088
\@preamthreefmt 9538, 18231, 18232, 18233 \@rjfieldfalse . . . 21516
9544, 9547, 9550 \@regtocline . . . 643, \@runbordercolor . .
\@preamtwofmt . . 9432, 681, 698, 870, . . . . . 12937, 12939
9438, 9441, 9444 900, 925, 1126, \@runcolor . . . . . . 12953
\@printcites . . . . . 15908 1164, 1182, 6633, \@s@@size . . . . . . . 18995
\@pstrickserr . . . . 15862 6669, 6687, 6810, \@s@bidi@AfterClass
\@ptsize . . . . . . 2353, 6846, 6864, 16047, . . . . . . . . 4206,
2354, 2355, 2356, 2363 16083, 16101, 4215, 4227, 4236
\@publisher . . . 6047, 6100 16419, 16455, 16473 \@s@bidi@AfterPackage
\@rememsize . 18992, 18995 . . . . . . . . 4251,
\@publishers . . . . . .
\@removefromreset . 4259, 4270, 4278
. . 17157, 17221,
. . . . . 15376, 15378 \@sarray . . . . . . . . 18954
17271, 17706,
\@reqcolroom . . . . . . \@savemarbox . . . . . 21510
17770, 17820,
. . . . 7673, 7674, \@secondoftwo . . 1539,
18405, 18469, 18519
7675, 7676, 7736, 1545, 1551, 2799,
\@quote . . . . . . . 2456,
7781, 7782, 7783, 2803, 2811, 2815,
8040, 8042, 8169, 8171
7784, 7785, 7786, 7910 2823, 2827, 2833,
\@quotebox . . . . . . 15907
\@resetactivechars 2841, 2854, 2863,
\@quotecolour . . . . .
. . . . . 11159, 21529 2872, 2881, 2887,
. . . 2418, 2435, 2545
\@resetdyn@mics . . 11147 2890, 2901, 2906,
\@r@m@msize . . . . . . 18995 \@resetst@tics . . . 11146 2913, 3286, 3296,
\@raggedtwoe@abdhook \@restonecolfalse . 3297, 3298, 3299,
. 15982, 15987, 15997 . . . 98, 218, 592, 3305, 3314, 3320,
\@raggedtwoe@document@opt 608, 857, 1109, 3344, 3372, 3400,
. 15981, 15985, 16003 6616, 6793, 7003, 3449, 3461, 3462,
\@raggedtwoe@everyselectfont 13148, 16012, 3471, 4111, 4239, 4281
. . . . . . . 15921, 16267, 16726, 19267 \@secpenalty . . 5, 200,
15934, 15947, 15958 \@restonecoltrue . . 509, 526, 661, 679,
\@raggedtwoe@footmisctrue . . . 98, 218, 594, 686, 888, 905, 923,
. . . . . . . . . . 15984 610, 859, 1111, 1144, 1162, 1170,
\@raggedtwoe@gnewline 6618, 6795, 7005, 8664, 8678, 13178,
. 15914, 15927, 15940 13148, 16014, 19200, 19332,
\@raggedtwoe@raggedrightboxes@opt16269, 16728, 19269 19387, 19751,
. . . . . . . 15960, \@resumename . . 2388, 2444 19758, 19859, 19866
15979, 15983, 16000 \@revlabeltrue . 743, \@sectiontitlecolour
\@raggedtwoe@saved@gnewline 995, 1245, 6743, . . . . . . . 2419, 2436
. . . . . . . . . . 15951 6920, 16153, 16292 \@seesize . . 18992, 18995
\@raggedtwoe@savedcr \@rightcolumn . 14799, \@setcol . . . . . . . . 11153
. . . . . . . 15911, 14804, 14805, \@setcolbox . 11114, 11150
15924, 15937, 15950 14814, 14815, \@setcopyright 112, 13198
\@raggedtwoe@spaceskipfalse 14823, 14827, \@setfontsize . . . . .
. . . . . . . . . . 15957 14833, 14899, 4664, 4673, 5883,

Index 468
5893, 5894, 5895, \@sixcolLTRfootnotetext \@subject 17141, 17142,
5896, 5897, 5898, 5899 . . . . . . . 9818, 9842 17220, 17254,
\@setfpsbit . . . . . . . \@sixcolRTLfootfmt 17255, 17690,
. . . 2282, 2285, 2288 . . . 9859, 9873, 9910 17691, 17769,
\@setmarks . . . . 7560, \@sixcolRTLfootnotetext 17803, 17804,
7562, 7592, 7623, . . . . . . . 9819, 9852 18389, 18390,
7625, 7651, 10999, \@sixcolfootfmt . . . 18468, 18502, 18503
11001, 11018, . . . 9839, 9867, 9885 \@subsectioncolour
11035, 11037, \@sixcolfootnotetext . . . . . . . 2421, 2437
11055, 11801, . . . . . . . 9817, 9832 \@subtitle . . . . . . .
11803, 11823, \@skip@bove . 18986, 18988 . . 17147, 17217,
11850, 11852, \@spaces . . . . . . . . . 17260, 17696,
11876, 14783, . 19024, 19065, 19070 17766, 17809,
14785, 14854, \@spart . . . . . . . . . . 8708 18395, 18465, 18508
14883, 14885, \@specialpagefalse \@tabacol 2195, 13841,
14951, 21247, . . . . . 11116, 21542 18948, 20949, 21129
21249, 21271,
\@specialstyle . . . . \@tabarray . 381, 405,
21294, 21296, 21314 409, 2197, 13828,
. . . . . 11117, 21542
\@setminipage . . 4962, 13830, 20944,
\@stabarray . . . . . . 18950
11553, 11761, 14758 20951, 21131, 21157
\@stabular . . . . . . 18946
\@setpar . . . . . 16555, \@tabclassiv . . . . . .
\@star@or@long . 2926,
16598, 17077, . . . 2197, 13842,
3158, 3182, 3193
17084, 17626, 18950, 20951, 21131
\@startcolumn . . . . 11886
17633, 18199, \@tabclassz . . . . . . .
18204, 18325, 18332 \@startdblcolumn . . 1443, 2196, 13842,
\@settab . . . . . . . . . 6545 . . . . 7596, 7598, 18949, 20950, 21130
\@sevencol@footgroupv@r 7655, 7657, 11019, \@tabcr . . . . . . 6548, 6558
. . . . . . . . . . . 9932 11021, 11059, \@tabminus . . . . . . . 6546
\@sevencolLTRfootfmt 11060, 11143, \@tabplus . . . . . . . . 6545
. . 9958, 9979, 10007 11145, 11827, \@tabular 377, 2183, 21127
\@sevencolLTRfootnotetext 11829, 11880, \@tabularcr . . . . . . .
. . . . . . . 9927, 9951 11882, 14858, . . . 2197, 13846,
\@sevencolRTLfootfmt 14861, 14955, 18950, 20951, 21131
. . 9968, 9982, 10019 14958, 21275, \@tagsextension 2732, 2735
\@sevencolRTLfootnotetext 21277, 21318, 21320
\@tarlinesep . . 18988,
. . . . . . . 9928, 9961 \@startfield . . . . . . 6587 18989, 18990,
\@sevencolfootfmt . \@startpbox . . . . 1415, 18991, 18994, 18996
. . . 9948, 9976, 9994 1416, 1481, 1482, \@temp@bibkey . . 5417,
\@sevencolfootnotetext 1483, 7336, 7337, 5436, 5455, 5483
. . . . . . . 9926, 9941 7338, 13843, \@temp@bibkeyx . . . .
\@sharp . . . . . . . 400, 13844, 13850, . . . . 5422, 5423,
1440, 1441, 1442, 18964, 19002, 21146 5425, 5426, 5427,
1448, 1449, 1450, \@startsection 23, 13172 5428, 5441, 5442,
13040, 13046, \@starttoc . . . 5850, 5858 5444, 5445, 5446,
13856, 18966, \@stopfield 6552, 6567, 5447, 5460, 5461,
19001, 19007, 21149 6571, 6599, 21516 5463, 5464, 5465,
\@sixcol@footgroupv@r \@stopline . . 6571, 21516 5466, 5492, 5493,
. . . . . . . . . . . 9823 \@stpelt . 3638, 3642, 3644 5495, 5496, 5497, 5498
\@sixcolLTRfootfmt \@strip . . . . . . . . . 14967 \@temp@last@bibkey
. . . 9849, 9870, 9898 \@subjclass . . . . . . . 324 . . . . 5416, 5417,

Index 469
5423, 5435, 5436, 17625, 17898, 14736, 15626,
5442, 5454, 5455, 17901, 18198, 15627, 15630,
5461, 5482, 5483, 5493 18324, 18581, 17382, 17396,
\@tempa . . . . 123, 126, 18584, 19073, 17400, 17402,
133, 134, 135, 136, 19075, 19080, 17425, 17426,
790, 792, 794, 798, 19082, 20474, 17428, 17429,
1042, 1044, 1046, 20491, 20495, 17431, 17436,
1050, 1292, 1294, 20496, 20497, 17441, 17962,
1296, 1300, 2610, 20506, 20520, 17976, 17980,
2617, 2648, 2649, 20696, 20699, 17982, 18005,
2652, 2755, 2756, 20705, 20709, 20723 18006, 18008,
2759, 2761, 2763, \@tempb . . . . . . . 2648, 18009, 18011,
2764, 2767, 2769, 2649, 2651, 2652, 18016, 18021,
2771, 2772, 2775, 12063, 12064, 18645, 18659,
2777, 2779, 2780, 12104, 12106, 18663, 18665,
2783, 2785, 2945, 12134, 12136, 18688, 18689,
2955, 2961, 2973, 12137, 12139, 18691, 18692,
2980, 2986, 2999, 12142, 15383, 18694, 18699,
3009, 3015, 3027, 15384, 15390, 18704, 19047,
3034, 3040, 3053, 15391, 15396, 15397 19067, 20435,
3066, 3072, 3090, \@tempboxa . . . . 5212, 20438, 20443,
3100, 3106, 10945, 5256, 5300, 7696, 20447, 20451,
12063, 12064, 7720, 7729, 7788, 20455, 20459,
12065, 12066, 7832, 7873, 7894, 20463, 20467,
12103, 12106, 7903, 8252, 8253, 20471, 21112,
12107, 12113, 8254, 8255, 8257, 21113, 21168,
12124, 12125, 8306, 8307, 8308, 21169, 21170,
12131, 12136, 8309, 8311, 9348, 21171, 21395,
12137, 12139, 10956, 10960, 21439, 21577,
12142, 12199, 10968, 10969, 21584, 21585,
12200, 12201, 11094, 11095, 21614, 21615, 21619
12202, 12659, 11096, 11542, \@tempc . 12105, 12107,
12663, 12666, 11566, 11604, 12113, 13291, 13296
12678, 12697, 11649, 11656, \@tempcnta 1406, 1465,
12701, 12704, 11666, 11669, 1466, 1467, 1469,
12716, 13209, 11673, 11675, 1470, 2270, 2276,
13212, 13263, 11681, 11715, 2278, 2291, 2292,
13264, 13911, 11717, 11723, 2298, 2299, 2625,
13912, 13914, 11736, 11740, 2627, 2631, 7323,
13915, 15379, 11741, 12029, 7325, 8227, 8284,
15380, 15381, 12125, 12142, 13330, 13332,
15384, 15391, 12291, 12472, 13335, 13358,
15397, 16200, 12474, 13460, 13359, 13367,
16202, 16204, 13465, 13469, 15455, 15457,
16208, 16341, 13873, 13874, 15458, 15464,
16343, 16345, 13877, 14684, 15468, 15481,
16349, 16932, 14687, 14691, 15532, 15534,
16933, 16975, 14693, 14699, 15538, 15541,
16976, 17076, 14701, 14702, 15543, 17180,
17318, 17321, 14731, 14732, 17182, 17375,

Index 470
17394, 17729, 8292, 8293, 8294, 16599, 16600,
17731, 17955, 8295, 8296, 8302, 16601, 16669,
17974, 18428, 8305, 8308, 8309, 16674, 16839,
18430, 18638, 8310, 8322, 8323, 16854, 16859,
18657, 19060, 8324, 8468, 8470, 16977, 16978,
20282, 20283, 8471, 8472, 8476, 17078, 17079,
20284, 20303, 8483, 8485, 8487, 17080, 17085,
20304, 20305, 8494, 8518, 8519, 17086, 17089,
20307, 20309, 8524, 8525, 8526, 17399, 17400,
20391, 20392, 8527, 8528, 8643, 17425, 17426,
20393, 21470, 8645, 8647, 8666, 17427, 17429,
21472, 21475, 8671, 8681, 10406, 17627, 17628,
21477, 21479, 21501 10440, 10441, 17629, 17634,
\@tempcntb . . . . . . . 10442, 10443, 17635, 17638,
2296, 2297, 2298, 10445, 10454, 17979, 17980,
15456, 15457, 10455, 10458, 18005, 18006,
15464, 15468, 10459, 10502, 18007, 18009,
15481, 17375, 10503, 10504, 18200, 18201,
17393, 17955, 10505, 10507, 18202, 18205,
17973, 18638, 18656 10516, 10517, 18206, 18209,
\@tempdima . . . . . . 8, 10520, 10521, 18326, 18327,
10, 12, 14, 203, 10708, 10710, 18328, 18333,
205, 207, 209, 385, 10771, 10785, 18334, 18337,
386, 388, 511, 528, 10790, 10957, 18662, 18663,
533, 651, 664, 688, 10958, 10961, 18688, 18689,
693, 878, 879, 890, 10962, 11540, 18690, 18692,
895, 908, 1134, 11544, 11998, 18993, 18996,
1147, 1172, 1177, 12000, 12122, 18998, 19061,
1460, 1461, 1493, 12124, 12129, 19120, 19121,
1494, 1495, 2350, 12131, 12132, 19122, 19342,
2352, 5871, 5872, 12134, 12147, 19346, 19373,
6641, 6654, 6676, 12152, 12157, 19377, 19396,
6681, 6818, 6831, 12161, 13181, 19400, 19413,
6853, 6858, 7117, 13183, 13185, 19417, 19430,
7132, 7137, 7348, 13187, 13306, 19434, 19447,
7349, 7350, 7398, 13311, 13327, 19451, 19464,
7403, 7677, 7746, 13328, 13333, 19468, 19481,
7747, 7761, 7762, 13838, 13848, 19485, 19499,
7766, 7843, 7921, 13853, 14802, 19503, 19518,
7922, 7936, 7937, 14806, 14902, 19522, 19538,
7941, 7957, 7958, 14906, 14967, 19542, 19573,
8198, 8199, 8200, 14992, 15015, 19577, 19761,
8201, 8219, 8220, 15027, 15028, 19767, 19869,
8221, 8222, 8228, 15039, 15040, 19919, 19922,
8230, 8231, 8235, 15459, 16055, 19923, 19927,
8236, 8237, 8238, 16068, 16090, 20299, 20301,
8239, 8247, 8251, 16095, 16427, 20330, 20333,
8254, 8255, 8256, 16440, 16462, 20340, 20343,
8270, 8271, 8272, 16467, 16556, 20347, 20352,
8285, 8287, 8288, 16557, 16558, 20355, 20367,

Index 471
20400, 20402, 18337, 18993, \@tencolRTLfootnotetext
20403, 20406, 18996, 18998, . . . . . 10255, 10288
20409, 20413, 20300, 20306, \@tencolfootfmt . . .
20420, 20422, 20308, 20313, . 10275, 10303, 10321
20481, 20482, 20315, 20318, \@tencolfootnotetext
20495, 20497, 20322, 20326, . . . . . 10253, 10268
20505, 20512, 20334, 20336, \@testopt . . . . . 3160,
20658, 20659, 20337, 20350, 3178, 13835, 13836
20678, 20689, 20356, 20358, \@testpach 352, 1377,
20690, 20691, 20661, 20662, 1422, 19086, 21158
20692, 20704, 20664, 20666, \@texfileextension
20707, 20713, 20669, 20670, . . . . . . . 2734, 2737
20714, 21036, 20672, 20675, \@textbottom . . 10703,
21037, 21179, 20689, 20690, 12001, 17102,
21180, 21480, 20691, 20695, 17109, 17358,
21481, 21482, 20708, 20712, 17363, 17651,
21483, 21486, 20713, 21039, 21040 17658, 17938,
21489, 21492, \@tempdimc 7318, 17075, 17943, 18350,
21494, 21517, 21518 17082, 17083, 18357, 18621, 18626
\@tempdimb 7317, 7679, 17093, 17624, \@textsuperscript .
7682, 7683, 7684, 17631, 17632, 454, 457, 744, 806,
7685, 7688, 7689, 17642, 18323, 808, 996, 1060,
7690, 7691, 7692, 18330, 18331, 18341 1246, 1308, 1310,
7693, 7694, 7845, \@tempskipa . . . . . . . 1983, 1986, 5522,
7848, 7849, 7851, . . . 6577, 6578, 6579 5524, 6744, 6921,
7853, 7856, 7860, \@tempswafalse . 4386, 7060, 7063, 8781,
7863, 7866, 7870, 4433, 8239, 8296, 8784, 8878, 8881,
7872, 8198, 8199, 12070, 20743, 20786 10881, 10884,
8219, 8220, 8271, \@tempswatrue . . . . . 14627, 16154,
8273, 8276, 8323, . . . . 4385, 4430, 16216, 16218,
8325, 8328, 8474, 8233, 8290, 21229 16293, 16357,
8476, 8489, 8490, \@temptokena 121, 125, 16359, 16553,
8491, 8492, 8494, 13207, 13211, 15518 16560, 16596,
8521, 8524, 10456, \@tempx . . . . . . . 6479, 16603, 16782, 16785
10457, 10458, 6480, 12737, 12749 \@texttop . . 10699, 11997
10518, 10519, \@tempxi . . . . . . 6482, \@tfor . . . . . . 2271, 10945
10520, 10950, 6483, 12768, 12780 \@thanks . . . . . . 433,
10951, 10952, \@tempxii . . . . . 6485, 441, 469, 477,
10953, 10955, 6486, 12799, 12811 775, 781, 820, 826,
12123, 12124, \@tempy . . . . . . 2203, 2204 1027, 1033, 1072,
12130, 12131, \@tempyi . . . . . 2206, 2207 1078, 1277, 1283,
12133, 12134, \@tempyii . . . . 2209, 2210 1322, 1328, 1988,
13328, 13329, \@tencol@footgroupv@r 1994, 6775, 6781,
13331, 14967, . . . . . . . . . . 10259 6952, 6958, 7039,
14992, 17087, \@tencolLTRfootfmt 7047, 7075, 7083,
17088, 17089, . 10285, 10306, 10334 8762, 8768, 8796,
17636, 17637, \@tencolLTRfootnotetext 8802, 8857, 8865,
17638, 18207, . . . . . 10254, 10278 8893, 8901, 10862,
18208, 18209, \@tencolRTLfootfmt 10868, 10896,
18335, 18336, . 10295, 10309, 10346 10902, 11568,

Index 472
11582, 11585, 10210, 10223, . . . 9536, 9549, 9584
14620, 14643, 10235, 10273, \@threecolRTLfootnotetext
16185, 16191, 10283, 10293, . . . . . . . 9498, 9529
16230, 16236, 10319, 10332, \@threecolfootfmt .
16324, 16332, 10344, 10539, . . . 9518, 9543, 9561
16371, 16379, 10551, 10563, \@threecolfootnotetext
16574, 16582, 10600, 10614, . . . . . . . 9496, 9511
16615, 16623, 10628, 10881, \@title . . . . . . . 320,
16761, 16769, 10884, 11405, 423, 444, 480, 494,
16797, 16805, 11410, 11414, 753, 755, 783, 828,
17160, 17204, 11419, 11441, 841, 1005, 1007,
17213, 17709, 11458, 11474, 1035, 1080, 1093,
17753, 17762, 11502, 11516, 1255, 1257, 1285,
18408, 18452, 18461 11530, 11573, 1330, 1344, 1355,
\@thefnmark . . . . . 44, 11578, 11588, 1997, 2386, 2447,
58, 74, 247, 261, 11593, 12012, 6055, 6140, 6753,
276, 454, 457, 12519, 12530, 6755, 6783, 6930,
744, 806, 808, 996, 12541, 12552, 6932, 6960, 7029,
1060, 1246, 1308, 12670, 12708, 7050, 7086, 7100,
1310, 1983, 1986, 12741, 12772, 8150, 8752, 8771,
2226, 2234, 2242, 12803, 12866, 8805, 8817, 8847,
5522, 5524, 5558, 13169, 16154, 8868, 8904, 8918,
5576, 5594, 5620, 16216, 16218, 10852, 10871,
5626, 5649, 5655, 16293, 16357, 10905, 10917,
5678, 5684, 6500, 16359, 16553, 14621, 16163,
6507, 6514, 6744, 16560, 16596, 16165, 16193,
6921, 7060, 7063, 16603, 16782, 16785 16238, 16251,
8781, 8784, 8878, \@thefoot . . . . 11122, 16302, 16304,
8881, 9116, 9130, 11125, 11129, 16334, 16381,
9144, 9156, 9167, 21545, 21551, 16397, 16408,
9178, 9219, 9223, 21559, 21562, 21597 16564, 16585,
9225, 9231, 9235, \@thehead . . . . 11121, 16626, 16640,
9237, 9243, 9247, 11124, 11128, 16751, 16772,
9249, 9407, 9417, 21545, 21551, 16808, 16822,
9427, 9453, 9466, 21558, 21561, 21581 17145, 17216,
9478, 9516, 9525, \@themargin . . . 11178, 17258, 17694,
9534, 9559, 9571, 12167, 12169, 17765, 17807,
9582, 9619, 9629, 12174, 12176, 18393, 18464, 18506
9639, 9665, 9678, 12180, 12182, \@titlecolour . 2416, 2433
9690, 9728, 9738, 21547, 21549, \@titlehead . . . . . . .
9748, 9774, 9787, 21553, 21555, 21574 . . 17134, 17136,
9799, 9837, 9847, \@thm . . . . . . 15412, 15433 17219, 17246,
9857, 9883, 9896, \@thmcountersep 350, 20969 17248, 17683,
9908, 9946, 9956, \@threecol@footgroupv@r 17685, 17768,
9966, 9992, 10005, . . . . . . . . . . . 9502 17795, 17797,
10017, 10055, \@threecolLTRfootfmt 18382, 18384,
10065, 10075, . . . 9527, 9546, 9573 18467, 18494, 18496
10101, 10114, \@threecolLTRfootnotetext \@tocextra . . . . . . .
10126, 10164, . . . . . . . 9497, 9520 . . 19293, 19294,
10174, 10184, \@threecolRTLfootfmt 19298, 19300, 19303

Index 473
\@tocline . . 2, 197, 13175 20560, 20562, \@twocolRTLfootnotetext
\@tocpagenum 15, 210, 13188 20585, 20587, . . . . . . . 9389, 9422
\@tocrmarg . . . . . . . 20600, 20606, 20609 \@twocolfootfmt . . .
. . 15011, 15023, \@todonotes@textwidth . . . 9409, 9437, 9455
15035, 15996, . . . . . . . . . . 20583 \@twocolfootnotetext
19337, 19368, \@toodeep . . . . . . . 20976 . . . . . . . 9387, 9402
19391, 19408, \@topnum . . . 111, 314, \@twosidefalse . . . . 4648
19425, 19442, 466, 817, 1069, \@twosidetrue . . . . . 4643
19459, 19476, 1319, 6133, 7072, \@typeset@protect .
19494, 19513, 8793, 8890, 10893, . . . . . . . . 2142,
19533, 19568, 13197, 14640, 2148, 2154, 2169
19619, 19897, 16227, 16368, \@undeclaredcolor .
20360, 20477, 21175 16612, 16794, . . . . . . . . 7363,
\@todonotes@MissingFigureDown 17201, 17750, 18449 7371, 20736, 20737
. . . . . . . . . . 20639 \@topsep . . . 15426, 15446 \@undefined . . . . . . .
\@todonotes@MissingFigureText . 2200, 13840, 14741
\@topsepadd . . . . . . .
. . . . . . . . . . 20616 \@undottedtocline 15008
. 2114, 15427, 15447
\@todonotes@MissingFigureUp \@unexpandable@protect
\@totalleftmargin .
. . . . . . . . . . 20638 . . . . . . . 3211, 4545
. . 11751, 11755,
\@todonotes@author \@unrecurse . 18983, 18986
11758, 11767,
. . . . . . . 20549, \@uppertitleback . .
13349, 13350,
20560, 20585, 20603 . . . . . . . 17164,
13371, 13973,
\@todonotes@currentfigcolor 17222, 17713,
15429, 15430,
. . . . . . . . . . 20620 17771, 18412, 18470
15449, 15450,
\@todonotes@currentfigheight \@urlbordercolor . .
15970, 20995,
. . . . . . . . . . 20621 . . . . . 12968, 12970
20997, 21003,
\@todonotes@currentfigwidth \@urlcolor . . . . . . 12982
21005, 21009,
. . . . . . . 20621, \@viiipt . . . . . . 4673,
21011, 21015,
20623, 20633, 20636 5893, 15467, 15480
21017, 21019,
\@todonotes@drawInlineNote \@viipt 5893, 15467, 15480
21054, 21056,
. . . . . . . . . . 20544 \@viper 7599, 7601, 7603,
21057, 21058,
\@todonotes@drawLineToLeftMargin 7658, 7660, 7662,
21063, 21065,
. . . . . 20572, 20575 7675, 7739, 7785,
21066, 21067,
\@todonotes@drawLineToRightMargin 7913, 7962, 14968,
21072, 21074,
. . . . . 20572, 20575 14983, 14985, 14990
21075, 21076,
\@todonotes@drawMarginNote \@viperoutput . 7605, 7664
21081, 21083,
. 20571, 20574, 20578 \@vipt . . . . . . . . . . . 5894
21084, 21085, 21517
\@todonotes@drawMarginNoteWithLine \@vpt . . . . . . . . . . . . 5894
\@traditionalpoem .
. . . . . . . . . . 20566 \@whilenum . . . . . . 13359
. . . . . . . 6428, 6520
\@todonotes@ifdisabled \@whilesw . 7597, 7656,
. . . . . . . . . . 20645 \@trivlist ....... 11020, 11060,
\@todonotes@sizecommand . 15423, 15443, 20988 11144, 11828,
. . . . . . . 20549, \@twocol@footgroupv@r 11881, 14859,
20551, 20558, . . . . . . . . . . . 9393 14956, 21276, 21319
20560, 20562, \@twocolLTRfootfmt \@wholewidth . . . . . .
20585, 20587, . . . 9419, 9440, 9468 . 10947, 10949, 10967
20599, 20602, \@twocolLTRfootnotetext \@width . . . . . 31, 235,
20603, 20605, 20608 . . . . . . . 9388, 9412 390, 540, 725, 960,
\@todonotes@text . . \@twocolRTLfootfmt 1205, 1495, 6716,
. . 20549, 20551, . . . 9429, 9443, 9480 6869, 7145, 7350,

Index 474
7572, 7637, 7712, \@xfootnotemark . . 12549 15536, 15548,
7886, 8180, 8736, \@xfootnotenext . . . 15911, 15912,
9035, 9084, 10818, . . . . 2188, 2310, 15924, 15925,
11049, 11352, 6375, 6386, 6592, 15937, 15938,
11354, 11729, 6606, 12516, 19032 15950, 16161,
11817, 11864, \@xiipt . . . . . . . . . . 5896 16206, 16300,
13166, 13237, \@xipt . . . . . . . . . . . 5895 16347, 18300,
13855, 13909, \@xivpt . . . . . . 303, 5897 18950, 18965,
13995, 14841, \@xmakefntext . . 807, 18981, 18982,
14943, 15086, 1309, 16217, 16358 19158, 19187,
15100, 15132, \@xp . . . . . . . 121, 308, 20582, 20589,
15180, 16106, 333, 334, 7264, 13207 20951, 21088,
16529, 16685, \@xpt . . . . . . . . . . . . 4664 21131, 21147, 21157
16867, 17104, \@xstartcol . . . . . . 11904 \{ . . . . 2059, 14115, 14159
17359, 17653, \@xthm . . . . . 15431, 15451 \} . . . . 2060, 14115, 20956
17939, 18352, \@xtitle . . . . . . . . . 320 \] . . . . . . . . . 6546, 11074
18622, 18959, \@xxpt . . . . . . . . . . . 5898 \^ . . . . . . . . . . . 1829,
18998, 21141, \@xxxii . . . . . . . . . . 2297 6328, 6329, 6331, 6332
21259, 21308, 21508 \@xympar . . . . . . . . . \` . . . 11749, 13970, 15966
\@x . . . . . . . . . . 6537, 6538 5218, 5222, 5262, \| . . . 11628, 11629, 11744
\@x@sf 5531, 5536, 5542, 5545 5266, 5306, 5310,
\@xLTRfootnote . . . . 21401, 21405, Numbers
. . . . 2191, 2313, 21445, 21449, 21512 \0 . . . . . . . . . . . . . . 1783
6378, 6389, 6595, \@yargdef . . . . . . . . 3180 \1 . . . 14057, 14108, 14160
6609, 11413, 11416 \@ympar . . . . . . . . . 21509 \9 . . . . . . . . . . . . . . 1783
\@xLTRfootnotenext \@ythm . . . . . 15431, 15451
. . . . . . . . 2190, \[ . . . . . . . . . 6545, 11064
2312, 6377, 6388, \\ . . . . . 122, 404, 751, \␣ 1599, 1882, 5424, 5428,
6594, 6608, 11572, 796, 1003, 1048, 5443, 5447, 5462,
11575, 12538, 19033 1253, 1298, 2197, 5466, 5494, 5498,
\@xRTLfootnote . . . . 2494, 2500, 2647, 11621, 11623, 18294
. . . . 2193, 2315, 3663, 3679, 3683,
6380, 6391, 6597, 3912, 3914, 3915, A
6611, 11404, 11407 3916, 3924, 3929, \abovecaptionskip .
\@xRTLfootnotenext 3930, 3932, 4978, . . . . . . . 13458,
. . . . . . . . 2192, 4979, 4980, 4982, 13897, 13899,
2314, 6379, 6390, 5942, 6311, 6449, 14680, 14730,
6596, 6610, 11587, 6751, 6928, 8038, 17449, 17453,
11590, 12527, 19034 8039, 8042, 8058, 17468, 17476,
\@xaddress . . . . . . . 321 8145, 8150, 8157, 18029, 18033,
\@xauthor . . . . . . . . 321 8167, 8171, 9015, 18048, 18056,
\@xcolor@ . . 20744, 20787 9019, 9028, 12371, 18712, 18716,
\@xcurraddr . . . . . . . 322 12374, 12387, 18731, 18739, 21613
\@xemail . . . . . . . . . 322 12390, 12490, \abovedisplayshortskip
\@xepersian@pdfcustomproperties 12911, 12926, . . . 4666, 4675, 5885
. . . . . . . . . . . 1820 12945, 13208, \abovedisplayskip .
\@xfloat . . . . . . . . . 2246 13228, 13232, 4665, 4668, 4674,
\@xfootnote . . . . 2189, 13422, 13423, 4681, 4715, 5884, 5891
2311, 6376, 6387, 13429, 13430, \abstractname 629, 635,
6593, 6607, 12864 13833, 13978, 638, 936, 942, 944,

Index 475
1188, 1194, 1197, \addtocounter 13351, 13352 . . . . . . . . . . . . 164
6692, 6880, 16033, \addtolength . . . 2368, \adjmult@cols . . . . . 163
16039, 16042, 2369, 2370, 2371, \adjmulticols . . . . . 132
16483, 16489, 16492 2372, 2373, 2471, \adl@act@classz . . . 1498
\Acrobatmenu . . . . . 12987 2472, 2474, 2476, \adl@act@CT@setup .
\active . . . . . . . 6328, 2477, 2480, 4750, . . . . . . . 1456, 1463
6329, 6331, 6332 4753, 4754, 4757, \adl@activate . 1373, 1456
\add@strip . . . . . . 14992 5908, 8136, 8137, \adl@argarraydashrule
\addcontentsline . . 8138, 8527, 12224, . . . . . . . 1392, 1430
. . 553, 555, 2491, 12225, 13317, \adl@array . . . 1370, 1375
4957, 8692, 8694, 13319, 13321, \adl@arraydashrule
13489, 13494, 13322, 13340, . . . . . . . 1391, 1429
14753, 19276, 13342, 13343, \adl@arrayinit . . . . 1372
19283, 19300, 20616 13345, 13346, \adl@arrayrestore . 1367
\AddExtraParaSkip . 13348, 13349, \adl@arrayrule 1390, 1428
. 10398, 10401, 10526 13350, 13365, \adl@box . 1413, 1415, 1416
\addfontfeature 2414, 13366, 17079, \adl@class@iiiorvii
2415, 2416, 2417, 17082, 17083, . . . . . . . 1419, 1452
2418, 2419, 2421, 2422 17086, 17088, \adl@class@start . .
\addpenalty . . . . . . 5, 17426, 17427, . . . . . . . 1418, 1451
200, 509, 526, 661, 17628, 17631, \adl@CT@setup . . . . .
679, 686, 888, 905, 17632, 17635, . . . 1455, 1458, 1459
923, 1144, 1162, 17637, 18006, \adl@depth . . . . . . . 1462
1170, 6651, 6667, 18007, 18201, \adl@endarray . . . . . 1367
6674, 6828, 6844, 18206, 18208, \adl@endmbox . . . . . . 1414
6851, 7115, 7130, 18327, 18330, \adl@everyvbox 1371, 1372
8664, 8678, 8933, 18331, 18334, \adl@extract@arc . . 1467
10768, 10783, 18336, 18689, \adl@extract@dgc . . 1470
13178, 16065, 18690, 19219, \adl@extract@drsc . 1468
16081, 16088, 19220, 19900, \adl@height . . . . . . . 1461
16437, 16453, 19906, 19910, 19914 \adl@inactivate 1373, 1455
16460, 16653, \addvspace . . . . . . 5, \adl@LT@array . . . . 13038
16667, 16837, 200, 510, 527, 662, \adl@noalign . . . . . . 1374
16852, 19200, 680, 687, 889, \adl@org@activate . 1456
19202, 19330, 906, 924, 1145, \adl@org@classz . . . 1499
19332, 19365, 1163, 1171, 5936, \adl@org@endpbox . . 1457
19387, 19751, 5993, 6652, 6668, \adl@org@inactivate 1455
19754, 19758, 6829, 6845, 7116, \adl@putlrc 1410, 1411,
19859, 19862, 19866 8665, 8679, 8934, 1412, 1440, 1441,
\address . . . . . 321, 2448 10769, 13178, 1442, 1448, 1449, 1450
\addresscolour . . . . 16066, 16082, \adl@startmbox . . . . 1413
2417, 7990, 8088, 16438, 16454, \advance . . . . . . . 12,
8094, 8100, 8106, 8112 16654, 16838, 90, 207, 293, 311,
\addressfont . . . . . . 19334, 19388, 386, 533, 577, 693,
2426, 2434, 2545, 19752, 19759, 712, 879, 895, 975,
8028, 8056, 8120, 8154 19860, 19863, 1177, 1225, 1460,
\addresssymbol . . . . 19867, 19894, 20294 1494, 1783, 1784,
. . . 2408, 8058, 8157 \adjmc@inner . . . . . . 134 1785, 1956, 1961,
\addresstyle . . . . . . 2434 \adjmc@outer . . . . . . 136 2278, 2292, 2298,
\addtocontents . . . 19616 \adjmc@page@sofar@orig 2564, 2608, 2643,

Index 476
2944, 2998, 3052, 13329, 13332, 19927, 20283,
3773, 3932, 3938, 13333, 13367, 20303, 20308,
3948, 4003, 4020, 13848, 13860, 20358, 20359,
4029, 4557, 5166, 13926, 14794, 20360, 20363,
5872, 5947, 6298, 14796, 14823, 20367, 20392,
6306, 6307, 6578, 14824, 14827, 20403, 20482,
6681, 6703, 6858, 14894, 14896, 20505, 20659,
6891, 7137, 7200, 14923, 14924, 20661, 20671,
7349, 7357, 7358, 14927, 14981, 20690, 20691,
7398, 7510, 7675, 14982, 14983, 20720, 20731,
7676, 7685, 7746, 14984, 14993, 20732, 20978,
7747, 7762, 7782, 15015, 15028, 20991, 20992,
7785, 7786, 7795, 15040, 15053, 20995, 20997,
7797, 7803, 7804, 15182, 15183, 21003, 21005,
7807, 7810, 7813, 15188, 15189, 21009, 21011,
7856, 7921, 7922, 15192, 15193, 21015, 21017,
7937, 7957, 7958, 15424, 15428, 21115, 21116,
8188, 8198, 8199, 15429, 15444, 21180, 21206,
8209, 8219, 8220, 15448, 15449, 21481, 21482,
8236, 8237, 8238, 15457, 15543, 21489, 21490,
8255, 8264, 8271, 15565, 15593, 21491, 21492, 21517
8293, 8294, 8295, 15600, 15642, \afterassignment . .
8309, 8316, 8323, 15647, 15648, 1601, 1603, 1884,
8471, 8472, 8485, 15649, 15678, 1886, 3212, 4012,
8487, 8490, 8491, 15679, 15705, 5396, 19056, 19057
8492, 8671, 8724, 15716, 15871, \aftergroup . . . . . . .
8995, 9379, 9381, 15873, 15878, 2096, 2106, 4215,
10406, 10441, 15881, 15904, 4217, 4227, 4229,
10443, 10448, 16095, 16122, 4239, 4241, 4259,
10452, 10503, 16467, 16516, 4261, 4270, 4272,
10505, 10510, 16557, 16600, 4281, 4283, 5380,
10514, 10790, 16674, 16710, 5395, 7361, 7363,
10832, 10947, 16859, 16913, 7370, 7376, 7395,
10949, 10951, 16978, 17315, 11165, 11167,
10957, 10958, 17895, 18298, 15761, 15762,
10965, 10966, 18578, 18911, 15765, 15770,
10967, 11137, 18982, 18996, 15771, 15775,
11138, 11624, 19006, 19026, 15780, 15781,
11638, 11651, 19121, 19159, 15785, 15789,
11652, 11684, 19175, 19188, 15793, 15797,
11689, 11690, 19192, 19224, 19193, 20285,
11693, 11702, 19225, 19245, 20725, 20734,
11766, 11893, 19346, 19377, 20736, 20773,
11894, 11898, 19400, 19417, 20777, 20830,
11899, 11901, 19434, 19451, 20841, 20842,
11902, 11905, 19468, 19485, 20845, 20850,
11906, 11907, 19503, 19522, 20851, 20855,
11908, 12027, 19542, 19577, 20860, 20861,
12873, 12883, 19618, 19767, 20865, 20870,
13139, 13185, 19768, 19876, 20874, 20879,

Index 477
21527, 21537, 21538 8872, 8908, 10875, 13515, 13598,
\ALG@floatstyle . . . 10909, 14618, 15982, 18972, 20432
. . . 5181, 5182, 5183 15520, 16172, \AtBeginPackage . . 14723
\algocf@float . . . . 21679 16198, 16201, \AtEndDocument . 1811,
\algocf@makecaption 188 16243, 16311, 2547, 3548, 4462,
\algocf@within . . . . 16339, 16342, 6473, 6530, 14100,
. . . . . . 166, 168, 16386, 16410, 14151, 14169, 21227
21681, 21682, 21683 16589, 16630, \AtEndOfClass . . . . . 2382
\alignL . . . . . . . . . . 7296 16776, 16812, \AtPageLowerLeft . . 8461
\alignR . . . . . . . . . . 7303 17235, 17784, 18483 \AtPageUpperLeft . .
\allowbreak 8194, 8215, \andify . . . . . . 116, 13202 . . . 8461, 8475, 8493
9439, 9442, 9445, \andname . . 796, 1048, \AtTextUpperLeft . .
9545, 9548, 9551, 1298, 16206, 16347 . . . . . . . 8465, 8481
9651, 9654, 9657, \andnext . . . . . . . . 14619 \author . . . . . . . 321,
9760, 9763, 9766, \AppendToTokenList 3879 446, 482, 786, 831,
9869, 9872, 9875, \arabic . . . . . . . . 19, 1038, 1083, 1288,
9978, 9981, 9984, 20, 21, 22, 86, 214, 1333, 1999, 6039,
10087, 10090, 215, 216, 217, 289, 6071, 6786, 6963,
10093, 10196, 329, 11100, 11106, 7052, 7088, 8773,
10199, 10202, 13135, 13192, 8807, 8870, 8906,
10305, 10308, 10311 13193, 13194, 10873, 10907,
\Alph . . . . . . . . . . . 14662 13195, 19558, 21679 16196, 16241,
\AM@CheckAtEnd . . . 15556 \array . . . . . . . 407, 21155 16337, 16384,
\AM@ClearShipoutPicture 16587, 16628,
\arraycolsep . . . . . . 407
. . . . . . . . . . 15558 16774, 16810,
\arraylinesep . . . . 18989
\AM@currentdocname 17225, 17774, 18473
. . . . . 15521, 15527 \arrayrulecolor . . . 1467
\auto@footnoterule
\AM@findfile . . . . . 15525 \arrayrulewidth . . 19006 . . . . . 11368, 11379
\AM@output . . . . . . 15554 \arraystretch 388, 389, \autodot . . . . . 17282,
\AM@pagecount . . . . 15523 2090, 2101, 13853, 17830, 18529, 20495
\AM@pageref . 15538, 15541 13854, 18957, \autofootnoterule .
\AM@pagestemp . . . . . 18958, 18993, 1694, 8174, 9078,
. . 15531, 15536, 20964, 21139, 21140 11377, 12008, 21631
15537, 15540, \aslice . 15685, 15686,
15548, 15549, 15553 15688, 15690, B
\AM@readlist . . . . . 15553 15691, 15693, \backmatter . . . . . . .
\AM@split@options 15517 15706, 15707, 15709 . . . 6243, 7185, 8980
\AM@temp . . . 15518, 15519 \At@ViperColsBreak \baselineskip . . 402,
\AM@threadname . . . . . . . 7824, 7834, 7838 724, 726, 730,
. 15516, 15526, 15527 \AtBeginCaption . . 13500 732, 1204, 1206,
\AM@xrprefix . . . . . . \AtBeginDocument . . 1210, 1212, 3152,
. 15534, 15538, 15541 . . . . 1592, 1739, 4692, 4694, 4697,
\and . . . . . . . 448, 484, 2383, 2443, 2540, 4699, 4701, 4704,
762, 788, 791, 833, 3524, 4610, 4759, 4859, 5489, 5556,
1014, 1040, 1043, 4986, 5120, 5125, 5574, 5592, 5709,
1085, 1264, 1290, 5178, 5989, 6189, 5718, 5727, 5808,
1293, 1335, 1357, 6254, 8067, 8181, 5815, 5822, 5829,
2001, 6762, 6788, 8202, 8223, 8631, 5836, 5936, 5993,
6939, 6965, 7054, 11481, 12016, 6336, 6397, 6461,
7090, 8775, 8809, 12488, 13508, 6467, 6715, 6717,

Index 478
6721, 6723, 6868, 10231, 10242, 7447, 7460, 7470,
6870, 6874, 6876, 10247, 10269, 7483, 7493, 8042,
7511, 7512, 7529, 10279, 10289, 8148, 8153, 8171,
7533, 7748, 7923, 10315, 10327, 8340, 8343, 8347,
11175, 11639, 10340, 10351, 8349, 8354, 8356,
13327, 13335, 10356, 10438, 8360, 8363, 8366,
13869, 13879, 10500, 10535, 8370, 8372, 8376,
13976, 13993, 10547, 10559, 8378, 8382, 8385,
15640, 15643, 10590, 10609, 8388, 8392, 8394,
15657, 15681, 10623, 10641, 8399, 8401, 8550,
15685, 15690, 10651, 10660, 10669 8616, 8743, 8751,
15694, 15706, \BCmd . . . . . . . . . . . . 2095 8756, 8815, 8821,
15717, 15744, \BDefaboveskip . . . . 8836, 8846, 8851,
15977, 16105, . . . 2110, 2125, 2128 8914, 8922, 9014,
16107, 16111, \BDefbelowskip . . . . 10843, 10851,
16113, 16528, . . . 2114, 2126, 2129 10856, 10915,
16530, 16534, \BDefinlineskip . . . 10921, 11067,
16536, 18292, . . . 2119, 2127, 2130 12239, 12244,
18295, 18297, \begin . . . . . 412, 422, 12262, 12365,
18302, 18968, 427, 490, 498, 736, 12367, 12381,
19007, 20659, 749, 760, 839, 845, 12383, 13227,
20667, 20671, 988, 1001, 1012, 14768, 15464,
21151, 21571, 21594 1091, 1097, 1238, 16146, 16159,
\baselinestretch 2398, 1251, 1262, 1342, 16170, 16249,
5552, 5570, 5588, 1348, 1357, 1359, 16255, 16283,
9110, 9124, 9138, 1360, 2089, 2091, 16298, 16309,
9152, 9163, 9174, 2100, 2102, 2105, 16393, 16401,
9403, 9413, 9423, 2498, 2502, 2504, 16410, 16412,
9449, 9461, 9474, 2506, 2508, 2512, 16413, 16543,
9485, 9490, 9512, 2520, 2523, 2558, 16563, 16568,
9521, 9530, 9555, 2671, 2675, 2695, 16644, 16740,
9566, 9578, 9588, 2699, 2726, 3583, 16750, 16755,
9593, 9615, 9625, 3584, 3591, 3617, 16818, 16826,
9635, 9661, 9673, 4319, 4765, 4766, 17115, 17135,
9686, 9697, 9702, 4779, 4782, 4856, 17140, 17150,
9724, 9734, 9744, 4857, 4863, 4864, 17163, 17167,
9770, 9782, 9795, 4871, 4872, 4897, 17247, 17253,
9806, 9811, 9833, 4898, 4935, 4938, 17264, 17306,
9843, 9853, 9879, 4941, 4944, 4948, 17664, 17684,
9891, 9904, 9915, 4949, 5133, 5134, 17689, 17699,
9920, 9942, 9952, 5752, 5808, 5815, 17712, 17716,
9962, 9988, 10000, 5822, 5829, 5836, 17796, 17802,
10013, 10024, 5849, 5857, 5979, 17813, 17886,
10029, 10051, 5984, 6117, 6164, 18363, 18383,
10061, 10071, 6187, 6562, 6736, 18388, 18398,
10097, 10109, 6749, 6760, 6913, 18411, 18415,
10122, 10133, 6926, 6937, 6981, 18495, 18501,
10138, 10160, 6993, 7018, 7028, 18512, 18569,
10170, 10180, 7033, 7096, 7104, 19238, 20546,
10206, 10218, 7414, 7424, 7437, 20553, 20556,

Index 479
20567, 20580, 12550, 12648, 17036, 17043,
20583, 20590, 12668, 12706, 17053, 19123,
20596, 20619, 12739, 12770, 20729, 20734,
20623, 20629, 20636 12801, 13035, 20736, 20830,
\begin@bidi@stack . 13050, 13179, 20835, 20841,
. . . . 2665, 2675, 13205, 13274, 20857, 21423,
2676, 2689, 2699, 2700 13304, 13492, 21501, 21581, 21597
\begingroup . . . 6, 119, 13857, 14625, \beginR . . . . . . . 174,
201, 302, 315, 379, 14755, 14856, 336, 348, 379, 404,
391, 452, 512, 529, 14953, 15163, 1472, 2194, 5240,
663, 689, 803, 891, 15167, 15171, 5328, 7253, 7327,
907, 1055, 1146, 15514, 15562, 7356, 7361, 7370,
1173, 1305, 1486, 15853, 16067, 7376, 7395, 8459,
1981, 2224, 2232, 16091, 16213, 9372, 9376, 11096,
2240, 2619, 2647, 16354, 16439, 12020, 12025,
2666, 2690, 2909, 16463, 16593, 12082, 12121,
2928, 3278, 3324, 16655, 16670, 12128, 12497,
3331, 3361, 3377, 16780, 16840, 12505, 12887,
3393, 3433, 3441, 16855, 17189, 12923, 12955,
3474, 3522, 3646, 17305, 17398, 12984, 13010,
3854, 3856, 3886, 17738, 17885, 13016, 13023,
3896, 3906, 4036, 17978, 18437, 13220, 13461,
4109, 4133, 4148, 18568, 18661, 13873, 13937,
4214, 4225, 4237, 19055, 19172, 13940, 13950,
4258, 4268, 4279, 19196, 19335, 14041, 14049,
4429, 4543, 4555, 19762, 19870, 14240, 14566,
4590, 4959, 5378, 20281, 20398, 14731, 14733,
5624, 5653, 5682, 20738, 20781, 15630, 15755,
6056, 6073, 6089, 20830, 20942, 15762, 15767,
6101, 6134, 6438, 21273, 21316, 21527 15849, 15850,
6498, 6505, 6512, \beginL 176, 1471, 1636, 15851, 17019,
6542, 6653, 6677, 1911, 2545, 5240, 17029, 17040,
6830, 6854, 7058, 5284, 7326, 7355, 17047, 17441,
7118, 7133, 7222, 7361, 7363, 7395, 18021, 18704,
7341, 7395, 7404, 9412, 9464, 9520, 18947, 18969,
7594, 7653, 8466, 9569, 9624, 9676, 19008, 19130,
8482, 8667, 8680, 9733, 9785, 9842, 20730, 20734,
8779, 8876, 8935, 9894, 9951, 10003, 20773, 20777,
10437, 10499, 10060, 10112, 20830, 20835,
10770, 10786, 10169, 10221, 20842, 20847,
10879, 11019, 10278, 10330, 21098, 21101,
11057, 11141, 10960, 11071, 21104, 21121,
11157, 11408, 11086, 11253, 21128, 21153,
11417, 11576, 12018, 12024, 21467, 21501,
11591, 11598, 12033, 12053, 21518, 21520,
11650, 11683, 12069, 12079, 21581, 21597,
11825, 11878, 12872, 13461, 21616, 21619, 21627
12052, 12068, 15563, 15755, \belowcaptionskip .
12238, 12517, 15761, 15777, . . . . . . . 13471,
12528, 12539, 15853, 17025, 13897, 13899,

Index 480
14721, 14738, 15779, 15783, 17297, 17875,
17447, 17455, 15788, 15791, 17876, 18558, 18559
17466, 17478, 15796, 16041, \bibsection 5967, 5970,
18027, 18035, 16491, 18947, 5972, 5973, 14765,
18046, 18058, 18955, 18963, 15347, 19235, 19237
18710, 18718, 18969, 19000, \bidi@@convert@dimen@t@pt
18729, 18741, 21621 19004, 19008, . . . . . . . . . . . 2847
\belowdisplayshortskip 20390, 20843, \bidi@@convert@dimen@t@unit
. . . 4667, 4676, 5886 20849, 20853, . . . . . . . . . . . 2844
\belowdisplayskip . 20859, 20863, \bidi@@diagbox@double@ii
. . . . . . . . 4668, 20869, 20872, . . . . . . . 8341, 8345
4681, 4716, 5891 20878, 20942, \bidi@@diagbox@double@iii
\bf . . . . 1917, 15626, 15628 20948, 21128, . . . . . . . 8344, 8352
\bfseries . . . 25, 303, 21137, 21145, 21153 \bidi@@diagbox@triple@setbox@NW@tabular@i@ii
516, 532, 561, 564, \bib@after@hook 17350, . . . 8361, 8364, 8368
668, 692, 894, 912, 17352, 17930, \bidi@@diagbox@triple@setbox@NW@tabular@iii
1151, 1176, 1644, 17932, 18613, 18615 . . . . . . . 8367, 8374
2045, 2515, 6116, \bib@before@hook . . \bidi@@diagbox@triple@setbox@SE@tabular@i
6658, 6680, 6835, . . . . . . . 17300, . . . . . . . 8383, 8390
6857, 6982, 6994, 17351, 17880, \bidi@@diagbox@triple@setbox@SE@tabular@ii@iii
7122, 7136, 7168, 17931, 18563, 18614 . . . 8386, 8389, 8397
7174, 7182, 8670, \bib@beginhook 17293, \bidi@@end . . . 3574, 3578
8685, 8700, 8703, 17299, 17873,
8712, 8939, 8962, \bidi@@footnotetext@font
17879, 18556, 18562
8968, 8977, 10775, . . 38, 241, 5554,
\bib@endhook . . . . . . 11428, 11435, 11526
10789, 10800, . 17354, 17934, 18617
10805, 10813, \bidi@@loadwithoptions
\bib@heading . . . . . . . . . . . . . . 4128,
13174, 16072, . 17295, 17878, 18561
16094, 16444, 4135, 4138, 4142
\bibcleanup . . . . . . 15371 \bidi@@LTRfootnotetext@font
16466, 16640,
\bibentry . . . . . 5426, . . 68, 270, 5572,
16659, 16673,
5428, 5445, 5447, 11429, 11468, 11512
16844, 16858,
5464, 5466, 5496, 5498 \bidi@@null . . . 3746, 3747
16889, 16894,
\bibfont . . . . . . . . 15350 \bidi@@onefilewithoptions
16902, 19766,
\bibindent . . . 2549, 2550 . . . 4150, 4153, 4156
19875, 20224,
20228, 20233, 20262 \bibitem@fin . . . . . 15365 \bidi@@patchcmd 3326, 3328
\bgroup . . . . 171, 172, \bibliofont 85, 288, 13134 \bidi@@RTLfootnotetext@font
379, 394, 399, 404, \bibliographyitemlabel . . 52, 255, 5590,
637, 1196, 1472, . . . . . . . 2551, 2558 11430, 11452, 11498
1605, 1888, 2184, \bibname . . 5972, 5973, \bidi@@thebibliography@font@hook
2306, 6370, 6588, 6696, 6697, 6884, . . . 88, 291, 573,
6602, 7255, 7327, 6885, 7193, 7194, 708, 971, 1221,
11071, 11072, 8988, 8989, 10825, 2557, 6699, 6887,
11086, 11542, 10826, 16115, 7196, 8720, 8991,
11703, 13861, 16116, 16509, 10828, 13137,
13863, 13903, 16510, 16703, 14767, 15352,
13937, 13940, 16704, 16906, 16907 16118, 16512,
13960, 14968, \bibpostamble . . . . 15366 16706, 16909,
15574, 15763, \bibpreamble . . . . . . 17309, 17889,
15769, 15773, . . 15349, 17296, 18572, 19241, 20973

Index 481
\bidi@addto@envbody \bidi@AfterReadingMainAux \bidi@beforeheaderhook
. . . 2661, 2679, 2681 . . . . . . . 4532, 4535 . . . . . . . . 3494,
\bidi@addto@long@envbody \bidi@append . . 3435, 3485 3495, 11181, 21576
. . . 2685, 2703, 2705 \bidi@append@cslist@to@cslist \bidi@BeforeOutputBoxOutputPage
\bidi@AfterAtEndOfClass . . . . . . . 3867, 3940 . 3497, 11184, 21587
. . . . . . . 4217, 4222 \bidi@append@list@to@list \bidi@beforeoutputboxoutputpagehook
\bidi@AfterAtEndOfPackage . . . . . . . 3863, 3949 . . . . . . . . 3497,
. . . . . . . 4261, 4265 \bidi@append@to@list 3498, 11185, 21588
\bidi@AfterClass . . 4205 . . . . . . . 3842, 3861 \bidi@BeforeOutputPageShipOut
\bidi@AfterEndDocument \bidi@append@toks@cs@to@list . 3491, 11162, 21533
. . . 3565, 3570, 3576 . . . . . . . . . . . 3871 \bidi@beforeoutputpageshipouthook
\bidi@appto . . . . 3214,
\bidi@AfterEndDocumentCheckLabelsRerun . . . . . . . . 3491,
. . . 2598, 3537, 3542 3258, 3530, 4572 3492, 11163, 21534
\bidi@apptocmd . . . .
\bidi@afterenddocumentchecklabelsrerunhook \bidi@BeforePackage 4248
. . . 3537, 3538, 3543 . . 3431, 3432, 19151 \bidi@bswitch . 3805, 3807
\bidi@afterenddocumenthook\bidi@are@these@correct \bidi@CharsBefore .
. . . . . . . . 3565, . . . . . . . 3839, 3842 3720, 3722, 3723,
3566, 3571, 3577 \bidi@AtBeginEnvironment 3728, 3732, 3733, 3738
\bidi@AfterEndEnvironment . . . . . . . 3580, 3592 \bidi@CharsBeforeNC 3721
. . . . . . . 3620, 3630 \bidi@AtEndEnvironment \bidi@clearpage 3559, 3561
\bidi@AfterEndPreamble . . . . . . . 3596, 3606 \bidi@collect@@body
3527, 3531, 3533, \bidi@AtEndOutputPage . . . . . . . 2667, 2674
3548, 4614, 6130, 6153 . . . . . . . . 2642, \bidi@collect@body 2662
\bidi@afterendpreamblehook 3513, 11196, 21609 \bidi@collect@long@@body
. . . . . . . . 3527, \bidi@atendoutputpagehook . . . . . . . 2691, 2698
3528, 3532, 3534 . . . . . . . . 3513, \bidi@collect@long@body
\bidi@AfterFile 4202, 3514, 11197, 21610 . . . . . . . . . . . 2686
17458, 18038, 18721 \bidi@AtEndPreamble \bidi@column@check@number
\bidi@AfterFooter . . . . . . . . . 1788, . . 21190, 21206,
. . . . . . 3506, 21599 3488, 3518, 3520, 21208, 21210, 21222
\bidi@afterfooterhook 3525, 4612, 5410, \bidi@column@status
. . 3506, 3507, 21600 13474, 15129, 15185 . . 1727, 1731, 21192
\bidi@AfterLastShipout \bidi@autofootnoterulefalse \bidi@column@type .
. . . 3550, 3556, 3562 . 11356, 11360, 11363 . 21207, 21212, 21223
\bidi@afterlastshipouthook\bidi@autofootnoteruletrue\bidi@copy@stacktop 3925
. . . . . . . . 3550, . . . . . . . . . . 11378 \bidi@copyins@amount
3551, 3557, 3563 \bidi@backslash 3663, 3664 . . 11897, 11898,
\bidi@AfterOutputBoxOutputPage \bidi@BeforeBeginEnvironment 11899, 11902,
. 3500, 11187, 21590 . . . . . . . 3610, 3618 11907, 11908, 11920
\bidi@BeforeClass . 4203 \bidi@counter@page
\bidi@afteroutputboxoutputpagehook
. . . . . . . . 3500, \bidi@BeforeClosingMainAux . . . . . . . 2612, 2641
3501, 11188, 21591 . . . . 4495, 4506, \bidi@cs@a . . . 3748, 3749
\bidi@AfterOutputPageShipOut 4510, 4513, 4521, 4524 \bidi@cs@e 3919, 3920,
. 3510, 11190, 21603 \bidi@BeforeFile . . 4201 3922, 3923, 3926, 3928
\bidi@afteroutputpageshipouthook\bidi@BeforeFooter \bidi@cs@lista . . . .
. . . . . . . . 3510, . . . . . . 3503, 21592 . . . . 3892, 3893,
3511, 11191, 21604 \bidi@beforefooterhook 3894, 3895, 3904, 3905
\bidi@AfterPackage 4250 . . 3503, 3504, 21593 \bidi@cs@listb 3889, 3891
\bidi@AfterPreamble \bidi@BeforeHeader \bidi@cs@liste 3887, 3892
. . 3524, 3525, 13405 . 3494, 11180, 21575 \bidi@csappto . . . . . 3258

Index 482
\bidi@csarg . . . . 3675, \bidi@digits . . . 1777, 9852, 9862, 9867,
3691, 3765, 3772, 1783, 1784, 1785 9870, 9873, 9876,
3790, 3795, 3800, \bidi@digits@charclass 9888, 9901, 9913,
3805, 3811, 3816, . . . . . . . . 1779, 9918, 9923, 9941,
3858, 3859, 3877, 1783, 1784, 1785, 1786 9951, 9961, 9971,
3883, 3894, 3904, \bidi@dummies . . . . . 9976, 9979, 9982,
3913, 3923, 3927, 3931 . . . 3770, 3772, 3773 9985, 9997, 10010,
\bidi@csdefcs . . . . . 2915 \bidi@eappto . . . . . . 10022, 10027,
\bidi@cseappto 3259, 3262 . . . 3218, 3231, 3259 10032, 10050,
\bidi@csepreto 3268, 3271 \bidi@empty . . . . 1793, 10060, 10070,
\bidi@csgappto . 3260, 1794, 3745, 3748, 3749 10080, 10085,
3581, 3597, 3611, 3621 \bidi@empty@stack . 10088, 10091,
\bidi@csgpreto . . . . 3269 . . . . . . . 3930, 3936 10094, 10106,
\bidi@cslet . . . . . . . 2921 \bidi@empty@toks .. 10119, 10131,
\bidi@csletcs . . . . . 2918 . . . 3943, 3946, 3950 10136, 10141,
\bidi@csname . . . 3687, \bidi@endpreamblehook 10159, 10169,
3838, 3844, 3889, 3923 . . . . . . . . 3488, 10179, 10189,
3489, 3519, 3521 10194, 10197,
\bidi@cspreto . . . . . 3267
\bidi@ensure@new@command 10200, 10203,
\bidi@csprotect . . . 3992
. . . . . . . 2926, 2927 10215, 10228,
\bidi@csuse . . . . 3201,
\bidi@ensure@newcommand 10240, 10245,
3587, 3601, 3614, 3625
. . . . 2926, 9188, 10250, 10268,
\bidi@cswitch . 3800, 3802 10278, 10288,
9200, 9201, 9202,
\bidi@csxappto 3261, 3263 10298, 10303,
9208, 9209, 9213,
\bidi@csxpreto 3270, 3272 9214, 9215, 9216, 10306, 10309,
\bidi@current@column@status 9228, 9240, 9262, 10312, 10324,
. 21192, 21195, 21228 9263, 9291, 9292, 10337, 10349,
\bidi@dbg@fail . . . . 9293, 9294, 9297, 10354, 10359,
3286, 3296, 3297, 9303, 9305, 9330, 10367, 10374,
3298, 3299, 3305, 9331, 9349, 9364, 10378, 10388,
3314, 3320, 3427, 9367, 9370, 9375, 10396, 10409,
3449, 3461, 3462, 3471 9378, 9380, 9384, 10527, 10545,
\bidi@dbg@info . 3287, 9402, 9412, 9422, 10557, 10569,
3289, 3292, 3294, 9432, 9437, 9440, 10573, 10577,
3295, 3306, 3308, 9443, 9446, 9458, 10581, 10606,
3310, 3312, 3313, 9471, 9483, 9488, 10620, 10634,
3315, 3317, 3319, 9493, 9511, 9520, 10644, 10654,
3425, 3450, 3452, 9529, 9538, 9543, 10663, 10672,
3454, 3457, 3463, 3465 9546, 9549, 9552, 10684, 10690,
\bidi@dbg@init . 3284, 9563, 9575, 9586, 10694, 10705, 10706
3303, 3424, 3447 9591, 9596, 9614, \bidi@ensure@newlength
\bidi@dbg@succ . 3330, 9624, 9634, 9644, . . . 2933, 9212, 9295
3426, 3458, 3466, 3468 9649, 9652, 9655, \bidi@epreto . . . . . .
\bidi@dbg@trce . 3277, 9658, 9670, 9683, . . . 3240, 3253, 3268
3323, 3423, 3432, 3440 9695, 9700, 9705, \bidi@eqs@a . . . 3701, 3702
\bidi@default . . . . . 9723, 9733, 9743, \bidi@eqs@b . . . 3701, 3702
. . . . 3790, 3795, 9753, 9758, 9761, \bidi@EqualString . 3701
3800, 3805, 3811, 3816 9764, 9767, 9779, \bidi@EqualStringX 3706
\bidi@del@tok@from@list 9792, 9804, 9809, \bidi@error . . . . 2935,
. . . . . . . . . . . 3886 9814, 9832, 9842, 3186, 3775, 3882, 4051

Index 483
\bidi@everyjob . 1532, 3416, 3417, 3418 13559, 13560,
1533, 1856, 1857 \bidi@ifEmpty . . . . . 3748 13561, 13562,
\bidi@excludedpackages \bidi@ifempty . . . . . 3746 13563, 13564,
4289, 4290, 4310, \bidi@ifEmptyX . . . . 3747 13565, 13566,
4346, 4363, 4371, \bidi@ifhashcheck . 13567, 13568,
4381, 4403, 4404, . . . 3291, 3376, 3456 13569, 13570,
4412, 4413, 4418, 4431 \bidi@ifhashcheck@i 13571, 13572,
\bidi@expandonce . . . . . . . . . 3380, 3382 13573, 13574,
3206, 3217, 3221, \bidi@ifhashcheck@ii 13575, 13576,
3225, 3229, 3239, . . . . . . . . 3384, 13577, 13578,
3243, 3247, 3251, 3469 3387, 3388, 3389 13579, 13580,
\bidi@ff@box 11204, 11222 \bidi@ifNextChar . . 3756 13581, 13582,
\bidi@firstcolumn@status@write \bidi@ifpatchable . 13583, 13584,
. . . . . . . . 1725, . . . 3280, 3282, 3329 13585, 13586,
1733, 7575, 7634, \bidi@ifpatchable@i 13587, 13588,
11010, 11046, . . . . . . . 3280, 3301 13589, 13590,
11814, 11867, \bidi@ifpattern 3293, 3392 13591, 13592,
14844, 14940, \bidi@ifscanable 3290, 13593, 13594,
21199, 21262, 21305 3311, 3360, 3455 13595, 13596,
\bidi@font@@outputpage \bidi@in@front@of@cslist 13597, 13600,
. 11170, 21524, 21566 . . . . . . . 3895, 3896 13603, 13606,
\bidi@footdir@footnote \bidi@in@front@of@list 13609, 13612,
. . . . . . 79, 282, . . . . . . . . . . . 3894 13615, 13618,
11483, 11485, 11489 \bidi@info . . . . . . . 2937 13621, 13625,
\bidi@fswitch . 3816, 3818 \bidi@init@mult@footinsv@l 13628, 13631,
\bidi@gappto . . . . . . . . . . . 15199, 15213 13634, 13637,
2636, 3222, 3260, \bidi@init@mult@footinsv@r 13640, 13643,
3488, 3491, 3494, . . . . . 15195, 15211 13646, 13649,
3497, 3500, 3503, \bidi@invert@csstack 13652, 13655,
3506, 3510, 3513, . . . . . . . . . . . 3935 13658, 13661,
3527, 3537, 3550, 3565 \bidi@IsEmptyList . 3749 13664, 13667,
\bidi@gobbleopt 4452, 4461 \bidi@isloaded . . . . 13670, 13673,
\bidi@gpreto . . 3244, 3269 . . . 3352, 13524, 13676, 13679,
\bidi@hook@acma 4476, 13525, 13526, 13682, 13685,
4520, 4533, 4534, 4539 13527, 13528, 13688, 13691,
\bidi@hook@bcma 4470, 13529, 13530, 13694, 13697,
4519, 4522, 4523, 4529 13531, 13532, 13700, 13703,
\bidi@hooktocmd . . . 13533, 13534, 13706, 13709,
. . . 3435, 3443, 3445 13535, 13536, 13712, 13715,
\bidi@hooktocmd@i . 13537, 13538, 13718, 13721,
. . . . . . . 3459, 3473 13539, 13540, 13724, 13727,
\bidi@hop@ES . . 3709, 3711 13541, 13542, 13730, 13733,
\bidi@ifblank@i . . . 13543, 13544, 13736, 13739,
. . . 2887, 2888, 2890 13545, 13546, 13742, 13745,
\bidi@ifdefmacro 2893, 13547, 13548, 13748, 13751,
2895, 2896, 2897 13549, 13550, 13754, 13757,
\bidi@ifdefparam 3405, 13551, 13552, 13760, 13763,
3407, 3408, 3409 13553, 13554, 13766, 13769,
\bidi@ifdefprotected 13555, 13556, 13772, 13775,
. . . . . . . . 3414, 13557, 13558, 13778, 13781,

Index 484
13784, 13787, \bidi@looprepeat@depth \bidi@mpfootnoterule
13790, 13793, . . . . . . . . 3988, . . 11260, 11494,
13796, 13799, 3989, 3991, 4003, 4029 11508, 11522,
13802, 13805, \bidi@looprepeat@dxbody 11560, 14015, 19149
13808, 13811, 13814 . . . . . . . 4012, 4016 \bidi@mswitch . 3811, 3813
\bidi@lastcolumn@status@write \bidi@looprepeat@setup \bidi@multicol@align@columns
. . . . 1729, 1734, . . . . . . . 4009, 4035 . . . . . . . 15068,
7579, 7640, 11014, \bidi@looprepeat@sign 15122, 15125, 15127
11052, 11820, . . . 4009, 4020, 4050 \bidi@n@everypar . .
11871, 14848, \bidi@looprepeat@tmp . . 15757, 15758,
14946, 21266, 21311 4010, 4011, 4038, 15759, 15760,
\bidi@leave@mult@copyins 4040, 4043, 4048, 20652, 20837,
. . . . . 15181, 15273 4055, 4058, 4060, 4063 20838, 20839, 20840
\bidi@leave@mult@footins@vl \bidi@looprepeat@traceexit\bidi@namedef . . . . . 3632
. . . . . 15191, 15269 . . . . . . . 3994, 4029 \bidi@nameedef . . . . 3634
\bidi@leave@mult@footins@vr \bidi@looprepeat@traceinit
\bidi@namegdef . . . .
. . . . . 15187, 15265 . . . . . . . 3994, 4002
. . . 2641, 2939, 3633
\bidi@leftskip . . . . \bidi@looprepeat@zero
\bidi@namelongdef . 2924
. . 19767, 19768, . . . 4009, 4028, 4066
\bidi@namexdef . . . . 3635
19769, 19876, \bidi@lst@caption@direction
19896, 19927, . . . . . . . 13423, \bidi@new@command .
19928, 19960, 20881 13424, 13436, 13439 . . . . . . . . 3158,
\bidi@length@of@csstack \bidi@lst@caption@script 3160, 3189, 3197
. . . 3931, 3932, 3935 . . . . . . . 13430, \bidi@new@ifnch 2712, 2714
\bidi@length@of@stack 13431, 13447, 13450 \bidi@new@ifnextchar
. . . . . . . 3931, 3945 \bidi@lst@ensure@caption@direction . . . . . . 2709, 20963
\bidi@load@hook 4121, . . . . . . . 13434, \bidi@newcommand ..
4124, 4157, 4194 13459, 13461, . . . . . . . 3160, 3162
\bidi@loadwithoptions 13463, 13482, \bidi@newrobustcmd
. . . 4129, 4130, 4135 13486, 13493, 13502 . . . . . . . . 1600,
\bidi@local@in@front@of@list \bidi@lst@ensure@caption@script 1602, 3157, 3158,
. . . . . . . 3899, 3916 . 13445, 13457, 13501 3182, 3193, 3214,
\bidi@local@push@onto \bidi@make@mppara@LTRfootgroup 3218, 3222, 3226,
. . . . . . . . . . . 3915 . 10434, 10496, 10663 3231, 3232, 3236,
\bidi@looprepeat@comp \bidi@make@para@footstart@@ 3240, 3244, 3248,
. . . 4009, 4045, 4050 . 10425, 10483, 10684 3253, 3254, 3258,
\bidi@looprepeat@csarg \bidi@make@para@LTRfootgroup 3259, 3260, 3261,
. . . . . . . 3987, 4039 . 10423, 10481, 10644 3262, 3263, 3267,
\bidi@looprepeat@csargromannumeral\bidi@makecolbf . . . 3268, 3269, 3270,
. . . . . . . . 3989, . . . . . 10746, 10760 3271, 3272, 3276,
4004, 4005, 4006, \bidi@matrix@check 3322, 3421, 3431,
4007, 4008, 4011, . . . . . . 2718, 20958 3439, 3488, 3491,
4016, 4017, 4018, \bidi@matrix@error 3494, 3497, 3500,
4019, 4020, 4022, . . . . . . . 2720, 2724 3503, 3506, 3510,
4028, 4041, 4043, \bidi@mopfn@bottom 3513, 3524, 3527,
4044, 4045, 4052, . . . . . . . . 9351, 3537, 3550, 3565,
4053, 4055, 4060, 4068 10675, 10711, 3580, 3596, 3610,
\bidi@looprepeat@csromannumeral 10724, 10761, 10762 3620, 20931, 20933
. . . . 3988, 4012, \bidi@mopfootnotebf \bidi@next . . . . . . .
4020, 4023, 4039, 4067 . . . . . 10720, 10754 3722, 3723, 3725,

Index 485
3727, 3728, 3730, \bidi@p@xLTRfootnote 8405, 8413, 8421,
3735, 3737, 3738, 3740 . . . 2191, 2231, 2313 8430, 8439, 8448,
\bidi@NextChar . . . . 3753 \bidi@p@xLTRftntext 12165, 13065,
\bidi@normal@footmarkwidth . . . . . . . . 2190, 13073, 13081,
9197, 9255, 9261, 2216, 2236, 2312 13089, 13097,
9400, 9509, 9612, \bidi@p@xRTLfootnote 13106, 13114,
9721, 9830, 9939, . . . 2193, 2239, 2315 13123, 13381,
10048, 10157, \bidi@p@xRTLftntext 13387, 13395,
10266, 10461, 10523 . . . . . . . . 2192, 13475, 13488,
\bidi@notblank . 2889, 2219, 2244, 2314 15207, 15216,
2897, 3409, 3418 \bidi@page@count 2579, 15237, 15244,
\bidi@nxt@a . . . . . . . 2580, 2614, 2643 15251, 15259,
. . . 3754, 3757, 3759 \bidi@paraskip 10445, 19138, 19146, 21329
\bidi@nxt@b . . . . . . . 10448, 10452, \bidi@patchcmd@scantoks
. . . 3754, 3757, 3760 10507, 10510, 10514 . . . 3340, 3346, 3481
\bidi@nxt@c . . . . . . . \bidi@patch@@AfterPackage \bidi@pdfencrypt@keylength
. . . 3755, 3758, 3759 . . . . . . . 4584, 4589 . . . . . . . 1653, 1806
\bidi@nxt@ch . . . . . . \bidi@patch@Add 4571, 4600 \bidi@pdfencrypt@ownerpassword
. . . 3754, 3757, 3759 \bidi@patch@AfterPackage . . . 1650, 1793, 1805
\bidi@o@everypar . . . . . . 4574, 5522, \bidi@pdfencrypt@permissionflags
. . . . . . . 15756, 5524, 5527, 5548, . . . . . . . 1656, 1807
15758, 15759, 5699, 5749, 5805, 6049 \bidi@pdfencrypt@userpassword
20836, 20838, 20839 \bidi@patch@counter . . . 1647, 1794, 1804
\bidi@oldwbuskip . . . . . . 4552, 4556,
\bidi@pdfm@mark 1929, 1944
. . . . . . . 3881, 3884 4559, 4565, 4566, 4585
\bidi@pickescape . . 3696
\bidi@onefilewithoptions \bidi@patch@gtemp .
\bidi@pop@cs@into .
. . . 4145, 4146, 4150 . . . . . . . 4592, 4599
. . . . . . . 3919, 3938
\bidi@orig@leftline \bidi@patch@list 4570,
. 21106, 21108, 21109 4572, 4610, 4612, 4619 \bidi@pop@into 3922, 3948
\bidi@orig@raggedleft \bidi@patch@OrgIfClassLater \bidi@pos . 2939, 2947,
. 21091, 21093, 21094 . . . . . . . 4618, 4623 2975, 3001, 3029,
\bidi@orig@raggedright \bidi@patch@OrgIfClassLoaded 3055, 3058, 3092, 3095
. 21092, 21093, 21094 . . . . . . . 4617, 4622 \bidi@poscount . 2941,
\bidi@orig@rightline \bidi@patch@OrgIfPackageLater 2944, 2947, 2964,
. 21107, 21108, 21109 . . . . . . . 4616, 4621 2966, 2975, 2989,
\bidi@oswitch . . . . . 3795 \bidi@patch@OrgIfPackageLoaded 2991, 2998, 3001,
\bidi@p@ftn 2138, 2201, . . . . . . . 4615, 4620 3018, 3020, 3029,
2203, 2204, 2206, \bidi@patch@stepcounter 3043, 3045, 3052,
2207, 2209, 2210, . . . 4554, 4564, 4583 3055, 3058, 3075,
2214, 2217, 2220, 2325 \bidi@patch@temp . . 3077, 3081, 3083,
\bidi@p@ftntext . . . . . . . . . . 4582, 4586 3092, 3095, 3109,
. . . 2185, 2202, 2307 \bidi@patch@try 4601, 4604 3111, 3115, 3117,
\bidi@p@LTRftntext \bidi@patchcmd . . . . 3124, 3126, 3127,
. . . 2186, 2205, 2308 . . 171, 179, 188, 3129, 3130, 3133,
\bidi@p@RTLftntext 338, 3322, 3323, 3134, 3141, 3143, 3144
. . . 2187, 2208, 2309 3540, 3553, 3568, \bidi@prepend . 3443, 3486
\bidi@p@xfootnote . 3585, 3599, 3623, \bidi@prepend@cslist@to@cslist
. . . 2189, 2223, 2311 4843, 8339, 8342, . . . . . . . . . . . 3869
\bidi@p@xftntext 2188, 8359, 8362, 8365, \bidi@prepend@list@to@list
2213, 2228, 2310 8381, 8384, 8387, . . . . . . . . . . . 3865

Index 486
\bidi@prepend@to@list \bidi@raggedleft 2492, \bidi@resrvda . . . . .
. . . . . . . . . . . 3862 2499, 2504, 2523, 3332, 3333, 3334,
\bidi@prepend@toks@cs@to@list 8038, 8154, 10978, 3337, 3338, 3339,
. . . . . . . . . . . 3872 10984, 12281, 21096 3340, 3341, 3342,
\bidi@preto . . . . . . . \bidi@raggedright . 3347, 3350, 3362,
. . . 3236, 3267, 3516 . . 10976, 10982, 3363, 3364, 3365,
\bidi@pretocmd . 3439, 15281, 15284, 3366, 3368, 3369,
3440, 3613, 3655 15286, 15289, 3378, 3380, 3394,
\bidi@PreventPackageFromLoading 15291, 15293, 3395, 3397, 3399,
. . . . . . . . 4292, 15296, 15298, 3400, 3475, 3476,
4306, 4336, 4369 15300, 15302, 3477, 3478, 3479,
\bidi@process@envbody 15305, 15307, 3480, 3481, 3482, 3483
. . . . . . . . 2664, 15309, 15311, \bidi@resrvdb . 3334, 3335
2668, 2669, 2683, 15313, 15316, \bidi@restore@newpage
2688, 2692, 2693, 2707 15318, 15321, . . . 4471, 4488, 4518
\bidi@protected . . . 15323, 15326, \bidi@restorecatcode
. . . . 3209, 3231, 15328, 15330, . . . . . . . . . . . 3680
3232, 3253, 3254, 15333, 15335, \bidi@rightskip 19763,
3262, 3263, 3271, 3272 15337, 15340, 19871, 19897,
\bidi@protected@cseappto 15342, 15344, 21095 19898, 19906,
. . . . . . . . . . . 3262 \bidi@rcol@copyinsskip 19910, 19914, 20882
\bidi@protected@csepreto . . . . . . . 11777, \bidi@RTL@everypar
. . . . . . . . . . . 3271 11782, 11791, 11840 . . 10534, 10546,
\bidi@protected@csxappto \bidi@redefine@newpage 10558, 10589,
. . . . . . . . . . . 3263 . . . . . . . 4486, 4526 10608, 10622,
\bidi@protected@csxpreto \bidi@reflect@box . 15755, 15759,
. . . . . . . . . . . 3272 . . 15834, 15841, 18887, 20835, 20839
\bidi@protected@eappto 20925, 20932, 20934
\bidi@s@tfftextcol
. . . . . . . . . . . 3231 \bidi@reinsert@footnotesv@l
. . . . . 11201, 11205
\bidi@protected@epreto . . 15205, 15214,
\bidi@saved@checkend
. . . . . . . . . . . 3253 15242, 15249, 15256
. . . 4463, 4466, 4484
\bidi@protected@immediate@write \bidi@reinsert@footnotesv@r
. . . 4525, 4536, 4542 . . 15203, 15212, \bidi@saved@clearpage
\bidi@protected@xappto 15241, 15248, 15255 . . . 4468, 4469, 4472
. . . . . . . . . . . 3232 \bidi@renew@command \bidi@saved@dofilelist
\bidi@protected@xpreto . . . 3182, 3184, 3198 . . . . . . . . 4474,
. . . . . . . . . . . 3254 \bidi@renewrobustcmd 4477, 4478, 4485
\bidi@provide@command . . . . . . . . . . . 3182 \bidi@saved@eqno ..
. . . . . . . 3193, 3195 \bidi@ReplaceClass 4176 . . . . . . . 15845,
\bidi@providerobustcmd \bidi@replacefile@msg 15847, 15848,
. . . . . . . . . . . 3193 . . . . . . . . 4113, 21622, 21624, 21625
\bidi@push@begins . 4137, 4152, 4190 \bidi@saved@leqno .
. . . 2671, 2672, 2675 \bidi@ReplaceInput 4160 . . . . . . . 15846,
\bidi@push@cs@onto@cs \bidi@ReplacePackage 15847, 15848,
. . . . . . . 3912, 3939 . . . . . . . . . . . 4173 21623, 21624, 21625
\bidi@push@long@begins \bidi@RequirePackage \bidi@saved@newpage
. . . 2695, 2696, 2699 . . . 4312, 4372, 4423 . . . . . . . 4487, 4498
\bidi@push@onto . . . 3913 \bidi@ResetPreventPackageFromLoading \bidi@saved@RequirePackage
\bidi@push@onto@cs . . . . . . . . 4364, . . . . 4291, 4311,
. . . . . . . 3913, 3914 4370, 4379, 4418 4322, 4374, 4376, 4454

Index 487
\bidi@sepmark@charclass 1716, 1717, 1723, \bidi@willbeunhskip
. . . . . . . . 1780, 1724, 1737, 1738, . . . 3874, 3881, 3884
1781, 1782, 1786 1744, 1745, 1754, 1755 \bidi@x@stack@to@list
\bidi@set@column@status \bidi@tempcountb 3667, . . . . . . . . . . . 3945
. 21194, 21222, 21227 3936, 3937, 3946, 3947 \bidi@xappto . . . . . .
\bidi@set@cslist . . \bidi@temptoksa 3668, . . . 3226, 3232, 3261
. . . . . . . 3905, 3906 3936, 3939, 3940, \bidi@xargdef . 3164, 3172
\bidi@set@list . . . . 3904 3941, 3943, 3946, 3950 \bidi@xparaskip 10406,
\bidi@set@load@hook \bidi@temptoksb 3669, 10444, 10506, 10525
. . . . 4198, 4201, 3938, 3939, 3940, 3941 \bidi@xpreto . . . . . .
4202, 4204, 4223, \bidi@todonotes@tempa . . . 3248, 3254, 3270
4235, 4249, 4266, 4277 . . . . . 20528, 20536 \bidicolor . . . . 7321,
\bidi@SOUL@ulleaders \bidi@todonotes@tempb 7377, 7392, 7394,
. . . . . 18928, 18934 . . . . . . . 20528, 11202, 20778,
\bidi@stack@length 20529, 20536, 20537 20825, 20828, 20829
3930, 3932, 3933, \bidi@tok@SM . . 3887, 3892 \bidics . . . . . . . . . . 3664
3937, 3938, 3947, 3948 \bidi@toks@lista . . \bididate . 1502, 1504,
\bidi@star@footmarkwidth 3852, 3854, 3855, 1519, 1582, 1585,
. . . . 9197, 9258, 3856, 3857, 3888, 1825, 1843, 1920, 1923
9400, 9509, 9612, 3890, 3896, 3897, \bidiGscale@@box . .
9721, 9830, 9939, 3899, 3901, 3906, 3907 . . . . . 12101, 12102
10048, 10157, \bidiGscale@box . . .
\bidi@toks@listb . .
10266, 10461, 10523 . 12078, 12079, 12098
. . . 3852, 3888, 3890
\bidi@storecatcode 3673 \bidiGscale@box@dd
\bidi@undef . . . . 3342,
\bidi@StorePreventPackageFromLoading . 12110, 12114, 12120
3421, 3483, 3521,
. . . . . . . 4380, 4383 \bidiGscale@box@dddd
3534, 19622,
\bidi@StringBefore 3731 . . . . . 12116, 12127
19623, 19779,
\bidi@StringBeforeNC \bidillap . . . . . . . 21111
19780, 19981, 19982
. . . . . . . . . . . 3719 \bidipdfinfooff . . . 1941
\bidi@undefined . . . 3421
\bidi@switch . . . 3779, \bidipdfinfoon 1940, 1946
3790, 3792, 3797 \bidi@undefinedcs . \bidipoem@@hvlen 6294,
\bidi@switch@exit . 3765, 3772, 3827, 6300, 6303, 6306, 6315
3789, 3790, 3791, 3831, 3837, 3841, 3882 \bidipoem@half@verses
3795, 3796, 3800, \bidi@UnPreventPackageFromLoading. . . 6320, 6321, 6324
3801, 3805, 3806, . . . . . . . . . . . 4384 \bidipoem@half@verses@next
3811, 3812, 3816, 3817 \bidi@UnReplaceClass . . . 6320, 6321, 6322
\bidi@t@w@w . . . . . . . 3840 . . . . . . . . . . . 4187 \bidipoem@hvind . . .
\bidi@tabular@RTLcases \bidi@UnReplaceInput 6294, 6297, 6298,
. . . . . 20938, 20965 . . . . . . . . . . . 4164 6306, 6307, 6310, 6313
\bidi@tempa . . . . . . . \bidi@UnReplacePackage \bidipoem@hvlen 6293,
1662, 1668, 1674, . . . . . . . . . . . 4184 6298, 6300, 6311, 6313
1680, 1686, 1692, \bidi@version . . 1503, \bidipoem@hvsep 6293,
1704, 1710, 1716, 1504, 1519, 1534, 6306, 6307, 6314
1723, 1737, 1744, 1754 1536, 1542, 1548, \bidipoem@next 6299, 6300
\bidi@tempb . . . . 1662, 1582, 1585, 1588, \bidipoem@openbox .
1663, 1668, 1669, 1827, 1843, 1861, . . . . . . . 6338, 6343
1674, 1675, 1680, 1863, 1920, 1923, 1926 \bidipoem@p@ftn 6345,
1681, 1686, 1687, \bidi@w@w . . . . . . . . 3827 6355, 6479, 6480,
1692, 1693, 1704, \bidi@warning . . 2936, 6482, 6483, 6485,
1705, 1710, 1711, 3590, 3604, 3616, 3628 6486, 6489, 6492,

Index 488
6495, 6600, 12738, \bidituftesidenotemarginpar \box . . . . . . . . . . 1637,
12748, 12769, . . . 5198, 5550, 5709 1912, 5168, 7228,
12779, 12800, 12810 \bidituftetocError 7292, 7360, 7517,
\bidipoem@p@ftntext . . . 5738, 5785, 5794 7520, 7537, 7541,
6372, 6383, 6478, \bidiversion . . 1534, 1858 7576, 7580, 7586,
6589, 6603, 12736 \bigskip . . . . . . . . 15896 7587, 7635, 7641,
\bidipoem@p@LTRftntext \bigskipamount . . . . 7645, 7646, 7702,
6373, 6384, 6481, 9358, 9363, 10446, 7705, 7710, 7715,
6590, 6604, 12767 10450, 10508, 10512 7739, 7878, 7880,
\bidipoem@p@RTLftntext \bl . . . . . 15661, 15662, 7884, 7888, 7913,
6374, 6385, 6484, 15665, 15666, 8195, 8216, 8232,
6591, 6605, 12798 15667, 15671, 8289, 9370, 9375,
\bidipoem@p@xfootnote 15726, 15733, 15737 10371, 10385,
. . . . . . . . 6376, 10394, 10737,
\blacktriangleleft
6387, 6497, 6593, 6607 10748, 11011,
. . . . . 11619, 11621
\bidipoem@p@xftntext 11015, 11047,
\blacktriangleright
. . . . 6375, 6386, 11053, 11096,
. . . . . 11619, 11621
6488, 6502, 6592, 6606 \bm@b . . . . . . . . . . . 21171 11186, 11219,
\bidipoem@p@xLTRfootnote \bm@l . . . . . . . . . . . 21168 11224, 11717,
. . . . . . . . 6378, 11724, 11727,
\bm@r . . . . . . . . . . . 21169 11741, 11815,
6389, 6504, 6595, 6609
\bm@t . . . . . . . . . . . 21170 11821, 11868,
\bidipoem@p@xLTRftntext
\bool . . . 14041, 14049, 11872, 11911,
. . . . 6377, 6388,
14180, 14197, 11923, 11934,
6491, 6509, 6594, 6608
14198, 14242, 11944, 11957,
\bidipoem@p@xRTLfootnote
14248, 14263, 12029, 12046,
. . . . . . . . 6380,
14286, 14289, 12049, 12092,
6391, 6511, 6597, 6611
14309, 14314, 12095, 12125,
\bidipoem@p@xRTLftntext 14326, 14343, 12142, 13469,
. . . . 6379, 6390, 14344, 14347, 13877, 13931,
6494, 6516, 6596, 6610 14364, 14389, 13937, 14259,
\bidipoem@set@@verse 14396, 14402, 14517, 14528,
. . . 6300, 6303, 6305 14408, 14418, 14533, 14567,
\bidipoem@set@verseI 14425, 14447, 14568, 14569,
. . . . . . . 6299, 6302 14559, 14562, 14570, 14572,
\bidipoem@spreadbox 14570, 14571, 14702, 14736,
. . . . . . . . 6289, 15495, 15497, 15506 14845, 14849,
6311, 6313, 6314, 6315 \boolean . . . . . . . . . 14941, 14947,
\bidirlap . . . . . . . 21110 4631, 4691, 4693, 15084, 15090,
\bidituftefloatDebugInfoNL 4696, 4700, 4703, 15108, 15116,
. . . . . . . . 4631, 4706, 4731, 4827, 15494, 15502,
4719, 4723, 5018, 5067 4842, 4853, 4873, 15507, 15630,
\bidituftefloatError 4880, 4888, 4905, 15634, 15650,
. . . . . . . 4630, 5113 4925, 4929, 4947, 15684, 15688,
\bidituftefloatInfoNL 4948, 4951, 4952, 15693, 15697,
. . . 4631, 4632, 5182 4987, 4996, 5007, 15709, 15720,
\bidituftefloatRecalculate 5752, 5756, 5804, 15734, 15737,
. . . . . . . 4748, 4759 6017, 6154, 6223, 15741, 15746,
\bidituftehyperrefLoadHyperref 6234, 11216, 15520 15822, 15838,
. . . . . . . 6007, 6018 \botmark . . . 11195, 21608 15883, 15886,

Index 489
16950, 16959, \breakrepeatloop . . 4002 \bx@O . . . . . . . . 5056, 5097
16997, 17008, \bs . . . . . . 2055, 2056, 2058 \bx@o . . . . 5041, 5062, 5103
17431, 17441, \bslice . . . . . . 15681, \bx@OO . . . . . . . 5082, 5109
18011, 18021, 15682, 15684, \bx@P . . . . . . . . 5056, 5097
18241, 18247, 15694, 15695, \bx@p . . . . 5042, 5062, 5103
18253, 18259, 15697, 15717, \bx@PP . . . . . . . 5083, 5109
18265, 18271, 15718, 15720, \bx@Q . . . . . . . . 5056, 5097
18277, 18283, 15744, 15745, 15746 \bx@q . . . . 5043, 5062, 5103
18289, 18694, \bx@A . . . . . . . . 5053, 5094 \bx@QQ . . . . . . . 5084, 5109
18704, 19130, \bx@a . . . . 5027, 5059, 5100 \bx@R . . . . . . . . 5056, 5097
19176, 19194, \bx@AA . . . 5066, 5068, 5106 \bx@r . . . . 5044, 5062, 5103
20722, 20723, \bx@B . . . . . . . . 5053, 5094 \bx@RR . . . . . . . 5085, 5109
20733, 20929, \bx@b . . . . 5028, 5059, 5100 \bx@S 5017, 5019, 5057, 5098
21113, 21263, \bx@BB . . . . . . . 5069, 5106 \bx@s . . . . 5045, 5063, 5104
21267, 21306, \bx@C . . . . . . . . 5053, 5094 \bx@SS . . . . . . . 5086, 5110
21312, 21331, \bx@c . . . . 5029, 5059, 5100 \bx@T . . . . 5020, 5057, 5098
21347, 21479, \bx@CC . . . . . . . 5070, 5106 \bx@t . . . . 5046, 5063, 5104
21495, 21506, \bx@D . . . . . . . . 5053, 5094 \bx@TT . . . . . . . 5087, 5110
21519, 21521, \bx@d . . . . 5030, 5059, 5100 \bx@U . . . . 5021, 5057, 5098
21585, 21589, 21619 \bx@DD . . . . . . . 5071, 5106 \bx@u . . . . 5047, 5063, 5104
\boxdef . . . . . . . 2087, \bx@E . . . . . . . . 5053, 5094 \bx@UU . . . . . . . 5088, 5110
2089, 2095, 2100, 2105 \bx@e . . . . 5031, 5059, 5100 \bx@V . . . . 5022, 5057, 5098
\boxmaxdepth . . . 8187, \bx@EE . . . . . . . 5072, 5106 \bx@v . . . . 5048, 5063, 5104
8192, 8208, 8213, \bx@F . . . . . . . . 5054, 5095 \bx@VV . . . . . . . 5089, 5110
8240, 8297, 9265, \bx@f . . . . 5032, 5060, 5101 \bx@W . . . . 5023, 5058, 5099
10707, 10722, \bx@FF . . . . . . . 5073, 5107 \bx@w . . . . 5049, 5064, 5105
10943, 11670, \bx@G . . . . . . . . 5054, 5095 \bx@WW . . . . . . . 5090, 5111
11672, 11996, \bx@g . . . . 5033, 5060, 5101 \bx@X . . . . 5024, 5058, 5099
21334, 21350, 21361 \bx@GG . . . . . . . 5074, 5107 \bx@x . . . . 5050, 5064, 5105
\br . . . . . 15661, 15663, \bx@H . . . . . . . . 5054, 5095 \bx@XX . . . . . . . 5091, 5111
15665, 15666, \bx@h . . . . 5034, 5060, 5101 \bx@Y . . . . 5025, 5058, 5099
15667, 15671, \bx@HH . . . . . . . 5075, 5107 \bx@y . . . . 5051, 5064, 5105
15727, 15733, 15741 \bx@I . . . . . . . . 5054, 5095 \bx@YY . . . . . . . 5092, 5111
\BR@b@bibitem . 5403, 5404 \bx@i . . . . 5035, 5060, 5101 \bx@Z . . . . 5026, 5058, 5099
\BR@bibitem . . . 5406, 5407 \bx@II . . . . . . . 5076, 5107 \bx@z . . . . 5052, 5064, 5105
\BR@c@bibitem . . . . . 5408 \bx@J . . . . . . . . 5054, 5095 \bx@ZZ . . . . . . . 5093, 5111
\bracetext . . . . . . . \bx@j . . . . 5036, 5060, 5101 \bye . . . . . . . . . . . . . 1944
1604, 1887, 15761, \bx@JJ . . . . . . . 5077, 5107 \bystep . . . . . . . 3955,
15762, 20841, 20842 \bx@K . . . . . . . . 5055, 5096 3967, 4051, 4064,
\break . . . . . . . . . . 13834 \bx@k . . . . 5037, 5061, 5102 4074, 4087, 4100, 4101
\BreakBibliography \bx@KK . . . . . . . 5078, 5108
. . . . . . . 17302, \bx@L . . . . . . . . 5055, 5096 C
17335, 17337, \bx@l . . . . 5038, 5061, 5102 \c 14243, 14244, 14258,
17343, 17882, \bx@LL . . . . . . . 5079, 5108 14315, 14520, 14601
17915, 17917, \bx@M . . . . . . . . 5055, 5096 \c@abspage . . . . . . 11291
17923, 18565, \bx@m . . . . 5039, 5061, 5102 \c@addvipersep 14789,
18598, 18600, 18606 \bx@MM . . . . . . . 5080, 5108 14807, 14812,
\breaklooprepeat 3973, \bx@N . . . . . . . . 5055, 5096 14834, 14864,
3975, 4027, 4028, \bx@n . . . . 5040, 5061, 5102 14889, 14907,
4046, 4057, 4062, 4076 \bx@NN . . . . . . . 5081, 5108 14912, 14934, 14961

Index 490
\c@algocf . . . . . . . . 168 16874, 17869, 18552 11250, 14659,
\c@chapter 6730, 6732, \c@figure . 6732, 6909, 16135, 16500,
6734, 6907, 6909, 7154, 8948, 10938, 16700, 16883,
6911, 7152, 7154, 11230, 11243, 17287, 17843, 18538
7156, 7157, 8946, 14665, 16140, \c@poem@no . . . . 6430,
8948, 8950, 8951, 16503, 16694, 6472, 6524, 6535
10936, 10938, 16876, 17853, 18544 \c@secnumdepth . . . .
10940, 11228, \c@footnote . . . . 128, . . . . . . 304, 551,
11230, 11232, 318, 453, 745, 560, 6971, 7166,
11233, 11241, 804, 997, 1056, 8690, 8699, 8960,
11243, 11245, 1247, 1306, 1982, 10799, 15900, 16888
11246, 13519, 6745, 6922, 7059, \c@section . . . . 6724,
14664, 15394, 8780, 8877, 10880, 6901, 7158, 8952,
16138, 16140, 11569, 11583, 10930, 11234,
16142, 16503, 12551, 12661, 11247, 14653,
16505, 16507, 12669, 12699, 15404, 16132,
16692, 16694, 12707, 13214, 16497, 16697,
16696, 16874, 13911, 13914, 16880, 17837, 18532
16876, 16878, 16879 16155, 16214, \c@subparagraph . . .
\c@colht . . . . . 14789, 16294, 16355, . . 549, 703, 957,
14801, 14827, 16551, 16594, 1216, 6728, 6905,
14828, 14889, 16781, 17126, 7162, 8833, 8956,
14901, 14927, 14928 17190, 17675, 10934, 11238,
\c@curpg . . . . . . . . . 17739, 18374, 18438 11251, 14661,
. 11110, 11137, 11138 \c@Hy@AnnotLevel . . 16136, 16501,
\c@DFNsloppiness . . . . . . . . . 12873, 16701, 16884,
. . . . . . . 8185, 8206 12874, 12879, 12883 17289, 17845, 18540
\c@enumiv . . . . . 574, \c@L@lines . . . . . . . \c@subsection . . . . .
581, 709, 716, . 13354, 13356, 13359 . . 546, 700, 954,
972, 979, 1222, \c@ll@chapseci . . . . 7402 1213, 6725, 6902,
1229, 2568, 6700, \c@ll@chapsecii . . . 7397 7159, 8830, 8953,
6707, 6888, 6895, \c@lofdepth . 19473, 19510 10931, 11235,
7197, 7204, 8721, \c@lor@error . . . . . . 11248, 14655,
8728, 8992, 8999, 7366, 7373, 7381, 16133, 16498,
10829, 10836, 7387, 20770, 20804 16698, 16881,
16119, 16126, \c@lotdepth . 19491, 19530 17283, 17839, 18534
16513, 16520, \c@lstlisting 13519, 13521 \c@subsubsection . .
16707, 16714, \c@LT@chunks . . . . . 13860 . . 547, 701, 955,
16910, 16917, \c@mpfootnote . . . . . 1214, 6726, 6903,
17311, 17320, . . 11494, 11508, 7160, 8831, 8954,
17327, 17891, 11522, 11547, 14024 10932, 11236,
17900, 17907, \c@NAT@ctr . . . . . . 15353 11249, 14657,
18574, 18583, \c@page . . . . . . . 6161, 16134, 16499,
18590, 19242, 19249 8467, 8484, 11110, 16699, 16882,
\c@equation . . . . 6730, 11137, 20685, 21475 17285, 17841, 18536
6907, 7152, 8560, \c@paragraph . . . . . . \c@table . . 6734, 6911,
8629, 8946, 10936, . . 548, 702, 956, 7156, 8950, 10940,
11228, 11241, 1215, 6727, 6904, 11232, 11245,
14664, 16138, 7161, 8832, 8955, 14666, 16142,
16507, 16692, 10933, 11237, 16505, 16696,

Index 491
16878, 17861, 18548 \cals@AtEndTable . . 7295 17402, 17976,
\c@thisframe . . . . . . \cals@backup@row . . 7292 17979, 17982,
. . 11109, 11114, \cals@borderB . . . . . 7291 18659, 18662, 18665
11150, 11152, 11153 \cals@borderL . . . . . 7288 \capfont 17383, 17404,
\c@tocdepth . . . 3, 198, \cals@borderR . . . . . 7289 17409, 17414,
508, 525, 644, 660, \cals@borderT . . . . . 7290 17418, 17437,
678, 871, 904, 922, \cals@current@context 17441, 17963,
1127, 1143, 1161, . . . . . . . . . . . 7282 17984, 17989,
6634, 6650, 6666, \cals@last@context 7281 17994, 17998,
6811, 6827, 6843, \cals@paddingL . 7298, 18017, 18021,
7114, 7129, 8663, 7300, 7305, 7307 18646, 18667,
8677, 8932, 10767, \cals@paddingR 7302, 7309 18672, 18677,
10782, 13176, \cals@set@tohsize . 7285 18681, 18700, 18704
15009, 15021, \cals@setcellprevdepth \caplabelfont . 17384,
15033, 16048, . . . . . . . . . . . 7285 17405, 17410,
16064, 16080, \cals@setpadding . . 7285 17415, 17420,
16420, 16436, \cals@setup@alignment 17438, 17964,
16452, 16652, . . . . . . . 7269, 7284 17985, 17990,
16666, 16836, \cals@table@alignment 17995, 18000,
16851, 19318, . . . . . . . 7274, 7275 18018, 18647,
19322, 19364, \cals@tbreak@tokens 7279 18668, 18673,
19383, 19405, \cals@tfoot@height 7280 18678, 18683, 18701
19422, 19439, \cals@tfoot@tokens \caption . . . . . . 4836,
19456, 19748, . . . . . . . 7278, 7295 4837, 4839, 4895,
19856, 19891, \cals@thead@tokens 7277 12254, 12272,
20279, 20475, 21173 \cals@vfillAdd . 7270, 13837, 14740, 14742
\c@tracingmulticols 7272, 7298, 7307 \caption@@make . . . 13898
. . . . . 15217, 15235 \cals@vfillDrop . . . \caption@@par . . . . . 7313
\c@twb . . . . . . . . . . . 7527 . . . . 7271, 7272, \caption@begin . . . 13894
\c@twcompctr . . . . . . 7508 7300, 7302, 7305, 7309 \caption@end . . . . . 13900
\c@twcompoddctr . . . 7524 \CAny . . . . . . . . . . . . 2076 \caption@hangindent 7314
\c@twfirst 7509, 7515, \cAny . . . . . . . . . . . . 2084
\caption@iftop . . . .
7522, 7526, 7535, 7538 \cap@indent . . . . . . .
. . . . . 13897, 13899
\c@twlftside . . . . . . 7513 . . 17408, 17411,
\caption@LT@make . 13883
\c@twlspec 7527, 7530, 7534 17416, 17418,
\caption@LT@setup 13890
\c@twprune . . . . 7513, 17419, 17988,
7514, 7530, 7534 17991, 17996, \caption@makecaption
\c@twrounds . . . . 7525, 17998, 17999, . . . . . . 7311, 13504
7528, 7531, 7543 18671, 18674, \caption@normalsize
\c@twrtside . . . . . . . 7514 18679, 18681, 18682 . . . . . . . . . . 13895
\c@twslicea . . . . 7511, \cap@left . . . . 17430, \caption@parindent 7314
7513, 7517, 7520, 17441, 18010, \caption@prepare@stepcounter
7529, 7530, 7537, 7541 18021, 18693, 18704 . . . . . . . . . . 13893
\c@twsliceb . . . . 7512, \cap@margin . . . . . . . \caption@setautoposition
7514, 7517, 7520, . 17373, 17953, 18636 . . . . . . . . . . 13891
7533, 7534, 7537, 7541 \cap@right . . . 17432, \caption@setoptions
\c@twwinlines . 7510, 7523 17441, 18012, . . . . . 13888, 13889
\c@zabspage . . . . . . 11291 18021, 18695, 18704 \caption@settype . 13884
\cals@activate@rtl 7276 \cap@width . . . . . . . \caption@starfalse
\cals@AtBeginTable 7293 . . 17396, 17399, . . . . . 13505, 13892

Index 492
\caption@startrue . \cftbeforesubparaskip \cftsecfont . . . . . . 19401
. 13506, 13512, 13892 . . . . . . . . . . 19457 \cftsecindent 19390, 19393
\captionabove . 17489, \cftbeforesubsecskip \cftsecnumwidth . . 19396
17494, 18069, . . . . . . . . . . 19406 \cftsecpresnum . . . 19397
18074, 18752, 18757 \cftbeforesubsubsecskip \cftsubfigaftersnum
\captionbelow . 17491, . . . . . . . . . . 19423 . . . . . . . . . . 19520
17496, 18071, \cftbeforesubtabskip \cftsubfigaftersnumb
18076, 18754, 18759 . . . . . . . . . . 19531 . . . . . . . . . . 19521
\captionformat 17384, \cftbeforetabskip 19492 \cftsubfigfillnum 19524
17405, 17410, \cftchapaftersnum 19375 \cftsubfigfont . . . 19523
17415, 17420, \cftchapaftersnumb 19376 \cftsubfigindent . .
17438, 17964, \cftchapfillnum . . 19379 . . . . . 19512, 19515
17985, 17990, \cftchapfont . . . . . 19378 \cftsubfignumwidth 19518
17995, 18000, \cftchapindent . . . . \cftsubfigpresnum 19519
18018, 18647, . 19367, 19370, 19617 \cftsubparaaftersnum
18668, 18673, \cftchapnumwidth . . . . . . . . . . . . 19466
18678, 18683, 18701 . . . . . 19373, 19618 \cftsubparaaftersnumb
\captionlabelfalse 13510 \cftchappresnum . . 19374 . . . . . . . . . . 19467
\catcode . . . . . . 1826, \cftchapterprecistoc \cftsubparafillnum 19470
1945, 3349, 3676, . . . . . . . . . . 19616 \cftsubparafont . . 19469
3677, 3678, 3718, \cftdot . . . . . . . . . 19314 \cftsubparaindent .
5375, 5397, 6328, \cftdotfill . . . . . . 19608 . . . . . 19458, 19461
6329, 6331, 6332, \cftdotsep . . . . . . 19607 \cftsubparanumwidth
11628, 11629, 11744 \cftfigaftersnum . 19483 . . . . . . . . . . 19464
\Centering . . . . . . 15910 \cftfigaftersnumb 19484 \cftsubparapresnum 19465
\centering . . . . 303, \cftfigfillnum . . . 19487 \cftsubsecaftersnum
8042, 8055, 8171, \cftfigfont . . . . . . 19486 . . . . . . . . . . 19415
10977, 10983, \cftfigindent 19475, 19478 \cftsubsecaftersnumb
12284, 12369, \cftfignumwidth . . 19481 . . . . . . . . . . 19416
12385, 14687, \cftfigpresnum . . . 19482 \cftsubsecfillnum 19419
14689, 14691, \cftparaaftersnum 19449 \cftsubsecfont . . . 19418
17173, 17722, 18421 \cftparaaftersnumb 19450 \cftsubsecindent . .
\cftparafillnum . . 19453 . . . . . 19407, 19410
\CenteringLeftskip 15915
\cftparafont . . . . . 19452 \cftsubsecnumwidth 19413
\CenteringParfillskip
\cftparaindent . . . . \cftsubsecpresnum 19414
. . . . . . . . . . 15918
. . . . . 19441, 19444 \cftsubsubsecaftersnum
\CenteringParindent
\cftparanumwidth . 19447 . . . . . . . . . . 19432
. . . . . . . . . . 15919
\cftparapresnum . . 19448 \cftsubsubsecaftersnumb
\CenteringRightskip \cftpartaftersnum 19344 . . . . . . . . . . 19433
. . . . . . . . . . 15916 \cftpartaftersnumb 19345 \cftsubsubsecfillnum
\centerline 307, 11724, \cftpartfillnum . . 19348 . . . . . . . . . . 19436
11741, 15849, 21097 \cftpartfont . . . . . 19347 \cftsubsubsecfont 19435
\cftbeforechapskip 19366 \cftpartindent . . . . \cftsubsubsecindent
\cftbeforefigskip 19474 . . . . . 19336, 19339 . . . . . 19424, 19427
\cftbeforeparaskip 19440 \cftpartnumwidth . 19342 \cftsubsubsecnumwidth
\cftbeforepartskip 19334 \cftpartpresnum . . . . . . . . . . . . . 19430
\cftbeforesecskip . . . . . . 19343, 19347 \cftsubsubsecpresnum
. . . . . 19385, 19388 \cftsecaftersnum . 19398 . . . . . . . . . . 19431
\cftbeforesubfigskip \cftsecaftersnumb 19399 \cftsubtabaftersnum
. . . . . . . . . . 19511 \cftsecfillnum . . . 19402 . . . . . . . . . . 19540

Index 493
\cftsubtabaftersnumb \citeasnoun . . . . . . 15363 \col@number . . . . 132,
. . . . . . . . . . 19541 \citeN . . . . . . . . . . 15362 137, 139, 142,
\cftsubtabfillnum 19544 \cites . . . . . . . . . . . 5505 143, 150, 459,
\cftsubtabfont . . . 19543 \cl@@ckpt . . . . . . . 19018 810, 1062, 1312,
\cftsubtabindent . . \ClassInfo 6192, 6257, 7065, 8786, 8883,
. . . . . 19532, 19535 17500, 18080, 18763 10886, 14631,
\cftsubtabnumwidth 19538 \ClassWarning . . . . . 14971, 15053,
\cftsubtabpresnum 19539 . 17183, 17732, 18431 15058, 15094,
\cfttabaftersnum . 19501 \ClassWarningNoLine 15135, 15136,
\cfttabaftersnumb 19502 . . . . . . . . . . 14724 15138, 15141,
\cfttabfillnum . . . 19505 \clear . . . . . . . . . . . 4509 15142, 15149,
\cfttabfont . . . . . . 19504 \cleardoubleemptypage 15196, 15197,
\cfttabindent 19493, 19496 . . . . . . . 17130, 15200, 15201,
\cfttabnumwidth . . 19499 17175, 17679, 15263, 15267,
\cfttabpresnum . . . 19500 17724, 18378, 18423 16220, 16361,
\chapnumfont . . . . . 15899 \cleardoublepage 6114, 16605, 16787,
\chapter . . . . . . 5750, 6159, 6161, 6218, 17194, 17743, 18442
5778, 5848, 5856, 6231, 6245, 7187, 8982 \col@sep 379, 407, 7317,
5972, 5978, 6696, \clearpage . 604, 620, 7318, 13849, 20942
6884, 7193, 8988, 869, 1121, 3554, \color 2016, 2017, 2018,
10825, 16115, 3555, 3559, 3560, 2019, 2020, 2492,
16509, 16703, 16906 4468, 4469, 4472, 7362, 7365, 7368,
\chapterheadendvskip 5114, 6126, 6161, 7386, 7389, 8036,
. . . . . . . . . . 15905 6247, 6628, 6805, 8039, 8049, 8167,
\chapterheadstartvskip 7015, 7189, 8984, 13280, 13987, 20735
. . . . . . . . . . 15897 16024, 16279, \color@ . . . . 20775, 20822
\chaptermark . 6235, 19277 16738, 17238, \color@b@x . . . . . . .
\chaptername . . 308, 14673 17787, 18486, 19311 7354, 7392, 7394,
\chapterstyle . . . . 14668 \clipbox@@ . . . . . . 15885 20728, 20825, 20828
\char 1787, 2059, 2060, 3664 \CloneTOCEntryStyle \color@begingroup .
\chardef . . . . . . 3663, . . . . . . . 17506, . . . . 5560, 5578,
11628, 13423, 17519, 17538, 5596, 6598, 6612,
13424, 13430, 13431 17544, 18086, 9117, 9131, 9145,
\check@floats . 7760, 7935 18099, 18118, 9157, 9168, 9179,
\CheckCommand 12658, 12696 18124, 18769, 9285, 9408, 9418,
\checkoddpage . . . . . 4730 18782, 18801, 18807 9428, 9454, 9467,
\CIIIAny . . . . . . . . . 2077 \closing . . . . 9022, 18297 9479, 9517, 9526,
\ciiiAny . . . . . . . . . 2085 \clubpenalty . . . . 92, 9535, 9560, 9572,
\circle 7416, 7419, 7426, 295, 583, 584, 717, 9583, 9620, 9630,
7429, 7439, 7442, 980, 1230, 2569, 9640, 9666, 9679,
7449, 7452, 7462, 6446, 6708, 6896, 9691, 9729, 9739,
7465, 7472, 7475, 7206, 7207, 8729, 9749, 9775, 9788,
7485, 7488, 7495, 7498 9001, 9002, 10837, 9800, 9838, 9848,
\cite . . . . . . . . . 5412, 13141, 15359, 9858, 9884, 9897,
5504, 5510, 5511, 16127, 16521, 9909, 9947, 9957,
5605, 5610, 5631, 16716, 16717, 9967, 9993, 10006,
5639, 5660, 5668, 16919, 16920, 10018, 10056,
5689, 5707, 5711, 17329, 17909, 10066, 10076,
5716, 5720, 5725, 18592, 19251, 19252 10102, 10115,
5729, 15362, 15363 \coffeefont . . . . . . 15029 10127, 10165,

Index 494
10175, 10185, 10347, 10543, 15086, 15100,
10211, 10224, 10555, 10567, 16016, 16271,
10236, 10274, 10604, 10618, 16730, 21259, 21308
10284, 10294, 10632, 10717, \columnseprulecolor
10320, 10333, 10730, 11446, . . . . . 15085, 15099
10345, 10541, 11463, 11479, \columnwidth . . . . 28,
10553, 10565, 11506, 11520, 41, 55, 71, 232,
10602, 10616, 11534, 11564, 244, 258, 273,
10630, 10713, 11967, 11977, 540, 544, 731, 965,
10726, 11443, 11984, 21341, 1211, 1614, 1620,
11460, 11476, 21356, 21368, 21375 2316, 6722, 6875,
11503, 11517, \color@fb@x . 20826, 20827 7145, 7149, 7257,
11531, 11543, \color@fbox . . 7393, 20826 7570, 7574, 7578,
11964, 11974, \color@hbox . . . . . . . 7582, 7633, 7639,
11981, 13903, . . 17019, 17029, 7699, 7701, 7704,
13961, 21337, 17047, 21579, 21595 7707, 7709, 7714,
21353, 21364, 21372 \color@setgroup . . . 7876, 7878, 7880,
\color@block . 7359, 20733 . . . . . . 7395, 20830 7882, 7884, 7888,
\color@box . . 7392, 20825 \color@vbox . . . . . . . 8185, 8206, 8736,
\color@endbox . . 2326, 2304, 5225, 5269, 8740, 9035, 9039,
5234, 5278, 5322, 5313, 21408, 21452 9084, 9114, 9128,
17022, 17032, \colorA . . 6973, 6982, 6994 9142, 9154, 9165,
17050, 21417, \colorB . . . . . . . 6979, 9176, 9451, 9463,
21461, 21582, 21598 6985, 6991, 6997 9476, 9557, 9568,
\color@endgroup . . . \colorblend . . . 20742, 9580, 9663, 9675,
. . . . 5564, 5582, 20743, 20785, 20786 9688, 9772, 9784,
5600, 6600, 9119, \colorbox 2132, 2134, 2135 9797, 9881, 9893,
9133, 9147, 9159, \columncolor . . 1466, 7325 9906, 9990, 10002,
9170, 9181, 9288, \columnsep 99, 219, 597, 10015, 10099,
9346, 9410, 9420, 613, 862, 1114, 10111, 10124,
9430, 9456, 9469, 1965, 2401, 6621, 10208, 10220,
9481, 9519, 9528, 6798, 7008, 7581, 10233, 10317,
9537, 9562, 9574, 7706, 7881, 11016, 10329, 10342,
9585, 9622, 9632, 11873, 13149, 10456, 10518,
9642, 9668, 9681, 14851, 14968, 10598, 10612,
9693, 9731, 9741, 15061, 15110, 10626, 10818,
9751, 9777, 9790, 16017, 16272, 10822, 11007,
9802, 9840, 9850, 16731, 20690, 11009, 11013,
9860, 9886, 9899, 20695, 20699, 11017, 11045,
9911, 9949, 9959, 20705, 20708, 21268 11051, 11349,
9969, 9995, 10008, \columnseprule . . . . 11352, 11354,
10020, 10058, . . . 99, 219, 596, 11439, 11456,
10068, 10078, 612, 861, 1113, 11472, 11499,
10104, 10117, 1966, 2402, 6620, 11513, 11527,
10129, 10167, 6797, 7007, 7572, 11545, 11759,
10177, 10187, 7637, 7700, 7712, 11766, 11813,
10213, 10226, 7877, 7886, 11008, 11819, 11862,
10238, 10276, 11049, 11817, 11866, 11870,
10286, 10296, 11864, 13149, 11874, 12226,
10322, 10335, 14841, 14943, 12227, 13163,

Index 495
13237, 13241, 7687, 7847, 7859, \CROP@@lrc . . . . . . . 7481
13964, 14839, 8196, 8217, 10990, \CROP@@ulc . . . . . . . 7412
14843, 14847, 11026, 11787, \CROP@@urc . . . . . . . 7435
14850, 14939, 11836, 12037, \CROP@execopt . . . . . 7505
14945, 14968, 12083, 13928, \cs . . . . . 14098, 14149,
14997, 15003, 13940, 13944, 14167, 14221,
15165, 15169, 14773, 14873, 14236, 14524,
15173, 15177, 15754, 15837, 14526, 15488, 15489
16112, 16535, 15907, 20928, \cs@a . . . . . . . . . . . . 3749
16685, 16689, 21237, 21284, \csname . . . . 8, 44, 58,
16867, 16871, 21404, 21448, 21511 74, 166, 168, 203,
17111, 17359, \cor@height . . . 14796, 247, 261, 276, 333,
17364, 17660, 14797, 14824, 334, 383, 1369,
17939, 17944, 14825, 14864, 2161, 2162, 2176,
18219, 18223, 14896, 14897, 2177, 2203, 2206,
18359, 18622, 14924, 14925, 14961 2209, 2225, 2233,
18627, 21257, \count 1609, 1892, 2299, 2241, 2296, 2583,
21261, 21265, 3982, 5210, 5254, 2586, 2589, 2591,
21269, 21304, 5298, 9359, 9391, 2593, 2596, 2599,
21310, 21500, 21502 9500, 9603, 9712, 2607, 2608, 2613,
\contentslabel . 5809, 9821, 9930, 10039, 2620, 2622, 2624,
5816, 5823, 5830, 5837 10148, 10257, 2625, 2626, 2627,
\contentsline . . . . 12489 10416, 10422, 2630, 2632, 2636,
\contentsmargin . . 19216 10474, 10480, 2638, 2667, 2668,
\contentspush . . . . 19190 11120, 11779, 2691, 2692, 2719,
\convertcolorspec . 11788, 11790, 2746, 2750, 2761,
. . . . . . . 20749, 11837, 11839, 2769, 2777, 2785,
20752, 20792, 20795 12166, 12172, 2787, 2789, 2793,
\Coord . . . . . . . . . . . 2073 15196, 15200, 2794, 2858, 2900,
\coord . . . . . . . . . . . 2078 21393, 21437, 21545 2910, 2916, 2917,
\CoordIII . . . . . . . . 2075 \count@ . . . 1406, 1465, 2919, 2920, 2922,
\coordiii . . . . . . . . 2080 2739, 2744, 4556, 2923, 2925, 3126,
\Coordn . . . . . . . . . . 2074 4557, 4559, 7323, 3127, 3129, 3130,
\coordn . . . . . . . . . . 2079 15048, 15049, 3133, 3134, 3143,
\Coordx . . . . . . . 2070, 15051, 15053, 3144, 3179, 3180,
2073, 2074, 2075, 15060, 15081, 3203, 3258, 3259,
2076, 2077, 2078, 15082, 15084, 3260, 3261, 3267,
2079, 2080, 2084, 2085 15104, 15105, 3268, 3269, 3270,
\coordx . . . . . . . . . . 2081 15108, 15460, 3353, 3354, 3357,
\Coordy . . . . . . . 2071, 15468, 15481, 19057 3358, 3585, 3586,
2073, 2074, 2075, \counterwithout 14669, 3588, 3599, 3600,
2076, 2077, 2078, 14670, 14671, 14672 3602, 3613, 3623,
2079, 2080, 2084, 2085 \cr . . . . . . . 395, 6393, 3632, 3633, 3634,
\coordy . . . . . . . . . . 2082 6400, 6456, 9373, 3635, 3658, 3682,
\Coordz . . . . . . . 2072, 9377, 9379, 13864, 3687, 3691, 3707,
2075, 2077, 2080, 2085 18963, 19001, 21145 3725, 3727, 3735,
\coordz . . . . . . . . . . 2083 \crcr . 406, 2198, 6396, 3737, 3746, 3747,
\copy . . . . . . . . . 5221, 18951, 18981, 3827, 3831, 3864,
5265, 5309, 7261, 20953, 20956, 21132 3866, 3877, 3878,
7550, 7613, 7681, \CROP@@llc . . . . . . . 7458 3892, 3900, 3902,

Index 496
3929, 3950, 3987, 11211, 11212, 19794, 19795,
3988, 3989, 4005, 11213, 11215, 19905, 19909,
4006, 4007, 4008, 11217, 11218, 19913, 20012,
4110, 4113, 4117, 11219, 11220, 20015, 20029,
4134, 4137, 4139, 11222, 11223, 20045, 20046,
4149, 4152, 4154, 11224, 11281, 20062, 20069,
4161, 4166, 4171, 11305, 11323, 20074, 20135,
4181, 4197, 4200, 11409, 11418, 20190, 20192,
4214, 4226, 4258, 11441, 11458, 20194, 20210,
4269, 4353, 4356, 11474, 11502, 20213, 20219,
4396, 4445, 4585, 11516, 11530, 20221, 20224,
4606, 4957, 4958, 11577, 11592, 20228, 20233,
4965, 4966, 5558, 12491, 12494, 20237, 20241,
5576, 5594, 5625, 12496, 12500, 20255, 20259,
5654, 5683, 5925, 12504, 12518, 20262, 20265,
6451, 6479, 6482, 12529, 12540, 20269, 20271,
6485, 6499, 6506, 12740, 12771, 20307, 20309,
6513, 6521, 6522, 12802, 13181, 20316, 20317,
6560, 6585, 6586, 13284, 13287, 20321, 20326,
7368, 7374, 7382, 13717, 13783, 20330, 20341,
7389, 7961, 9116, 14753, 14754, 20342, 20346,
9130, 9144, 9156, 14761, 17063, 20352, 20407,
9167, 9178, 9407, 17067, 17071, 20408, 20412,
9417, 9427, 9453, 17509, 17511, 20508, 20509,
9466, 9478, 9516, 17513, 17516, 20511, 20514,
9525, 9534, 9559, 17522, 17531, 20515, 20519,
9571, 9582, 9619, 17533, 17535, 20983, 21048,
9629, 9639, 9665, 17541, 17612, 21134, 21195,
9678, 9690, 9728, 17616, 17620, 21208, 21210, 21679
9738, 9748, 9774, 18089, 18091, \CT@@do@color . . . . . 7320
9787, 9799, 9837, 18093, 18096, \CT@cell@color 1490, 7345
9847, 9857, 9883, 18102, 18110, \CT@color . . . . . . . . 7319
9896, 9908, 9946, 18112, 18115, \CT@column@color . .
9956, 9966, 9992, 18121, 18311, . . . . . . . 1488, 7343
10005, 10017, 18315, 18319,
\CT@do@color . . . . . .
10055, 10065, 18772, 18774,
. . . 1491, 7320, 7346
10075, 10101, 18776, 18779,
\CT@extract . . . 1466, 7325
10114, 10126, 18785, 18793,
10164, 10174, 18795, 18798, \CT@row@color . 1489, 7344
10184, 10210, 18804, 18953, \CT@setup . . . . . 1455,
10223, 10235, 18979, 18981, 1456, 1458, 1459,
10273, 10283, 19013, 19035, 1463, 1487, 7316, 7342
10293, 10319, 19037, 19053, \cumpartcl . . . . . . 15658
10332, 10344, 19054, 19074, \cumtcl . . . . . . . . . 15658
10539, 10551, 19081, 19294, \curraddr . . . . . . . . 322
10563, 10600, 19557, 19558, \current@color . . . .
10614, 10628, 19574, 19575, . . . . 7361, 7367,
10945, 11098, 19576, 19583, 7374, 7382, 7388,
11099, 11104, 19585, 19586, 11606, 11611,
11105, 11210, 19639, 19640, 20734, 20771,

Index 497
20772, 20776, \DeclareOption . . . . 751, 790, 791, 793,
20805, 20806, 20823 2331, 2334, 2337, 798, 800, 805, 807,
\CurrentOption . . . . 2340, 2343, 2346, 835, 982, 994, 995,
. . . . 6173, 6174, 2349, 2354, 2355, 1003, 1042, 1043,
6175, 6176, 6177, 2356, 2357, 2358, 1045, 1050, 1052,
6197, 6198, 6199, 2360, 4635, 4637, 1057, 1058, 1087,
6200, 6201, 7982, 8080 4639, 4642, 4647, 1232, 1244, 1245,
\currentposxwidth . 3123 5744, 5745, 6003, 1253, 1292, 1293,
\currentposyheight 3140 6004, 6029, 6030, 1295, 1300, 1302,
\customername . . . . 18257 6173, 6174, 6175, 1307, 1309, 1337,
\CustomFBox . . . . . . 11608 6176, 6177, 6197, 1357, 1367, 1368,
\cvcomputer . . . . . . . 2524 6198, 6199, 6200, 1371, 1377, 1405,
\cvdoubleitem . 2501, 2525 6201, 7972, 7974, 1418, 1419, 1422,
\cventry . . . . . . . . . 2513 7976, 7978, 7980, 1435, 1443, 1451,
\cvlanguage . . . . . . . 2522 7981, 8070, 8072, 1452, 1455, 1456,
\cvline 2496, 2497, 2502, 8074, 8076, 8078, 8079 1459, 1464, 1502,
2506, 2508, 2514, 2523 \DeclareRobustCommand 1503, 1601, 1603,
\cvlistdoubleitem . 2507 . . . . . . . . 2058, 1604, 1647, 1650,
\cvlistitem . . . . . . . 2505 2059, 2060, 2061, 1653, 1656, 1725,
\cvtheme . . . . . 2439, 2442 2062, 2063, 2064, 1729, 1825, 1827,
4970, 4977, 7362, 1858, 1875, 1883,
D 7377, 20735, 20778 1884, 1885, 1886,
\d . . . . . . . . . . . . . 14068 \DeclareSectionCommand 1887, 1893, 1894,
\d@llarbegin . . . . . . . . . . . . . 17546, 1901, 1917, 1918,
. . 379, 408, 1410, 17554, 17564, 1919, 1922, 1925,
1411, 1412, 1475, 17574, 17584, 1929, 1940, 1941,
1478, 1479, 7330, 17594, 18126, 1944, 1953, 1958,
7333, 7334, 20942 18135, 18143, 1983, 1984, 2066,
\d@llarend . . . . . . . 18153, 18163, 2067, 2068, 2070,
. . 380, 408, 1410, 18173, 18183, 2071, 2072, 2073,
1411, 1412, 1477, 18809, 18818, 2074, 2075, 2076,
1478, 1479, 7332, 18826, 18836, 2077, 2078, 2079,
7333, 7334, 20943 18846, 18856, 18866 2080, 2081, 2082,
\dashgapcolor . . . . . 1470 \DeclareTOCEntryStyle 2083, 2084, 2085,
\date 447, 483, 787, 832, . 19624, 19781, 19983 2090, 2101, 2132,
1039, 1084, 1289, \dedication . . . . . . . 2133, 2134, 2135,
1334, 2000, 6039, . 17233, 17782, 18481 2142, 2148, 2154,
6087, 6787, 6964, \dedicatory . . . . . . . 323 2162, 2167, 2169,
7053, 7089, 8774, \def . . . 2, 23, 26, 30, 34, 2177, 2182, 2183,
8808, 8871, 8907, 48, 64, 95, 98, 107, 2198, 2202, 2205,
10874, 10908, 108, 109, 110, 122, 2208, 2213, 2216,
16197, 16242, 132, 133, 135, 197, 2219, 2223, 2231,
16338, 16385, 218, 227, 228, 229, 2239, 2246, 2248,
16588, 16629, 230, 234, 237, 251, 2249, 2251, 2320,
16775, 16811, 266, 298, 301, 313, 2414, 2415, 2416,
17234, 17783, 18482 319, 336, 345, 350, 2417, 2418, 2419,
\datename . . . . . . . 18287 352, 377, 382, 384, 2421, 2422, 2440,
\deadcycles . . . 3569, 3572 405, 406, 407, 408, 2441, 2444, 2445,
\debugfootnotedirection 454, 455, 486, 550, 2446, 2447, 2448,
. . . . . . . . . . 11268 587, 719, 742, 743, 2449, 2450, 2451,

Index 498
2452, 2453, 2454, 3887, 3894, 3896, 6533, 6537, 6540,
2455, 2456, 2572, 3899, 3904, 3906, 6545, 6546, 6547,
2641, 2661, 2662, 3912, 3913, 3914, 6549, 6558, 6564,
2665, 2671, 2674, 3915, 3919, 3922, 6585, 6586, 6710,
2685, 2686, 2689, 3924, 3925, 3929, 6742, 6743, 6751,
2695, 2698, 2709, 3931, 3932, 3935, 6898, 6919, 6920,
2711, 2714, 2718, 3945, 3987, 3988, 6928, 6968, 6988,
2724, 2732, 2733, 3989, 3992, 4002, 7060, 7061, 7092,
2734, 2735, 2736, 4009, 4011, 4016, 7163, 7177, 7210,
2737, 2738, 2745, 4028, 4035, 4037, 7214, 7226, 7239,
2746, 2750, 2755, 4041, 4042, 4049, 7246, 7250, 7253,
2763, 2771, 2779, 4051, 4054, 4059, 7316, 7319, 7322,
2786, 2788, 2888, 4066, 4068, 4135, 7354, 7361, 7364,
2896, 2917, 2925, 4138, 4147, 4150, 7371, 7379, 7385,
2926, 2927, 2933, 4302, 4313, 4352, 7392, 7393, 7395,
2935, 2936, 2937, 4465, 4475, 4488, 7509, 7522, 7525,
2939, 3158, 3160, 4542, 4552, 4554, 7526, 7531, 7538,
3162, 3168, 3172, 4559, 4564, 4570, 7543, 7547, 7610,
3175, 3184, 3195, 4571, 4574, 4581, 7670, 8179, 8183,
3197, 3198, 3209, 4589, 4604, 4677, 8186, 8204, 8207,
3282, 3301, 3333, 4768, 4789, 4793, 8225, 8282, 8459,
3334, 3335, 3346, 4806, 4886, 4955, 8501, 8528, 8530,
3360, 3363, 3364, 4973, 4979, 5016, 8535, 8566, 8567,
3376, 3388, 3392, 5141, 5143, 5144, 8640, 8689, 8708,
3395, 3408, 3417, 5145, 5154, 5156, 8731, 8781, 8782,
3445, 3473, 3476, 5157, 5158, 5162, 8811, 8878, 8879,
3477, 3485, 3486, 5164, 5170, 5171, 8910, 8957, 8972,
3520, 3533, 3560, 5198, 5212, 5215, 9005, 9083, 9110,
3575, 3632, 3633, 5219, 5223, 5236, 9124, 9138, 9152,
3634, 3635, 3644, 5242, 5256, 5259, 9163, 9174, 9203,
3664, 3673, 3680, 5263, 5267, 5280, 9204, 9205, 9213,
3687, 3691, 3696, 5286, 5300, 5303, 9214, 9215, 9332,
3701, 3706, 3708, 5307, 5311, 5324, 9403, 9413, 9423,
3711, 3714, 3722, 5376, 5391, 5396, 9449, 9461, 9474,
3723, 3725, 3727, 5522, 5524, 5552, 9485, 9490, 9512,
3728, 3735, 3737, 5570, 5588, 5609, 9521, 9530, 9555,
3738, 3745, 3746, 5638, 5667, 5887, 9566, 9578, 9588,
3747, 3748, 3749, 5924, 5932, 6161, 9593, 9615, 9625,
3753, 3754, 3756, 6299, 6300, 6302, 9635, 9661, 9673,
3757, 3759, 3765, 6320, 6321, 6324, 9686, 9697, 9702,
3771, 3789, 3790, 6334, 6335, 6336, 9724, 9734, 9744,
3795, 3800, 3805, 6337, 6343, 6346, 9770, 9782, 9795,
3811, 3816, 3827, 6357, 6358, 6359, 9806, 9811, 9833,
3831, 3837, 3840, 6369, 6395, 6399, 9843, 9853, 9879,
3854, 3856, 3858, 6406, 6428, 6447, 9891, 9904, 9915,
3859, 3861, 3862, 6448, 6449, 6455, 9920, 9942, 9952,
3863, 3865, 3867, 6478, 6481, 6484, 9962, 9988, 10000,
3869, 3871, 3872, 6488, 6491, 6494, 10013, 10024,
3877, 3878, 3879, 6497, 6504, 6511, 10029, 10051,
3880, 3881, 3886, 6521, 6522, 6523, 10061, 10071,

Index 499
10097, 10109, 12010, 12018, 13356, 13456,
10122, 10133, 12024, 12033, 13472, 13473,
10138, 10160, 12035, 12051, 13505, 13506,
10170, 10180, 12062, 12063, 13510, 13512,
10206, 10218, 12065, 12078, 13818, 13830,
10231, 10242, 12079, 12081, 13834, 13835,
10247, 10269, 12097, 12099, 13836, 13843,
10279, 10289, 12102, 12104, 13871, 13902,
10315, 10327, 12105, 12120, 13910, 13913,
10340, 10351, 12127, 12187, 13918, 13948,
10356, 10406, 12188, 12189, 13956, 14022,
10438, 10500, 12190, 12199, 14023, 14627,
10535, 10547, 12201, 12237, 14629, 14679,
10559, 10590, 12489, 12516, 14681, 14729,
10609, 10623, 12527, 12538, 14740, 14751,
10641, 10651, 12549, 12559, 14770, 14870,
10660, 10669, 12570, 12581, 14967, 14975,
10761, 10796, 12592, 12607, 15008, 15020,
10808, 10839, 12622, 12639, 15032, 15046,
10881, 10882, 12665, 12682, 15079, 15093,
10911, 10942, 12690, 12703, 15131, 15135,
10974, 10980, 12720, 12728, 15163, 15167,
10987, 11023, 12736, 12753, 15171, 15175,
11097, 11108, 12761, 12767, 15179, 15181,
11156, 11260, 12784, 12792, 15187, 15191,
11347, 11351, 12798, 12815, 15195, 15199,
11353, 11355, 12823, 12831, 15203, 15205,
11357, 11359, 12845, 12849, 15367, 15381,
11361, 11362, 12863, 12871, 15383, 15390,
11364, 11368, 12878, 12886, 15396, 15476,
11377, 11379, 12889, 12892, 15523, 15527,
11386, 11387, 12926, 12958, 15531, 15533,
11404, 11407, 12987, 13014, 15549, 15561,
11413, 11416, 13017, 13019, 15575, 15625,
11424, 11425, 13022, 13031, 15632, 15751,
11426, 11432, 13032, 13036, 15752, 15754,
11449, 11465, 13038, 13039, 15755, 15761,
11493, 11507, 13040, 13042, 15762, 15763,
11521, 11535, 13051, 13053, 15773, 15783,
11541, 11547, 13144, 13148, 15791, 15799,
11554, 11567, 13157, 13158, 15800, 15801,
11571, 11575, 13159, 13161, 15802, 15803,
11581, 11586, 13165, 13167, 15804, 15809,
11590, 11602, 13172, 13175, 15810, 15813,
11616, 11618, 13196, 13208, 15815, 15816,
11620, 11622, 13244, 13245, 15817, 15818,
11630, 11735, 13263, 13280, 15820, 15821,
11745, 11776, 13282, 13283, 15834, 15840,
11784, 11833, 13290, 13295, 15847, 15848,
11886, 11922, 13305, 13354, 15849, 15850,

Index 500
15851, 15853, 19046, 19055, 21170, 21171,
15854, 15960, 19056, 19072, 21172, 21192,
15981, 15987, 19076, 19079, 21194, 21227,
16007, 16008, 19083, 19086, 21234, 21281,
16129, 16152, 19116, 19161, 21381, 21395,
16153, 16161, 19195, 19217, 21398, 21402,
16200, 16201, 19223, 19226, 21406, 21419,
16203, 16208, 19228, 19231, 21425, 21439,
16210, 16215, 19255, 19908, 21442, 21446,
16217, 16245, 19932, 20474, 21450, 21463,
16291, 16292, 20495, 20497, 21469, 21509,
16300, 16341, 20653, 20696, 21513, 21514,
16342, 16344, 20699, 20705, 21515, 21516,
16349, 16351, 20709, 20728, 21526, 21612,
16356, 16358, 20734, 20737, 21624, 21625,
16388, 16410, 20759, 20768, 21627, 21746,
16523, 16552, 20774, 20780, 21748, 21752,
16554, 16595, 20802, 20808, 21754, 21781, 21783
16597, 16632, 20817, 20821, \default@color 7361, 20734
16720, 16782, 20825, 20826, \DefaultFindent . . 13252
16783, 16814, 20827, 20830, \DefaultLhang . . . . 13248
16885, 16897, 20835, 20841, \DefaultLoversize 13249
16923, 16927, 20842, 20843, \DefaultLraise . . . 13250
16970, 17017, 20853, 20863, \DefaultNindent . . 13253
17020, 17027, 20872, 20883, \DefaultOptionsFile
17030, 17038, 20884, 20893, . 13272, 13275, 13278
17045, 17048, 20894, 20903, \DefaultSlope . . . . 13254
17074, 17076, 20904, 20909, \deffootnote . . 17073,
17096, 17280, 20910, 20913, 17098, 17622,
17281, 17333, 20915, 20916, 17647, 18196,
17340, 17489, 20917, 20918, 18216, 18321, 18346
17491, 17623, 20920, 20922, \define@choicekey .
17625, 17645, 20924, 20925, 1662, 1668, 1674,
17829, 17913, 20938, 20940, 1680, 1686, 1692,
17920, 18069, 20945, 20947, 1704, 1710, 1716,
18071, 18197, 20953, 20955, 1723, 1737, 1744,
18214, 18218, 20962, 20964, 1754, 20528, 20536
18221, 18225, 20967, 20969, \define@key 1646, 1649,
18297, 18322, 20970, 20971, 1652, 1655, 20526
18324, 18344, 20972, 20974, \definecolor . . . . . .
18528, 18596, 20984, 21021, . . . . 2007, 2008,
18603, 18752, 21087, 21097, 2009, 2010, 2011,
18754, 18886, 21100, 21103, 2413, 2420, 7986,
18890, 18907, 21108, 21109, 7991, 7994, 7995,
18928, 18931, 21110, 21111, 7996, 7998, 7999,
18946, 18951, 21112, 21114, 8002, 8003, 8005,
18954, 18977, 21117, 21127, 8006, 8009, 8010,
18981, 18985, 21132, 21135, 8012, 8013, 8016,
18995, 19011, 21155, 21158, 8017, 8019, 8020,
19017, 19025, 21168, 21169, 8023, 8024, 8089,

Index 501
8090, 8095, 8096, \dfn@dimb . . . . . . . . \DFNcolumnwidth . . .
8101, 8102, 8107, 8263, 8264, 8266, . . . . 8180, 8185,
8108, 8113, 8114, 8633 8267, 8269, 8315, 8206, 8245, 8247,
\DefineTOCEntryCommandOption 8316, 8318, 8319, 8321 8250, 8260, 8302, 8304
. . . . . . . 19990, \dfn@elt@adjust 8263, 8315 \diagbox@double 8339, 8342
19992, 19994, \dfn@elt@getht 8228, 8285 \diagbox@double@pict@NE
19998, 20000, \dfn@fnht . 8199, 8220, . . . . . . . 8413, 8420
20002, 20004, 20006 8261, 8264, 8270, \diagbox@double@pict@NW
\DefineTOCEntryIfOption 8271, 8272, 8313, . . . . . . . . . . . 8412
. 19986, 19988, 20020 8316, 8322, 8323, 8324 \diagbox@double@pict@SE
\DefineTOCEntryLengthOption \dfn@fnmaxdp . . . . . . . . . . . . . 8405, 8412
. . 19625, 19627, 8187, 8192, 8197, \diagbox@double@pict@SW
19782, 19984, 8208, 8213, 8218, . . . . . . . . . . . 8420
19996, 20022, 20024 8240, 8243, 8297, 8300 \diagbox@font . . . . .
\DefineTOCEntryOption \dfn@footnoterule . 8340, 8343, 8347,
. . . . . . . . . . 20008 . . . . . . . 8281, 8333 8349, 8354, 8356,
\DefNewDummy . . 3771, 3788 \dfn@footnotetext . 8182 8360, 8363, 8366,
\delimiter . . . . . . 11599 \dfn@gobble . . . 8184, 8205 8370, 8372, 8376, 8378
\DEPTH . . . . . 19119, 19126 \dfn@ins . . 8192, 8193,
\diagbox@ht . . . . 8407,
\depth . . . . . . . 12027, 8194, 8196, 8213,
8410, 8415, 8418
14569, 14576, 14601 8214, 8215, 8217,
\diagbox@insepl . . .
\depthof . . 8508, 8513, 8231, 8232, 8288, 8289
8340, 8347, 8349,
8522, 8523, 8527, 8532 \dfn@latex@footnotetext
8360, 8363, 8370,
\descriptionlabel . 5965 . . . . . . . . . . . 8181
8372, 8382, 8392, 8394
\DetectColumn 21198, 21202 \dfn@latex@LTRfootnotetext
\diagbox@insepr . . .
\detokenize . . . . 2894, . . . . . . . 8187, 8202
8343, 8354, 8356,
2896, 3333, 3335, \dfn@latex@makecol
8366, 8376, 8378,
3336, 3363, 3378, . . . . . . . 8280, 8332
8385, 8388, 8399, 8401
3395, 3398, 3406, \dfn@latex@RTLfootnotetext
. . . . . . . 8208, 8223 \diagbox@setlinecolor
3408, 3476, 3477, 4348
. . . . 8406, 8409,
\dfn@afteroutput 8274, \dfn@list . 8201, 8222,
8414, 8417, 8422,
8277, 8326, 8329 8229, 8262, 8264,
8426, 8431, 8435,
\dfn@boxa . 8183, 8188, 8267, 8273, 8286,
8440, 8444, 8449, 8453
8191, 8195, 8196, 8314, 8316, 8319, 8325
8197, 8204, 8209, \dfn@LTRfootnotetext \diagbox@triple@pict@NE
8212, 8216, 8217, . . . . . . . 8183, 8203 . . . . . . . . . . . 8430
8218, 8231, 8238, \dfn@LTRmakecol . . . \diagbox@triple@pict@NW
8241, 8243, 8250, . . . 8282, 8334, 8336 . . . . . . . . . . . 8421
8258, 8288, 8295, \dfn@makecol . . . . . . \diagbox@triple@pict@SE
8298, 8300, 8304, 8312 . . . 8334, 8335, 8336 . . . . . . . . . . . 8448
\dfn@boxb . . . . . . . . \dfn@makefnmark 8186, 8207 \diagbox@triple@pict@SW
8197, 8218, 8235, \dfn@RTLfootnotetext . . . . . . . . . . . 8439
8236, 8243, 8248, . . . . . . . 8204, 8224 \diagbox@triple@setbox@NE
8292, 8293, 8300, 8303 \dfn@RTLmakecol . . . . . . . . . . . . . . 8404
\dfn@countins . 8227, 8284 . . . 8225, 8334, 8335 \diagbox@triple@setbox@NW
\dfn@dima . . . . . 8188, \dfn@split 8197, 8218, . . . . . . . . 8359,
8189, 8190, 8201, 8231, 8243, 8288, 8300 8362, 8365, 8380
8209, 8210, 8211, \DFNalwaysdouble . . 8337 \diagbox@triple@setbox@SE
8222, 8226, 8243, \DFNcolumnsep . . . . . . . . . . . . . 8381,
8263, 8283, 8300, 8315 . . . 8246, 8259, 8303 8384, 8387, 8404

Index 502
\diagbox@triple@setbox@SW 11701, 11702, 11703 \doloopbody 3957, 3958,
. . . . . . . . . . . 8380 \dimexpr . . . . . . . 28, 4002, 4075, 4082,
\diagbox@wd . . . . 8407, 232, 731, 965, 4089, 4092, 4094,
8410, 8415, 8418 1211, 2845, 2848, 4098, 4100, 4102, 4106
\DigitsDotDashInterCharToks 3129, 3133, 3143, \doubleitemmaincolumnwidth
. . . . . . . 1786, 1787 3152, 6722, 6875, 2462, 2475, 2476,
\dim . . . . 14243, 14244, 13163, 13993, 2477, 2478, 2502, 2504
14567, 14568, 14569 14002, 14968, \doublerulesepcolor 1469
\dimen . . . . . . . . 1608, 15177, 16112, \downtovalue . . . 3955,
1891, 9296, 9360, 16535, 17101, 3967, 4049, 4088
9380, 9381, 9382, 17108, 17111, \dp . . . . . . . 40, 54, 70,
9390, 9499, 9602, 17650, 17657, 243, 257, 272, 389,
9711, 9820, 9929, 17660, 18349, 1462, 1633, 1908,
10038, 10147, 18356, 18359, 7358, 7359, 7807,
10256, 10415, 19769, 19935, 8188, 8209, 8236,
10421, 10473, 19942, 19952, 8255, 8257, 8293,
10479, 11780, 19954, 21054, 8309, 8311, 8507,
15065, 15072, 21056, 21057, 8512, 8525, 8531,
15073, 15081, 21058, 21063, 8645, 8650, 8654,
15082, 15087, 21065, 21066, 8657, 9301, 10369,
15088, 15104, 21067, 21072, 10700, 10708,
15105, 15112, 21074, 21075, 10956, 10969,
15113, 21518, 21521 21076, 21081, 11438, 11455,
\dimen@ . . . 7357, 7358, 21083, 21084, 21085 11471, 11893,
10700, 10702, \DiscardVskip . . . . 13255 11898, 11998,
11638, 11639, \display@setup 7215, 7240 12039, 12040,
11640, 11650, \displayindent . . . . 7256 12043, 12085,
11651, 11652, \displaystyle 11071, 11087 12086, 12089,
11655, 11656, \displaywidth . . . . . 13303, 13854,
11657, 11663, 7256, 8504, 8506, 14001, 14004,
11673, 11675, 8511, 11090, 13219 15065, 15081,
11684, 11686, \divide 4097, 6307, 9381, 15082, 15087,
11693, 11694, 10457, 10458, 15088, 15104,
11695, 11696, 10519, 10520, 15105, 15112,
13925, 13926, 10957, 10958, 15113, 15646,
13927, 15182, 12026, 12027, 15647, 15648,
15183, 15188, 15263, 15267, 15822, 15866,
15189, 15192, 15666, 15667, 18991 16936, 16978,
15193, 15822, \do . . . . . . . . 319, 320, 16981, 17035,
15827, 18909, 321, 322, 323, 324, 17042, 17426,
18911, 18917, 2273, 4332, 4392, 17429, 18006,
18923, 20667, 4407, 4428, 4431, 18009, 18689,
20668, 20669, 5417, 5422, 5436, 18692, 18958,
20670, 20671, 5441, 5455, 5460, 18993, 19005,
20672, 20731, 20732 5483, 5492, 7527, 19119, 19121,
\dimen@i . . . . . 18910, 10945, 13359, 20217 20723, 20732,
18911, 18916, 18922 \do@@hvFloat . . . . . 12187 20733, 21140,
\dimen@ii . . . . 11688, \document . . . . 3516, 3530 21490, 21497, 21584
11689, 11690, \documentclass . 4315, \dquad . . . . . . . 7248, 7250
11696, 11698, 4318, 11933, 11943 \draw . . . . . . . . 20547,

Index 503
20554, 20558, 13361, 13363, 20954, 21132, 21133
20581, 20591, 13369, 13371, \eightcolumnfootnotes
20599, 20602, 13911, 13914, . . . . . . . . . . 10032
20605, 20608, 15379, 15518, \eject . . . . . . . . 7817,
20620, 20625, 15537, 15540, 11641, 11710, 11730
20632, 20638, 20639 15566, 15996, \else . . 4, 12, 13, 25, 36,
\dseries@display@setup 16932, 16975, 87, 104, 116, 134,
. . . . . . . . . . . 7240 17318, 17898, 136, 151, 155, 159,
18198, 18581, 167, 175, 182, 191,
E 18961, 18986, 199, 207, 208, 224,
\edef . . 123, 359, 1384, 19000, 19018, 239, 290, 305, 309,
1438, 1446, 1506, 19073, 19080, 340, 353, 354, 355,
1532, 1830, 1856, 19093, 19557, 357, 358, 361, 362,
2160, 2175, 2203, 20029, 20062, 363, 365, 366, 367,
2206, 2209, 2610, 20069, 20074, 368, 369, 372, 373,
2648, 2651, 2664, 20135, 20289, 374, 398, 404, 450,
2668, 2675, 2688, 20393, 20506, 461, 464, 513, 530,
2692, 2699, 2892, 20743, 20748, 533, 534, 554, 557,
2895, 2945, 2973, 20757, 20772, 572, 593, 604, 609,
2999, 3027, 3053, 20776, 20786, 620, 624, 632, 636,
3090, 3216, 3217, 20791, 20800, 637, 641, 645, 648,
3220, 3221, 3238, 20806, 20819, 649, 654, 665, 676,
3239, 3242, 3243, 20823, 21040, 690, 693, 694, 697,
3332, 3337, 3347, 21143, 21207, 21221 707, 754, 763, 771,
3362, 3365, 3378, \EdefEscapeName . . 12990 795, 799, 801, 812,
3382, 3387, 3394, \egroup . . . . . . . 179, 815, 858, 869, 872,
3397, 3404, 3407, 185, 382, 406, 641, 875, 876, 882, 892,
3413, 3416, 3469, 1200, 1367, 1368, 895, 896, 899, 909,
3475, 3478, 3634, 1485, 2198, 2199, 920, 931, 939, 943,
3675, 3685, 3763, 2324, 6396, 6600, 952, 970, 1006,
3772, 3834, 3889, 7259, 7340, 9347, 1015, 1023, 1047,
3892, 3919, 3922, 11076, 11077, 1051, 1053, 1064,
3926, 4010, 4015, 11091, 11565, 1067, 1110, 1121,
4016, 4038, 4043, 11710, 11714, 1125, 1128, 1131,
4055, 4060, 4153, 13937, 13940, 1132, 1137, 1148,
4161, 4171, 4303, 14976, 15609, 1159, 1174, 1177,
4346, 4390, 4412, 15619, 15634, 1178, 1181, 1191,
4426, 4454, 4546, 15765, 15771, 1195, 1196, 1200,
4558, 4565, 4582, 15775, 15781, 1220, 1256, 1265,
5386, 5531, 5542, 15785, 15789, 1273, 1297, 1301,
6479, 6482, 6485, 15793, 15797, 1303, 1314, 1317,
8557, 8560, 11098, 15860, 16045, 1354, 1359, 1360,
11104, 11209, 16495, 18951, 1373, 1378, 1379,
11211, 11212, 18952, 18977, 1380, 1382, 1383,
11213, 11298, 18983, 20393, 1386, 1387, 1388,
11319, 11670, 20845, 20851, 1390, 1391, 1392,
12659, 12666, 20855, 20861, 1393, 1394, 1395,
12697, 12704, 20865, 20870, 1396, 1399, 1400,
12737, 12768, 20874, 20879, 1401, 1421, 1422,
12799, 13209, 20945, 20953, 1423, 1424, 1425,

Index 504
1426, 1428, 1429, 6698, 6754, 6763, 9031, 9109, 9150,
1430, 1431, 1432, 6771, 6794, 6805, 9221, 9224, 9233,
1538, 1544, 1550, 6809, 6812, 6815, 9236, 9245, 9248,
1593, 1595, 1604, 6816, 6821, 6832, 9269, 9273, 9277,
1615, 1618, 1621, 6841, 6855, 6858, 9283, 9308, 9316,
1796, 1799, 1862, 6859, 6863, 6886, 9324, 9337, 9402,
1876, 1878, 1887, 6931, 6940, 6948, 9447, 9511, 9553,
1897, 2144, 2150, 6970, 6981, 6983, 9614, 9659, 9723,
2156, 2171, 2254, 7004, 7015, 7056, 9768, 9832, 9876,
2262, 2267, 2277, 7067, 7070, 7119, 9941, 9985, 10050,
2516, 2517, 2518, 7134, 7137, 7138, 10095, 10159,
2520, 2556, 2623, 7165, 7179, 7188, 10204, 10268,
2629, 2650, 2653, 7195, 7218, 7248, 10313, 10447,
2672, 2680, 2696, 7274, 7299, 7306, 10451, 10468,
2704, 2720, 2790, 7355, 7360, 7398, 10489, 10509,
2798, 2804, 2810, 7399, 7405, 7423, 10513, 10530,
2816, 2822, 2828, 7446, 7469, 7492, 10585, 10594,
2834, 2840, 2853, 7517, 7518, 7520, 10697, 10738,
2861, 2865, 2871, 7532, 7537, 7539, 10752, 10772,
2879, 2883, 2905, 7541, 7561, 7566, 10787, 10790,
2912, 2958, 2983, 7584, 7600, 7624, 10791, 10798,
3012, 3037, 3069, 7629, 7643, 7659, 10810, 10827,
3103, 3132, 3167, 7677, 7685, 7708, 10877, 10888,
3371, 3696, 3709, 7726, 7753, 7757, 10891, 10950,
3710, 3723, 3724, 7772, 7779, 7798, 11000, 11005,
3726, 3728, 3736, 7808, 7820, 7829, 11036, 11041,
3738, 3760, 3774, 7843, 7855, 7883, 11066, 11079,
3827, 3831, 3837, 7900, 7928, 7932, 11096, 11123,
3843, 3883, 4052, 7947, 7956, 8048, 11127, 11148,
4061, 4112, 4136, 8130, 8144, 8189, 11254, 11258,
4151, 4216, 4228, 8193, 8195, 8210, 11284, 11308,
4260, 4271, 4309, 8214, 8216, 8225, 11390, 11393,
4321, 4322, 4339, 8230, 8239, 8250, 11433, 11484,
4348, 4393, 4408, 8254, 8262, 8282, 11522, 11523,
4411, 4438, 4439, 8287, 8296, 8304, 11539, 11557,
4453, 4734, 4740, 8308, 8314, 8334, 11601, 11619,
4935, 4938, 4941, 8348, 8355, 8371, 11621, 11637,
4944, 4974, 5202, 8377, 8393, 8400, 11642, 11662,
5208, 5240, 5246, 8462, 8469, 8486, 11691, 11697,
5252, 5290, 5296, 8510, 8592, 8607, 11713, 11720,
5475, 5872, 5873, 8622, 8623, 8624, 11725, 11738,
6161, 6246, 6299, 8625, 8652, 8668, 11768, 11802,
6312, 6321, 6411, 8671, 8672, 8682, 11807, 11851,
6432, 6457, 6530, 8693, 8696, 8709, 11856, 11890,
6550, 6551, 6566, 8719, 8777, 8788, 11891, 11896,
6571, 6575, 6617, 8791, 8874, 8885, 11913, 11914,
6628, 6632, 6635, 8888, 8936, 8959, 11916, 11924,
6638, 6639, 6644, 8974, 8983, 8990, 11925, 11935,
6655, 6664, 6678, 9011, 9012, 9014, 11954, 11958,
6681, 6682, 6686, 9019, 9025, 9027, 11960, 11969,

Index 505
11971, 11979, 12492, 12503, 13717, 13720,
11994, 12018, 12523, 12534, 13723, 13726,
12020, 12023, 12545, 12563, 13729, 13732,
12024, 12025, 12574, 12585, 13735, 13738,
12031, 12033, 12596, 12611, 13741, 13744,
12041, 12047, 12626, 12686, 13747, 13750,
12050, 12053, 12724, 12757, 13753, 13756,
12060, 12067, 12788, 12819, 13759, 13762,
12069, 12075, 12872, 12884, 13765, 13768,
12079, 12082, 12887, 12904, 13771, 13774,
12087, 12093, 12913, 12923, 13777, 13780,
12096, 12109, 12938, 12946, 13783, 13786,
12112, 12115, 12955, 12969, 13789, 13792,
12121, 12128, 12984, 12998, 13795, 13798,
12138, 12151, 13010, 13136, 13801, 13804,
12160, 12168, 13154, 13174, 13807, 13810,
12175, 12178, 13177, 13185, 13813, 13821,
12181, 12200, 13186, 13202, 13822, 13823,
12203, 12209, 13224, 13225, 13824, 13847,
12210, 12213, 13227, 13232, 13876, 13885,
12220, 12222, 13256, 13257, 13891, 13922,
12228, 12239, 13258, 13259, 13937, 13939,
12247, 12249, 13268, 13273, 14011, 14633,
12250, 12251, 13286, 13311, 14636, 14647,
12254, 12259, 13320, 13355, 14648, 14649,
12265, 12267, 13362, 13370, 14650, 14651,
12268, 12269, 13390, 13400, 14652, 14681,
12272, 12282, 13408, 13438, 14697, 14703,
12284, 12297, 13449, 13467, 14709, 14734,
12303, 12306, 13477, 13483, 14744, 14766,
12310, 12316, 13520, 13599, 14784, 14800,
12319, 12322, 13602, 13605, 14813, 14826,
12328, 12333, 13608, 13611, 14830, 14884,
12336, 12340, 13614, 13617, 14900, 14913,
12342, 12345, 13620, 13623, 14926, 14930,
12349, 12351, 13627, 13630, 14986, 14994,
12353, 12357, 13633, 13636, 15000, 15009,
12362, 12366, 13639, 13642, 15011, 15015,
12373, 12378, 13645, 13648, 15016, 15021,
12382, 12389, 13651, 13654, 15023, 15028,
12394, 12398, 13657, 13660, 15033, 15035,
12402, 12404, 13663, 13666, 15040, 15050,
12407, 12411, 13669, 13672, 15063, 15096,
12413, 12415, 13675, 13678, 15128, 15150,
12419, 12423, 13681, 13684, 15154, 15158,
12427, 12433, 13687, 13690, 15203, 15205,
12436, 12440, 13693, 13696, 15221, 15228,
12446, 12449, 13699, 13702, 15264, 15268,
12452, 12458, 13705, 13708, 15272, 15351,
12473, 12483, 13711, 13714, 15356, 15389,

Index 506
15395, 15403, 16495, 16511, 17821, 17829,
15406, 15430, 16540, 16591, 17834, 17850,
15450, 15465, 16607, 16610, 17858, 17866,
15539, 15563, 16656, 16671, 17874, 17875,
15621, 15629, 16674, 16675, 17888, 17903,
15663, 15689, 16680, 16681, 17919, 17929,
15727, 15728, 16705, 16727, 17938, 17943,
15729, 15755, 16738, 16778, 17946, 17947,
15809, 15810, 16789, 16792, 17948, 17950,
15813, 15817, 16841, 16856, 17975, 17987,
15818, 15821, 16859, 16860, 17992, 17997,
15823, 15829, 16887, 16899, 18014, 18028,
15847, 15848, 16908, 16940, 18034, 18047,
15853, 15861, 16985, 17019, 18057, 18075,
15870, 15880, 17021, 17025, 18105, 18202,
15886, 15889, 17029, 17031, 18203, 18209,
15896, 15898, 17036, 17040, 18226, 18227,
15904, 15915, 17043, 17047, 18228, 18229,
15917, 15928, 17049, 17053, 18230, 18231,
15930, 15941, 17080, 17081, 18232, 18233,
15943, 15952, 17089, 17102, 18237, 18240,
15954, 15973, 17109, 17129, 18243, 18246,
15993, 16007, 17134, 17141, 18249, 18252,
16008, 16013, 17147, 17171, 18255, 18258,
16024, 16028, 17178, 17182, 18261, 18264,
16036, 16040, 17196, 17199, 18267, 18270,
16041, 16045, 17242, 17246, 18273, 18276,
16049, 16052, 17254, 17260, 18279, 18282,
16053, 16058, 17272, 17280, 18285, 18288,
16069, 16078, 17281, 17294, 18293, 18294,
16092, 16095, 17296, 17308, 18300, 18328,
16096, 16100, 17323, 17339, 18329, 18337,
16117, 16164, 17349, 17358, 18350, 18357,
16173, 16181, 17363, 17366, 18377, 18382,
16205, 16209, 17367, 17368, 18389, 18395,
16211, 16222, 17370, 17395, 18419, 18426,
16225, 16268, 17407, 17412, 18430, 18444,
16279, 16303, 17417, 17434, 18447, 18490,
16312, 16320, 17448, 17454, 18494, 18502,
16346, 16350, 17467, 17477, 18508, 18520,
16352, 16363, 17495, 17525, 18528, 18557,
16366, 16407, 17629, 17630, 18558, 18571,
16412, 16413, 17638, 17651, 18586, 18602,
16421, 16424, 17658, 17678, 18612, 18621,
16425, 16430, 17683, 17690, 18626, 18629,
16441, 16450, 17696, 17720, 18630, 18631,
16464, 16467, 17727, 17731, 18633, 18658,
16468, 16472, 17745, 17748, 18670, 18675,
16478, 16486, 17791, 17795, 18680, 18697,
16490, 16491, 17803, 17809, 18711, 18717,

Index 507
18730, 18740, 19542, 19552, 21058, 21064,
18758, 18788, 19567, 19568, 21065, 21067,
18880, 18883, 19569, 19577, 21073, 21074,
18919, 18936, 19599, 19617, 21076, 21082,
18969, 18982, 19618, 19619, 21083, 21085,
18990, 19003, 19757, 19865, 21093, 21094,
19008, 19087, 19882, 19892, 21095, 21096,
19088, 19089, 19907, 19911, 21099, 21102,
19091, 19092, 20014, 20279, 21105, 21108,
19095, 19096, 20293, 20297, 21109, 21110,
19097, 19098, 20320, 20335, 21111, 21113,
19099, 19100, 20345, 20349, 21115, 21116,
19101, 19103, 20359, 20360, 21120, 21122,
19104, 19105, 20361, 20362, 21136, 21153,
19106, 19107, 20367, 20369, 21158, 21159,
19110, 19111, 20370, 20378, 21160, 21161,
19112, 19175, 20384, 20401, 21162, 21163,
19192, 19199, 20411, 20417, 21164, 21165,
19201, 19206, 20423, 20426, 21168, 21169,
19211, 19212, 20437, 20475, 21173, 21175,
19215, 19220, 20477, 20482, 21180, 21209,
19224, 19225, 20491, 20496, 21218, 21228,
19240, 19264, 20498, 20505, 21248, 21253,
19268, 19278, 20512, 20543, 21295, 21300,
19284, 19290, 20550, 20555, 21325, 21332,
19295, 19301, 20561, 20572, 21348, 21359,
19311, 19323, 20575, 20586, 21370, 21385,
19331, 19336, 20593, 20607, 21391, 21429,
19337, 19338, 20657, 20664, 21435, 21473,
19346, 19353, 20665, 20667, 21475, 21485,
19367, 19368, 20675, 20683, 21501, 21503,
19369, 19377, 20685, 20686, 21506, 21510,
19386, 19390, 20697, 20701, 21519, 21548,
19391, 19392, 20706, 20715, 21551, 21554,
19400, 19407, 20721, 20729, 21560, 21581,
19408, 19409, 20733, 20742, 21597, 21617,
19417, 19424, 20761, 20766, 21624, 21625,
19425, 19426, 20785, 20810, 21738, 21746, 21752
19434, 19441, 20815, 20835, \em . . . . . . . . . . . . . . 5965
19442, 19443, 20881, 20882, \email . . . . . . . 322, 2452
19451, 19458, 20909, 20910, \emaillink 2534, 8063, 8161
19459, 19460, 20913, 20917, \emailsymbol . . . . . .
19468, 19475, 20918, 20977, . . . 2412, 8063, 8161
19476, 19477, 20996, 20999, \empty . . . . . 12200, 18889
19485, 19493, 21004, 21007, \EmptyTokenList . . . 3878
19494, 19495, 21010, 21013, \end . . . . 179, 186, 429,
19503, 19512, 21016, 21030, 432, 435, 500, 503,
19513, 19514, 21038, 21043, 766, 774, 777, 847,
19522, 19532, 21044, 21045, 850, 1018, 1026,
19533, 19534, 21055, 21056, 1029, 1099, 1102,

Index 508
1268, 1276, 1279, 16576, 16648, 2599, 2607, 2608,
1350, 1353, 1358, 16757, 16760, 2613, 2621, 2622,
1359, 1360, 1944, 16763, 16828, 2624, 2626, 2628,
2093, 2104, 2105, 16831, 16928, 2631, 2632, 2637,
2500, 2502, 2504, 16971, 17137, 2638, 2667, 2668,
2506, 2508, 2512, 17152, 17159, 2691, 2692, 2719,
2520, 2523, 2573, 17165, 17169, 2747, 2751, 2761,
2664, 2672, 2674, 17177, 17249, 2769, 2777, 2785,
2675, 2681, 2688, 17266, 17276, 2787, 2789, 2793,
2696, 2698, 2699, 17304, 17686, 2794, 2851, 2857,
2705, 3583, 3584, 17701, 17708, 2858, 2900, 2910,
3605, 3629, 4774, 17714, 17718, 2916, 2917, 2919,
4775, 4780, 4783, 17726, 17798, 2920, 2922, 2923,
4860, 4861, 4868, 17815, 17825, 2925, 3127, 3128,
4869, 4876, 4877, 17884, 18385, 3130, 3131, 3134,
4897, 4898, 4936, 18400, 18407, 3135, 3144, 3145,
4939, 4942, 4945, 18413, 18417, 3179, 3180, 3202,
4952, 4953, 5136, 18425, 18497, 3203, 3258, 3259,
5137, 5756, 5812, 18514, 18524, 3260, 3261, 3267,
5819, 5826, 5833, 18567, 19042, 3268, 3269, 3270,
5840, 5851, 5859, 19238, 20547, 3353, 3354, 3357,
5986, 5987, 6123, 20554, 20564, 3358, 3585, 3586,
6166, 6188, 6572, 20569, 20582, 3588, 3599, 3600,
6766, 6774, 6777, 20589, 20592, 3602, 3613, 3623,
6943, 6951, 6954, 20611, 20628, 3632, 3633, 3634,
6983, 6995, 7035, 20635, 20641, 20643 3635, 3645, 3658,
7038, 7041, 7106, \end@dblfloat . . . . 17015 3682, 3687, 3691,
7109, 7422, 7432, \end@float . . . . . . . 3707, 3725, 3727,
7445, 7455, 7468, . . 4800, 5129, 16966 3735, 3737, 3746,
7478, 7491, 7501, \end@rotdblfloat . 16970 3747, 3827, 3831,
8042, 8151, 8163, \end@rotfloat . . . . . 3864, 3866, 3877,
8171, 8554, 8628, . 16927, 16968, 16969 3878, 3892, 3900,
8758, 8761, 8764, \endarray . . . . . 382, 3902, 3929, 3950,
8823, 8826, 8853, 406, 1367, 1368, 3987, 3988, 3989,
8856, 8859, 8924, 18977, 18981, 20945 4005, 4006, 4007,
8927, 9016, 10858, \endBCmd . . . . . . . . . 2095 4008, 4110, 4113,
10861, 10864, \endbidi@switch . . . 4118, 4134, 4137,
10923, 10926, . . . 3784, 3788, 3789 4139, 4149, 4152,
11078, 12257, \endbidi@tabular@RTLcases 4154, 4161, 4165,
12275, 12377, . 20945, 20953, 20960 4166, 4171, 4180,
12393, 12484, \endcsname . . . . . . 8, 4181, 4197, 4200,
13229, 14768, 44, 58, 74, 166, 4214, 4226, 4258,
15484, 16176, 168, 203, 247, 261, 4269, 4354, 4356,
16184, 16187, 276, 333, 334, 383, 4394, 4396, 4402,
16257, 16260, 1369, 2161, 2162, 4445, 4585, 4606,
16315, 16323, 2176, 2177, 2203, 4957, 4958, 4965,
16326, 16403, 2206, 2209, 2225, 4966, 5558, 5576,
16406, 16411, 2233, 2241, 2296, 5594, 5625, 5654,
16412, 16413, 2583, 2586, 2589, 5683, 5925, 6451,
16570, 16573, 2591, 2594, 2596, 6479, 6482, 6485,

Index 509
6499, 6506, 6513, 12771, 12802, 20269, 20271,
6521, 6522, 6560, 13181, 13284, 20304, 20305,
6585, 6586, 7368, 13287, 13717, 20307, 20309,
7374, 7382, 7389, 13783, 14753, 20314, 20316,
7961, 9116, 9130, 14754, 14761, 20318, 20322,
9144, 9156, 9167, 15375, 15385, 20325, 20326,
9178, 9407, 9417, 15399, 17063, 20329, 20330,
9427, 9453, 9466, 17067, 17071, 20339, 20341,
9478, 9516, 9525, 17509, 17511, 20343, 20347,
9534, 9559, 9571, 17513, 17516, 20351, 20352,
9582, 9619, 9629, 17522, 17531, 20405, 20407,
9639, 9665, 9678, 17533, 17535, 20409, 20413,
9690, 9728, 9738, 17541, 17612, 20433, 20434,
9748, 9774, 9787, 17616, 17620, 20442, 20446,
9799, 9837, 9847, 18089, 18091, 20450, 20454,
9857, 9883, 9896, 18093, 18096, 20458, 20462,
9908, 9946, 9956, 18102, 18110, 20466, 20470,
9966, 9992, 10005, 18112, 18115, 20508, 20509,
10017, 10055, 18121, 18311, 20511, 20514,
10065, 10075, 18315, 18319, 20515, 20519,
10101, 10114, 18772, 18774, 20983, 21048,
10126, 10164, 18776, 18779, 21134, 21195,
10174, 10184, 18785, 18793, 21208, 21210, 21679
10210, 10223, 18795, 18798, \enddocument . . . 3540,
10235, 10273, 18804, 18953, 3546, 3553, 3568
10283, 10293, 18979, 18981, \endflushleft . 2115, 2123
10319, 10332, 19013, 19035, \endgraf 13879, 13898,
10344, 10539, 19037, 19053, 17474, 18054, 18737
10551, 10563, 19054, 19074, \endgroup 17, 127, 212,
10600, 10614, 19081, 19294, 310, 317, 380, 396,
10628, 10945, 19557, 19558, 470, 522, 536, 674,
11098, 11100, 19574, 19575, 696, 821, 898, 918,
11104, 11106, 19576, 19583, 1073, 1157, 1180,
11210, 11211, 19585, 19586, 1323, 1492, 1989,
11212, 11213, 19639, 19640, 2227, 2235, 2243,
11215, 11217, 19794, 19795, 2619, 2658, 2677,
11218, 11219, 19905, 19909, 2701, 2909, 2928,
11220, 11222, 19913, 20012, 3283, 3302, 3347,
11223, 11224, 20015, 20029, 3369, 3379, 3396,
11281, 11305, 20045, 20046, 3446, 3517, 3541,
11323, 11409, 20062, 20069, 3544, 3649, 3855,
11418, 11441, 20074, 20135, 3857, 3893, 3898,
11458, 11474, 20190, 20192, 3907, 4065, 4109,
11502, 11516, 20194, 20210, 4133, 4148, 4219,
11530, 11577, 20213, 20219, 4231, 4243, 4263,
11592, 12491, 20221, 20224, 4274, 4285, 4449,
12494, 12496, 20228, 20233, 4548, 4558, 4598,
12500, 12504, 20237, 20241, 4967, 5394, 5396,
12518, 12529, 20255, 20259, 5627, 5656, 5685,
12540, 12740, 20262, 20265, 6062, 6079, 6095,

Index 510
6106, 6146, 6465, 20801, 20820, 9373, 9377, 11096,
6501, 6508, 6515, 20943, 21278, 12020, 12025,
6573, 6662, 6685, 21321, 21527, 21537 12082, 12121,
6839, 6862, 7076, \endL . . . . . 183, 1496, 12128, 12497,
7126, 7141, 7347, 1638, 1913, 2545, 12505, 12887,
7607, 7666, 8478, 7351, 7360, 7361, 12923, 12955,
8496, 8674, 8687, 7370, 7376, 7395, 12984, 13010,
8797, 8894, 8943, 10964, 11077, 13020, 13023,
10460, 10522, 11091, 11253, 13220, 13463,
10779, 10794, 12023, 12031, 13873, 13937,
10897, 11021, 12050, 12060, 13940, 13950,
11061, 11145, 12075, 12096, 14041, 14049,
11166, 11411, 12884, 13463, 14240, 14566,
11420, 11579, 15621, 15761, 14731, 14733,
11594, 11613, 15780, 15889, 15630, 15762,
11654, 11685, 17025, 17036, 15770, 15849,
11830, 11883, 17043, 17053, 15850, 15851,
12061, 12076, 19131, 20733, 17021, 17031,
12482, 12520, 20734, 20773, 17040, 17049,
12531, 12542, 20777, 20830, 17441, 18021,
12553, 12654, 20841, 20860, 18704, 18951,
12679, 12717, 21506, 21581, 21597 18952, 18977,
12750, 12781, \endlist . . . . 96, 299, 18983, 19130,
12812, 13041, 589, 721, 952, 984, 20730, 20734,
13052, 13190, 1234, 5950, 5958, 20736, 20830,
13213, 13289, 5963, 6712, 6900, 20842, 20850,
13313, 13496, 7212, 8733, 9007, 20953, 21098,
13865, 14644, 10841, 13145, 21101, 21104,
14762, 14862, 15370, 16131, 21121, 21132,
14959, 15166, 16525, 16722, 21133, 21506,
15170, 15174, 16925, 17347, 21519, 21521,
15557, 15607, 17927, 18610, 19257 21581, 21597,
15612, 15614, \endlooprepeat . . . . 21616, 21619, 21627
15617, 15622, . . . 3992, 4021, 4028 \endrotate . . . . . . 17030
15859, 15890, \endLTR 15800, 20884, 20892 \endRTL 15802, 20894, 20902
16076, 16099, \endMakeFramed . . . 11627 \ends@math . . . . . . . 7245
16231, 16372, \endmath . . . . . . . . . 7245 \endsideways . . . . . 17048
16448, 16471, \endmdf@lrbox . . . . 13996 \endsidewaysfigure 16968
16616, 16663, \endminipage . . . . . . \endsidewaystable 16969
16678, 16798, . 9332, 11554, 19135 \endstabular 18951, 18953
16848, 16863, \endmodernpoem . . . . 6586 \endstrip . . . . . . . 14975
17205, 17305, \endmulticols . . . . 15237 \endtabular . 382, 383,
17443, 17754, \endpgfpicture . . . 15575 1368, 1369, 2198,
17885, 18023, \endpspicture . . . . 15854 18977, 18979,
18453, 18568, \endR . . . . . . . . . 181, 19063, 21132, 21134
18706, 19056, 336, 348, 382, 406, \endtabularx . . . . . .
19180, 19359, 1367, 1368, 1485, . 19014, 19043, 19054
19775, 19886, 2198, 2199, 7253, \endtcb@lrbox 19135, 19136
20287, 20415, 7340, 7356, 7361, \endtcb@savebox . . 19136
20725, 20758, 7363, 7395, 8459, \endtcb@vbox . . . . . 19146

Index 511
\endtitlepage . . 631, 5461, 5462, 5493, \exp . . . . 14117, 14120,
938, 1190, 6694, 5494, 8150, 11201 14174, 14349, 14403
6882, 16035, 16485 \errmessage . . . . . . . \expandafter 166, 359,
\endtraditionalpoem 6522 . . 1605, 1888, 15063 383, 753, 762, 770,
\endtrivlist . . . . . 11092 \ERROR . . . . . . . . . . 21219 796, 799, 1005,
\endturn . . . . . . . . 17020 \escapechar 2647, 2739, 1014, 1022, 1048,
\endwindow . . . . . . 15632 2744, 2928, 3674, 1051, 1255, 1264,
\enskip . . . . 20400, 20425 3679, 3681, 3683, 3696 1272, 1298, 1301,
\enspace 308, 15626, 15628 \ESO@isMEMOIR . . . . . 8464 1369, 1384, 1466,
\ensuremath . . . . . . . 1534 \evenpage . 1950, 1953, 1467, 1468, 1470,
\env@RTLcases 20958, 20962 1954, 1955, 1957, 1537, 1539, 1543,
\EQ . . . . . . . 8501, 8507, 1958, 1959, 1960, 1962 1545, 1549, 1551,
8508, 8512, 8513, \evensidemargin . . . 2143, 2145, 2149,
8522, 8523, 8525, . . . . 1974, 8487, 2151, 2155, 2157,
8527, 8528, 8530, 12169, 12174, 2161, 2162, 2170,
8531, 8532, 8533, 12182, 21547, 21555 2172, 2176, 2177,
8535, 8536, 8537, \everycr . . . . . . . . 13869 2201, 2204, 2207,
8549, 8552, 8554, \everydisplay . . . . . 7215 2210, 2214, 2217,
8556, 8557, 8559, \everyhbox . . . 15764, 2220, 2271, 2272,
8562, 8564, 8566, 15766, 15774, 2325, 2583, 2586,
8567, 8569, 8570, 15776, 20844, 2589, 2593, 2607,
8572, 8575, 8576, 20846, 20854, 20856 2619, 2620, 2625,
8577, 8580, 8583, \everyjob . . . . . 1532, 2636, 2661, 2663,
8591, 8598, 8606, 1533, 1856, 1857 2667, 2668, 2672,
8613, 8615, 8618, \everymath . . . . . . . 346 2675, 2685, 2687,
8622, 8623, 8624, \everypar 520, 672, 916, 2691, 2692, 2696,
8625, 8637, 8639, 8640 1155, 5240, 5284, 2699, 2719, 2721,
\eq@addpunct . . . . . . 7250 5328, 6661, 6838, 2726, 2746, 2747,
\EQ@box . . . . . . 7255, 7261 7125, 8942, 10778, 2750, 2751, 2787,
\eq@group . . . . 7218, 7227 10972, 15756, 2789, 2793, 2797,
\eq@GRP@first@dmath 7227 15760, 15968, 2799, 2803, 2805,
\eq@if . . . 2742, 2743, 2745 16075, 16447, 2809, 2811, 2815,
\eq@isIntertext . . . 7265 16662, 16847, 2817, 2821, 2823,
\eq@prelim . . . 7218, 7235 19352, 19356, 2827, 2829, 2833,
\eq@setnumber . . . . . 7221 19884, 20836, 2835, 2839, 2841,
\eq@setup@a . . . . . . . 7223 20840, 20886, 2852, 2854, 2858,
\eq@startup . . . . . . . 7224 20896, 21423, 21467 2859, 2860, 2862,
\eq@wdCond . . . . . . . 7242 \everyvbox . . . . 1371, 2863, 2866, 2870,
\eqnewif . . . . . . 1560, 1372, 15784, 2872, 2877, 2878,
1561, 1566, 1578, 2738 15786, 15792, 2880, 2881, 2884,
\eqno . . . . . 327, 15845, 15794, 20864, 2893, 2900, 2904,
15847, 21622, 21624 20866, 20873, 20875 2906, 2909, 2910,
\eqnumform . . . . . . . 7253 \ExecuteOptions . . . 2911, 2913, 2916,
\eqstyle . . . . . . . . . 7220 . . . . 2361, 4652, 2917, 2919, 2920,
\equal . . . . . . . . 2510, 6033, 6035, 7983, 8081 2922, 2923, 2925,
2527, 2531, 2535, \ExecuteOptionsX . . 1761 2929, 3174, 3175,
4788, 4822, 4833, \exhyphenpenalty . . 3176, 3177, 3178,
4865, 4866, 4882, . . . . . . 623, 930, 3180, 3203, 3207,
4923, 5181, 5423, 1124, 6631, 6808, 3258, 3259, 3260,
5424, 5442, 5443, 16027, 16477, 16539 3261, 3267, 3268,

Index 512
3269, 3270, 3353, 11566, 11654, 19040, 19042,
3354, 3368, 3369, 11676, 11677, 19053, 19054,
3370, 3372, 3379, 11685, 11796, 19062, 19066,
3380, 3383, 3398, 11798, 11845, 19068, 19075,
3405, 3414, 3585, 11847, 12066, 19077, 19082,
3599, 3613, 3623, 12104, 12105, 19084, 19093,
3632, 3633, 3634, 12522, 12524, 19557, 19558,
3635, 3650, 3677, 12533, 12535, 19574, 19575,
3678, 3687, 3691, 12544, 12546, 19576, 19583,
3746, 3747, 3759, 12649, 12663, 19585, 19586,
3760, 3855, 3857, 12677, 12701, 19639, 19794,
3864, 3866, 3868, 12715, 12748, 19905, 19909,
3870, 3871, 3872, 12779, 12810, 19913, 20012,
3892, 3894, 3897, 13041, 13042, 20015, 20029,
3900, 3901, 3902, 13049, 13063, 20045, 20062,
3904, 3907, 3912, 13284, 13292, 20069, 20074,
3975, 3987, 3989, 13297, 13477, 20135, 20189,
4005, 4006, 4007, 13478, 13483, 20191, 20193,
4008, 4046, 4057, 13484, 13866, 20209, 20213,
4062, 4076, 4109, 13912, 13915, 20218, 20220,
4110, 4111, 4114, 14743, 14746, 20223, 20227,
4117, 4133, 4134, 14778, 14780, 20232, 20236,
4148, 4149, 4161, 14878, 14880, 20240, 20254,
4166, 4171, 4181, 15519, 15536, 20259, 20261,
4197, 4200, 4226, 15548, 15553, 20264, 20268,
4269, 4331, 4340, 15758, 16163, 20271, 20317,
4352, 4354, 4355, 16172, 16180, 20321, 20342,
4395, 4405, 4406, 16206, 16209, 20346, 20408,
4427, 4444, 4455, 16302, 16311, 20412, 20508,
4457, 4584, 4585, 16319, 16347, 20509, 20511,
5384, 5925, 6355, 16350, 16933, 20514, 20515,
6480, 6483, 6486, 16945, 16955, 20518, 20743,
6489, 6492, 6495, 16976, 16991, 20755, 20758,
6521, 6522, 6585, 17003, 17508, 20766, 20767,
6586, 6600, 6753, 17510, 17512, 20786, 20798,
6762, 6770, 6930, 17515, 17521, 20801, 20815,
6939, 6947, 7215, 17530, 17532, 20816, 20820,
7325, 7367, 7388, 17534, 17540, 20838, 21134,
7555, 7557, 7618, 18088, 18090, 21195, 21207,
7620, 9348, 10994, 18092, 18095, 21242, 21244,
10996, 11030, 18101, 18109, 21289, 21291, 21679
11032, 11098, 18111, 18114, \ExplSyntaxOff . . . 15511
11099, 11104, 18120, 18771, \ExplSyntaxOn . . . . 15487
11105, 11202, 18773, 18775, \extrafeetendmini .
11219, 11224, 18778, 18784, . . . . . . . 9305, 9331
11283, 11286, 18792, 18794, \extrafeetendminihook
11307, 11310, 18797, 18803, . . . . . . . 9329, 9330
11323, 11337, 18953, 18979, \extrafeetins . 9262, 9263
11338, 11339, 19012, 19015, \extrafeetinshook .
11340, 11342, 19035, 19038, . . . . . . . 9290, 9291

Index 513
\extrafeetminihook 9304 \fb@putboxa . . . 11635, 218, 224, 227, 228,
\extrainfo . . . . . . . 2453 11660, 11718, 11735 229, 239, 290, 305,
\extrarowheight . . . \fb@resto@set . . . . . 309, 328, 336, 348,
. . 386, 13840, 13848 . 11670, 11710, 11714 362, 363, 375, 376,
\extrarulesep . . . . 19006 \fb@sizeofframe . . . 379, 382, 398, 404,
\extratitle . . . . . . . . . . . . 11643, 11665 406, 463, 468, 506,
. 17227, 17776, 18475 \fbox . . . . . . . . . 2095, 513, 521, 523, 530,
2105, 7394, 8641, 533, 534, 537, 556,
F 12296, 12302, 557, 563, 572, 595,
\f@nch@everypar . . 10972 12309, 12315, 604, 611, 620, 624,
\f@nch@foot . . . . . . 10980 12321, 12327, 637, 640, 641, 642,
\f@nch@head . . . . . . 10974 12335, 12339, 648, 649, 654, 657,
\f@nch@reset 10974, 10980 12344, 12348, 665, 673, 675, 682,
\f@nch@vbox . 10975, 10981 12352, 12356, 683, 690, 693, 694,
\f@size . . . . . . . . . . 347 12371, 12372, 699, 707, 746, 756,
\FamilyKeyState . . 20010 12387, 12388, 765, 773, 797, 799,
\FamilyKeyStateProcessed 12397, 12401, 814, 819, 853, 860,
. . . . . . . . . . 20010 12406, 12410, 869, 875, 876, 882,
\familyname . . . . . . . 2446 12414, 12418, 885, 892, 895, 896,
\familynamecolour . 12426, 12432, 901, 909, 917, 919,
. . . 2415, 7987, 8085 12439, 12445, 926, 927, 931, 951,
\familynamefont 2424, 12451, 12457, 15888 952, 953, 970, 998,
2432, 8027, 8121 \fboxrule 2043, 11604, 1008, 1017, 1025,
\familynamestyle 2432, 11610, 11616, 1049, 1051, 1066,
8038, 8128, 8149 11618, 11620, 11622 1071, 1105, 1112,
\FamilySetBool . . . 20009 \fboxsep . . 2044, 2111, 1121, 1125, 1131,
\fancy@@oval . . . . . 10942 2120, 7356, 7357, 1132, 1137, 1140,
\fancyfoot . . . . 2545, 7358, 7394, 11604, 1148, 1156, 1158,
5008, 5009, 8053 11616, 11618, 1165, 1166, 1174,
\fancyhead . . . . 4997, 11620, 11622, 1177, 1178, 1183,
4998, 4999, 6224, 15887, 20730, 1196, 1199, 1200,
6225, 6236, 6237, 6238 20731, 20732, 20828 1201, 1220, 1248,
\fancyhf . . 2394, 4995, \fcolorbox . . . . . . . 2045 1258, 1267, 1275,
5004, 5014, 6222, 6233 \FeetAboveFloat . . . 1299, 1301, 1316,
\fancyhfoffset 4988, 4989 . . . . . 10759, 10763 1321, 1359, 1360,
\fancypagestyle 2391, \FeetAtBottom . . . . 10761 1362, 1365, 1367,
2544, 5003, 5013, 8052 \FeetBelowFloat . . 10760 1368, 1373, 1387,
\FAX . . . . . . . . . . . . . 2411 \FeetBelowRagged . . 1388, 1402, 1403,
\fax . . . . . . . . . . . . . 2451 . . . . . 10762, 10764 1417, 1425, 1426,
\faxsymbol 2411, 8062, 8160 \ff@backcol . . . . . . 11213 1432, 1433, 1437,
\fb@adjheight . . . . . \ff@col . . . . . . . . . 11211 1442, 1445, 1450,
. 11641, 11711, 11731 \ff@frametype 11209, 11220 1453, 1461, 1462,
\fb@afterframe . . . . \ff@txtcol . . . . . . . 1471, 1472, 1484,
. 11636, 11661, 11719 . 11201, 11202, 11212 1485, 1496, 1540,
\FB@captype . . . . . . . \fi 12, 13, 18, 25, 36, 87, 1546, 1552, 1596,
. 11103, 11104, 11106 98, 104, 107, 108, 1597, 1604, 1605,
\fb@frh . 11648, 11652, 109, 117, 134, 136, 1617, 1623, 1624,
11667, 11702, 11705 142, 150, 154, 158, 1667, 1673, 1679,
\fb@put@frame . 11630, 162, 169, 177, 184, 1685, 1691, 1703,
11641, 11712, 11732 193, 207, 208, 213, 1709, 1715, 1721,

Index 514
1735, 1742, 1749, 4365, 4366, 4375, 7253, 7255, 7270,
1759, 1776, 1787, 4377, 4398, 4399, 7271, 7272, 7274,
1792, 1798, 1801, 4401, 4415, 4416, 7276, 7301, 7308,
1809, 1817, 1864, 4418, 4419, 4434, 7314, 7326, 7327,
1879, 1880, 1887, 4447, 4448, 4456, 7339, 7340, 7351,
1888, 1899, 1935, 4473, 4528, 4538, 7355, 7356, 7360,
2146, 2152, 2158, 4549, 4736, 4742, 7361, 7363, 7370,
2173, 2194, 2198, 4935, 4938, 4941, 7376, 7395, 7398,
2199, 2201, 2257, 4944, 4963, 4974, 7399, 7405, 7410,
2258, 2264, 2279, 5204, 5213, 5240, 7433, 7456, 7479,
2280, 2283, 2286, 5248, 5257, 5292, 7502, 7517, 7520,
2289, 2293, 2294, 5301, 5477, 5534, 7521, 7537, 7541,
2302, 2516, 2517, 5536, 5546, 5872, 7542, 7544, 7565,
2518, 2520, 2548, 5873, 5990, 5991, 7590, 7597, 7606,
2556, 2604, 2618, 5992, 6170, 6248, 7608, 7628, 7649,
2633, 2634, 2656, 6300, 6313, 6321, 7656, 7665, 7667,
2657, 2672, 2682, 6352, 6353, 6408, 7677, 7716, 7723,
2696, 2706, 2715, 6409, 6413, 6420, 7732, 7735, 7742,
2722, 2792, 2800, 6425, 6434, 6463, 7755, 7763, 7769,
2806, 2812, 2818, 6471, 6473, 6528, 7774, 7776, 7777,
2824, 2830, 2836, 6530, 6534, 6553, 7778, 7811, 7812,
2842, 2855, 2864, 6555, 6556, 6557, 7828, 7837, 7842,
2867, 2873, 2882, 6568, 6570, 6571, 7843, 7889, 7897,
2885, 2907, 2914, 6580, 6582, 6619, 7906, 7909, 7916,
2952, 2956, 2962, 6628, 6632, 6638, 7930, 7938, 7944,
2963, 2981, 2987, 6639, 6644, 6647, 7949, 7951, 7952,
2988, 3006, 3010, 6655, 6663, 6670, 7953, 7954, 7968,
3016, 3017, 3035, 6671, 6678, 6681, 8003, 8010, 8017,
3041, 3042, 3063, 6682, 6688, 6698, 8024, 8049, 8098,
3067, 3073, 3074, 6730, 6732, 6734, 8104, 8110, 8116,
3101, 3107, 3108, 6746, 6756, 6765, 8130, 8145, 8191,
3136, 3169, 3204, 6773, 6796, 6805, 8194, 8195, 8212,
3355, 3373, 3541, 6809, 6815, 6816, 8215, 8216, 8241,
3544, 3585, 3599, 6821, 6824, 6832, 8257, 8258, 8260,
3613, 3623, 3651, 6840, 6847, 6848, 8269, 8278, 8279,
3696, 3701, 3706, 6855, 6858, 6859, 8298, 8311, 8312,
3709, 3710, 3711, 6865, 6886, 6907, 8321, 8330, 8331,
3719, 3729, 3731, 6909, 6911, 6923, 8334, 8350, 8357,
3739, 3746, 3749, 6933, 6942, 6950, 8373, 8379, 8395,
3753, 3760, 3765, 6970, 6976, 6977, 8402, 8459, 8462,
3776, 3788, 3789, 6981, 6983, 7006, 8473, 8476, 8488,
3827, 3831, 3838, 7015, 7069, 7074, 8494, 8514, 8598,
3842, 3844, 3883, 7112, 7119, 7127, 8613, 8622, 8623,
3975, 4009, 4047, 7134, 7137, 7138, 8624, 8625, 8655,
4053, 4057, 4062, 7142, 7152, 7154, 8668, 8671, 8672,
4076, 4115, 4141, 7156, 7165, 7171, 8675, 8682, 8688,
4155, 4167, 4182, 7172, 7179, 7190, 8695, 8696, 8702,
4218, 4230, 4262, 7195, 7214, 7216, 8709, 8719, 8790,
4273, 4327, 4329, 7217, 7218, 7226, 8795, 8829, 8887,
4330, 4359, 4361, 7237, 7239, 7248, 8892, 8930, 8936,

Index 515
8944, 8946, 8948, 11062, 11073, 12209, 12213,
8950, 8959, 8965, 11080, 11096, 12214, 12224,
8966, 8974, 8985, 11118, 11126, 12225, 12230,
8990, 9011, 9014, 11130, 11144, 12231, 12232,
9017, 9019, 9026, 11151, 11228, 12240, 12249,
9027, 9031, 9054, 11230, 11232, 12251, 12252,
9074, 9109, 9150, 11241, 11243, 12253, 12254,
9226, 9227, 9238, 11245, 11253, 12255, 12267,
9239, 9250, 9251, 11256, 11258, 12269, 12270,
9272, 9280, 9281, 11273, 11287, 12271, 12272,
9289, 9313, 9315, 11311, 11395, 12273, 12278,
9321, 9327, 9328, 11397, 11433, 12284, 12285,
9343, 9372, 9373, 11486, 11494, 12286, 12299,
9376, 9377, 9379, 11508, 11522, 12305, 12312,
9402, 9412, 9447, 11523, 11538, 12318, 12324,
9464, 9511, 9520, 11539, 11562, 12330, 12331,
9553, 9569, 9614, 11605, 11619, 12332, 12337,
9624, 9659, 9676, 11621, 11631, 12341, 12346,
9723, 9733, 9768, 11699, 11700, 12350, 12354,
9785, 9832, 9842, 11728, 11733, 12358, 12359,
9876, 9894, 9941, 11742, 11755, 12360, 12361,
9951, 9985, 10003, 11756, 11757, 12368, 12376,
10050, 10060, 11771, 11806, 12384, 12392,
10095, 10112, 11828, 11831, 12399, 12403,
10159, 10169, 11855, 11881, 12408, 12412,
10204, 10221, 11884, 11895, 12416, 12420,
10268, 10278, 11900, 11909, 12421, 12422,
10313, 10330, 11915, 11917, 12429, 12435,
10397, 10442, 11918, 11934, 12442, 12448,
10449, 10453, 11944, 11953, 12454, 12460,
10470, 10491, 11963, 11968, 12461, 12462,
10504, 10511, 11973, 11985, 12463, 12464,
10515, 10532, 11987, 11988, 12465, 12466,
10587, 10596, 12002, 12018, 12475, 12480,
10676, 10683, 12020, 12023, 12481, 12485,
10704, 10741, 12024, 12025, 12497, 12505,
10755, 10772, 12031, 12033, 12509, 12510,
10780, 10787, 12044, 12050, 12525, 12536,
10790, 10791, 12053, 12060, 12547, 12567,
10795, 10798, 12069, 12075, 12578, 12589,
10803, 10810, 12077, 12079, 12604, 12619,
10827, 10890, 12082, 12090, 12634, 12693,
10895, 10929, 12096, 12111, 12731, 12764,
10936, 10938, 12117, 12118, 12795, 12826,
10940, 10950, 12121, 12128, 12852, 12855,
10954, 10961, 12140, 12141, 12858, 12861,
10962, 10963, 12154, 12164, 12870, 12872,
10964, 11004, 12170, 12177, 12876, 12882,
11020, 11022, 12183, 12184, 12884, 12887,
11040, 11060, 12200, 12204, 12901, 12906,

Index 516
12915, 12923, 13692, 13695, 14888, 14895,
12935, 12940, 13698, 13701, 14898, 14919,
12948, 12955, 13704, 13707, 14929, 14956,
12966, 12971, 13710, 13713, 14962, 14963,
12977, 12984, 13716, 13719, 14968, 14988,
12995, 13000, 13722, 13725, 14998, 14999,
13010, 13016, 13728, 13731, 15004, 15005,
13020, 13023, 13734, 13737, 15011, 15015,
13051, 13055, 13740, 13743, 15016, 15019,
13070, 13078, 13746, 13749, 15023, 15028,
13086, 13094, 13752, 13755, 15031, 15035,
13103, 13111, 13758, 13761, 15040, 15044,
13120, 13128, 13764, 13767, 15052, 15063,
13136, 13148, 13770, 13773, 15077, 15082,
13154, 13157, 13776, 13779, 15088, 15105,
13158, 13159, 13782, 13785, 15113, 15119,
13174, 13185, 13788, 13791, 15128, 15141,
13186, 13191, 13794, 13797, 15149, 15153,
13203, 13220, 13800, 13803, 15157, 15161,
13224, 13227, 13806, 13809, 15204, 15206,
13230, 13232, 13812, 13815, 15227, 15234,
13256, 13257, 13821, 13823, 15266, 15270,
13258, 13259, 13826, 13835, 15274, 15351,
13270, 13271, 13836, 13851, 15358, 15377,
13288, 13299, 13873, 13878, 15382, 15387,
13311, 13323, 13887, 13891, 15394, 15404,
13336, 13338, 13932, 13933, 15405, 15408,
13357, 13364, 13937, 13938, 15409, 15410,
13372, 13378, 13940, 13945, 15415, 15420,
13392, 13402, 13950, 13958, 15424, 15430,
13410, 13441, 13962, 13995, 15436, 15441,
13442, 13452, 14017, 14041, 15444, 15450,
13453, 13470, 14049, 14240, 15469, 15482,
13479, 13485, 14566, 14635, 15483, 15528,
13519, 13522, 14639, 14642, 15542, 15550,
13601, 13604, 14647, 14648, 15551, 15555,
13607, 13610, 14649, 14650, 15563, 15578,
13613, 13616, 14651, 14652, 15586, 15621,
13619, 13622, 14664, 14678, 15630, 15631,
13626, 13629, 14681, 14687, 15649, 15653,
13632, 13635, 14691, 14692, 15660, 15661,
13638, 13641, 14713, 14714, 15663, 15665,
13644, 13647, 14715, 14720, 15666, 15667,
13650, 13653, 14731, 14733, 15673, 15698,
13656, 13659, 14737, 14747, 15700, 15711,
13662, 13665, 14759, 14766, 15722, 15729,
13668, 13671, 14788, 14795, 15735, 15737,
13674, 13677, 14798, 14819, 15740, 15741,
13680, 13683, 14829, 14859, 15755, 15809,
13686, 13689, 14865, 14866, 15810, 15813,

Index 517
15817, 15818, 16496, 16503, 17442, 17450,
15821, 15826, 16505, 16507, 17456, 17469,
15827, 15832, 16511, 16540, 17479, 17497,
15847, 15848, 16609, 16614, 17503, 17527,
15849, 15850, 16650, 16656, 17629, 17638,
15851, 15853, 16664, 16671, 17640, 17651,
15856, 15864, 16674, 16675, 17658, 17681,
15875, 15880, 16679, 16680, 17687, 17693,
15885, 15888, 16681, 16692, 17696, 17719,
15889, 15896, 16694, 16696, 17724, 17725,
15898, 15902, 16705, 16729, 17737, 17747,
15904, 15913, 16738, 16791, 17752, 17755,
15915, 15917, 16796, 16834, 17792, 17793,
15926, 15928, 16841, 16849, 17799, 17806,
15930, 15939, 16856, 16859, 17809, 17824,
15941, 15943, 16860, 16864, 17829, 17830,
15952, 15954, 16874, 16876, 17833, 17836,
15975, 15995, 16878, 16887, 17849, 17852,
16007, 16008, 16892, 16899, 17857, 17860,
16015, 16024, 16908, 16942, 17865, 17868,
16028, 16041, 16946, 16956, 17877, 17881,
16044, 16045, 16987, 16992, 17888, 17905,
16046, 16052, 16993, 17004, 17926, 17933,
16053, 16058, 17005, 17019, 17938, 17943,
16061, 16069, 17021, 17025, 17946, 17947,
16077, 16084, 17029, 17031, 17948, 17950,
16085, 16092, 17036, 17040, 17977, 18001,
16095, 16096, 17043, 17047, 18002, 18003,
16102, 16117, 17049, 17053, 18021, 18022,
16138, 16140, 17080, 17089, 18030, 18036,
16142, 16156, 17091, 17102, 18049, 18059,
16166, 16175, 17109, 17132, 18077, 18083,
16183, 16207, 17138, 17144, 18107, 18202,
16209, 16224, 17147, 17170, 18209, 18210,
16229, 16263, 17175, 17176, 18226, 18227,
16270, 16279, 17188, 17198, 18228, 18229,
16295, 16305, 17203, 17206, 18230, 18231,
16314, 16322, 17243, 17244, 18232, 18233,
16348, 16350, 17250, 17257, 18240, 18242,
16365, 16370, 17260, 17275, 18246, 18248,
16412, 16413, 17280, 17281, 18252, 18254,
16415, 16418, 17282, 17298, 18258, 18260,
16424, 16425, 17301, 17308, 18264, 18266,
16430, 16433, 17325, 17346, 18270, 18272,
16441, 16449, 17353, 17358, 18276, 18278,
16456, 16457, 17363, 17366, 18282, 18284,
16464, 16467, 17367, 17368, 18288, 18290,
16468, 16474, 17370, 17397, 18294, 18296,
16478, 16491, 17421, 17422, 18300, 18328,
16494, 16495, 17423, 17441, 18337, 18339,

Index 518
18350, 18357, 19361, 19367, 20371, 20380,
18380, 18386, 19368, 19369, 20386, 20395,
18392, 18395, 19377, 19380, 20396, 20404,
18418, 18423, 19381, 19389, 20410, 20414,
18424, 18436, 19390, 19391, 20417, 20418,
18446, 18451, 19392, 19400, 20429, 20430,
18454, 18491, 19403, 19407, 20440, 20441,
18492, 18498, 19408, 19409, 20445, 20449,
18505, 18508, 19417, 19420, 20453, 20457,
18523, 18528, 19424, 19425, 20461, 20465,
18529, 18560, 19426, 19434, 20469, 20473,
18564, 18571, 19437, 19441, 20477, 20482,
18588, 18609, 19442, 19443, 20490, 20493,
18616, 18621, 19451, 19454, 20500, 20501,
18626, 18629, 19458, 19459, 20505, 20512,
18630, 18631, 19460, 19468, 20535, 20541,
18633, 18660, 19471, 19475, 20552, 20557,
18684, 18685, 19476, 19477, 20563, 20565,
18686, 18704, 19485, 19488, 20572, 20575,
18705, 18713, 19493, 19494, 20588, 20597,
18719, 18732, 19495, 19503, 20610, 20613,
18742, 18760, 19506, 19512, 20624, 20630,
18766, 18790, 19513, 19514, 20631, 20637,
18881, 18884, 19522, 19525, 20642, 20645,
18926, 18942, 19532, 19533, 20659, 20664,
18947, 18951, 19534, 19542, 20667, 20668,
18952, 18969, 19545, 19559, 20669, 20670,
18977, 18983, 19567, 19568, 20674, 20677,
18990, 18997, 19569, 19577, 20679, 20685,
19003, 19008, 19580, 19602, 20686, 20700,
19039, 19096, 19617, 19618, 20710, 20711,
19097, 19113, 19619, 19760, 20718, 20723,
19114, 19130, 19776, 19868, 20726, 20729,
19168, 19175, 19882, 19885, 20730, 20733,
19177, 19192, 19887, 19915, 20734, 20736,
19203, 19206, 19916, 19917, 20745, 20746,
19213, 19214, 19924, 19939, 20750, 20756,
19215, 19220, 19956, 19978, 20762, 20763,
19224, 19225, 20017, 20018, 20764, 20767,
19240, 19263, 20286, 20288, 20773, 20777,
19270, 19288, 20295, 20297, 20788, 20789,
19289, 19305, 20310, 20311, 20793, 20799,
19306, 19307, 20312, 20319, 20811, 20812,
19311, 19312, 20323, 20328, 20813, 20816,
19321, 19325, 20332, 20338, 20830, 20835,
19326, 19327, 20344, 20348, 20881, 20882,
19333, 19336, 20354, 20357, 20890, 20900,
19337, 19338, 20359, 20360, 20909, 20910,
19346, 19357, 20361, 20364, 20913, 20917,
19358, 19360, 20367, 20370, 20918, 20953,

Index 519
20979, 20998, 21616, 21619, 8320, 8327, 9299,
21006, 21012, 21620, 21624, 11438, 11455, 11471
21018, 21026, 21625, 21627, \floatstyle . . . . . . . 5183
21033, 21034, 21635, 21637, \flushleft . . . 2112, 2121
21035, 21041, 21742, 21748, 21754 \FN@sf@@footnote . .
21046, 21049, \figcaption . 12249, 12267 . . . . . . . 2139, 2143
21057, 21058, \fill . . . . . 6163, 6167, \FN@sf@@footnotemark
21066, 21067, 12284, 12479, . . . . . . . 2168, 2170
21075, 21076, 13821, 13823, 13825 \FN@sf@@LTRfootnote
21084, 21085, \filright . . 19155, 19184 . . . . . . . 2140, 2149
21093, 21094, \FirstFrameCommand \FN@sf@@RTLfootnote
21095, 21096, . . . . . 11618, 11664 . . . . . . . 2141, 2155
21099, 21102, \firstmark . . . . 7563, \FN@sf@gobble@bracket
21105, 21108, 7626, 11002, . . . . . . . 2179, 2182
21109, 21110, 11038, 11195, \FN@sf@gobble@opt .
21111, 21113, 11804, 11853, . . . . . . . . 2145,
21115, 21116, 14786, 14886, 2151, 2157, 2160
21123, 21126, 21250, 21297, 21608 \FN@sf@gobble@optonly
21128, 21132, \firstname . . . . . . . 2445 . . . . . . . 2172, 2175
21133, 21136, \firstnamecolour . . \FN@sf@gobble@twobracket
21152, 21153, . . . 2414, 7988, 8084 . . . . . . . 2164, 2167
21161, 21162, \font . . . . . . 18893, 18894
\firstnamefont . . . .
21165, 21166, \fontdimen . 18893, 18894
. . . . 2423, 2431,
21167, 21168,
8026, 8027, 8118, 8121 \fontsize . . . . . . . .
21169, 21175, . 303, 6118, 6120,
\firstnamestyle 2431,
21180, 21188, 6122, 8026, 8118,
8038, 8128, 8149
21205, 21211, 13169, 15467, 15480
\fivecolumnfootnotes
21213, 21220, \foo . . . . . . . . . 15533,
. . . . . . . . . . . 9705
21230, 21232, 15535, 15545, 15547
21252, 21276, \Fld@width . . . 13069,
\footdir@abspage . .
21279, 21299, 13077, 13085, 13093
. . . . . . . 11298,
21319, 21322, \flnew@within . . . . 11103 11301, 11302,
21325, 21343, \float@newx . . . . . . 11097 11305, 11306, 11309
21358, 21376, \floatalignment . . . \footdir@debug 11270,
21378, 21387, . . . . 4792, 4793, 11278, 11282,
21396, 21431, 4834, 4835, 4857, 11285, 11295,
21440, 21472, 4864, 4872, 4923, 5134 11302, 11306, 11309
21475, 21476, \FloatBarrier . 4764, 5114 \footdir@debugfalse 1714
21477, 21478, \floatc@bidituftefloatplain \footdir@debugtrue
21479, 21487, . . . . . . . . 5132, . . . . . . 1712, 11268
21501, 21505, 5142, 5149, 5155, 5163 \footdir@fntext . . .
21506, 21510, \floatc@bidituftefloatplaintop . 11316, 11333, 11335
21518, 21519, . . . . . . . . . . . 5149 \footdir@LeftRightElse
21520, 21521, \floatc@bidituftefloatruled . 11276, 11292, 11369
21522, 21543, . . . . . . . . . . . 5150 \footdir@name . . . . .
21550, 21556, \floatc@plain . . . . 11094 . 11319, 11322, 11323
21557, 21558, \floatingpenalty . . \footdir@ORG@bidi@amsart@footnotetext
21559, 21561, . . 41, 55, 71, 244, . . . . . . . . . . . . . 79
21562, 21563, 258, 273, 8200, \footdir@ORG@bidi@amsart@LTRfootnotetext
21581, 21597, 8221, 8268, 8275, . . . . . . . . . . . . . 81

Index 520
\footdir@ORG@bidi@amsart@RTLfootnotetext 11892, 11893, 10508, 10510,
. . . . . . . . . . . . . 80 11894, 11914, 10529, 10557,
\footdir@ORG@bidi@amsbook@footnotetext 11915, 11925, 15188, 15189,
. . . . . . . . . . . . 282 11934, 11955, 15196, 15197,
\footdir@ORG@bidi@amsbook@LTRfootnotetext 11973, 11976, 15203, 15204,
. . . . . . . . . . . . 284 15823, 15824, 15219, 15263, 15264
\footdir@ORG@bidi@amsbook@RTLfootnotetext 15826, 21330, \footmarkstyle 9213, 9252
. . . . . . . . . . . . 283 21336, 21340, \footmarkwidth . . . .
\footdir@ORG@bidi@footnotetext 21345, 21363, 21367 . . . . 9212, 9217,
. . . . . . . . . . 11489 \footinsdim . . . . . . . 9218, 9220, 9222,
\footdir@ORG@bidi@LTRfootnotetext 9295, 9296, 9360, 9225, 9229, 9230,
. . . . . . . . . . 11491 9390, 9499, 9602, 9232, 9234, 9237,
\footdir@ORG@bidi@RTLfootnotetext9711, 9820, 9929, 9241, 9242, 9244,
. . . . . . . . . . 11490 10038, 10147, 9246, 9249, 9256, 9259
\footdir@temp . . . . . 10256, 10415, \footnote . . . . . 417,
. . 79, 80, 81, 282, 10421, 10473, 10479 491, 741, 840,
283, 284, 11328, \footinsv@l . . . . 9268, 993, 1092, 1243,
11489, 11490, 11491 9276, 9362, 9363, 1343, 2139, 2142,
\footdir@toks . . . . . 10421, 10422, 5700, 6019, 6050,
. . 11269, 11336, 10450, 10452, 6741, 6918, 7023,
11337, 11338, 11342 10479, 10480, 7097, 8748, 8816,
\footdir@write . . . . 10512, 10514, 8841, 8915, 10848,
. 11263, 11293, 11332 10531, 10545, 10916, 14682,
\footersymbol . . . . . 15192, 15193, 14685, 16151,
. . . . 8045, 8046, 15200, 15201, 16250, 16288,
8061, 8062, 8063, 8064 15205, 15206, 16394, 16548,
\footfootmark . . . . . 15220, 15267, 15268 16636, 16745,
9091, 9216, 9439, \footinsv@r . . . . 9267, 16819, 17123,
9545, 9651, 9760, 9357, 9358, 9359, 17239, 17672,
9869, 9978, 10087, 9360, 9390, 9391, 17788, 18371, 18487
10196, 10305, 10572 9402, 9412, 9422, \footnotelayout . . .
\footfudgefactor . . 9499, 9500, 9511, . . . 5518, 5519, 5522
. 10370, 10459, 10521 9520, 9529, 9602, \footnotemark . . . . .
\footins . . . . . 35, 49, 9603, 9614, 9624, 2168, 2169, 11567,
65, 238, 252, 267, 9634, 9711, 9712, 11581, 14683, 14686
8200, 8221, 8225, 9723, 9733, 9743, \footnoterule . . . . .
8226, 8237, 8240, 9820, 9821, 9832, . . . . 8179, 8241,
8244, 8268, 8274, 9842, 9852, 9929, 8247, 8252, 8280,
8282, 8283, 8294, 9930, 9941, 9951, 8281, 8298, 8302,
8297, 8301, 8320, 9961, 10038, 8306, 8332, 8333,
8326, 9108, 9122, 10039, 10050, 9083, 9312, 9320,
9136, 9296, 9355, 10060, 10070, 9341, 9356, 10682,
10680, 10689, 10147, 10148, 10715, 10728,
10712, 10716, 10159, 10169, 11260, 11357,
10725, 10729, 10179, 10256, 11361, 11364,
10735, 10750, 10257, 10268, 11379, 11384,
11432, 11449, 10278, 10288, 11385, 11387,
11465, 11788, 10415, 10416, 11976, 12009,
11789, 11837, 10446, 10448, 15131, 15825,
11838, 11891, 10473, 10474, 19147, 21339, 21366

Index 521
\footnotes . . . . . . . 5515 9880, 9924, 9943, \ftn@font . . . . . . . .
\footnotesep . . 29, 31, 9978, 9989, 10033, . 17094, 17643, 18342
40, 46, 54, 60, 70, 10052, 10087, \ftn@rule@height . .
76, 233, 235, 243, 10098, 10142, . . . . . . . 17101,
249, 257, 263, 272, 10161, 10196, 17104, 17108,
278, 8197, 8218, 10207, 10251, 17111, 17650,
8243, 8300, 9092, 10270, 10305, 17653, 17657,
9098, 9104, 9300, 10316, 10375, 17660, 18349,
10440, 10502, 10410, 10439, 18352, 18356, 18359
11437, 11445, 10464, 10501, \ftn@rule@test@values
11454, 11462, 10536, 10572, 10597 . . . . . . . 17100,
11470, 11478, \forcerectofloat . . 4795 17107, 17649,
11505, 11519, \forceversofloat . . 4796 17656, 18348, 18355
11533, 13164, 13166 \forvariable . . . . . . \ftn@rule@width 17104,
\footnotesize . . . 38, 3955, 3961, 4037, 17111, 17653,
52, 68, 106, 226, 4073, 4080, 4085, 17660, 18352, 18359
241, 255, 270, 413, 4091, 4096, 4100, 4101 \ftnm@font . . . . . . .
737, 989, 1239, \fourcolumnfootnotes . 17096, 17645, 18344
2523, 2545, 4672, . . . . . . . . . . . 9596 \full@width . . . . . . .
4673, 4711, 5330, \fp . . . . . . . . . . 14338, . 15055, 15067, 15118
5331, 5332, 5524, 14339, 14340, 14341 \futurelet . . . . 790,
5554, 5572, 5590, \fps@figure . . . . . . 12237 792, 1042, 1044,
6737, 6914, 7019, \framebox . . . . . 8036, 1292, 1294, 2712,
8744, 8837, 9292, 8167, 14997, 15003 3755, 3758, 16200,
9293, 9294, 10844, \FrameCommand . . . . 11616 16202, 16341, 16343
11428, 11429, \FrameHeightAdjust 11690
11430, 11435, \FrameRestore . 11624, G
11452, 11468, 11628, 11744, 11745 \g 8520, 8522, 8526, 8619,
11498, 11512, \fromaddress . . . . . . 14036, 14041,
11526, 13156, . . . . 9009, 9015, 14043, 14049,
15626, 15628, 9025, 13222, 13228 14051, 14094,
16147, 16284, \fromname . . . . . . . . 9030 14098, 14099,
16544, 16741, \fromplace . . . . . . 18294 14145, 14149,
17119, 17668, 18367 \fromsig 9029, 9031, 18301 14150, 14167,
\footnotetext . . 2203, \fromvalue . . . . 3955, 14168, 14205,
2214, 6479, 6489 4041, 4064, 4086, 4101 14221, 14224,
\footrule . . . . . . . 10981 \frontmatter . . . . . . 6217 14230, 14231,
\footrulewidth 2393, 4993 \fs@bidituftefloatboxed 14232, 14233,
\footscript . . . . 9213, . . . . . . . . . . . 5161 14234, 14243,
9219, 9223, 9225 \fs@bidituftefloatplain 14244, 14246,
\footskip . . 10981, 21594 . . . . . . . 5140, 5148 14248, 14249,
\foottextfont . . . . . \fs@bidituftefloatplaintop 14250, 14257,
. . . . 9092, 9112, . . . . . . . . . . . 5148 14258, 14263,
9154, 9292, 9385, \fs@bidituftefloatruled 14269, 14278,
9404, 9439, 9450, . . . . . . . . . . . 5153 14281, 14289,
9494, 9513, 9545, \fslice . 15643, 15644, 14290, 14293,
9556, 9597, 9616, 15646, 15647, 15650 14294, 14295,
9651, 9662, 9706, \ftn@amount . . . 11892, 14296, 14297,
9725, 9760, 9771, 11893, 11894, 14298, 14300,
9815, 9834, 9869, 11901, 11905, 11906 14303, 14304,

Index 522
14306, 14309, 14603, 15490, \Gin@esetsize . . . . 12073
14311, 14314, 15492, 15501, 15504 \Gin@ewidth . 15474, 15475
14319, 14327, \g@addto@macro . . . . \Gin@exclamation . .
14328, 14330, 4200, 4444, 4529, . 12103, 15474, 15477
14331, 14332, 4539, 4790, 5476, \Gin@gridfalse . . . 15460
14333, 14334, 5478, 8549, 8552, \Gin@ii . . . . . . . . . 12062
14335, 14336, 8554, 20217, 20513 \Gin@iii . . . 12051, 12065
14338, 14339, \g@mix@page@int . . 14476 \Gin@llx . . . . . . . . 12055
14340, 14341, \gdef . . 406, 408, 2042, \Gin@lly . . . . . . . . 12056
14343, 14344, 2414, 2415, 2416, \Gin@outer@scalex 15471
14354, 14362, 2417, 2418, 2419, \Gin@outer@scaley 15472
14363, 14364, 2421, 2422, 2583, \Gin@scalex . . . . . . 15476
14366, 14371, 2607, 3633, 3719, \Gin@scaley . . . . . . 15477
14372, 14377, 3721, 3731, 3733, \Gin@urx . . . . . . . . 12057
14378, 14382, 4050, 4052, 4053, \Gin@ury . . . . . . . . 12058
14387, 14390, 4523, 4534, 4808, \Ginclude@graphics
14397, 14399, 4809, 4811, 4814, . . . . . 12059, 12071
14402, 14403, 4894, 4899, 4900, \Ginput@path . . . . . 14236
14407, 14409, 4901, 5053, 5094, \global . . . . . . . 301,
14410, 14413, 5473, 5611, 5640, 437, 438, 439, 440,
14414, 14415, 5669, 5708, 5717, 441, 442, 443, 444,
14419, 14420, 5726, 6055, 6072, 445, 446, 447, 448,
14424, 14425, 6088, 6100, 6140, 466, 472, 473, 474,
14432, 14447, 6141, 6142, 6329, 475, 476, 477, 478,
14448, 14449, 6332, 6587, 6599, 479, 480, 481, 482,
14451, 14456, 6601, 7562, 7625, 483, 484, 519, 520,
14459, 14460, 8503, 8516, 10733, 671, 672, 779, 780,
14463, 14467, 10746, 10759, 781, 782, 783, 784,
14468, 14469, 10760, 11001, 785, 786, 787, 788,
14473, 14474, 11037, 11323, 817, 823, 824, 825,
14475, 14482, 11383, 11803, 826, 827, 828, 829,
14483, 14484, 11852, 13285, 830, 831, 832, 833,
14486, 14487, 13518, 13521, 915, 916, 1031,
14490, 14491, 14785, 14885, 1032, 1033, 1034,
14496, 14502, 15412, 15433, 1035, 1036, 1037,
14513, 14518, 15817, 18891, 1038, 1039, 1040,
14519, 14520, 19156, 19157, 1069, 1075, 1076,
14524, 14527, 19162, 19185, 1077, 1078, 1079,
14528, 14529, 19186, 20510, 1080, 1081, 1082,
14530, 14532, 20917, 20967, 1083, 1084, 1085,
14540, 14554, 21192, 21249, 21296 1154, 1155, 1281,
14555, 14556, \geometry . . . . . 4694, 1282, 1283, 1284,
14557, 14559, 4697, 4701, 4704, 4708 1285, 1286, 1287,
14562, 14570, \Gin@angle . . . . . . 15473 1288, 1289, 1290,
14571, 14574, \Gin@bboxtrue . . . . 12054 1319, 1325, 1326,
14578, 14579, \Gin@defaultbp . . . . 1327, 1328, 1329,
14581, 14583, . . 12055, 12056, 1330, 1331, 1332,
14584, 14585, 12057, 12058, 1333, 1334, 1335,
14589, 14590, 19118, 19119, 19122 1461, 1462, 1991,
14591, 14596, \Gin@eheight . . . . . 15475 1992, 1993, 1994,

Index 523
1995, 1996, 1997, 7242, 7255, 7260, 10107, 10120,
1998, 1999, 2000, 7264, 7320, 7549, 10204, 10216,
2001, 2201, 2204, 7550, 7560, 7567, 10229, 10313,
2207, 2210, 2214, 7601, 7612, 7613, 10325, 10338,
2217, 2220, 2299, 7623, 7630, 7660, 10361, 10375,
2303, 2325, 2608, 7719, 7727, 7737, 10448, 10452,
2622, 2624, 2630, 7747, 7756, 7758, 10510, 10514,
2632, 2643, 2649, 7759, 7762, 7765, 10582, 10607,
2661, 2685, 2769, 7775, 7789, 7790, 10621, 10692,
2785, 2944, 2998, 7792, 7794, 7795, 10736, 10739,
3052, 3855, 3857, 7797, 7803, 7804, 10745, 10751,
3877, 3878, 3889, 7807, 7809, 7810, 10753, 10758,
3897, 3907, 4020, 7813, 7816, 7821, 10777, 10778,
4039, 4041, 4043, 7830, 7838, 7893, 10866, 10867,
4055, 4060, 4659, 7901, 7911, 7920, 10868, 10869,
4793, 4837, 4838, 7922, 7931, 7933, 10870, 10871,
5210, 5221, 5224, 7934, 7937, 7940, 10872, 10873,
5254, 5265, 5268, 7950, 7958, 7959, 10874, 10875,
5298, 5309, 5312, 7966, 8192, 8199, 10893, 10899,
5366, 6133, 6330, 8213, 8220, 8232, 10900, 10901,
6333, 6351, 6355, 8240, 8244, 8261, 10902, 10903,
6371, 6382, 6408, 8264, 8272, 8277, 10904, 10905,
6409, 6436, 6449, 8289, 8297, 8301, 10906, 10907,
6450, 6470, 6480, 8313, 8316, 8324, 10908, 10909,
6483, 6486, 6489, 8329, 8629, 8766, 10989, 10990,
6492, 6495, 6527, 8767, 8768, 8769, 10999, 11005,
6537, 6551, 6553, 8770, 8771, 8772, 11025, 11026,
6558, 6559, 6565, 8773, 8774, 8775, 11035, 11042,
6566, 6568, 6588, 8793, 8799, 8800, 11113, 11116,
6600, 6602, 6660, 8801, 8802, 8803, 11149, 11152,
6661, 6779, 6780, 8804, 8805, 8806, 11154, 11160,
6781, 6782, 6783, 8807, 8808, 8809, 11161, 11162,
6784, 6785, 6786, 8861, 8862, 8863, 11180, 11184,
6787, 6788, 6837, 8864, 8865, 8866, 11187, 11190,
6838, 6956, 6957, 8867, 8868, 8869, 11192, 11196,
6958, 6959, 6960, 8870, 8871, 8872, 11494, 11495,
6961, 6962, 6963, 8890, 8896, 8897, 11508, 11509,
6964, 6965, 7043, 8898, 8899, 8900, 11522, 11523,
7044, 7045, 7046, 8901, 8902, 8903, 11777, 11778,
7047, 7048, 7049, 8904, 8905, 8906, 11779, 11780,
7050, 7051, 7052, 8907, 8908, 8941, 11786, 11787,
7053, 7054, 7072, 8942, 9150, 9161, 11788, 11789,
7078, 7079, 7080, 9172, 9336, 9338, 11790, 11791,
7081, 7082, 7083, 9379, 9447, 9459, 11801, 11810,
7084, 7085, 7086, 9472, 9553, 9564, 11835, 11836,
7087, 7088, 7089, 9576, 9659, 9671, 11837, 11838,
7090, 7124, 7125, 9684, 9768, 9780, 11839, 11840,
7217, 7227, 7228, 9793, 9877, 9889, 11850, 11859,
7229, 7230, 7231, 9902, 9986, 9998, 11888, 11889,
7232, 7233, 7234, 10011, 10095, 11901, 11902,

Index 524
11903, 11905, 15593, 15600, 16794, 16800,
11906, 11907, 15633, 15657, 16801, 16802,
11908, 11990, 15658, 15659, 16803, 16804,
12003, 12663, 15858, 15908, 16805, 16806,
12677, 12701, 16074, 16075, 16807, 16808,
12715, 12748, 16189, 16190, 16809, 16810,
12779, 12810, 16191, 16192, 16811, 16812,
12873, 12883, 16193, 16194, 16846, 16847,
13468, 13860, 16195, 16196, 17201, 17213,
13861, 13912, 16197, 16198, 17214, 17215,
13915, 13934, 16227, 16233, 17216, 17217,
13935, 13943, 16234, 16235, 17218, 17219,
14615, 14616, 16236, 16237, 17220, 17221,
14617, 14618, 16238, 16239, 17222, 17223,
14619, 14620, 16240, 16241, 17224, 17225,
14621, 14622, 16242, 16243, 17226, 17227,
14623, 14640, 16328, 16329, 17228, 17229,
14735, 14772, 16330, 16331, 17230, 17231,
14773, 14783, 16332, 16333, 17232, 17233,
14789, 14792, 16334, 16335, 17234, 17235,
14794, 14796, 16336, 16337, 17435, 17489,
14797, 14799, 16338, 16339, 17491, 17750,
14804, 14812, 16368, 16374, 17762, 17763,
14814, 14822, 16375, 16376, 17764, 17765,
14823, 14824, 16377, 16378, 17766, 17767,
14825, 14827, 16379, 16380, 17768, 17769,
14828, 14831, 16381, 16382, 17770, 17771,
14832, 14863, 16383, 16384, 17772, 17773,
14864, 14872, 16385, 16386, 17774, 17775,
14873, 14883, 16446, 16447, 17776, 17777,
14889, 14892, 16578, 16579, 17778, 17779,
14894, 14896, 16580, 16581, 17780, 17781,
14897, 14899, 16582, 16583, 17782, 17783,
14904, 14912, 16584, 16585, 17784, 18015,
14914, 14922, 16586, 16587, 18069, 18071,
14923, 14924, 16588, 16589, 18449, 18461,
14925, 14927, 16612, 16618, 18462, 18463,
14928, 14931, 16619, 16620, 18464, 18465,
14932, 14960, 16621, 16622, 18466, 18467,
14961, 14967, 16623, 16624, 18468, 18469,
14968, 14980, 16625, 16626, 18470, 18471,
14981, 14982, 16627, 16628, 18472, 18473,
14983, 14984, 16629, 16630, 18474, 18475,
14985, 14987, 16661, 16662, 18476, 18477,
14993, 15065, 16765, 16766, 18478, 18479,
15082, 15088, 16767, 16768, 18480, 18481,
15105, 15113, 16769, 16770, 18482, 18483,
15353, 15565, 16771, 16772, 18698, 18752,
15582, 15583, 16773, 16774, 18754, 18982,
15584, 15585, 16775, 16776, 18986, 18987,

Index 525
18988, 19005, \Gm@vrules@mpii . . 12155 \H@@footnotetext . .
19017, 19022, \grid . . . . . . 15468, 15481 . . . 9062, 12513,
19026, 19038, \Grot@box . . . . 12023, 12524, 12593,
19075, 19077, 12031, 17025, 12640, 12754,
19082, 19084, 17036, 17043, 17053 12837, 12853, 12867
19351, 19352, \Grot@box@kv . . . . . 12024 \H@@mpfootnotetext
19355, 19356, \Grot@box@std . . . . 12018 . . . 9068, 12522,
19883, 19884, \Grot@setangle 12019, 12556, 12560, 12644
19934, 19938, 12030, 17018, \H@refstepcounter 13043
20507, 20655, 17028, 17039, 17046 \halign . . . . . 6370, 13863
20663, 20673, \Grot@x . . . . . . 12021, \hangafter . . 7410, 14708
20676, 20720, 12026, 17023, \hangindent . . . . 107,
20978, 21195, 17033, 17041, 17051 108, 109, 227,
21206, 21236, \Grot@y . . . . . . 12022, 228, 229, 647,
21237, 21247, 12027, 17024, 874, 1130, 5990,
21254, 21283, 17034, 17041, 17052 5991, 5992, 6637,
21284, 21294, \group . . 14217, 14238, 6814, 7314, 7410,
21301, 21393, 14525, 14538, 13157, 13158,
21404, 21407, 14543, 14550, 14606 13159, 14701,
21437, 21448, \grp@aligned . . . . . . 7233 14707, 16051,
21451, 21479, \GRP@box . 7228, 7260, 7262 16423, 21113, 21637
21488, 21489, \grp@eqs@numbered . 7232 \hb@xt@ . . . . . . . 456,
21490, 21491, 516, 535, 668, 695,
\grp@hasNumber . . . . 7237
21493, 21496, 897, 912, 1059,
\GRP@label . . . . . . . 7229
21497, 21511, 1151, 1179, 1985,
\grp@linewidth . . . . 7231
21516, 21530, 6658, 6683, 6835,
\GRP@queue . . . 7228, 7264
21531, 21533, 6860, 7062, 7122,
21542, 21575, \grp@setnumber . . . . 7237
7139, 7400, 7569,
21587, 21590, \grp@shiftnumber . . 7234
7574, 7578, 7632,
21592, 21599, \grp@wdL . . . . . . . . . 7230
7633, 7639, 7697,
21603, 21605, \grp@wdNum . . . . . . . 7231 7701, 7704, 7709,
21606, 21609, 21618 \grp@wdR . . . . . . . . . 7230 7714, 7874, 7878,
\GlobalSetatBoolean 2778 \grp@wdT . . . . . . . . . 7230 7880, 7884, 7888,
\GlobalSetBoolean . \Gscale@box . . . . . . . 8673, 8685, 8783,
. . . . 2762, 4795, . 12033, 12125, 12142 8880, 8939, 9218,
4796, 4823, 4824, \Gscale@div . . . . . . . 9225, 9230, 9237,
4828, 4829, 5122, 5123 . 12124, 12131, 12134 9242, 9249, 10775,
\glossary . . 11174, 21570 \Gscale@end . 12037, 12083 10792, 10883,
\glueexpr . . . . 20063, \Gscale@start 12037, 12083 11044, 11045,
20070, 20075, \Gscale@x . . 12035, 12081 11051, 11071,
20136, 20197, \Gscale@y . . 12035, 12081 11086, 11205,
20200, 20204, 20210 \gsetlength . . . . . . . 11812, 11813,
\Gm@pageframes . . . 12165 4657, 4810, 4902, 11819, 11861,
\Gm@vrule . . . . 12148, 5364, 5613, 5615, 11866, 11870,
12149, 12150, 5642, 5644, 5671, 5673 12046, 12092,
12152, 12153, 12147, 12152,
12154, 12157, H 12157, 12161,
12158, 12159, \H@@footnotemark . . 13218, 13382,
12162, 12163, 12164 . . 12554, 12643, 13389, 13396,
\Gm@vrules@mpi . . . 12145 12836, 12850, 12867 13401, 13469,

Index 526
14736, 14838, 8517, 8740, 9039, 17645, 17660,
14843, 14847, 10368, 10380, 17944, 18052,
14938, 14939, 10385, 10389, 18213, 18214,
14945, 15042, 10394, 10639, 18223, 18239,
16072, 16097, 10649, 10659, 18245, 18251,
16444, 16469, 10668, 10822, 18257, 18263,
16560, 16603, 10960, 10974, 18269, 18275,
16676, 16784, 10975, 10980, 18281, 18287,
16844, 16861, 10982, 11006, 18342, 18344,
17401, 17441, 11009, 11013, 18359, 18627,
17981, 18021, 11090, 11094, 18735, 18908,
18664, 18704, 11096, 11134, 18956, 18969,
18929, 19614, 11139, 11349, 18997, 19008,
19772, 19878, 12011, 12012, 19047, 19117,
20270, 20383, 12020, 12025, 20375, 20376,
20420, 20422, 12036, 12037, 20425, 20427,
20488, 20495, 12082, 12083, 20484, 20485,
20497, 20929, 12121, 12128, 20688, 20722,
21110, 21111, 13163, 13169, 20724, 20730,
21186, 21256, 13188, 13241, 20843, 20852,
21261, 21265, 13852, 13872, 20853, 20862,
21303, 21304, 13877, 13937, 20927, 20928,
21310, 21500, 13940, 14222, 20931, 20932,
21581, 21597, 21619 14238, 14239, 20933, 20934,
\hbadness . . . . . . . . 14257, 14517, 20942, 20948,
5165, 8185, 8206, 14519, 14529, 21112, 21121,
19058, 19060, 14565, 14600, 21123, 21128,
20594, 20595, 20612 15015, 15049, 21138, 21153,
\hbox . 15, 28, 188, 210, 15065, 15067, 21182, 21183,
232, 345, 379, 387, 15177, 15499, 21508, 21518, 21520
404, 544, 654, 731, 15501, 15504, \hboxL . . . . . . . . 192,
882, 965, 1137, 15577, 15626, 1620, 1622, 1898,
1211, 1413, 1472, 15630, 15650, 11724, 11741,
1628, 1903, 2184, 15683, 15687, 13384, 15773, 20853
4769, 4857, 4859, 15692, 15696, \hboxR 190, 1614, 1616,
4864, 4897, 4898, 15708, 15719, 1896, 15763, 20843
4907, 4914, 5134, 15736, 15746, \head@style . . . . 621,
5167, 5485, 5524, 15763, 15772, 928, 1122, 1355,
5551, 5569, 5587, 15773, 15782, 6629, 6806, 16025,
5709, 5718, 5727, 15836, 15837, 16408, 16475, 16537
6162, 6170, 6289, 15838, 15840, \headheight 1967, 8491,
6339, 6343, 6354, 15841, 15867, 10975, 11182, 21577
6371, 6382, 6588, 15885, 15896, \headrule . . . . . . . 10978
6602, 6644, 6722, 16058, 16112, \headrulewidth 2392, 4992
6821, 6875, 7149, 16430, 16535, \headsep . . 1975, 1978,
7261, 7327, 7356, 16659, 16689, 8492, 11183, 21586
7516, 7519, 7536, 16871, 17040, \headwidth 2482, 10974,
7540, 8244, 8247, 17094, 17096, 10976, 10977,
8250, 8301, 8302, 17111, 17364, 10978, 10980,
8304, 8506, 8511, 17472, 17643, 10982, 10983, 10984

Index 527
\height . 12027, 12101, 20495, 20497, 20486, 20643, 21184
12309, 12311, 20956, 21186, \hfilneg . . . . . 9372, 9376
12315, 12317, 21258, 21260, \hfuzz . 8504, 19059, 19061
12344, 12345, 21307, 21309, \hintcolour . . . . . . . 2422
12348, 12349, 21519, 21521, \hintfont . . . . . 2430,
12406, 12407, 21558, 21559, 2438, 2492, 2499, 2504
12410, 12411, 21561, 21562, 21619 \hintscolumnwidth .
12439, 12441, \hfill 1478, 1479, 2503, . . . . . . . . 2458,
12445, 12447, 2509, 2523, 4926, 2472, 2476, 2484,
14568, 14576, 14601 4927, 4930, 4931, 2492, 2498, 2504, 2561
\hfil . . . . 15, 210, 516, 6311, 6321, 7333, \hintstyle . . . . . . . 2438
535, 668, 695, 897, 7334, 8037, 10976, \hline 13829, 13831, 13837
912, 1060, 1151, 10977, 10982, \HLOFF . . . . . . . . . . . 2047
1179, 1409, 1410, 10983, 15017, \HLON . . . . . . . . . . . . 2041
1411, 1412, 1440, 15041, 15280, \HLTR@@LTRfootnotetext
1441, 1442, 1448, 15283, 15284, . . . 9064, 12515,
1449, 1450, 1957, 15285, 15288, 12546, 12623,
1962, 6340, 6342, 15289, 15290, 12641, 12683,
6447, 6658, 6683, 15291, 15292, 12785, 12839, 12859
6835, 6860, 7122, 15295, 15296, \HLTR@@mpLTRfootnotetext
7139, 7400, 7517, 15297, 15298, . . . 9070, 12544,
7520, 7537, 7541, 15299, 15300, 12558, 12582, 12645
7571, 7573, 7636, 15301, 15304, \hoffset . . . . . . . . . 1971
7638, 7700, 7711, 15305, 15306, \hold@viper . . . . 7583,
7713, 7877, 7885, 15307, 15308, 7586, 7642, 7645,
7887, 8673, 8685, 15309, 15310, 7677, 7718, 7719,
8939, 9378, 10775, 15311, 15312, 7727, 7728, 7737,
10792, 11008, 15315, 15316, 7738, 7746, 7843,
11048, 11050, 15317, 15320, 7892, 7893, 7901,
11076, 11089, 15321, 15322, 7902, 7911, 7912,
11096, 11816, 15325, 15326, 7921, 7957, 7959, 7960
11818, 11863, 15327, 15328, \holder . 15640, 15643,
11865, 12154, 15329, 15332, 15652, 15662,
12159, 13188, 15333, 15334, 15663, 15681,
13469, 13877, 15335, 15336, 15685, 15690,
14736, 14840, 15339, 15340, 15694, 15706,
14842, 14942, 15341, 15342, 15710, 15717, 15721
14944, 15042, 15343, 15737, \href . . . . . 2528, 2529,
15630, 15684, 15741, 17111, 2532, 2533, 2536, 2537
15688, 15693, 17509, 17526, \HRTL@@mpRTLfootnotetext
15697, 15709, 17660, 18089, . . . 9072, 12533,
15720, 15746, 18106, 18241, 12557, 12571, 12646
16072, 16097, 18247, 18253, \HRTL@@RTLfootnotetext
16444, 16469, 18259, 18265, . . . 9066, 12514,
16659, 16676, 18271, 18277, 12535, 12608,
16844, 16861, 18283, 18359, 12642, 12721,
19614, 19772, 18772, 18789, 12816, 12838, 12856
19878, 20270, 19157, 19186, \hrule 31, 235, 540, 725,
20383, 20420, 20244, 20247, 960, 1205, 5156,
20422, 20488, 20251, 20377, 5157, 5167, 5168,

Index 528
6341, 6716, 6869, 10379, 10540, \hskip . . . . . . . . . 14,
6979, 6985, 6991, 10552, 10564, 28, 209, 232, 305,
6997, 7145, 8180, 10598, 10601, 309, 534, 544, 654,
8736, 9035, 9084, 10612, 10615, 655, 694, 731, 882,
10818, 11352, 10626, 10629, 883, 896, 944, 965,
11354, 11386, 11095, 11096, 1137, 1138, 1178,
11729, 13166, 11439, 11456, 1211, 1358, 1411,
13237, 13995, 11472, 11499, 1412, 1450, 1474,
15132, 15180, 11513, 11527, 1477, 2575, 5873,
15738, 16106, 11544, 11545, 6313, 6357, 6358,
16529, 16685, 11624, 11729, 6361, 6363, 6364,
16867, 17104, 11759, 11762, 6367, 6644, 6645,
17111, 17359, 11766, 11769, 6682, 6722, 6821,
17653, 17660, 11770, 13465, 6822, 6859, 6875,
17939, 18219, 13469, 13863, 7138, 7149, 7329,
18352, 18359, 18622 13874, 13877, 7332, 7399, 7570,
\hrulefill . . . . . 28, 13907, 13964, 7577, 7581, 7582,
232, 544, 731, 965, 13965, 13972, 7699, 7703, 7706,
1211, 6722, 6875, 13995, 14732, 7707, 7876, 7879,
7149, 8740, 9039, 14736, 14969, 7881, 7882, 8245,
10822, 11349, 15049, 15051, 8246, 8249, 8259,
13163, 13241, 15059, 15098, 8260, 8303, 8672,
15177, 16112, 15102, 15106, 8740, 9039, 10366,
16535, 16689, 15109, 15114, 10791, 10822,
16871, 17364, 15117, 15164, 11007, 11012,
17944, 18223, 18627 15168, 15172, 11016, 11017,
\hsize . 41, 55, 71, 244, 15799, 15801, 11072, 11088,
258, 273, 624, 931, 15969, 16028, 11349, 11862,
1125, 1917, 2316, 16478, 16540, 11869, 11873,
5166, 5167, 5227, 16556, 16599, 11874, 12147,
5271, 5315, 5912, 17078, 17085, 12149, 12150,
6632, 6809, 7257, 17087, 17401, 12153, 12158,
7517, 7520, 7537, 17402, 17441, 12161, 12163,
7541, 9114, 9128, 17627, 17634, 12164, 13069,
9142, 9154, 9165, 17636, 17981, 13077, 13085,
9176, 9371, 9433, 17982, 18021, 13093, 13102,
9451, 9463, 9476, 18200, 18205, 13110, 13119,
9539, 9557, 9568, 18207, 18326, 13127, 13163,
9580, 9645, 9663, 18333, 18335, 13187, 13219,
9675, 9688, 9754, 18664, 18665, 13241, 13376,
9772, 9784, 9797, 18704, 20435, 14839, 14846,
9863, 9881, 9893, 20438, 20443, 14850, 14851,
9906, 9972, 9990, 20447, 20451, 15016, 15028,
10002, 10015, 20455, 20459, 15040, 15098,
10081, 10099, 20463, 20467, 15102, 15106,
10111, 10124, 20471, 20691, 15109, 15110,
10190, 10208, 20712, 20716, 15114, 15117,
10220, 10233, 20883, 20893, 15118, 15177,
10299, 10317, 21037, 21410, 15280, 15283,
10329, 10342, 21454, 21615, 21619 15285, 15288,

Index 529
15290, 15292, 5831, 5837, 5838, 10884, 11011,
15295, 15297, 5965, 5991, 5992, 11015, 11047,
15299, 15301, 8167, 8340, 8343, 11053, 11205,
15304, 15306, 8347, 8349, 8354, 11815, 11821,
15308, 15310, 8356, 8360, 8363, 11868, 11872,
15312, 15315, 8366, 8370, 8372, 12046, 12092,
15317, 15320, 8376, 8378, 8382, 12150, 12164,
15322, 15325, 8385, 8388, 8392, 13389, 13396,
15327, 15329, 8394, 8399, 8401, 13401, 13872,
15332, 15334, 8692, 9026, 9220, 13880, 14259,
15336, 15339, 9232, 9244, 12284, 14520, 14601,
15341, 15343, 12300, 12313, 14845, 14849,
15357, 15594, 12325, 12338, 14941, 14947,
15601, 16058, 12347, 12355, 15085, 15086,
16059, 16096, 12400, 12409, 15099, 15100,
16112, 16411, 12417, 12430, 15608, 15618,
16430, 16431, 12443, 12455, 15838, 15849,
16468, 16535, 12479, 13158, 15850, 15851,
16675, 16689, 13159, 17396, 16072, 16097,
16860, 16871, 17411, 17416, 16444, 16469,
16949, 16951, 17418, 17419, 16560, 16603,
16958, 16960, 17976, 17991, 16659, 16676,
16996, 16998, 17996, 17998, 16785, 16844,
17007, 17009, 17999, 18299, 16861, 17094,
17111, 17364, 18659, 18674, 17472, 17481,
17660, 17944, 18679, 18681, 17643, 18052,
18223, 18359, 18682, 18880, 18061, 18213,
18627, 18917, 18881, 19162, 18342, 18735,
18923, 18935, 19174, 21736, 18744, 18929,
18940, 19156, 21740, 21745, 19772, 19878,
19185, 19346, 21747, 21751, 21753 20696, 20698,
19377, 19400, \hss . . . . . . . . . . 457, 20703, 20709,
19417, 19434, 516, 535, 668, 695, 20929, 21047,
19451, 19468, 897, 912, 1151, 21098, 21099,
19485, 19503, 1179, 1644, 1917, 21101, 21102,
19522, 19542, 1986, 5932, 6658, 21104, 21105,
19577, 19769, 6683, 6835, 6860, 21110, 21111,
19928, 19960, 7063, 7122, 7139, 21168, 21169,
20370, 20417, 7400, 7576, 7580, 21170, 21171,
20427, 20482, 7635, 7641, 7702, 21263, 21267,
21180, 21257, 7705, 7710, 7715, 21306, 21312, 21506
21264, 21268, 7878, 7880, 7884, \ht . . . 385, 1460, 1493,
21269, 21502, 7888, 8248, 8258, 1634, 1909, 7348,
21504, 21518, 21521 8303, 8312, 8506, 7357, 7359, 7675,
\hspace . . . . . . . 108, 8509, 8511, 8514, 7677, 7684, 7690,
109, 228, 229, 8517, 8673, 8685, 7691, 7692, 7746,
553, 2493, 2498, 8784, 8881, 8939, 7785, 7803, 7815,
2504, 4909, 4916, 9219, 9225, 9231, 7839, 7843, 7853,
5138, 5816, 5817, 9237, 9243, 9249, 7861, 7862, 7865,
5823, 5824, 5830, 10775, 10792, 7866, 7868, 7869,

Index 530
7921, 7957, 8188, 21482, 21492, 21496 12329, 12335,
8197, 8209, 8218, \ht@strip 14980, 14981, 12336, 12344,
8226, 8236, 8238, 14982, 14983, 12345, 12352,
8254, 8283, 8293, 14984, 14987, 14989 12353, 12364,
8295, 8308, 8657, \ht@viper . . . . . . . . 12365, 12371,
9380, 9486, 9491, 7674, 7679, 7702, 12374, 12380,
9589, 9594, 9698, 7705, 7710, 7715, 12381, 12388,
9703, 9807, 9812, 7783, 7784, 7839, 12391, 12397,
9916, 9921, 10025, 7840, 7841, 7845, 12398, 12406,
10030, 10134, 7878, 7880, 7884, 7888 12407, 12414,
10139, 10243, \httplink . . . . . . . . 2530 12415, 12432,
10248, 10352, \Huge . . . . . 5899, 6982, 12434, 12445,
10357, 10370, 6994, 7174, 7182, 12447, 12457, 12459
10441, 10503, 8968, 8977, 10805, \hvCapWidth . . . 12217,
10956, 11649, 10813, 16894, 16902 12219, 12221,
11656, 11673, \huge . . . . . . . . . 564, 12223, 12227,
11680, 11681, 5753, 5755, 5898, 12229, 12244, 12262
11694, 11698, 6973, 7168, 8703, \hvFloat . . . . . . . . 12191
11721, 11892, 8712, 8962, 10800, \hvMaxCapWidth 12202,
11897, 12039, 16889, 17145, 12203, 12224,
12040, 12042, 17258, 17694, 12225, 12226, 12229
12085, 12086, 17807, 18393, 18506 \hvObjectBox . . . . . .
12088, 12221, \hv@Bottom . . . . . . 12379 . . 12206, 12209,
13302, 13319, \hv@Center . . . 12283, 12211, 12215,
13838, 13896, 12294, 12334, 12221, 12296,
13909, 13924, 12396, 12424, 12477 12298, 12309,
13926, 13927, \hv@figure . 12248, 12266 12311, 12321,
13993, 14000, \hv@floatObject . . . 12323, 12339,
14003, 14823, . . . . . 12209, 12213 12340, 12348,
14827, 14832, \hv@floatType . 12239, 12349, 12356,
14923, 14927, 12248, 12266, 12484 12357, 12364,
14932, 14983, \hv@Height . . . . . . 12221 12367, 12372,
14985, 15183, \hv@label . . . . . . . 12190 12375, 12380,
15189, 15193, \hv@Left . . . 12224, 12292 12383, 12387,
15652, 15710, \hv@longCap . . . . . . 12189 12390, 12401,
15721, 15726, \hv@Right . . 12225, 12281 12402, 12410,
15727, 15728, \hv@shortCap . . . . . . 12411, 12418,
15729, 15733, . 12188, 12254, 12272 12419, 12426,
15748, 15865, \hv@Top . 12307, 12343, 12428, 12439,
15888, 16935, 12363, 12405, 12437 12441, 12451, 12453
16977, 16980, \hv@Width . . 12219, 12242 \hvObjectWidth . . . .
17035, 17042, \hv@Zero . . . 12208, 12471 . . 12215, 12219,
17425, 17427, \hvAboveCaptionSkip 12223, 12224, 12225
17428, 18005, . . . . . 12387, 12390 \hvOBox . . . . 12209, 12213
18007, 18008, \hvBelowCaptionSkip \hvSet@capAngle . . .
18688, 18690, . . . . . 12371, 12374 . . . . . 12242, 12261
18691, 18957, \hvCaptionBox . 12243, \hvSet@capPos . . . . .
18993, 19005, 12260, 12302, . . 12224, 12225,
19120, 20731, 12304, 12315, 12292, 12363, 12379
20733, 21139, 12317, 12327, \hvSet@capVPos 12294,

Index 531
12307, 12334, \Hy@gtemp . . 12650, 12655 \Hy@xspace@end . . . .
12343, 12396, \Hy@href@nextactionraw . . 12887, 12923,
12405, 12424, 12437 . . . . . . . 12917, 12955, 12984, 13010
\hvSet@capWidth 12219, 12949, 12978, 13004 \HyLTR@saved@LTRfootnotetext
12221, 12226, 12227 \Hy@href@page . . . . 12912 . . . . . 12835, 12860
\hvSet@floatCapSep \Hy@linkcounter 8557, 8562 \HyOrg@maketitle . .
. . . . . . . 12300, \Hy@linktoc . . . . . . 12493 . 12830, 12841, 12846
12313, 12325, \HyOrg@TX@endtabularx
\Hy@LT@currentHref
12338, 12347, . . . . . . . . . . 12638
. . . . . 13045, 13056
12355, 12400, \hyper@@anchor 12562,
\Hy@LT@LTRfootnotetext
12409, 12417, 12565, 12573,
. . . . . 12673, 12682
12430, 12443, 12455 12576, 12584,
\hvSet@floatPos . . 12237 \Hy@LT@RTLfootnotetext 12587, 12595,
\hvSet@objectAngle . . . . . 12711, 12720 12598, 12610,
. . . . . 12208, 12212 \Hy@MakeRemoteAction 12613, 12625,
\hvSet@objectPos . . . . . . . . . . . . 12896 12628, 12685,
. 12281, 12283, 12477 \Hy@maketitle@end . 12688, 12723,
\hvSet@rotAngle . . . . 12842, 12847, 12849 12726, 12756,
. 12202, 12471, 12474 \Hy@maketitle@optarg 12759, 12787,
\Hy@Acrobatmenu . . 12988 . . . . . 12840, 12845 12790, 12818, 12821
\Hy@backout . . . . . . 13015 \Hy@pstringD 12895, 12914 \hyper@anchorend . 13058
\Hy@BeginAnnot . . . . \Hy@pstringdef . . . . \hyper@anchorstart 13058
. . 12871, 12891, . . 12894, 12895, \hyper@link . . . . . . 12886
12928, 12960, 12989 12929, 12930, 12961 \hyper@linkend . . . .
\Hy@bidipoem@footnotetext \Hy@pstringF . . . . . . . . 12497, 12501,
. . . . . 12744, 12753 . . 12892, 12893, 12505, 12507,
\Hy@bidipoem@LTRfootnotetext 12894, 12909, 12887, 13020, 13023
. . . . . 12775, 12784 12929, 12942, 12947 \hyper@linkfile . . 12889
\Hy@bidipoem@RTLfootnotetext \Hy@pstringP 12930, 12947 \hyper@linkstart . .
. . . . . 12806, 12815 \Hy@pstringURI . . . . . . 12497, 12501,
\Hy@CleanupFile . . 12893 . . . . . 12961, 12974 12505, 12507,
\Hy@colorlink . 12921, 12887, 13016, 13023
\Hy@raisedlink 12564,
12953, 12982, 13008 \hyper@linkurl . . . 12958
12575, 12586,
\Hy@EndAnnot . . . . . . \hyper@makecurrent 13044
12597, 12612,
. . 12878, 12924, \hyper@nat@current 13017
12627, 12687,
12956, 12985, 13011 \hyper@natlinkbreak
12725, 12758,
\Hy@endcolorlink . 12880 . . . . . . . . . . 13022
12789, 12820, 13057
\Hy@footnote@currentHlabel \hyper@natlinkend 13019
\Hy@saved@footnotemark
. 12600, 12615, 12630 \hyper@natlinkstart
. . . . . 12832, 12851
\Hy@footnote@currentHref . . . . . . . . . . 13014
. . . . . . . 12562, \Hy@saved@footnotetext \hypersetup . . . . 2376,
12565, 12573, . . . . . 12833, 12854 2384, 6009, 6068, 6085
12576, 12584, \Hy@SetNewWindow .. \hyphenpenalty . . . 6,
12587, 12595, . . . . . 12916, 12944 105, 201, 225,
12598, 12601, \Hy@setpdfborder . . 623, 930, 1124,
12610, 12613, . . . . . . . 12902, 6631, 6808, 13155,
12616, 12625, 12936, 12967, 12996 13179, 16027,
12628, 12631, \Hy@tabularx@hook . 16477, 16539, 16682
12674, 12712, . . . . . 12639, 12651 \HyRTL@saved@RTLfootnotetext
12745, 12776, 12807 \Hy@temp@menu 12990, 13003 . . . . . 12834, 12857

Index 532
I \if@bib@break@ 17292, \if@bidi@cutedloaded@
\i . . . . . . . . . . . 4076, 17317, 17332, . . . . . . . . . . 13630
4077, 4089, 4101, 4102 17348, 17872, \if@bidi@cutwinloaded@
\ialign . . . 393, 18962, 17897, 17912, . . . . . . . . . . 13627
19000, 20956, 21144 17928, 18555, \if@bidi@dblfnoteloaded@
\IeC . . . . . . . . . . . . 13305 18580, 18595, 18611 . . . . . . . . . . 13633
\if . . . . . 361, 362, 363, \if@bibchapter . . . 19271 \if@bidi@def . . . . . . 2868
365, 366, 367, 368, \if@bidi@amsmathloaded@ \if@bidi@defmacro .
369, 372, 373, 374, . . . . . . . . . . 13599 . . . . 2891, 2892,
398, 404, 1386, \if@bidi@amstextloaded@ 2900, 3288, 3307, 3451
1387, 1388, 1390, . . . . . . . . . . 13602 \if@bidi@defparam .
1391, 1392, 1393, \if@bidi@amsthmloaded@ . . . . . . . . 3309,
1394, 1395, 1396, . . . . . . . . . . 13605 3403, 3404, 3453
1399, 1400, 1401, \if@bidi@animateloaded@ \if@bidi@defprimitive
1424, 1425, 1426, . . . . . . . . . . 13608 . . . . . . . . . . . 2902
1428, 1429, 1430, \if@bidi@arabxetexloaded@ \if@bidi@defprotected
1431, 1432, 2275, . . . . . . . . . . 13807 . . . . . . . . 3316,
2281, 2284, 2287, \if@bidi@arrayloaded@ 3412, 3413, 3464
2290, 3772, 3827, . . . . . . . . . . 13741 \if@bidi@diagboxloaded@
3831, 3837, 3841, \if@bidi@arydshlnloaded@ . . . . . . . . . . 13636
3882, 3965, 4348, . . . . . . . . . . 13765 \if@bidi@draftwatermarkloaded@
7218, 7237, 7270, \if@bidi@blank . . . . . . . . . . . . . . 13696
7271, 7272, 11281, . . . 2886, 3389, 3396 \if@bidi@empheqloaded@
11305, 11539, \if@bidi@breqnloaded@ . . . . . . . . . . 13699
13272, 13820, . . . . . . . . . . 13611 \if@bidi@fancyboxloaded@
13822, 13824, \if@bidi@calsloaded@ . . . . . . . . . . 13690
15526, 18969, . . . . . . . . . . 13614 \if@bidi@fancyhdrloaded@
19003, 19008, \if@bidi@captionloaded@ . . . . . . . . . . 13693
19095, 19096, . . . . . . . . . . 13617 \if@bidi@fancyvrbloaded@
19097, 19098, \if@bidi@colorloaded@ . . . . . . . . . . 13813
19099, 19100, . . . . . . . . . . 13623 \if@bidi@floatloaded@
19101, 19103, \if@bidi@colortblloaded@ . . . . . . . . . . 13645
19104, 19105, . . . . . . . . . . 13642 \if@bidi@floatrowloaded@
19106, 19107, \if@bidi@croploaded@ . . . . . . . . . . 13648
19110, 19111, . . . . . . . . . . 13620 \if@bidi@flowframloaded@
19112, 21042, \if@bidi@csdef . 1819, . . . . . . . . . . 13651
21043, 21136, 2850, 2899, 10399, \if@bidi@fontspecloaded@
21153, 21160, 15130, 15186, 15262 . . . . . . . . . . 13804
21161, 21162, \if@bidi@csmacro . . 2898 \if@bidi@framedloaded@
21163, 21164, 21165 \if@bidi@csprimitive . . . . . . . . . . 13654
\if@allcaps . . . . 752, . . . . . . . . . . . 2908 \if@bidi@ftnrightloaded@
761, 769, 1004, \if@bidi@csundef 2582, . . . . . . . . . . 13657
1013, 1021, 1254, 2585, 2588, 2592, \if@bidi@geometryloaded@
1263, 1271, 6752, 2597, 2856, 2929, . . . . . . . . . . 13672
6761, 6769, 6929, 2964, 2989, 3018, \if@bidi@graphicxloaded@
6938, 6946, 16162, 3043, 3075, 3081, . . . . . . . . . . 13669
16171, 16179, 3109, 3115, 3124, \if@bidi@hvfloatloaded@
16301, 16310, 16318 3141, 3657, 4553, . . . . . . . . . . 13675
\if@altsecnumformat 4605, 9045, 9046, \if@bidi@hyperrefloaded@
. 17282, 17830, 18529 9059, 9060, 21636 . . . . . . . . . . 13687

Index 533
\if@bidi@lettrineloaded@ \if@bidi@pgfloaded@ \if@bidi@void@@mpfootins
. . . . . . . . . . 13708 . . . . . . . . . . 13723 . . . 9043, 9311, 9319
\if@bidi@linenoloaded@ \if@bidi@picinparloaded@ \if@bidi@void@footins
. . . . . . . . . . 13711 . . . . . . . . . . 13726 . 9042, 10674, 10681
\if@bidi@list@minipage@parbox \if@bidi@polyglossialoaded@ \if@bidi@wrapfigloaded@
. . . . . . . . 1579, . . . . . . . . . . 13810 . . . . . . . . . . 13666
20993, 21053, \if@bidi@pstricksloaded@ \if@bidi@xcolorloaded@
21062, 21071, . . . . . . . . . . 13720 . . . . . . . . . . 13639
21080, 21093, \if@bidi@quotchaploaded@ \if@bidi@xltxtraloaded@
21094, 21108, 21109 . . . . . . . . . . 13729 . . . . . . . . . . 13660
\if@bidi@rotatingloaded@ \if@bidi@xtabloaded@
\if@bidi@list@minipage@parbox@not@nob
. . . . . . . . 1580, . . . . . . . . . . 13786 . . . . . . . . . . 13759
21001, 21055, \if@bidi@soulloaded@ \if@bidi@xunicodeloaded@
21064, 21073, 21082 . . . . . . . . . . 13747 . . . . . . . . . . 13663
\if@bidi@listingsloaded@ \if@bidi@stabularloaded@ \if@capbreak . . . . . .
. . . . . . . . . . 13714 . . . . . . . . . . 13744 . 17413, 17993, 18676
\if@bidi@longtableloaded@ \if@bidi@subfigloaded@ \if@captionabove ..
. . . . . . . . . . 13762 . . . . . . . . . . 13750 . . . . . . . 17446,
\if@bidi@mdf@RTL . . \if@bidi@subfigureloaded@ 17452, 17465,
. . . . . 13955, 13962 . . . . . . . . . . 13753 17475, 18026,
\if@bidi@mdframedloaded@ \if@bidi@supertabularloaded@ 18032, 18045,
. . . . . . . . . . 13678 . . . . . . . . . . 13756 18055, 18709,
\if@bidi@midfloatloaded@ \if@bidi@tablsloaded@ 18715, 18728, 18738
. . . . . . . . . . 13681 . . . . . . . . . . 13789 \if@cftdopart . . . . 19328
\if@bidi@tabularyloaded@ \if@cfthaschapter .
\if@bidi@minitocloaded@
. . . . . . . . . . 13792 . . . . . . . 19319,
. . . . . . . . . . 13774
\if@bidi@tikzloaded@ 19323, 19329,
\if@bidi@multicolloaded@
. . . . . . . . . . 13732 19350, 19362, 19384
. . . . . . . . . . 13768
\if@bidi@titlesecloaded@ \if@cfthaspart . . . 19315
\if@bidi@multienumloaded@
. . . . . . . . . . 13735 \if@chapterentrywithdots
. . . . . . . . . . 13771
\if@bidi@titletocloaded@ . . . . . 18103, 18786
\if@bidi@natbibloaded@
. . . . . . . . . . 13738 \if@colour . . . . . . . 2359
. . . . . . . . . . 13777
\if@bidi@tocbasicloaded@ \if@colourgreen 7975,
\if@bidi@newfloatloaded@ . . . . . . . . . . 13795 8004, 8073, 8099
. . . . . . . . . . 13780 \if@bidi@tocbibindloaded@ \if@colourgrey . 7979,
\if@bidi@ntheoremloaded@ . . . . . . . . . . 13801 8018, 8077, 8111
. . . . . . . . . . 13684 \if@bidi@tocstyleloaded@ \if@colourorange 7973,
\if@bidi@overpicloaded@ . . . . . . . . . . 13798 7997, 8071, 8093
. . . . . . . . . . 13702 \if@bidi@todonotes@figposition@right
\if@colourred . . 7977,
\if@bidi@patchable . . 20524, 20622, 8011, 8075, 8105
. . . . . . . 3276, 3277 20627, 20634, 20640 \if@compatibility .
\if@bidi@pdfencrypt \if@bidi@todonotes@textdirection@RTL . . 518, 670, 746,
. . . . . . . 1568, 1802 . . . . . . . 20523, 914, 998, 1153,
\if@bidi@pdfm@mark 20557, 20597, 20631 1248, 6746, 6923,
. . . . . . . . 1571, \if@bidi@undef . . . . 16156, 16295,
1814, 1868, 1932 . . . . 2874, 2933, 19354, 19882, 21124
\if@bidi@pdfpagesloaded@ 3185, 3196, 3215, \if@contcw . 14688, 14717
. . . . . . . . . . 13705 3219, 3223, 3227, \if@conthang . . . . . 14698
\if@bidi@perpage@footnote 3237, 3241, 3245, \if@contindent . . . 14704
. . . . . . . 1563, 1789 3249, 3285, 3304, 3448 \if@DEBUG . . . . . . . . 2330

Index 534
\if@displaypagenumbers 1220, 1574, 2556, \if@rot@twoside 16939,
. . . . . . . 2538, 2541 6698, 6886, 7195, 16944, 16954,
\if@donumindex . . . . 8719, 8990, 10827, 16984, 16990, 17002
. . . . . 19272, 19291 13136, 14766, \if@RTL . . . . . . . . 12,
\if@dotocbib . . . . . 19233 15351, 16117, 13, 25, 87, 104,
\if@dotocind 19279, 19296 16511, 16705, 107, 108, 109, 173,
\if@extrafootnotefeatures 16908, 17308, 180, 189, 207, 208,
. . . . . . . 1576, 1774 17888, 18571, 19240 224, 227, 228, 229,
\if@fcolmade . . . 7597, \if@LTRmarginpar 1573, 290, 305, 309, 513,
7656, 11020, 21501, 21506, 21510 530, 533, 534, 557,
11060, 11144, \if@mainmatter . 6216, 572, 624, 637, 648,
11828, 11881, 6972, 7167, 8961, 649, 654, 665, 690,
11910, 14859, 15901, 17833, 693, 694, 707, 875,
14956, 21276, 21319 17849, 17857, 17865 876, 882, 892, 895,
\if@ff@nwpg . . . . . . 11112 \if@minipage . 4961, 14757 896, 909, 931, 970,
\if@filesw . . . . . . . \if@mparswitch . . . 21474 1125, 1131, 1132,
2609, 2954, 2960, \if@newlist . . . 11160, 1137, 1148, 1174,
2979, 2985, 3008, 11192, 21530, 21605 1177, 1178, 1196,
3014, 3033, 3039, \if@nobreak . . . . 4549, 1220, 1359, 1360,
3065, 3071, 3099, 3105 11746, 13966, 15962 1471, 1472, 1485,
\if@firstcolumn 7548, \if@nonlatin . . . . . . 1496, 1561, 1594,
7611, 7671, 7752, . . 336, 348, 1562, 1870, 1877, 2556,
7771, 7927, 7946, 1787, 2832, 2838, 2796, 2802, 2953,
10988, 11024, 7253, 7255, 13950 2978, 3007, 3032,
11785, 11834, \if@noparlist . . . . . 6575 3064, 3098, 5872,
11922, 14771, \if@noskipsec . . 7216, 5873, 5990, 5991,
14871, 14977, 11747, 13967, 15963 5992, 6632, 6638,
21235, 21282, 21472 \if@oldtoc . 658, 684, 6639, 6644, 6655,
\if@firstdetailselement 886, 902, 1141, 6678, 6681, 6682,
. . . . . . . 8140, 8142 1168, 6648, 6672, 6698, 6809, 6815,
\if@firstfooterelement 6825, 6849, 16062, 6816, 6821, 6832,
. . . . . . . 8044, 8047 16086, 16434, 16458 6855, 6858, 6859,
\if@flushend@auto@baselineskip \if@openright . . . . . 6886, 6970, 6981,
. . . . . . . . . . . 7787 . . . 6244, 7186, 8981 6983, 7119, 7134,
\if@hboxRconstruct \if@ovb . . . . . . . . . 10964 7137, 7138, 7165,
. . . . . . . . 1567, \if@ovl . . . . . . . . . 10962 7179, 7195, 7214,
1871, 2820, 2826, \if@ovr . . . . . . . . . 10961 7226, 7239, 7314,
11538, 21000, \if@ovt . . . . . . . . . 10963 7355, 7356, 7360,
21024, 21055, \if@pboxsw . . . . . . 21049 7361, 7363, 7370,
21064, 21073, \if@ref . . . . . . . . . 18236 7376, 7395, 7398,
21082, 21093, \if@restonecol . . . . 7399, 7405, 7410,
21094, 21108, 21109 . . . . . . 604, 620, 7517, 7520, 7537,
\if@ignore . . . 3624, 3626 869, 1121, 6628, 7541, 8346, 8353,
\if@inlabel . . . . . . . 7217 6805, 7015, 16024, 8369, 8375, 8391,
\if@inltxdoc . . . . . 19264 16279, 16738, 19311 8398, 8505, 8585,
\if@insert . . . . . . . 7955 \if@reversemargin 21477 8600, 8622, 8623,
\if@komalongtable . \if@rjfield . . . . . . 21516 8624, 8625, 8648,
. 17462, 18042, 18725 \if@rl . . . . . . . . . . . 1561 8668, 8671, 8672,
\if@LTRbibitems . 87, \if@rl@footnote . . . 1578 8682, 8696, 8709,
290, 572, 707, 970, \if@rlmain . . . . . . . 1560 8719, 8936, 8959,

Index 535
8974, 8990, 9011, 15809, 15810, 18633, 18704,
9014, 9019, 9027, 15813, 15817, 18879, 18882,
10772, 10787, 15849, 15850, 18912, 18932,
10790, 10791, 15851, 15896, 19130, 19175,
10798, 10810, 15898, 15904, 19192, 19212,
10827, 11096, 15915, 15917, 19215, 19220,
11253, 11539, 15928, 15930, 19224, 19225,
11619, 11621, 15941, 15943, 19240, 19336,
12018, 12020, 15952, 15954, 19337, 19338,
12023, 12024, 15971, 15991, 19346, 19367,
12025, 12031, 16007, 16008, 19368, 19369,
12033, 12050, 16028, 16041, 19377, 19390,
12053, 12060, 16052, 16053, 19391, 19392,
12069, 12075, 16058, 16069, 19400, 19407,
12079, 12082, 16092, 16095, 19408, 19409,
12096, 12121, 16096, 16117, 19417, 19424,
12128, 12293, 16412, 16413, 19425, 19426,
12395, 12497, 16424, 16425, 19434, 19441,
12505, 12887, 16430, 16441, 19442, 19443,
12923, 12955, 16464, 16467, 19451, 19458,
12984, 13010, 16468, 16478, 19459, 19460,
13016, 13020, 16491, 16511, 19468, 19475,
13023, 13068, 16540, 16656, 19476, 19477,
13076, 13084, 16671, 16674, 19485, 19493,
13092, 13100, 16675, 16680, 19494, 19495,
13109, 13117, 16681, 16705, 19503, 19512,
13126, 13136, 16841, 16856, 19513, 19514,
13154, 13157, 16859, 16860, 19522, 19532,
13158, 13159, 16887, 16899, 19533, 19534,
13174, 13185, 16908, 17019, 19542, 19567,
13186, 13220, 17021, 17025, 19568, 19569,
13224, 13227, 17029, 17031, 19577, 19617,
13232, 13353, 17036, 17040, 19618, 19619,
13360, 13368, 17043, 17047, 20297, 20359,
13388, 13398, 17049, 17053, 20360, 20361,
13873, 13958, 17080, 17089, 20367, 20370,
14041, 14049, 17280, 17281, 20417, 20477,
14240, 14566, 17308, 17366, 20482, 20505,
14647, 14648, 17367, 17368, 20512, 20572,
14649, 14650, 17370, 17441, 20575, 20659,
14651, 14652, 17629, 17638, 20694, 20702,
14731, 14733, 17829, 17888, 20729, 20730,
14766, 15011, 17946, 17947, 20733, 20734,
15015, 15016, 17948, 17950, 20736, 20773,
15023, 15028, 18021, 18202, 20777, 20830,
15035, 15040, 18209, 18294, 20835, 20881,
15351, 15430, 18300, 18328, 20882, 20909,
15450, 15465, 18337, 18528, 20910, 20913,
15479, 15630, 18571, 18629, 20917, 20994,
15680, 15755, 18630, 18631, 21002, 21008,

Index 536
21014, 21027, \if@RTLmain 1560, 1593, 8742, 8835, 10842,
21095, 21096, 1612, 1869, 1876, 16029, 16143,
21098, 21101, 1895, 7413, 7436, 16280, 16479,
21104, 21108, 7459, 7482, 7698, 16542, 16739,
21109, 21110, 7875, 8334, 8459, 17114, 17663, 18362
21111, 21113, 8462, 8476, 8494, \if@tocstyle@penalties
21115, 21116, 11258, 12146, . . . . . 20280, 20389
21121, 21168, 12156, 12173, \if@todonotes@authorgiven
21169, 21175, 12179, 13406, . . . . . . . 20548,
21180, 21501, 14968, 15128, 20559, 20584, 20601
21506, 21510, 21325, 21546, \if@todonotes@disabled
21518, 21519, 21552, 21581, 21597 . . . . . 20542, 20543
21520, 21521, \if@RTLmarginpar 1572, \if@todonotes@dviStyle
21616, 21619, 21501, 21506, 21510 . . . . . 20545, 20579
21627, 21637, \if@RTLtab . 362, 363, \if@ttb@rotate . . . 11252
21735, 21745, 21751 379, 382, 404, 406, \if@twocolumn . . . 98,
\if@RTL@footnote 36, 1367, 1368, 1387, 218, 458, 591,
239, 1578, 1873, 1388, 1425, 1426, 607, 634, 641,
5240, 9109, 9150, 1566, 2194, 2198, 809, 856, 941, 952,
9402, 9447, 9511, 2199, 2808, 2814, 1061, 1108, 1193,
9553, 9614, 9659, 7274, 7276, 7297, 1200, 1311, 1613,
9723, 9768, 9832, 7304, 7326, 7327, 1619, 6170, 6615,
9876, 9941, 9985, 7340, 7351, 13821, 6792, 7002, 7064,
10050, 10095, 13823, 13937, 8785, 8882, 10885,
10159, 10204, 13940, 18947, 11924, 13148,
10268, 10313, 18951, 18952, 14630, 16011,
10466, 10487, 18969, 18977, 16038, 16045,
10528, 10583, 18983, 19008, 16219, 16266,
10592, 11433, 19096, 19097, 16360, 16488,
11482, 11522, 11523 20953, 21128, 16495, 16604,
\if@RTLbibitems . 87, 21132, 21133, 16725, 16786,
290, 572, 707, 970, 21153, 21161, 21162 17193, 17742,
1220, 1575, 2556, \if@sectionentrywithdots 18441, 19266,
6698, 6886, 7195, . . . . . . . . . . 17523 21197, 21471, 21630
8719, 8990, 10827, \if@sentdir . . . . . . . 1872 \if@twoside . . . . . . .
13136, 14766, \if@specialpage . . . . . . 6161, 11119,
15351, 16117, . . . . . 11115, 21541 17162, 17175,
16511, 16705, \if@star . . . . . . . . 15885 17243, 17711,
16908, 17308, \if@tab@rl . . . . . . . 1566 17724, 17792,
17888, 18571, 19240 \if@tablecaptionabove 18410, 18423,
\if@RTLcolumnfootnotes . 17493, 18073, 18756 18491, 20685, 21544
. . . . . . . . 1577, \if@tempswa 4391, 4436, \if@vihproof 14996, 15002
9372, 9373, 9376, 8242, 8299, 20011 \ifadl@inactive . . . 1373
9377, 9412, 9464, \if@thmmarks . . 15413, \ifadl@usingarypkg 1376
9520, 9569, 9624, 15417, 15434, 15438 \ifAM@output . . . . . 15552
9676, 9733, 9785, \if@titlecentered . \ifAM@survey . . . . . 15530
9842, 9894, 9951, . . . . . . 1341, 16392 \ifartopt . . . . . . . 14667
10003, 10060, \if@titlepage . . 411, \ifbidi@autofootnoterule
10112, 10169, 625, 733, 932, 985, . . . . . . . 11259,
10221, 10278, 10330 1184, 1235, 7017, 11494, 11508, 11522

Index 537
\ifbidi@in@label . . \ifdim . . . . . . . . 1461, 15861, 15886,
. . . . . . . 3836, 3838 1462, 1536, 1542, 17400, 17408,
\IfbidiPackageVersion 1548, 4974, 5541, 17980, 17988,
. . . . . . . . . . . 1547 6310, 6347, 6349, 18240, 18246,
\IfbidiPackageVersionBefore 6408, 6409, 6411, 18252, 18258,
. . . . . . . . . . . 1541 6417, 6457, 6469, 18264, 18270,
\IfbidiPackageVersionLater 6551, 6553, 6566, 18276, 18282,
. . . . . . . . . . . 1535 6568, 6576, 7247, 18288, 18663,
\ifblendcolors 20741, 7691, 7736, 7748, 18671, 18994,
20762, 20784, 20811 7761, 7764, 7766, 19922, 19936,
\ifbool . . . . 13980, 13989 7796, 7800, 7801, 19941, 20315,
\ifcase 1408, 1435, 1439, 7815, 7840, 7865, 20340, 20406,
1443, 1447, 1473, 7910, 7923, 7936, 20662, 20664,
1663, 1669, 1675, 7939, 7941, 8189, 20666, 20668,
1681, 1687, 1693, 8210, 8230, 8239, 20669, 20670,
1705, 1711, 1717, 8266, 8270, 8287, 20672, 20712,
1724, 1738, 1745, 8296, 8318, 8322, 20719, 21483, 21615
1755, 7328, 12493, 9217, 9222, 9229, \ifdofullc@p . . . . . .
13891, 19206, 9234, 9241, 9246, . 17403, 17983, 18666
19587, 20349, 10442, 10446, \iffalse . . . . . . . . .
20419, 20529, 10450, 10504, 2740, 2741, 2743,
20537, 20761, 10508, 10512, 11746, 11747,
20810, 21212, 21213 10950, 10952, 13516, 13966,
\ifcat 1604, 1887, 3722, 3723 11095, 11631, 13967, 15962, 15963
\ifconvertcolorsU . 11639, 11655, \IfFileExists . . 4120,
. . . . . . . 20747, 11656, 11686, 4718, 6190, 6255
20763, 20790, 20812 11694, 11707, \iffootdir@debug . .
\ifcpoddpage . . . . . . 4738 11722, 11755, . . . . . 11267, 11271
\ifcsname . . . . . . . . 11756, 12038, \ifGin@grid . 15466, 15479
2851, 2857, 3202, 12045, 12084, \ifGin@iso . . . . . . 12135
3585, 3599, 3613, 12091, 12136, \ifhbox 10384, 10393, 10397
3623, 3645, 4165, 12226, 12364, \ifhmode . . 2259, 5199,
4180, 4394, 4402, 12380, 13311, 5243, 5287, 5530,
15375, 15385, 13325, 13331, 5536, 7361, 7363,
15399, 20304, 13465, 13874, 7370, 7376, 7395,
20305, 20314, 13885, 13924, 19168, 20734,
20325, 20329, 13927, 14637, 20736, 20773,
20339, 20351, 14680, 14687, 20777, 20830,
20405, 20433, 14691, 14693, 21108, 21109,
20434, 20442, 14732, 14793, 21152, 21382, 21426
20446, 20450, 14801, 14803, \ifhv@fbox . . . 12295,
20454, 20458, 14893, 14901, 12301, 12308,
20462, 20466, 20470 14903, 14978, 12314, 12320,
\ifdefined . . . 2869, 2875 14989, 15073, 12326, 12335,
\ifdefining . . . . . . . 3842 15081, 15087, 12339, 12344,
\ifdfn@allowcbreak 15104, 15112, 12348, 12352,
. . . . . . . 8195, 8216 15580, 15627, 12356, 12370,
\ifdfn@ruleboth 8253, 8307 15652, 15710, 12386, 12397,
\ifdfn@trysingle . . 15721, 15728, 12401, 12406,
. . . . . . . 8234, 8291 15733, 15748, 12410, 12414,

Index 538
12418, 12425, 12128, 12872, 11232, 11241,
12431, 12438, 12884, 12887, 11243, 11245,
12444, 12450, 12456 12923, 12955, 11391, 11494,
\ifhv@nonFloat 12238, 12984, 13010, 11508, 11522,
12245, 12263, 15563, 15621, 11755, 11757,
12284, 12476, 12478 15853, 15889, 11945, 12874,
\ifhv@onlyText . . . . 17019, 17021, 12879, 13176,
. . . . . 12246, 12264 17025, 17029, 13318, 13378,
\ifhv@useOBox 12209, 12213 17031, 17036, 13436, 13439,
\ifHy@href@ismap . 12975 17040, 17043, 13447, 13450,
\ifHy@hyperfootnotes 17047, 17049, 13519, 13835,
. . 9047, 9061, 12512 17053, 20729, 13836, 13919,
\ifHy@nesting . . . . . 20733, 21044, 21119 13920, 14631,
. . 12561, 12572, \ifNAT@openbib . . . 15354 14664, 14790,
12583, 12594, \ifnonlatin . . . . . . . 2837 14820, 14890,
12609, 12624, \ifnum 3, 137, 143, 198, 14920, 15009,
12684, 12722, 304, 353, 354, 355, 15021, 15033,
12755, 12786, 12817 356, 358, 459, 508, 15094, 15136,
\ifHy@pdfa . . . 12901, 525, 551, 560, 644, 15142, 15217,
12935, 12966, 12995 660, 678, 810, 871, 15235, 15394,
\ifin@ . . . . . . . . . . . 4410 904, 922, 1062, 15404, 15640,
\ifin@label . . . . . . . 3844 1127, 1143, 1161, 15646, 15658,
\ifinner . . 2265, 5205, 1312, 1378, 1379, 15661, 15662,
5249, 5293, 11634, 1380, 1381, 1383, 15663, 15665,
20654, 21388, 21432 1422, 1423, 1783, 15666, 15667,
\ifL@grid . . . . . . . 13326 1784, 1785, 2291, 15668, 15677,
\ifL@realh . . . . . . 13262 2627, 3126, 3696, 15699, 15704,
\iflatin . . . . . . . . . 2831 3724, 3726, 3734, 15715, 15726,
\ifLettrineImage . 13256 3736, 3937, 3947, 15727, 15733,
\ifLettrineOnGrid 13257 4045, 4051, 4076, 15737, 15740,
\ifLettrineRealHeight 4091, 4097, 6430, 15741, 15847,
. . . . . . . . . . 13258 6634, 6650, 6666, 15848, 15855,
\ifLettrineSelfRef 13259 6730, 6732, 6734, 15900, 16048,
\ifLtoR . . . . . . . . . . 2801 6811, 6827, 6843, 16064, 16080,
\ifLtoRhboxconstruct 6907, 6909, 6911, 16138, 16140,
. . . . . . . . . . . 2825 6971, 7065, 7114, 16142, 16220,
\ifLtoRtable . . . . . . 2813 7129, 7152, 7154, 16361, 16420,
\ifmaskcolors . 20751, 7156, 7166, 7248, 16436, 16452,
20762, 20794, 20811 7515, 7523, 7528, 16503, 16505,
\ifmmode . . . . . . . . . 7535, 7723, 7732, 16507, 16605,
1860, 7355, 7360, 7742, 7897, 7906, 16652, 16666,
11065, 11075, 7916, 8130, 8663, 16692, 16694,
12018, 12020, 8677, 8690, 8699, 16696, 16787,
12023, 12024, 8786, 8883, 8932, 16836, 16851,
12025, 12031, 8946, 8948, 8950, 16874, 16876,
12033, 12050, 8960, 9378, 10767, 16878, 16888,
12053, 12060, 10782, 10799, 17182, 17194,
12069, 12075, 10886, 10936, 17731, 17743,
12079, 12082, 10938, 10940, 17832, 17848,
12096, 12121, 11228, 11230, 17856, 17864,

Index 539
18430, 18442, 19659, 19660, 2510, 2527, 2531,
19039, 19087, 19663, 19666, 2535, 2543, 4631,
19088, 19089, 19675, 19676, 4691, 4693, 4696,
19090, 19092, 19677, 19680, 4700, 4703, 4706,
19197, 19199, 19683, 19702, 4731, 4788, 4807,
19318, 19322, 19703, 19704, 4822, 4827, 4833,
19364, 19383, 19706, 19707, 4842, 4853, 4859,
19405, 19422, 19708, 19711, 4865, 4866, 4873,
19439, 19456, 19714, 19723, 4880, 4882, 4888,
19473, 19491, 19724, 19725, 4905, 4923, 4925,
19510, 19530, 19728, 19731, 4929, 4947, 4948,
19565, 19748, 19785, 19786, 4951, 4952, 4987,
19749, 19856, 19787, 19788, 4996, 5007, 5017,
19857, 19881, 19789, 19790, 5066, 5181, 5405,
19891, 20279, 19791, 19792, 5423, 5424, 5442,
20284, 20302, 19793, 19808, 5443, 5461, 5462,
20475, 20693, 19809, 19810, 5493, 5494, 5612,
20975, 21158, 19811, 19813, 5617, 5641, 5646,
21159, 21173, 19814, 19815, 5670, 5675, 5752,
21228, 21479, 19818, 19821, 5756, 5804, 6017,
21501, 21624, 21625 19830, 19831, 6063, 6072, 6080,
\ifodd 2276, 6161, 8467, 19832, 19835, 6107, 6154, 6223,
8484, 8544, 11120, 19838, 20036, 6234, 8034, 8040,
12166, 12172, 20037, 20038, 8057, 8060, 8061,
20685, 21475, 21545 20039, 20040, 8062, 8063, 8064,
\ifoddpage . . . . . . . 4732 20041, 20042, 8150, 8155, 8158,
\ifonelinecaptions 20043, 20044, 8159, 8160, 8161,
. 17374, 17954, 18637 20087, 20088, 8162, 8165, 8169,
\ifpgfrememberpicturepositiononpage 20089, 20090, 11201, 11216,
. . . . . . . . . . 15576 20092, 20093, 15520, 16943, 16988
\ifpoem@started 6404, 20094, 20097, \iftocstyle@autolength
6410, 6550, 6557, 6571 20100, 20109, . . . . . . . . . . 20324
\ifprimitive . . 2903, 2910 20110, 20111, \iftocstyle@indentnotnumbered
\ifPst@shift@star 15877 20114, 20117, . . . . . 20369, 20416
\ifr@ggedbottom . . 15827 20147, 20148, \iftrue . . . . . . . 2742,
\ifrot@messages . . . 20149, 20151, 5146, 5159, 5172
. . . . . 16989, 17001 20152, 20153, \ifttl@label . . . . . 19173
\ifRtoL . . . . . . . . . . 2795 20156, 20159, \ifTX@ . . . . . . . . . . 19029
\ifRtoLhboxconstruct 20168, 20169, \ifvbox . . . . . . 10695,
. . . . . . . . . . . 2819 20170, 20173, 11992, 15260, 15275
\ifRtoLtable . . . . . . 2807 20176, 20196, \ifvmode . . 2950, 3004,
\ifshowgrid . . . . . . 15855 20199, 20202, 3061, 4549, 4935,
\ifsomething . . . . . . 3975 20222, 20226, 4938, 4941, 4944,
\ifstr . . 19630, 19631, 20231, 20243, 13995, 15063,
19632, 19633, 20246, 20250, 20260 15424, 15444, 18981
19634, 19635, \ifstrstart . . . . . . . \ifvoid 7583, 7599, 7642,
19636, 19637, . 20027, 20059, 20133 7658, 7677, 7685,
19638, 19653, \iftagsleft@ . . 328, 8502 7718, 7843, 7854,
19654, 19655, \iftest . . . . . . . . . . 3779 7892, 8193, 8214,
19656, 19658, \ifthenelse . . . . . . . 8225, 8250, 8282,

Index 540
8304, 9267, 9268, 6320, 6473, 6525, 17147, 17171,
9276, 9282, 9306, 6530, 6532, 7559, 17242, 17246,
9307, 9323, 9335, 7622, 8262, 8314, 17254, 17260,
10735, 10750, 9009, 9025, 9029, 17272, 17296,
11557, 11715, 10998, 11034, 17358, 17363,
11736, 11891, 11388, 11599, 17625, 17651,
11896, 11914, 11800, 11849, 17658, 17678,
11916, 11925, 11887, 12064, 17683, 17690,
11935, 11955, 12106, 12107, 17696, 17720,
11956, 11960, 12113, 12200, 17791, 17795,
11971, 11978, 12202, 12208, 17803, 17809,
13051, 13055, 12219, 12221, 17821, 17875,
13937, 14011, 12224, 12225, 17938, 17943,
15048, 15203, 12242, 12248, 18198, 18226,
15205, 15219, 12249, 12251, 18227, 18228,
15220, 15264, 12254, 12266, 18229, 18230,
15268, 15272, 12267, 12269, 18231, 18232,
15755, 15821, 12272, 12281, 18233, 18237,
15823, 15828, 12283, 12292, 18243, 18249,
20835, 20888, 12294, 12307, 18255, 18261,
20898, 21330, 12334, 12343, 18267, 18273,
21345, 21346, 21369 12363, 12379, 18279, 18285,
\ifWF@float . 20667, 20681 12396, 12405, 18294, 18324,
\ifx . 115, 134, 136, 151, 12424, 12437, 18350, 18357,
155, 159, 166, 794, 12471, 12477, 18377, 18382,
798, 1046, 1050, 12490, 12521, 18389, 18395,
1296, 1300, 1793, 12532, 12543, 18419, 18490,
1794, 2142, 2148, 12850, 12853, 18494, 18502,
2154, 2169, 2200, 12856, 12859, 18508, 18520,
2252, 2255, 2516, 12903, 12911, 18558, 18621,
2517, 2518, 2520, 12937, 12945, 18626, 18989,
2620, 2649, 2652, 12968, 12997, 19208, 19550,
2672, 2676, 2696, 13201, 13222, 19905, 19909,
2700, 2715, 2719, 13264, 13284, 19913, 20010,
2789, 2858, 2876, 13476, 13477, 20291, 20362,
3165, 3353, 3369, 13481, 13483, 20374, 20382,
3702, 3708, 3709, 13840, 14741, 20399, 20424,
3746, 3747, 3748, 14782, 14882, 20491, 20496,
3749, 3759, 3765, 15150, 15154, 20498, 20742,
3790, 3795, 3800, 15158, 15380, 20785, 20918,
3805, 3811, 3816, 15384, 15391, 21028, 21031,
4004, 4110, 4134, 15397, 15536, 21038, 21199,
4149, 4214, 4226, 15548, 15818, 21207, 21246,
4258, 4269, 4304, 15870, 15911, 21293, 21558,
4310, 4321, 4322, 15924, 15937, 21559, 21561, 21562
4333, 4363, 4372, 16204, 16208, \ifXC@@tst . 20765, 20814
4373, 4393, 4408, 16345, 16349, \ignorespaces . . . 46,
4418, 4432, 4439, 17076, 17102, 60, 76, 122, 249,
4451, 4467, 4522, 17109, 17129, 263, 278, 336, 630,
4533, 5475, 6299, 17134, 17141, 639, 937, 1189,

Index 541
1198, 3535, 4023, 599, 600, 614, 21713, 21714,
4039, 4041, 4047, 615, 863, 864, 21715, 21716,
4050, 4053, 4057, 1115, 1116, 5977, 21717, 21718,
4062, 4958, 4965, 5978, 6622, 6623, 21719, 21720,
4966, 4975, 5562, 6799, 6800, 7009, 21721, 21722,
5580, 5598, 5634, 7010, 7011, 16018, 21723, 21724,
5663, 5692, 5957, 16019, 16273, 21725, 21726,
6381, 6392, 6545, 16274, 16732, 21728, 21729,
6546, 6693, 6881, 16733, 16734, 21730, 21731,
7251, 7257, 7370, 19275, 19276, 21732, 21733,
7376, 7384, 7391, 19277, 19281, 21756, 21757,
9014, 9028, 9092, 19282, 19283, 21758, 21759,
9098, 9104, 11445, 19286, 19287, 21760, 21761,
11462, 11478, 19293, 19294, 21762, 21763,
11505, 11519, 19298, 19299, 21764, 21765,
11533, 12148, 19300, 19303, 19304 21766, 21767,
12152, 12157, \indexspace . . . . . . . 5993 21768, 21769,
12162, 13208, \input 1660, 1661, 1775, 21770, 21771,
13227, 13950, 1866, 1942, 2363, 21772, 21773,
14754, 14761, 6191, 6256, 21629, 21774, 21775,
16034, 16043, 21639, 21640, 21776, 21777, 21778
16484, 16493, 21641, 21642, \input@path . . . . . . 14236
17019, 17029, 21643, 21644, \InputIfFileExists
17047, 17383, 21645, 21646, . . 4108, 4117, 13275
17404, 17409, 21647, 21648, \insert 35, 49, 65, 238,
17414, 17419, 21649, 21650, 252, 267, 1610,
17437, 17963, 21651, 21652, 1893, 8184, 8200,
17984, 17989, 21653, 21654, 8205, 8221, 8268,
17994, 17999, 21655, 21656, 8274, 8320, 8326,
18017, 18300, 21657, 21658, 9108, 9122, 9136,
18646, 18667, 21659, 21660, 9402, 9412, 9422,
18672, 18677, 21661, 21662, 9511, 9520, 9529,
18682, 18700, 21663, 21664, 9614, 9624, 9634,
20773, 20777, 21665, 21667, 9723, 9733, 9743,
21020, 21059, 21668, 21672, 9832, 9842, 9852,
21068, 21077, 21086 21677, 21684, 9941, 9951, 9961,
\iii . . . . . . . . . . . . . 4083 21685, 21686, 10050, 10060,
\ilg . . . . . . . 15649, 15672 21687, 21688, 10070, 10159,
\immediate . . . 4546, 6537 21689, 21690, 10169, 10179,
\in@ . . . . . . . . . . . . . 4409 21691, 21692, 10268, 10278,
\includegraphics . . 21693, 21694, 10288, 10527,
. . . . 2551, 8036, 21695, 21696, 10545, 10557,
8167, 15454, 15522 21697, 21698, 11432, 11449,
\includemedia . . . . . 21699, 21700, 11465, 11915,
. 14215, 14545, 14546 21701, 21702, 11917, 15204, 15206
\includepdf . . . . . . 15513 21703, 21704, \insert@column . . . .
\indentedwidth . . . . 9027 21705, 21706, . . . . 1410, 1411,
\index . . . . . . . . 3961, 21707, 21708, 1412, 1413, 1415,
3962, 11173, 21569 21709, 21710, 1416, 1476, 1478,
\indexname . . . . 598, 21711, 21712, 1479, 1481, 1482,

Index 542
1483, 7331, 7333, \isempty . . 4807, 5405, \juo@pr . . . . . . 14792,
7334, 7336, 7337, 7338 5612, 5617, 5641, 14822, 14892, 14922
\insertpenalties . . 5646, 5670, 5675, \juo@sar . . . . . 14791,
. . . . . 11396, 11945 6063, 6072, 6080, 6107 14821, 14863,
\int 14269, 14316, 14317, \isodd . . . . . 16943, 16988 14891, 14921, 14960
14321, 14399, \isSC@ODD . . . . 18880, \juo@sk . 14790, 14820,
14487, 14490, 18881, 18883, 14863, 14890,
14491, 14502, 18884, 21736, 14920, 14960, 14993
14540, 14578, 21738, 21740, 21742 \justifying . . . . 4714,
14603, 15490, 15492 \isundefined . . . . . . 4784, 5354, 15949
\interfootnotelinepenalty . . . . 5017, 5066, \JustifyingParfillskip
. . 39, 53, 69, 242, 8034, 8040, 8057, . . . . . . . . . . 15955
256, 271, 9298, 8060, 8061, 8062, \JustifyingParindent
11436, 11453, 11469 8063, 8064, 8155, . . . . . . . . 4686,
\interlinepenalty 39, 8158, 8159, 8160, 5357, 5916, 15956
53, 69, 242, 256, 8161, 8162, 8165, 8169
271, 558, 622, \item . . . . . . . . . 102, K
647, 874, 929, 222, 603, 618, 867, \keepthetitle . . . . 14613
1123, 1130, 5869, 950, 1119, 5949, \kern . . . 27, 29, 30, 31,
6630, 6637, 6807, 5957, 5962, 5983, 231, 233, 234, 235,
6814, 6978, 7173, 6626, 6803, 7014, 336, 539, 541, 543,
7181, 7721, 7730, 11070, 11085, 545, 723, 724, 726,
7740, 7895, 7904, 13152, 16022, 729, 730, 732, 744,
7914, 8697, 8710, 16277, 16737, 19310 959, 961, 964, 966,
8967, 8976, 9298, \itemindent . . . . 5944, 996, 1203, 1204,
10804, 10812, 5945, 5953, 20982 1206, 1209, 1210,
11436, 11453, \itemsep . . . . . . 4680, 1212, 1246, 1474,
11469, 15013, 5890, 5929, 5943 1479, 2073, 2074,
15025, 15037, \itemx . . . . . . . . . . 15279 2075, 2076, 2077,
15904, 16026, \itemxox . . . . . . . . 15314 2078, 2079, 2080,
16051, 16423, 2084, 2085, 2132,
\itemxoxx . . . . . . . 15324
16476, 16538, 2134, 2135, 5156,
\itemxx . . . . . . . . . 15282
16893, 16901, 5157, 5167, 5168,
\itemxxo . . . . . . . . 15319
19165, 19206, 5170, 5635, 5636,
19340, 19371, \itemxxox . . . . . . . 15331
5664, 5665, 5693,
19394, 19411, \itemxxx . . . . . . . . 15287 5694, 6714, 6715,
19428, 19445, \itemxxxo . . . . . . . 15338 6717, 6720, 6721,
19462, 19479, \itemxxxx . . . . . . . 15294 6723, 6744, 6867,
19497, 19516, \itemxxxxx . . . . . . 15303 6868, 6870, 6873,
19536, 19571, \itshape . . 2050, 2523, 6874, 6876, 6921,
19904, 20365, 5753, 5755, 5759, 7144, 7146, 7148,
20479, 20660, 21177 5766, 5773, 5808, 7150, 7329, 7334,
\intermath@penalty 7250 5815, 5822, 5829, 7356, 8179, 8180,
\intextsep . 20720, 20722 5836, 6140, 6141, 6142 8588, 8595, 8603,
\InTheoType . . . . . . . 8610, 8649, 8653,
. . . 8518, 15414, J 8735, 8737, 8739,
15416, 15435, 15437 \j . . . . . . 4097, 4098, 4102 8741, 9034, 9036,
\invoicename . . . . . 18263 \juo@ht . . . . . . 14809, 9038, 9040, 9083,
\ior . . 14319, 14320, 14324 14816, 14909, 9084, 9210, 9211,
\iow . . . . . . . . . . . . 15491 14916, 14985, 14992 10817, 10819,

Index 543
10821, 10823, 20899, 20929, 14161, 14162,
10961, 10962, 20932, 20934, 21498 14163, 14164,
10963, 11205, \keys . . . 14032, 14228, 14165, 14166,
11348, 11350, 14322, 14561, 14562 14172, 14174,
11351, 11352, \keywords . . . . . . . . 324 14175, 14176,
11353, 11354, \kill . . . . . . . . . . . 13837 14179, 14181,
11386, 11604, \KOMAClassName 17183, 14183, 14188,
11668, 12046, 17500, 17732, 14189, 14190,
12092, 13162, 18080, 18431, 18763 14192, 14194,
13164, 13165, \KV@do . . . . . 13292, 13297 14199, 14201,
13166, 13236, \KV@prefix . 13290, 13295 14203, 14211,
13238, 13240, 14222, 14223,
13242, 13950, L 14238, 14239,
15072, 15131, \l . . . . . . . 8544, 8560, 14240, 14241,
15132, 15176, 8563, 8569, 8572, 14259, 14279,
15178, 15179, 8574, 8575, 8578, 14287, 14292,
15180, 15827, 8579, 8582, 8585, 14306, 14311,
15838, 15841, 8586, 8587, 8592, 14315, 14316,
15868, 15884, 8593, 8594, 8600, 14317, 14319,
16104, 16105, 8601, 8602, 8607, 14320, 14321,
16107, 16110, 8608, 8609, 8618, 14324, 14328,
16111, 16113, 8621, 8629, 14040, 14330, 14331,
16154, 16293, 14042, 14048, 14332, 14333,
16527, 16528, 14050, 14056, 14334, 14335,
16530, 16533, 14057, 14058, 14336, 14338,
16534, 16536, 14059, 14060, 14339, 14340,
16684, 16686, 14061, 14062, 14341, 14343,
16688, 16690, 14063, 14064, 14344, 14345,
16866, 16868, 14065, 14066, 14347, 14348,
16870, 16872, 14068, 14069, 14349, 14352,
17101, 17105, 14071, 14072, 14353, 14354,
17108, 17111, 14073, 14080, 14357, 14390,
17112, 17357, 14081, 14082, 14392, 14395,
17360, 17362, 14084, 14086, 14420, 14422,
17365, 17650, 14089, 14090, 14454, 14458,
17654, 17657, 14097, 14107, 14470, 14471,
17660, 17661, 14108, 14109, 14517, 14527,
17937, 17940, 14110, 14111, 14533, 14545,
17942, 17945, 14112, 14113, 14546, 14565,
18218, 18220, 14114, 14115, 14566, 14567,
18222, 18224, 14116, 14117, 14568, 14569,
18349, 18353, 14118, 14119, 14570, 14571,
18356, 18359, 14120, 14121, 14572, 14573,
18360, 18620, 14125, 14126, 14608, 14609,
18623, 18625, 14127, 14129, 15495, 15497, 15506
18628, 18916, 14131, 14134, \l@ . . . . . . . . . . . . . 19581
18922, 19179, 14135, 14137, \L@ante 13251, 13341, 13375
20695, 20699, 14138, 14139, \l@chapter 6673, 6687,
20705, 20708, 14148, 14158, 6850, 6864, 7128,
20730, 20889, 14159, 14160, 10781, 16087,

Index 544
16101, 16459, 16435, 16451, 15320, 15322,
16473, 16665, 16651, 16835, 15325, 15327,
16850, 19230, 19227, 19228, 15329, 15332,
19231, 19363, 20444 19316, 20436, 20439 15334, 15336,
\l@color . . . 13280, 13281 \L@Pindent . . . 13339, 15339, 15341, 15343
\l@figure . . . . . 5877, 13340, 13342, \labelsep . . . . 85, 90,
5878, 19472, 20472 13343, 13345, 288, 293, 577, 712,
\L@Findent . . . . . . . 13346, 13349, 13356 975, 1225, 2562,
. 13252, 13343, 13376 \L@raise . . . 13250, 13316 2564, 5906, 5908,
\L@first 13315, 13317, \L@realhfalse . . . . 13258 5965, 6703, 6891,
13319, 13321, \L@realhtrue . . . . . 13258 7200, 8724, 8995,
13325, 13331, \l@refstring . . . . . 13245 10832, 13134,
13333, 13335, \l@section . . . . 524, 13139, 15280,
13337, 13341, 685, 698, 887, 15283, 15285,
13342, 13344, 900, 1169, 1182, 15288, 15290,
13345, 13354, 13356 8662, 19382, 20448 15292, 15295,
\L@gridfalse . . . . . 13257 \L@selfreffalse . . 13259 15297, 15299,
\L@gridtrue . . . . . . 13257 \L@selfreftrue . . . 13259 15301, 15304,
\L@hang . . . . 13248, 13340 \L@slope . . . . . . . . . 15306, 15308,
\L@imagefalse . . . . 13256 . 13254, 13365, 13366 15310, 15312,
\L@imagetrue . . . . . 13256 \l@subfigure . . . . . 19509 15315, 15317,
\l@initial . . . . . . 13245 \l@subparagraph . . . 15320, 15322,
\L@lbox . 13294, 13301, . . . . . 19455, 20464 15325, 15327,
13302, 13303, \l@subsection 19404, 20452 15329, 15332,
13339, 13340, 13375 \l@subsubsection . . 15334, 15336,
\l@LOKeys . . . . 13285, . . . . . 19421, 20456 15339, 15341,
13287, 13292, 13297 \l@subtable . . . . . . 19529 15343, 16122,
\L@lraise . . . . 13316, \l@table 5878, 19490, 20468 16516, 16710,
13317, 13322, 13375 \L@target@dp . . . . . 13322 16913, 17315,
\L@next . 13347, 13348, \L@target@tht . . . . . 17895, 18578, 19245
13361, 13363, 13366 . 13308, 13316, 13321 \labelwidth . . . . . 89,
\l@ngrel@x 3165, 3166, 3168 \L@tbox . 13261, 13269, 90, 292, 293, 575,
\L@Nindent . . . 13253, 13314, 13319, 13377 576, 710, 711,
13346, 13348, \l@textcolor 13282, 13283 973, 974, 1223,
13350, 13363, 13365 \label . . . . . . . . 2547, 1224, 2561, 2563,
\L@novskip . . . . . . . 4836, 4838, 4840, 5907, 5908, 6701,
. 13255, 13325, 13329 4844, 4896, 11172, 6702, 6889, 6890,
\L@oversize . . . . . . . 12256, 12274, 21568 7198, 7199, 8722,
. 13249, 13306, 13311 \labelitemi . 743, 995, 8723, 8993, 8994,
\l@paragraph 19438, 20460 1058, 1245, 6743, 10830, 10831,
\L@parshape . . . . . . . 6920, 16153, 16292 11760, 13138,
. . 13354, 13356, \labelname . . . 15280, 13139, 15280,
13361, 13363, 15283, 15285, 15283, 15285,
13369, 13371, 13374 15288, 15290, 15288, 15290,
\l@part . 507, 659, 677, 15292, 15295, 15292, 15295,
903, 921, 1142, 15297, 15299, 15297, 15299,
1160, 6649, 6665, 15301, 15304, 15301, 15304,
6826, 6842, 7113, 15306, 15308, 15306, 15308,
8676, 8931, 10766, 15310, 15312, 15310, 15312,
16063, 16079, 15315, 15317, 15315, 15317,

Index 545
15320, 15322, 1151, 1260, 1270, 7803, 7804, 7807,
15325, 15327, 1346, 1352, 1356, 7809, 7810, 7813, 7823
15329, 15332, 1361, 5766, 5829, \LastTOCLevelWasHigher
15334, 15336, 5895, 6658, 6758, . . . . . . . . . . 20194
15339, 15341, 6768, 6835, 6935, \LastTOCLevelWasLower
15343, 16120, 6945, 7031, 7037, . . . . . . . . . . 20190
16121, 16514, 7102, 7108, 7122, \LastTOCLevelWasSame
16515, 16708, 8029, 8031, 8122, . . . . . . . . . . 20192
16709, 16911, 8124, 8685, 8754, \LaTeX . . . . . . . 13032,
16912, 17313, 8760, 8819, 8825, 20921, 20922, 20934
17314, 17893, 8849, 8855, 8920, \LaTeXe . . . . 20923, 20924
17894, 18576, 8926, 8939, 10775, \LBEG . . . . . . . . . . . . 2055
18577, 19243, 19244 10854, 10860, \lcb . 2052, 2055, 2056, 2059
\langle . . . . . . . . . . 2051 10919, 10925, \lccode . . . . . . . 3724,
\Larg . . . . . . . . . 2050, 16072, 16168, 3726, 20686, 20687
2051, 2052, 2053, 2054 16178, 16253, \Lcs . . . . . . . . . . . . . 2066
\Larga . . . . . . . . . . . 2051 16259, 16307, \LcsStar . . . . . . . . . 2067
\Largb . . . . . . . . . . . 2052 16317, 16399, \leaders . . . . . 17111,
\LARGE . . . . . 423, 494, 16405, 16409, 17660, 18359,
751, 841, 1003, 16414, 16444, 18929, 19221,
1093, 1253, 1344, 16566, 16572, 20375, 20484, 21182
1355, 5808, 5815, 16659, 16753, \leavevmode . . . . . 14,
5897, 6140, 6751, 16759, 16824, 209, 305, 378, 515,
6928, 7029, 7100, 16830, 16844, 532, 653, 667, 692,
8119, 8752, 8817, 19874, 20224, 20262 744, 881, 894, 911,
8847, 8918, 10852, \Largr . . . . . . . . . . . 2054 996, 1059, 1136,
10917, 16161, \Largs . . . . . . . . . . . 2053 1150, 1176, 1246,
16251, 16300, \lastbox . . . . . . . . . 2184, 2492, 2951,
16397, 16408, 7802, 7806, 7832, 3005, 3062, 5529,
16564, 16751, 16822 10361, 10383, 5870, 6338, 6414,
\Large 561, 5759, 5822, 10392, 10396, 6643, 6657, 6680,
5896, 6141, 6142, 13992, 15755, 6744, 6820, 6834,
8030, 8123, 8700, 20835, 20887, 20897 6857, 6921, 7121,
16640, 17149, \lastbox@a . . . . 7802, 7136, 7216, 7217,
17155, 17157, 7803, 7806, 7807 7355, 7407, 8670,
17173, 17262, \LastFrameCommand . 8684, 8938, 9436,
17269, 17271, . . . . . 11622, 11732 9542, 9648, 9757,
17274, 17698, \lastkern . . . 5541, 11707 9866, 9975, 10084,
17704, 17706, \lastpenalty . 7248, 20284 10193, 10302,
17722, 17811, \lastrule . . . . . . . . 7295 10774, 10789,
17818, 17820, \lastskip . . . . . 4974, 11070, 11085,
17823, 18397, 6576, 6577, 7247, 11536, 12034,
18403, 18405, 7789, 7790, 7794, 12080, 12100,
18421, 18510, 7795, 7797, 7804, 7809 12890, 12927,
18517, 18519, 18522 \lastskip@a . . . . . . . 12959, 13168,
\large . . . . . . . . 425, . . . 7792, 7796, 7800 13187, 13987,
431, 496, 502, 516, \lastskip@b 7790, 7792, 14219, 14552,
668, 758, 768, 843, 7794, 7796, 7800, 7801 15014, 15026,
849, 912, 1010, \lastskip@d . . . . . . . 15038, 15754,
1020, 1095, 1101, 7789, 7795, 7797, 15835, 15840,

Index 546
15886, 15907, 21100, 21106, 21108 1131, 1132, 1137,
16057, 16071, \leftlinenumbers . . 1148, 1174, 1177,
16094, 16154, . . . . . 13409, 13412 1178, 1196, 5864,
16293, 16429, \leftmargin . . . . . 90, 5872, 5873, 6444,
16443, 16466, 293, 576, 577, 711, 6632, 6638, 6639,
16658, 16673, 712, 947, 974, 6644, 6655, 6678,
16843, 16858, 975, 1224, 1225, 6681, 6682, 6809,
17111, 17660, 2563, 2564, 4677, 6815, 6816, 6821,
18359, 18896, 5887, 5946, 5947, 6832, 6855, 6858,
18947, 19171, 5954, 5960, 6702, 6859, 7119, 7134,
19194, 19341, 6703, 6890, 6891, 7137, 7138, 7270,
19372, 19395, 7199, 7200, 8723, 7271, 7272, 7398,
19412, 19429, 8724, 8994, 8995, 7399, 7405, 8668,
19446, 19463, 10831, 10832, 8671, 8672, 8682,
19480, 19498, 13139, 15904, 8936, 9352, 10677,
19517, 19537, 16121, 16122, 10686, 10772,
19572, 19765, 16515, 16516, 10787, 10790,
19873, 19918, 16709, 16710, 10791, 13185,
20366, 20480, 16912, 16913, 13186, 13974,
20729, 20926, 17314, 17315, 14647, 14648,
20931, 20933, 17894, 17895, 15011, 15015,
20941, 20948, 18577, 18578, 15016, 15023,
21022, 21128, 21178 19244, 19245, 15028, 15035,
\left . 20942, 20949, 20955 20992, 20995, 15040, 15915,
\left@footnoterule 21005, 21009, 15917, 15928,
. . . . . . 30, 234, 21017, 21054, 15930, 15941,
415, 538, 722, 739, 21056, 21057, 15943, 15952,
958, 991, 1202, 21058, 21063, 15954, 16028,
1241, 6713, 6739, 21065, 21066, 16041, 16052,
6866, 6916, 7021, 21067, 21072, 16053, 16058,
7143, 8734, 8746, 21074, 21075, 16069, 16092,
8839, 9033, 10816, 21076, 21081, 16095, 16096,
10846, 11351, 21083, 21084, 21085 16424, 16425,
11357, 11370, \leftmargini . . . 4677, 16430, 16441,
11372, 11508, 5887, 5900, 5907 16464, 16467,
11522, 13165, \leftmarginii . . . . . 5901 16468, 16478,
13235, 16103, \leftmarginiii . . . . 5902 16491, 16540,
16149, 16286, \leftmarginiv . . . . . 5903 16656, 16671,
16526, 16546, \leftmarginv . . . . . . 5904 16674, 16675,
16683, 16743, \leftmarginvi . . . . . 5905 16680, 16681,
16865, 17099, \leftmarginwidth . 16680 16841, 16856,
17121, 17356, \leftmark . . . . . . . . 6237 16859, 16860,
17648, 17670, \leftskip . . . . . . 12, 19163, 19175,
17936, 18218, 13, 207, 208, 305, 19192, 19213,
18347, 18369, 18619 309, 513, 530, 533, 19215, 19220,
\leftfootnoterule . 534, 624, 637, 648, 19224, 19225,
1696, 8176, 9080, 649, 654, 665, 690, 19336, 19337,
11355, 11358, 693, 694, 875, 876, 19338, 19346,
11596, 12005, 21632 882, 892, 895, 896, 19367, 19368,
\leftline . . . . 15850, 909, 931, 1125, 19369, 19377,

Index 547
19390, 19391, 739, 740, 741, 779, 2753, 2787, 2920,
19392, 19400, 780, 781, 782, 783, 2923, 2931, 3166,
19407, 19408, 784, 785, 786, 787, 3188, 3210, 3211,
19409, 19417, 788, 823, 824, 825, 3341, 3421, 3423,
19424, 19425, 826, 827, 828, 829, 3424, 3425, 3426,
19426, 19434, 830, 831, 832, 833, 3427, 3482, 3518,
19441, 19442, 840, 867, 978, 989, 3525, 3531, 3542,
19443, 19451, 990, 991, 992, 993, 3548, 3556, 3559,
19458, 19459, 1031, 1032, 1033, 3562, 3570, 3574,
19460, 19468, 1034, 1035, 1036, 3576, 3641, 3642,
19475, 19476, 1037, 1038, 1039, 3647, 3754, 3757,
19477, 19485, 1040, 1075, 1076, 3788, 3874, 3881,
19493, 19494, 1077, 1078, 1079, 3884, 3894, 3904,
19495, 19503, 1080, 1081, 1082, 3915, 3982, 3992,
19512, 19513, 1083, 1084, 1085, 3994, 4028, 4039,
19514, 19522, 1092, 1119, 1228, 4130, 4146, 4166,
19532, 19533, 1239, 1240, 1241, 4181, 4197, 4290,
19534, 19542, 1242, 1243, 1281, 4311, 4312, 4328,
19567, 19568, 1282, 1283, 1284, 4371, 4374, 4376,
19569, 19577, 1285, 1286, 1287, 4381, 4395, 4403,
19617, 19618, 1288, 1289, 1290, 4404, 4424, 4425,
19619, 20297, 1325, 1326, 1327, 4452, 4463, 4468,
20359, 20360, 1328, 1329, 1330, 4472, 4474, 4477,
20361, 20367, 1331, 1332, 1333, 4487, 4498, 4525,
20370, 20417, 1334, 1335, 1343, 4536, 4545, 4594,
20477, 20482, 1369, 1370, 1374, 4599, 4615, 4616,
20505, 20512, 1390, 1391, 1392, 4617, 4618, 4620,
20881, 20882, 1428, 1429, 1430, 4621, 4622, 4623,
21089, 21115, 1455, 1456, 1457, 4669, 4799, 4800,
21116, 21175, 21180 1458, 1463, 1498, 4837, 4838, 4844,
\LEND . . . . . . . . . . . . 2056 1499, 1599, 1601, 4846, 4850, 4895,
\LenToUnit 8462, 8476, 8494 1603, 1733, 1734, 4896, 4978, 4980,
\leqno . . . . 328, 15846, 1741, 1828, 1882, 4982, 5128, 5129,
15848, 21623, 21625 1884, 1886, 1918, 5142, 5146, 5148,
\let . . . . . 86, 102, 115, 1991, 1992, 1993, 5149, 5155, 5159,
152, 153, 156, 157, 1994, 1995, 1996, 5163, 5172, 5416,
160, 161, 164, 222, 1997, 1998, 1999, 5417, 5435, 5436,
289, 319, 327, 328, 2000, 2001, 2139, 5454, 5455, 5482,
347, 379, 380, 383, 2140, 2141, 2168, 5483, 5511, 5512,
400, 404, 408, 413, 2185, 2186, 2187, 5513, 5610, 5631,
414, 415, 416, 417, 2188, 2189, 2190, 5632, 5633, 5639,
418, 419, 437, 438, 2191, 2192, 2193, 5660, 5661, 5662,
439, 440, 441, 442, 2195, 2196, 2197, 5668, 5689, 5690,
443, 444, 445, 446, 2307, 2308, 2309, 5691, 5707, 5711,
447, 448, 472, 473, 2310, 2311, 2312, 5712, 5713, 5716,
474, 475, 476, 477, 2313, 2314, 2315, 5720, 5721, 5722,
478, 479, 480, 481, 2567, 2576, 2649, 5725, 5729, 5730,
482, 483, 484, 491, 2667, 2691, 2710, 5731, 5878, 5942,
492, 493, 580, 603, 2715, 2740, 2741, 5983, 6070, 6137,
618, 715, 737, 738, 2748, 2749, 2752, 6138, 6139, 6329,

Index 548
6330, 6332, 6333, 8177, 8178, 8181, 9708, 9709, 9710,
6351, 6372, 6373, 8182, 8184, 8202, 9714, 9715, 9716,
6374, 6375, 6376, 8203, 8205, 8223, 9717, 9720, 9817,
6377, 6378, 6379, 8224, 8228, 8263, 9818, 9819, 9823,
6380, 6383, 6384, 8265, 8277, 8280, 9824, 9825, 9826,
6385, 6386, 6387, 8281, 8285, 8315, 9829, 9926, 9927,
6388, 6389, 6390, 8317, 8329, 8332, 9928, 9932, 9933,
6391, 6452, 6470, 8333, 8380, 8404, 9934, 9935, 9938,
6521, 6527, 6548, 8412, 8420, 8727, 10035, 10036,
6561, 6571, 6585, 8744, 8745, 8746, 10037, 10041,
6589, 6590, 6591, 8747, 8748, 8766, 10042, 10043,
6592, 6593, 6594, 8767, 8768, 8769, 10044, 10047,
6595, 6596, 6597, 8770, 8771, 8772, 10144, 10145,
6603, 6604, 6605, 8773, 8774, 8775, 10146, 10150,
6606, 6607, 6608, 8799, 8800, 8801, 10151, 10152,
6609, 6610, 6611, 8802, 8803, 8804, 10153, 10156,
6626, 6706, 6737, 8805, 8806, 8807, 10253, 10254,
6738, 6739, 6740, 8808, 8809, 8816, 10255, 10259,
6741, 6779, 6780, 8837, 8838, 8839, 10260, 10261,
6781, 6782, 6783, 8840, 8841, 8842, 10262, 10265,
6784, 6785, 6786, 8843, 8861, 8862, 10412, 10413,
6787, 6788, 6803, 8863, 8864, 8865, 10414, 10419,
6894, 6914, 6915, 8866, 8867, 8868, 10420, 10426,
6916, 6917, 6918, 8869, 8870, 8871, 10427, 10428,
6956, 6957, 6958, 8872, 8896, 8897, 10429, 10430,
6959, 6960, 6961, 8898, 8899, 8900, 10431, 10435,
6962, 6963, 6964, 8901, 8902, 8903, 10436, 10467,
6965, 7014, 7019, 8904, 8905, 8906, 10469, 10471,
7020, 7021, 7022, 8907, 8908, 8915, 10472, 10477,
7023, 7024, 7025, 8916, 8917, 8998, 10478, 10484,
7043, 7044, 7045, 9048, 9049, 9050, 10485, 10486,
7046, 7047, 7048, 9051, 9052, 9053, 10488, 10490,
7049, 7050, 7051, 9062, 9063, 9064, 10492, 10493,
7052, 7053, 7054, 9065, 9066, 9067, 10497, 10498,
7078, 7079, 7080, 9068, 9069, 9070, 10525, 10534,
7081, 7082, 7083, 9071, 9072, 9073, 10546, 10558,
7084, 7085, 7086, 9078, 9079, 9080, 10589, 10608,
7087, 7088, 7089, 9081, 9082, 9182, 10622, 10692,
7090, 7097, 7098, 9183, 9184, 9185, 10762, 10835,
7099, 7203, 7227, 9186, 9187, 9190, 10844, 10845,
7229, 7232, 7233, 9191, 9192, 9193, 10846, 10847,
7234, 7240, 7245, 9194, 9195, 9199, 10848, 10866,
7265, 7277, 7278, 9387, 9388, 9389, 10867, 10868,
7279, 7281, 7282, 9393, 9394, 9395, 10869, 10870,
7288, 7289, 7290, 9396, 9399, 9496, 10871, 10872,
7291, 7311, 7320, 9497, 9498, 9502, 10873, 10874,
7361, 7367, 7388, 9503, 9504, 9505, 10875, 10899,
7560, 7563, 7564, 9508, 9599, 9600, 10900, 10901,
7623, 7626, 7627, 9601, 9605, 9606, 10902, 10903,
8174, 8175, 8176, 9607, 9608, 9611, 10904, 10905,

Index 549
10906, 10907, 12830, 12832, 15807, 15808,
10908, 10909, 12833, 12834, 15811, 15812,
10916, 10972, 12835, 12836, 15814, 15819,
10999, 11002, 12837, 12838, 15842, 15843,
11003, 11035, 12839, 12851, 15844, 15845,
11038, 11039, 12854, 12857, 15846, 15908,
11121, 11122, 12860, 13027, 15912, 15914,
11124, 11125, 13028, 13029, 15925, 15927,
11128, 11129, 13030, 13045, 15938, 15940,
11158, 11160, 13056, 13135, 15950, 15951,
11162, 11172, 13152, 13201, 15962, 15963,
11173, 11174, 13245, 13281, 15964, 15965,
11180, 11184, 13291, 13296, 15966, 15979,
11187, 11190, 13504, 13516, 15985, 15997,
11192, 11195, 13827, 13828, 16005, 16006,
11196, 11330, 13829, 13831, 16022, 16125,
11358, 11384, 13833, 13837, 16147, 16148,
11385, 11494, 13839, 13841, 16149, 16150,
11508, 11522, 13842, 13844, 16151, 16189,
11548, 11549, 13845, 13846, 16190, 16191,
11550, 11551, 13850, 13856, 16192, 16193,
11585, 11600, 13868, 13904, 16194, 16195,
11606, 11611, 13905, 13906, 16196, 16197,
11746, 11747, 13966, 13967, 16198, 16233,
11748, 11749, 13968, 13969, 16234, 16235,
11801, 11804, 13970, 13978, 16236, 16237,
11805, 11850, 14025, 14026, 16238, 16239,
11853, 11854, 14027, 14615, 16240, 16241,
11990, 12005, 14616, 14617, 16242, 16243,
12006, 12007, 14618, 14619, 16250, 16277,
12008, 12009, 14620, 14621, 16284, 16285,
12103, 12137, 14622, 14623, 16286, 16287,
12139, 12167, 14679, 14682, 16288, 16289,
12169, 12174, 14683, 14685, 16290, 16328,
12176, 12180, 14686, 14783, 16329, 16330,
12182, 12513, 14786, 14787, 16331, 16332,
12514, 12515, 14883, 14886, 16333, 16334,
12556, 12557, 14887, 15122, 16335, 16336,
12558, 12600, 15125, 15151, 16337, 16338,
12601, 12602, 15152, 15155, 16339, 16374,
12615, 12616, 15156, 15159, 16375, 16376,
12617, 12630, 15160, 15361, 16377, 16378,
12631, 12632, 15362, 15363, 16379, 16380,
12638, 12640, 15471, 15472, 16381, 16382,
12641, 12642, 15473, 15474, 16383, 16384,
12643, 12644, 15475, 15477, 16385, 16386,
12645, 12646, 15516, 15521, 16394, 16395,
12655, 12691, 15535, 15567, 16396, 16519,
12729, 12762, 15756, 15760, 16544, 16545,
12793, 12824, 15805, 15806, 16546, 16547,

Index 550
16548, 16549, 17223, 17224, 18367, 18368,
16550, 16578, 17225, 17226, 18369, 18370,
16579, 16580, 17227, 17228, 18371, 18372,
16581, 16582, 17229, 17230, 18373, 18375,
16583, 16584, 17231, 17232, 18439, 18456,
16585, 16586, 17233, 17234, 18457, 18458,
16587, 16588, 17235, 17239, 18459, 18460,
16589, 16618, 17240, 17241, 18461, 18462,
16619, 16620, 17326, 17351, 18463, 18464,
16621, 16622, 17352, 17376, 18465, 18466,
16623, 16624, 17377, 17378, 18467, 18468,
16625, 16626, 17379, 17380, 18469, 18470,
16627, 16628, 17381, 17387, 18471, 18472,
16629, 16630, 17388, 17389, 18473, 18474,
16636, 16637, 17390, 17391, 18475, 18476,
16638, 16713, 17392, 17486, 18477, 18478,
16737, 16741, 17488, 17494, 18479, 18480,
16742, 16743, 17496, 17607, 18481, 18482,
16744, 16745, 17608, 17609, 18483, 18487,
16746, 16747, 17668, 17669, 18488, 18489,
16765, 16766, 17670, 17671, 18589, 18614,
16767, 16768, 17672, 17673, 18615, 18639,
16769, 16770, 17674, 17676, 18640, 18641,
16771, 16772, 17740, 17757, 18642, 18643,
16773, 16774, 17758, 17759, 18644, 18650,
16775, 16776, 17760, 17761, 18651, 18652,
16800, 16801, 17762, 17763, 18653, 18654,
16802, 16803, 17764, 17765, 18655, 18749,
16804, 16805, 17766, 17767, 18751, 18757,
16806, 16807, 17768, 17769, 18759, 18887,
16808, 16809, 17770, 17771, 18888, 18889,
16810, 16811, 17772, 17773, 18892, 18948,
16812, 16819, 17774, 17775, 18949, 18950,
16820, 16821, 17776, 17777, 18953, 18964,
16916, 16941, 17778, 17779, 18965, 18966,
16968, 16969, 17780, 17781, 18973, 18974,
16986, 17058, 17782, 17783, 18979, 18988,
17059, 17060, 17784, 17788, 18989, 18990,
17119, 17120, 17789, 17790, 18992, 18995,
17121, 17122, 17906, 17931, 18999, 19002,
17123, 17124, 17932, 17956, 19004, 19007,
17125, 17127, 17957, 17958, 19016, 19019,
17191, 17208, 17959, 17960, 19032, 19033,
17209, 17210, 17961, 17967, 19034, 19049,
17211, 17212, 17968, 17969, 19050, 19051,
17213, 17214, 17970, 17971, 19052, 19053,
17215, 17216, 17972, 18066, 19054, 19056,
17217, 17218, 18068, 18074, 19057, 19060,
17219, 17220, 18076, 18306, 19061, 19135,
17221, 17222, 18307, 18308, 19136, 19139,

Index 551
19141, 19142, 21125, 21129, 7444, 7450, 7451,
19143, 19158, 21130, 21131, 7453, 7454, 7463,
19187, 19216, 21134, 21146, 7464, 7466, 7467,
19221, 19227, 21147, 21148, 7473, 7474, 7476,
19230, 19248, 21149, 21155, 7477, 7486, 7487,
19310, 19314, 21156, 21157, 7489, 7490, 7496,
19343, 19344, 21195, 21247, 7497, 7499, 7500,
19345, 19374, 21250, 21251, 15849, 15850, 15851
19375, 19376, 21294, 21297, \LineNumber . . . 13387,
19397, 19398, 21298, 21528, 13389, 13391,
19399, 19414, 21530, 21533, 13396, 13399, 13401
19415, 19416, 21545, 21547, \linenumberwidth . .
19431, 19432, 21549, 21551, . 13389, 13396, 13401
19433, 19448, 21553, 21555, \lineskip . . . . . 401,
19449, 19450, 21558, 21559, 426, 497, 759,
19465, 19466, 21561, 21562, 844, 1011, 1096,
19467, 19482, 21568, 21569, 1261, 1347, 1356,
19483, 19484, 21570, 21575, 2396, 6759, 6936,
19500, 19501, 21587, 21590, 7032, 7103, 8755,
19502, 19519, 21592, 21599, 8820, 8850, 8921,
19520, 19521, 21603, 21605, 10855, 10920,
19539, 19540, 21608, 21609, 11176, 13869,
19541, 19574, 21622, 21623, 13975, 15976,
19575, 19576, 21631, 21632, 16169, 16254,
19639, 19794, 21633, 21780, 21782 16308, 16400,
19931, 20012, \Letter . . . . . . . . . . 2412 16409, 16567,
20015, 20045, \lettergroup . . . . . . 5994 16643, 16754,
20278, 20494, \LettrineDepth . . . 13303 16825, 17149,
20502, 20507, \LettrineHeight . . . 17263, 17698,
20514, 20531, . 13302, 13310, 13315 17812, 18397,
20534, 20594, \LettrineSecondString 18511, 18968,
20652, 20656, . . . . . . . . . . 13261 19007, 21151, 21571
20734, 20739, \LettrineTextFont . \lineskiplimit . . . .
20749, 20753, . 13261, 13269, 13314 . . . . . 11177, 21571
20782, 20792, \LettrineWidth . . . . \linespacing . . 24, 13173
20796, 20836, . . . . . 13294, 13301 \linespread . . . . . . . 3152
20840, 20905, \lftside . . . . . 15686, \linewidth . . . . 2520,
20906, 20907, 15688, 15691, 4872, 11071,
20908, 20911, 15693, 15707, 15709 11086, 11090,
20912, 20914, \Line . . . . . . . . . 8407, 11758, 11766,
20919, 20921, 8410, 8415, 8418, 11767, 11769,
20923, 20935, 8423, 8424, 8427, 11770, 12203,
20936, 20937, 8428, 8432, 8433, 13344, 13347,
20938, 20942, 8436, 8437, 8441, 13369, 13371,
20943, 20949, 8442, 8445, 8446, 13972, 14687,
20950, 20951, 8450, 8451, 8454, 8455 14693, 15428,
20963, 20985, \line . . . . . 7417, 7418, 15430, 15448,
21047, 21088, 7420, 7421, 7427, 15450, 15644,
21091, 21092, 7428, 7430, 7431, 15650, 15736,
21106, 21107, 7440, 7441, 7443, 15745, 15746,

Index 552
15799, 15801, 12154, 12157, 15171, 15625,
15969, 17472, 12159, 12162, 15834, 16152,
18052, 18735, 12164, 13375, 16217, 16291,
20883, 20893, 18914, 19176, 19194 16358, 16554,
20991, 20992, \LoadClass . . . 6179, 6203 16597, 16783,
21019, 21054, \long . . . . . . . . 34, 48, 17074, 17623,
21056, 21057, 64, 237, 251, 266, 18197, 18297,
21058, 21063, 455, 742, 807, 994, 18322, 18886,
21065, 21066, 1057, 1244, 1309, 19072, 19076,
21067, 21072, 1984, 2202, 2205, 19079, 19083,
21074, 21075, 2208, 2213, 2216, 20728, 20925,
21076, 21081, 2219, 2685, 2686, 21021, 21398,
21083, 21084, 2695, 2698, 2709, 21402, 21406,
21085, 21517, 21520 2888, 2892, 2925, 21442, 21446,
\link . . . . . . . . . . . . 2526 3168, 3172, 3282, 21450, 21509, 21612
\list . . . . . . . . . . 89, 3301, 3376, 3392, \longindentation . . 9026
292, 574, 709, 945, 3404, 3413, 3445, \longthickrule . . . .
972, 1222, 5925, 3473, 3485, 3486, . . . . . 16635, 16641
5943, 5952, 5960, 3854, 3856, 3861, \loop . . . . . 1783, 1784,
6700, 6888, 7197, 3862, 3879, 3880, 1785, 3937, 3947,
8721, 8992, 10829, 3887, 3896, 3899, 7510, 7680, 7686,
13138, 15353, 3906, 3924, 4542, 7791, 7846, 7858,
16119, 16513, 4806, 4955, 5215, 10381, 10390,
16707, 16910, 5219, 5223, 5259, 13331, 15642,
17310, 17890, 5263, 5267, 5303, 15678, 15705,
18573, 19242, 20974 5307, 5311, 5522, 15716, 15743, 19027
\listdoubleitemmaincolumnwidth 5609, 5638, 5667, \looprepeat 3954, 3958,
. . . . 2466, 2479, 6478, 6481, 6484, 4002, 4073, 4080,
2480, 2481, 2508, 2512 6488, 6491, 6494, 4085, 4091, 4094,
\listfigurename 5847, 5848 6742, 6919, 7061, 4096, 4100, 4101, 4106
\listitemmaincolumnwidth 7354, 8183, 8204, \lower 1637, 1912, 15840,
. . . . . . . . 2465, 8782, 8879, 10882, 15874, 15882,
2473, 2474, 2506 11432, 11449, 20722, 20931, 20933
\listitemsymbol . . . 11465, 11493,
\lowercase . . . . 2755,
. . . . 2407, 2464, 11507, 11521,
2763, 2771, 2779
2505, 2507, 7985, 8083 12010, 12024,
\lowertitleback . . .
\listitemsymbolwidth 12033, 12079,
. 17232, 17781, 18480
. . . . . . . . 2463, 12120, 12127,
2464, 2474, 2480 \LR 13028, 15807, 15840,
12559, 12570,
\listoffigures . . . . 5845 20907, 20931, 20933
12581, 12592,
\listoftables . . . . . 5853 12607, 12622, \lrb . . . . . . . . . 2054, 2063
\listparindent . . . . 12665, 12682, \LRE . . . . . . 1600, 1644,
. 945, 5945, 5952, 12703, 12720, 1883, 1917, 13027,
5953, 20981, 20990 12736, 12753, 15807, 15810,
\listtablename 5855, 5856 12767, 12784, 20534, 20907, 20910
\llap . . . . . 5932, 8517, 12798, 12815, \Lreset@listparshape
9218, 9230, 9242, 13040, 13456, . . . . . . . . . . 13378
10978, 10984, 14629, 14679, \LRfootnoterule . . .
12012, 12148, 14729, 14751, . . 8178, 9082, 11358
12150, 12152, 15163, 15167, \lsb . . . . . . . . . 2053, 2061

Index 553
\lst@@caption . 13477, \LT@makecaption . . . \LTRfootfootmark . .
13483, 13490, 13495 . . 13871, 13882, 9103, 9228, 9442,
\lst@alloverstyle . 17463, 18043, 18726 9548, 9654, 9763,
. . . . . . . 2042, 2048 \LT@mcol 13827, 13872, 9872, 9981, 10090,
\lst@HRefStepCounter 17471, 18051, 18734 10199, 10308, 10576
. . . . . 13477, 13483 \LT@no@pgbk . 13835, 13836 \LTRfootmarkstyle .
\lst@ifnumberbychapter \LT@nofcols . . . . . . 13866 . . . . . . . 9214, 9253
. . . . . 13516, 13517 \LT@output . . . . . . 13918 \LTRfootnote . . . 418,
\lst@Key . . . 13420, 13427 \LT@p@ftn . . . . 12660, 492, 2140, 2148,
\lst@MakeCaption . . 12663, 12667, 5701, 6051, 7024,
. . . . . 13475, 13488 12677, 12698, 7098, 8842, 8916,
12701, 12705, 11413, 16289,
\lst@makecaption . .
12715, 13911, 16395, 16549,
. . . . . 13472, 13505
13912, 13914, 13915 16637, 16746,
\lst@maketitle 13473,
\LT@p@ftntext . . . . 13904 16820, 17124,
13506, 13510, 13512
\LT@p@LTRftntext . . 17240, 17673,
\lst@title@dropdelim 17789, 18372, 18488
. . . . . . . . . . 13473 . . . . . . . 12658,
12665, 13905, 13910 \LTRfootnotetext . .
\lstKV@SwitchCases . . . . 2206, 2217,
. . . . . 13421, 13428 \LT@p@RTLftntext . .
. . . . . . . 12696, 6482, 6492, 11569,
\lstset . . . . . . . . . . 2012 11571, 12661,
12703, 13906, 13913
\LT@@hl . . . . 13829, 13831 13911, 19073, 19077
\LT@rows . . . 13861, 13891
\LT@@tabarray 13828, 13832 \LTRfootscript . 9214,
\LT@setprevdepth . 13862
\LT@array . . . . 13036, 9231, 9235, 9237
\LT@start . . 13053, 13063
13818, 17486, \LTRfoottextfont . .
\LT@startpbox . . . . .
17487, 18066, 9104, 9140, 9165,
. 13843, 13850, 13902
18067, 18749, 18750 9293, 9414, 9442,
\LT@tabularcr . . . . 13833
\LT@bchunk . . . . . . . 9462, 9522, 9548,
\LTcaptype . . . . . . . 9567, 9626, 9654,
. 13859, 13866, 13870
. 13884, 13893, 13894 9674, 9735, 9763,
\LT@caption . . . 13837,
\LTcapwidth . . . . . . . 9783, 9844, 9872,
17488, 17494,
. 13872, 13885, 13886 9892, 9953, 9981,
17496, 18068,
\LTleft . . . . . . 13821, 10001, 10062,
18074, 18076,
13823, 13825, 13863 10090, 10110,
18751, 18757, 18759
\LTR . . 15799, 20883, 20885 10171, 10199,
\LT@cols . . . . . 13872,
\LTR@column@boxes . 10219, 10280,
17471, 18051, 18734
. . . . . . . 15079, 10308, 10328,
\LT@end@pen . . . . . . 13920
15095, 15126, 15128 10548, 10576, 10611
\LT@endpbox . . . . . . 13839
\LTR@outputdblcol . \LTright . . . . . 13821,
\LT@err . . . . . . . . . 13921 . . . 7610, 11023, 13823, 13825, 13864
\LT@foot . . . . . 13051, 11784, 14870, \LTRmarginnote . . . . 5715
13055, 13924, 21281, 21325, 21327 \LTRmarginpar . . . . 21381
13928, 13937, 13940 \LTRbidituftesidenotemarginpar \LTRmulticolcolumns
\LT@head . . . 13931, 13944 . . . 5242, 5568, 5718 . . . . . . . . . . 15124
\LT@hline . . . . . . . 13837 \LTRcite . . . . . . . . . \LTRsidenote . . 5437, 5697
\LT@kill . . . . . . . . 13837 5512, 5632, 5661, \LTRthanks . 418, 438,
\LT@lastfoot . . . . . . 5690, 5712, 5721, 5730 473, 492, 6051,
. 13924, 13926, 13937 \LTRcolumnfootnotes 9201 6059, 6076, 6092,
\LT@LL@FM@cr 13846, 13850 \LTRdblcol . . . . . . 21327 6103, 7024, 7044,
\LT@make@row . . . . . 13867 \LTRdfnmakecol . . . . 8336 7079, 7098, 8842,

Index 554
8862, 8897, 8916, 10170, 10180, \m@make@mptwocol@footgroup
11567, 14616, 10206, 10218, . . . . . . . 9398, 9488
16289, 16329, 10231, 10242, \m@make@ninecol@footgroup
16375, 16395, 10247, 10269, . . . . . 10149, 10240
16549, 16579, 10279, 10289, \m@make@para@footgroup
16619, 16637, 10315, 10327, . 10417, 10475, 10634
16746, 16766, 10340, 10351, \m@make@para@footstart
16801, 16820, 10356, 10438, . . 10418, 10424,
17124, 17209, 10500, 10535, 10476, 10482, 10672
17240, 17673, 10547, 10559, \m@make@sevencol@footgroup
17758, 17789, 10590, 10609, . . . . . . 9931, 10022
18372, 18457, 18488 10623, 10641, \m@make@sixcol@footgroup
\ltx@firstofthree . 10651, 10660, 10669 . . . . . . . 9822, 9913
. . . . . 11283, 11307 \m@m@h . . . . 9368, 9370, \m@make@tencol@footgroup
\ltx@ifundefined . . 9372, 9375, 9376, 9381 . . . . . 10258, 10349
. . . . . 11277, 11301 \m@m@k . . . . 9368, 9370, \m@make@threecol@footgroup
\ltx@secondofthree 9375, 9378, 9379, 9381 . . . . . . . 9501, 9586
. . . . . 11286, 11310 \m@m@makecolfloats \m@make@twocol@footgroup
\ltx@thirdofthree . . 10690, 10743, 10749 . . . . . . . 9392, 9483
. 11279, 11296, 11303 \m@m@makecolintro . \m@mdoextrafeet . . .
. 10705, 10734, 10747 . 9262, 10742, 10756
M \m@m@makecoltext . . \m@mdoextrafeetendmini
\m@addvipersep . . . . . 10694, 10744, 10757 . . . . . . . 9331, 9344
. . . . . 14812, 14912 \m@m@singlespace . . 9203 \m@mdoextrafeetmini 9303
\m@m@float@spacing 9205 \m@make@eightcol@footgroup\m@mdosplits . . . 9373,
\m@m@footnote@spacing . . . . . 10040, 10131 9377, 9378, 9379
. . . . . . . . 9110, \m@make@fivecol@footgroup \m@minterparanoteglue
9124, 9138, 9152, . . . . . . . 9713, 9804 . . . . . 10374, 10376
9163, 9174, 9204, \m@make@footstart . \m@mipn@skip . . . . . .
9403, 9413, 9423, . . . . . . . 9349, 9361 . 10366, 10373, 10375
9449, 9461, 9474, \m@make@fourcol@footgroup \m@mmakehboxofhboxes
9485, 9490, 9512, . . . . . . . 9604, 9695 . . . . . . . 10378,
9521, 9530, 9555, \m@make@mpeightcol@footgroup 10388, 10638,
9566, 9578, 9588, . . . . . 10046, 10136 10648, 10658, 10667
9593, 9615, 9625, \m@make@mpfivecol@footgroup \m@mmf@prepare . 9120,
9635, 9661, 9673, . . . . . . . 9719, 9809 9134, 9148, 9209,
9686, 9697, 9702, \m@make@mpfourcol@footgroup 9411, 9421, 9431,
9724, 9734, 9744, . . . . . . . 9610, 9700 9457, 9470, 9482,
9770, 9782, 9795, \m@make@mpninecol@footgroup 9519, 9528, 9537,
9806, 9811, 9833, . . . . . 10155, 10245 9562, 9574, 9585,
9843, 9853, 9879, \m@make@mppara@footgroup 9623, 9633, 9643,
9891, 9904, 9915, . 10433, 10495, 10654 9669, 9682, 9694,
9920, 9942, 9952, \m@make@mpsevencol@footgroup 9732, 9742, 9752,
9962, 9988, 10000, . . . . . . 9937, 10027 9778, 9791, 9803,
10013, 10024, \m@make@mpsixcol@footgroup 9841, 9851, 9861,
10029, 10051, . . . . . . . 9828, 9918 9887, 9900, 9912,
10061, 10071, \m@make@mptencol@footgroup 9950, 9960, 9970,
10097, 10109, . . . . . 10264, 10354 9996, 10009,
10122, 10133, \m@make@mpthreecol@footgroup 10021, 10059,
10138, 10160, . . . . . . . 9507, 9591 10069, 10079,

Index 555
10105, 10118, 15053, 15900, 8146, 8743, 8767,
10130, 10168, 16666, 16851, 8778, 8800, 8836,
10178, 10188, 16888, 17550, 8864, 8875, 8899,
10214, 10227, 18128, 18131, 10843, 10867,
10239, 10277, 18811, 18814, 10878, 10900,
10287, 10297, 19322, 19364, 12830, 12831,
10323, 10336, 20303, 21393, 13196, 14624,
10348, 10544, 21437, 21472, 21475 16145, 16190,
10556, 10568, \m@th . . . . . 403, 8506, 16212, 16234,
10605, 10619, 10633 8511, 8517, 11071, 16282, 16331,
\m@mold@footnotetext 11086, 13868, 16353, 16377,
. . 9182, 9190, 10467 20375, 20484, 16543, 16581,
\m@mold@LTRfootnotetext 20955, 21049, 16592, 16621,
. . . . . . . 9183, 9191 21121, 21123, 21182 16740, 16768,
\m@mold@mpfootnotetext \maincolumnwidth . . 16779, 16803,
. . 9185, 9193, 10488 2461, 2470, 2471, 17113, 17184,
\m@mold@mpLTRfootnotetext 2472, 2473, 2475, 17211, 17662,
. . . . . . . 9186, 9194 2479, 2494, 2498, 2523 17733, 17760,
\m@mold@mpRTLfootnotetext \mainmatter . . . . . . . 6230 18361, 18432, 18459
. . 9187, 9195, 10493 \makeatletter . 3348, 3367 \maketitledetailsnewline
\m@mold@RTLfootnotetext \makebox . . . . . . . . . 8141, 8156, 8158,
. . 9184, 9192, 10472 8505, 8510, 8579, 8159, 8160, 8161, 8162
\m@mopfootnote . . . . 8582, 8585, 8592, \maketitledetailswidth
. . . . . 10706, 10740 8600, 8607, 8648, . . . . 8133, 8135,
\m@mremovehboxes . . 8652, 15465, 15483 8136, 8137, 8138, 8153
. . . . . . . 10396, \makefooter . . . . . . . \maketitlehookb . . 14674
10397, 10639, . . . 8050, 8051, 8067 \maketitlehookc . . 14676
10649, 10659, 10668 \MakeFramed . . . . . . 11624
\maketitlenamefullwidth
\m@mrigidbalance 9370, \makelabel . . 5932, 20985
. . . 8127, 8128, 8130
9375, 9487, 9492, \MakeLineNo . . . . . . 13381
9590, 9595, 9699, \makeLineNumber . . . \maketitlenamemaxwidth
9704, 9808, 9813, . . . . . 13382, 13384 . . . 8125, 8126, 8130
9917, 9922, 10026, \makeLineNumberLeft \maketitlenamewidth
10031, 10135, . . . . . . . . . . 13387 . . . . . . . . 8129,
10140, 10244, \makeLineNumberRight 8130, 8136, 8148
10249, 10353, 10358 . . . . . . . . . . 13395 \maketitlepage 6113, 6155
\m@msplitoff . . 9378, 9380 \maketag@@@ . . . . 336, \maketitlepicturewidth
\m@mungebox . . . . . . . 8503, 8516, 13950 . . . . . . . . 8131,
. . 10367, 10544, \makethanksmark . . 14629 8132, 8138, 8167
10556, 10568, \maketitle . 110, 313, \MakeUppercase . 125,
10605, 10619, 10633 320, 412, 440, 451, 571, 599, 600,
\m@munvxh . . 10359, 10368 475, 735, 780, 802, 615, 706, 864,
\m@ne 304, 551, 560, 2739, 824, 987, 1032, 969, 1116, 1219,
2928, 3674, 3681, 1054, 1076, 1237, 6623, 6697, 6800,
3933, 3938, 3948, 1282, 1304, 1326, 6885, 7010, 7011,
4029, 5210, 5254, 1980, 1992, 2487, 7194, 8718, 8989,
5298, 6971, 7129, 6027, 6131, 6155, 10826, 13211,
7166, 7510, 8690, 6735, 6780, 6912, 16019, 16116,
8699, 8960, 10782, 6957, 7018, 7046, 16274, 16510,
10799, 12883, 7057, 7081, 8032, 16733, 16734, 16907

Index 556
\marginline . . . . . . . 20459, 20463, \meaning . . . . . . . . .
. 17369, 17949, 18632 20467, 20471, 2648, 2651, 2894,
\marginnote . . . . . . . 5706 20656, 21238, 3338, 3365, 3380,
\marginpar . . . . . . . 21239, 21241, 3398, 3406, 3415, 3479
4776, 5484, 17370, 21285, 21286, 21288 \mediabutton . . . . . .
17950, 18633, 20570 \mbox . 12108, 13375, 18300 . 14548, 14608, 14609
\marginparpush 4709, 21491 \mc@col@status@write \medskip . . . . . . . . . 6337
\marginparsep . . . . . . . . . . 15083, 15107 \medskipamount . . . . 9028
. . . . 1970, 2372, \mc@gridwarn . . . . . 15073 \mem@makecol 10733, 10759
4750, 4753, 4757, \mc@lastcol@status@write \memRTLleftskip . . 14647
4909, 4916, 12147, . . . . . 15089, 15115 \memRTLraggedleft 14652
12149, 12153, \mdf@footenotedistance@length \memRTLraggedright 14651
12158, 12161, . . . . . . . . . . 14013 \memRTLrightskip . 14648
12163, 21502, 21504 \mdf@footnoteinput 14021 \memRTLvleftskip . 14649
\marginparwidth 1969, \mdf@footnoteoutput \memRTLvrightskip 14650
2373, 4749, 4754, . . . . . . . . . . 14010 \message . . 1855, 1857,
4766, 4864, 5134, \mdf@frametitleaboveskip@length 11632, 11640,
5227, 5271, 5315, . . . . . . . . . . 14005 11644, 11649,
12147, 12149, \mdf@frametitlealignment 11657, 11663,
12161, 12163, . . . . . . . . . . 13986 11673, 11678,
21410, 21454, 21504 \mdf@frametitlebelowskip@length 11680, 11687,
\markboth . . . . . 124, . . . . . . . . . . 14006 11695, 11708,
565, 6235, 8704, 13210 \mdf@frametitlebox 11716, 11721,
\math@cr@@@align . . 338 . . 13985, 13998, 11726, 11739,
\mathindent . 11072, 11088 13999, 14000, 11750, 11758, 11770
\mathsurround . . . . . 7244 14001, 14003, 14004 \MessageBreak . . . . .
\max@poem@no . . . . . . \mdf@frametitlefont . . . . . 148, 3591,
. . . 6430, 6532, 6533 . . . . . . . . . . 13988 3605, 3617, 3629,
\maxdepth . . . . 10745, \mdf@frametitlefontcolor 4306, 4317, 4324,
10758, 11996, 12003 . . . . . . . . . . 13987 4336, 4342, 4440,
\maxdimen . . . . . . . . \mdf@horizontalmargin@equation 4493, 4494, 4495,
7551, 7552, 7554, . . . . . . . . . . 13963 4509, 4510, 4512,
7614, 7615, 7617, \mdf@ignorevbadness 4790, 4886, 5113,
10540, 10552, . . . . . . . . . . 13997 5114, 5182, 5786,
10564, 10601, \mdf@lrbox . 13956, 13985 5787, 5788, 5790,
10615, 10629, \mdf@par@local . . . 13979 5791, 5795, 5796,
10943, 10991, \mdf@patchamsthm . 13957 5797, 5799, 5800,
10992, 10993, \mdfframedtitleenv 13984 13266, 13308,
11027, 11028, \mdfframetitleboxdepth 13309, 13312,
11029, 11631, . . . . . . . . . . 14001 14725, 14726,
11792, 11793, \mdfframetitleboxheight 15056, 15075,
11795, 11841, . . . . . . . . . . 14000 15147, 15224,
11842, 11844, \mdfframetitleboxtotalheight 15231, 17185,
14774, 14775, . . . . . . . . . . 14002 17336, 17343,
14777, 14874, \mdfframetitleboxwidth 17734, 17916,
14875, 14877, . . . . . . . . . . 13999 17923, 18433,
19020, 19059, \mdseries . . . . . . . . 18599, 18606,
20435, 20438, . 307, 8026, 8028, 19947, 19949, 19952
20443, 20447, 8030, 8031, 8118, \MH . . . . . . . 8515, 8519,
20451, 20455, 8119, 8120, 8123, 8124 8524, 8525, 8529,

Index 557
8533, 8534, 8538, 14474, 14475, \mult@info . . . . . . 15054
8546, 8548, 8553, 14478, 14509, \mult@LTRfootnotetext
8565, 8573, 8578, 14514, 14516, . . . . . . 155, 157,
8581, 8584, 8586, 14523, 14524, 15154, 15156, 15167
8587, 8589, 8590, 14527, 14542, \mult@rightbox . . . .
8593, 8594, 8596, 14546, 14549, . . 15047, 15087,
8597, 8599, 8601, 14551, 14560, 15088, 15090,
8602, 8604, 8605, 14563, 14573, 15112, 15113, 15116
8608, 8609, 8611, 14574, 14576, \mult@RTLfootnotetext
8612, 8614, 8619, 14599, 14605, 14609 . . . . . . 159, 161,
8620, 8621, 8622, \mkern . . . . . . . 20376, 15158, 15160, 15171
8623, 8624, 8625, 20377, 20485, 21183 \multfootsep . . 5526, 5544
8626, 8627, 8636, \mobile . . . . . . . . . . 2449 \multi@column@out .
8638, 8642, 8643, 8645 \Mobilefone . . . . . . . 2409 . . . . . 15216, 15259
\MHInternalSyntaxOff \mobilesymbol . . . . . \multicol@leftmargin
. . . . . . 8660, 13953 . . . 2409, 8060, 8158 . . . . . 15057, 15066
\MHInternalSyntaxOn \modernpoem . . . . . . . 6585 \multicols . . . . . . 15135
. . . . . . 8500, 13947 \modernpoem@obeylines \multicolumn 13827, 18994
\MidFrameCommand . . . . . . . . . 6332, 6585 \multiplefootnotemarker
. 11620, 11664, 11732 \modernpoem@par . . . . . . . . . . . 5525,
\minrowclearance . . . . . 6332, 6333, 6549 5541, 5635, 5636,
. . . 1460, 1494, 7349 \morefloats . . . 5016, 5113 5664, 5665, 5693,
\mintagvsep . . . . . . . 8520 \moreLRE . . . . . . 1601, 5694, 9208, 9210, 9211
\missingfigure . . . . 1884, 15761, 20841 \multiply . . . . . 1954,
. . . . . 20614, 20644 \moreRLE . . . . . . 1603, 1959, 2297, 10455,
\mix 14042, 14043, 14050, 1886, 15762, 20842 10517, 15196,
14051, 14077, \moveleft . . . 5166, 14968 15197, 15200,
14094, 14117, \moveright . . . . . . . 15201, 15661, 15665
14120, 14122, . 11178, 15066, 21574 \myrefname . . . . . . 18251
14145, 14177, \mp@footgroupv@r . .
14185, 14194, . . . . 9322, 9367, N
14205, 14216, 9399, 9508, 9611, \n@xt . . . . . . . . . 1599,
14218, 14223, 9720, 9829, 9938, 1601, 1603, 1604,
14224, 14226, 10047, 10156, 1882, 1884, 1886, 1887
14227, 14229, 10265, 10435, 10497 \na . . . . . 15664, 15666,
14241, 14250, \mp@LTRfootgroupv@l 15668, 15677,
14253, 14254, . . . . . . . . 9314, 15679, 15704, 15705
14255, 14265, 9326, 10436, 10498 \narrower . . . . . . . 21114
14275, 14276, \mpfootnoterule . . . \NAT@bibitem@first@sw
14278, 14279, . . . . . 11385, 11389 . . . . . . . . . . 15361
14284, 14285, \msg . . . . 14097, 14100, \nb 15664, 15667, 15668,
14301, 14303, 14148, 14151, 15677, 15678,
14305, 14310, 14166, 14169, 14211 15699, 15715, 15716
14349, 14356, \MT . 8539, 8545, 8547, 13948 \NC@find . . . . . . . . 19026
14357, 14360, \mult@cols . . . . . . 15162 \NC@rewrite@X . . . . 19025
14378, 14380, \mult@footnotetext \NeedsTeXFormat . . .
14383, 14385, . . . . . . 151, 153, . . . . 1501, 1947,
14388, 14395, 15150, 15152, 15163 2003, 2136, 2328,
14403, 14405, \mult@gfirstbox . . . 2577, 2645, 4625,
14458, 14463, . 15080, 15097, 15103 5191, 5733, 5879,

Index 558
5995, 6022, 6171, 3504, 3507, 3511, 6319, 6338, 6535,
6195, 6260, 7970, 8068 3514, 3528, 3538, 6536, 8141, 8335,
\new@command . . 2930, 2932 3551, 3566, 4128, 8336, 8345, 8352,
\new@poem@width . . . 4129, 4145, 4160, 8368, 8374, 8390,
6347, 6348, 6349, 4164, 4170, 4173, 8397, 9044, 9058,
6350, 6435, 6469, 6472 4176, 4179, 4184, 9085, 9089, 9095,
\newblock . 2575, 6447, 4187, 4190, 4194, 9101, 9255, 9258,
6547, 15355, 15357 4198, 4201, 4202, 10398, 10463,
\newboolean . . . . 4633, 4203, 4205, 4213, 10720, 10759,
4636, 4638, 4640, 4222, 4224, 4234, 10760, 10761,
4641, 4653, 4717, 4236, 4248, 4250, 10762, 11201,
4727, 4794, 4817, 4257, 4265, 4267, 11204, 11263,
5118, 5742, 6001, 6028 4276, 4278, 4289, 11268, 11270,
\newbox . . . . . . 6402, 6403 4291, 4292, 4296, 11276, 11292,
\newcommand . . . . . . . 4300, 4370, 4380, 11316, 11328,
1534, 1535, 1541, 4384, 4389, 4423, 11382, 11428,
1547, 1564, 1565, 4461, 4484, 4485, 11429, 11430,
1569, 1570, 1581, 4486, 4518, 4519, 11483, 11485,
1584, 1587, 1610, 4520, 4521, 4532, 12191, 13434,
1611, 1626, 1642, 4629, 4630, 4631, 13445, 15121,
1658, 1787, 2041, 4632, 4654, 4657, 15124, 15127,
2047, 2050, 2051, 4684, 4711, 4712, 17056, 17057,
2052, 2053, 2054, 4713, 4714, 4729, 17605, 17606,
2055, 2056, 2353, 4748, 4784, 4786, 18304, 18305,
2439, 2444, 2445, 4787, 4792, 4793, 20525, 20527,
2446, 2448, 2449, 4795, 4796, 4803, 20832, 20833,
2450, 2452, 2453, 4804, 4805, 4813, 20881, 20882,
2455, 2456, 2467, 4816, 4904, 4922, 20973, 21095,
2468, 2488, 2495, 5132, 5140, 5150, 21096, 21198,
2497, 2501, 2505, 5153, 5161, 5330, 21326, 21327, 21524
2507, 2513, 2522, 5331, 5332, 5333, \newcount . 1777, 1950,
2524, 2526, 2530, 5334, 5335, 5336, 1951, 2579, 2589,
2534, 2539, 2551, 5337, 5338, 5339, 2593, 2941, 3667,
2575, 2581, 2754, 5340, 5341, 5342, 3770, 3930, 3991,
2762, 2770, 2778, 5343, 5344, 5345, 4071, 9368, 21190
2795, 2801, 2807, 5346, 5347, 5348, \newcounter 5413, 6531,
2813, 2819, 2825, 5349, 5350, 5351, 11097, 11261,
2831, 2837, 2844, 5352, 5353, 5354, 19551, 19555, 19556
2847, 2850, 2856, 5355, 5364, 5414, \newdimen . 6293, 6294,
2868, 2874, 2886, 5433, 5452, 5474, 6344, 9368, 11920
2889, 2891, 2898, 5480, 5505, 5506, \newenvironment . . .
2902, 2908, 2915, 5540, 5696, 5697, 2088, 2099, 2108,
2918, 2921, 2924, 5698, 5706, 5715, 2117, 2552, 4763,
2943, 2972, 2997, 5724, 5737, 5738, 4778, 4781, 4819,
3026, 3051, 3089, 5861, 5914, 5994, 4946, 6520, 6584,
3123, 3140, 3151, 6007, 6041, 6042, 13132, 20885,
3157, 3201, 3206, 6043, 6044, 6045, 20895, 21051,
3328, 3352, 3403, 6046, 6047, 6048, 21060, 21069, 21078
3412, 3489, 3492, 6099, 6113, 6289, \newfloat@@setwithin
3495, 3498, 3501, 6296, 6305, 6309, . . . . . . . 15388,

Index 559
15394, 15402, 15404 \newline . . . . . 2520, 4980 \no@bib@break . . . . .
\newfloat@Error . . 15407 \newlinechar . . . . . . 1829 . 17322, 17902, 18585
\newfloat@setwithin \newlinetospace . . . \noalign . . . . . . 1374,
. . . . . . . . . . 15374 4977, 4997, 4998, 6458, 9378, 13834,
\newif 1562, 1563, 1567, 4999, 6236, 6237, 6238 13835, 13836,
1568, 1571, 1572, \newlistentry 19548, 19615 17464, 17489,
1573, 1574, 1575, \newpage 465, 487, 816, 17491, 18044,
1576, 1577, 1579, 836, 1068, 1088, 18069, 18071,
1580, 1868, 1869, 1318, 1338, 4487, 18727, 18752, 18754
1870, 1871, 1872, 4489, 4493, 4498, \nobibliography . . . 5410
1873, 2330, 2359, 4499, 4502, 4506, \nobidilogo . . . . . . . 1918
2538, 2586, 3354, 4508, 4511, 6132, \nobreak 14, 16, 209, 211,
3836, 6216, 6404, 6169, 6170, 7071, 517, 535, 562, 566,
7973, 7975, 7977, 7093, 7967, 8792, 654, 655, 669, 695,
7979, 8044, 8071, 8812, 8889, 8911, 882, 883, 897, 913,
8073, 8075, 8077, 10892, 10912, 1137, 1138, 1152,
8140, 9042, 9043, 13834, 14638, 1179, 4549, 5533,
11259, 11267, 16226, 16246, 5873, 5874, 6358,
13955, 20523, 20524 16367, 16389, 6360, 6366, 6644,
\newinsert 1606, 1889, 16611, 16633, 6645, 6659, 6683,
5019, 5020, 5021, 16793, 16815, 6821, 6822, 6836,
5022, 5023, 5024, 17200, 17749, 18448 6860, 6974, 6982,
5025, 5026, 5027, \newpoem@tabcr . . . . 6994, 7123, 7139,
5028, 5029, 5030, . . . 6548, 6557, 6558 7169, 7174, 7182,
5031, 5032, 5033, \newsavebox . . . . 2087, 7400, 8673, 8686,
5034, 5035, 5036, 4762, 4797, 4798 8701, 8705, 8713,
5037, 5038, 5039, 8940, 8963, 8968,
\newskip . . . . . . . . .
5040, 5041, 5042, 8977, 9021, 9022,
2125, 2126, 2127,
5043, 5044, 5045, 10776, 10792,
2933, 10373, 11782
5046, 5047, 5048, 10801, 10805,
\newthought . . . . . . . 5935
5049, 5050, 5051, 10813, 13187,
5052, 5068, 5069, \NewTokenList . . . . . 3877 13189, 13234,
5070, 5071, 5072, \newtoks . . . . . . 2138, 13944, 14012,
5073, 5074, 5075, 2659, 2660, 3668, 15017, 15028,
5076, 5077, 5078, 3669, 3839, 3852, 15029, 15040,
5079, 5080, 5081, 3877, 3930, 6345, 15041, 15903,
5082, 5083, 5084, 11269, 15757, 20837 15905, 16058,
5085, 5086, 5087, \newXeTeXintercharclass 16059, 16073,
5088, 5089, 5090, . . . . . . . 1779, 1780 16097, 16430,
5091, 5092, 5093, \next . . . . . . 21221, 21224 16431, 16445,
9357, 9362, 9365, 9366 \next@tpage . . . . . . . 16469, 16660,
\newlength . . . . . . . . . 17130, 17162, 16676, 16845,
2457, 2458, 2459, 17172, 17175, 16861, 16890,
2461, 2462, 2463, 17243, 17679, 16894, 16902,
2465, 2466, 2549, 17711, 17721, 17297, 18297,
4745, 4746, 4747, 17724, 17792, 19181, 19198,
4801, 4818, 5606, 18378, 18410, 19205, 19346,
8125, 8127, 8129, 18420, 18423, 18491 19349, 19377,
8131, 8133, 19583, \ninecolumnfootnotes 19378, 19400,
19585, 19586, 20213 . . . . . . . . . . 10141 19401, 19417,

Index 560
19418, 19434, 6482, 6485, 6537, 10653, 10662,
19435, 19451, 7749, 7924, 8277, 10671, 10882,
19452, 19468, 8329, 11099, 12011, 13373,
19469, 19485, 11100, 11105, 14702, 16034,
19486, 19503, 11106, 11158, 16043, 16484,
19504, 19522, 11933, 11943, 16493, 16559,
19523, 19542, 12651, 12661, 16602, 16783,
19543, 19577, 12669, 12670, 17093, 17130,
19578, 19613, 12671, 12673, 17243, 17297,
19771, 19772, 12699, 12707, 17411, 17416,
19878, 19880, 12708, 12709, 17642, 17679,
19928, 19960, 12711, 12740, 17792, 17991,
19965, 19968, 12741, 12742, 17996, 18212,
20368, 20373, 12744, 12771, 18241, 18247,
20381, 20482, 12772, 12773, 18253, 18259,
20483, 20487, 12775, 12802, 18265, 18271,
21180, 21181, 21185 12803, 12804, 18277, 18283,
\nobreakspace . . . . . 561 12806, 13863, 18289, 18298,
\node . 20568, 20598, 20604 13911, 13914, 18341, 18378,
\noexpand . . . . . 393, 14476, 14742, 18491, 18674,
2160, 2161, 2175, 17319, 17320, 18679, 20546,
2176, 2203, 2206, 17899, 17900, 20549, 20551,
2209, 2614, 2655, 18582, 18583, 20553, 20556,
2664, 2668, 2688, 18890, 18962, 20560, 20562,
2692, 2791, 2893, 18999, 19000, 20618, 20680, 21113
2894, 2896, 2947, 19073, 19080, \nointerlineskip . .
2975, 3001, 3029, 19558, 20030, . . . . 8194, 8215,
3055, 3058, 3092, 20063, 20070, 11603, 13995,
3095, 3333, 3334, 20075, 20076, 15064, 21499, 21507
3335, 3337, 3338, 20136, 20507, \nopagebreak . . . . . .
3363, 3365, 3383, 20508, 20509, . . 6412, 6422, 13836
3384, 3385, 3388, 20510, 20511, \nopagenumbers . . . . 2539
3395, 3396, 3397, 20512, 20513, \normalbaselines . 20955
3399, 3405, 3406, 20514, 20515, \normalbaselineskip
3408, 3414, 3415, 20757, 20772, 311, 4670, 10443,
3417, 3476, 3478, 20800, 20806, 10454, 10505,
3479, 3687, 3833, 20819, 21144, 21528 10516, 13976, 15977
3838, 3844, 3892, \noindent 455, 630, 639, \normalcolor . . . 2305,
3920, 3923, 3926, 937, 1189, 1198, 7361, 7572, 7637,
3927, 4011, 4018, 1984, 4772, 4965, 8634, 9286, 9310,
4021, 4022, 4039, 5556, 5574, 5592, 9318, 9326, 9340,
4043, 4045, 4046, 5709, 5718, 5727, 10714, 10727,
4047, 4055, 4056, 5937, 5957, 6118, 11559, 11612,
4057, 4060, 4061, 6120, 6122, 6313, 11817, 11864,
4062, 4097, 4154, 6693, 6881, 7061, 11965, 11975,
4315, 4316, 4318, 7257, 8782, 8879, 11982, 13220,
4454, 4559, 4593, 9024, 9087, 10542, 14014, 15042,
4594, 5382, 5384, 10554, 10566, 20266, 20488,
5392, 5785, 5788, 10603, 10617, 20734, 21186,
5794, 5797, 6479, 10631, 10643, 21259, 21308,

Index 561
21338, 21354, . . . . . 11171, 21567 19417, 19434,
21365, 21373, \normalsize . . . . 307, 19451, 19468,
21580, 21596, 21627 4663, 4664, 4671, 19485, 19503,
\normalfont . . . . . 25, 5238, 5282, 5326, 19522, 19542,
38, 52, 68, 85, 5420, 5439, 5458, 19577, 19928,
241, 255, 270, 288, 5836, 8028, 8120, 20368, 20482, 21180
454, 457, 559, 806, 11169, 14760, \number . . . 8, 139, 203,
808, 1060, 1308, 16642, 17100, 2613, 2614, 2620,
1310, 1983, 1986, 17107, 17649, 2625, 2947, 2964,
2050, 2055, 2056, 17656, 18348, 2966, 2975, 2989,
2058, 2059, 2060, 18355, 19967, 2991, 3001, 3018,
2061, 2062, 2063, 21421, 21465, 21565 3020, 3029, 3043,
2064, 4711, 5330, \NOT . . 4865, 4866, 4905, 3045, 3055, 3058,
5331, 5332, 5420, 4925, 4929, 5612, 3075, 3077, 3081,
5439, 5458, 5524, 5641, 5670, 5752, 5756 3083, 3092, 3095,
5759, 5766, 5773, \null . . . 420, 434, 488, 3109, 3111, 3115,
5965, 6970, 6990, 628, 631, 747, 776, 3117, 3124, 3126,
7060, 7063, 7165, 837, 935, 938, 999, 3127, 3129, 3130,
7180, 8506, 8511, 1028, 1089, 1187, 3133, 3134, 3141,
8517, 8698, 8711, 1190, 1249, 1278, 3143, 3144, 3349,
8781, 8784, 8878, 1339, 5873, 6447, 3962, 4077, 4083,
8881, 8959, 8975, 6691, 6694, 6747, 4089, 4092, 4098,
9219, 9223, 9225, 6776, 6879, 6882, 4102, 6430, 6524,
9231, 9235, 9237, 6924, 6953, 7026, 8201, 8222, 8267,
9243, 9247, 9249, 7040, 7094, 8749, 8273, 8276, 8319,
10798, 10811, 8763, 8813, 8844, 8325, 8328, 8557,
10881, 10884, 8858, 8912, 10849, 8560, 13181, 15138
13134, 13169, 10863, 10913, \numberline . . . . . . .
13174, 13220, 13101, 13118, . . . 4958, 13490,
13988, 14628, 15018, 15028, 13495, 14754,
15042, 15467, 15029, 15040, 19276, 20278,
15480, 16216, 15041, 16032, 20496, 20499, 20502
16218, 16357, 16035, 16157, \numberline@box . . .
16359, 16553, 16186, 16247, . . . . . 19931, 19932
16560, 16596, 16296, 16325, \numberline@tempa 20498
16603, 16782, 16390, 16482, \numberwithin . . . . . 329
16785, 16887, 16485, 16561, \numexpr . . 3152, 4566,
16900, 19603, 16575, 16634, 19748, 19856, 20030
19608, 19609, 16748, 16762, \nxLcs . . . 2066, 2067, 2068
19967, 20266, 16816, 17139,
20488, 21186, 21627 17161, 17172, O
\normalfootnotes . . 17243, 17251, \obeylines . . . 6448, 6549
. . . . . . . 9188, 9199 17688, 17710, \ocgbase . . . 14532, 14534
\normallineskip . . . 17721, 17792, \oddpage . . . . . . . . .
. 2397, 13975, 15976 17800, 18387, 1951, 1955, 1956,
\normalparindent 42, 18409, 18420, 1957, 1960, 1961, 1962
56, 72, 245, 259, 274 18491, 18499, \oddsidemargin . . . .
\normalRTLparaLTRfootnotes 18915, 18921, 1973, 2368, 8485,
. . . . . . . . . . 10463 18943, 19346, 12167, 12176,
\normalsfcodes . . . . 19377, 19400, 12180, 21549, 21553

Index 562
\on@stripcols@break 7833 \outer@nobreak . . . . 7494, 7856, 8179,
\onecolumn . . . . . . . 2323, 5232, 5276, 8180, 8665, 8679,
. . 604, 620, 869, 5320, 21415, 21459 8735, 8737, 8739,
1121, 2406, 6628, \outputpenalty . . . . 8741, 8750, 8845,
6805, 7015, 16024, . . . . 7723, 7724, 8934, 8958, 8964,
16279, 16738, 19311 7732, 7733, 7742, 8969, 8973, 8978,
\opening . . . . 9009, 13222 7743, 7897, 7898, 9034, 9036, 9038,
\OptArg . . . . . . 2067, 2133 7906, 7907, 7916, 9040, 9083, 9084,
\OptArg@i . . . . 2133, 2134 7917, 13919, 13920 10769, 10784,
\OptArg@ii . . . 2133, 2135 \overfullrule . . . . . 10797, 10802,
\OptArgs . . . . . . . . . 2132 . . 2357, 2358, 15886 10806, 10809,
\optparams . . . . . . . \OVP@calc . . . . . . . 15462 10814, 10817,
4839, 5696, 5697, 10819, 10821,
5698, 5700, 5701, 5702 P 10823, 10850,
\OR . . . . . . . . . . . 4833, \p@ . . . 27, 29, 30, 31, 99, 10951, 11348,
4905, 4925, 4929, 5181 103, 219, 223, 231, 11350, 11351,
\or . . . . . . . 1410, 1411, 233, 234, 235, 311, 11352, 11353,
1412, 1414, 1415, 421, 510, 527, 539, 11354, 11386,
1435, 1436, 1437, 541, 543, 545, 597, 12038, 12045,
1441, 1442, 1443, 602, 613, 617, 646, 12084, 12091,
1444, 1445, 1449, 662, 680, 687, 723, 12136, 13149,
1450, 1478, 1479, 729, 748, 862, 866, 13153, 13162,
1480, 1482, 1483, 873, 889, 906, 924, 13164, 13165,
1665, 1671, 1677, 959, 961, 964, 966, 13166, 13218,
1683, 1689, 1695, 1000, 1114, 1118, 13236, 13238,
1697, 1699, 1701, 1129, 1145, 1163, 13240, 13242,
1707, 1713, 1719, 1171, 1203, 1209, 14680, 15010,
1732, 1740, 1747, 1250, 1607, 1890, 15022, 15034,
1757, 7332, 7333, 2396, 2397, 2401, 15131, 15132,
7334, 7336, 7337, 2402, 4665, 4666, 15176, 15178,
12495, 12499, 4667, 4674, 4675, 15179, 15180,
19590, 19593, 4676, 4678, 4679, 16017, 16021,
19596, 20421, 5884, 5885, 5886, 16050, 16066,
20532, 20539, 5888, 5889, 5955, 16082, 16089,
20761, 20810, 6621, 6625, 6636, 16104, 16110,
21213, 21214, 21216 6652, 6668, 6675, 16158, 16272,
\orig@footnotetext 6714, 6720, 6748, 16276, 16297,
. . 152, 15151, 15166 6798, 6802, 6813, 16422, 16438,
\orig@LTRfootnotetext 6829, 6845, 6852, 16454, 16461,
. . 156, 15155, 15170 6867, 6873, 6925, 16527, 16533,
\orig@RTLfootnotetext 6969, 6975, 6980, 16562, 16654,
. . 160, 15159, 15174 6984, 6986, 6989, 16668, 16684,
\origin@RaggedLeft 6992, 6996, 6998, 16686, 16688,
. 16005, 16007, 16008 7008, 7013, 7027, 16690, 16731,
\origin@RaggedRight 7116, 7131, 7144, 16736, 16749,
. 16006, 16007, 16008 7146, 7148, 7150, 16838, 16853,
\originalHbadness . 7164, 7170, 7175, 16866, 16868,
. . . . . 20594, 20612 7178, 7183, 7415, 16870, 16872,
\othermargin . . . . . . 879 7425, 7438, 7448, 16886, 16891,
\outer . . . . . . . . . . . 1944 7461, 7471, 7484, 16895, 16898,

Index 563
16903, 17101, 13640, 13643, . 13835, 20664, 20673
17105, 17108, 13646, 13649, \pagecontents . . . . 15821
17112, 17357, 13652, 13655, \pagedepth . . . . . . 20658
17360, 17362, 13658, 13661, \pagefillstretch . 20670
17365, 17516, 13664, 13667, \pagefilstretch . . 20669
17535, 17650, 13670, 13673, \pagefootnoterule .
17654, 17657, 13676, 13679, . . . . . 11384, 11392
17661, 17937, 13682, 13685, \pagegoal 11631, 11633,
17940, 17942, 13688, 13691, 11638, 11645,
17945, 18096, 13694, 13697, 11686, 11688,
18115, 18218, 13700, 13703, 13925, 14980, 20661
18220, 18222, 13706, 13709, \pageinwindow . . . . . 7517
18224, 18349, 13712, 13715, \pagenumbering 2404, 6220
18353, 18356, 13718, 13721, \pageref . . . . . 2543, 2545
18360, 18620, 13724, 13727, \pageshrink . . . 11647,
18623, 18625, 13730, 13733, 11651, 11667,
18628, 18779, 13736, 13739, 11693, 11705, 20664
18798, 19309, 13742, 13745, \pagestretch . . 11646,
19584, 19752, 13748, 13751, 11667, 11705, 20668
19755, 19759, 13754, 13757, \pagestyle . . . . . . .
19860, 19863, 13760, 13763, 1949, 2395, 2403,
19867, 20197, 13766, 13769, 2546, 4985, 6221, 8066
20200, 20204, 13772, 13775, \pagetotal . . . 11633,
20210, 20292, 13778, 13781, 11638, 11644,
20476, 21174, 21637 13784, 13787, 14637, 14978,
\p@enumiv . . . . . . 86, 13790, 13793, 14981, 14992,
289, 580, 715, 13796, 13799, 20656, 20661, 20719
978, 1228, 2567, 13802, 13805, \paperheight . . . . . .
6706, 6894, 7203, 13808, 13811, . . . . 2332, 2335,
8727, 8998, 10835, 13814, 15143, 2338, 2341, 2344,
13135, 16125, 19209, 19562, 21200 2347, 2350, 2351, 8462
16519, 16713, \PackageInfo . . . . . . \paperwidth . . . . . . .
16916, 17326, . . . . 2937, 4191, 2333, 2336, 2339,
17906, 18589, 19248 4293, 4440, 4632, 2342, 2345, 2348,
\p@subfigure . . . . . 18973 13307, 15988, 20518 2351, 2352, 8462, 8470
\p@subtable . . . . . . 18974 \PackageWarning . . . \par . . . 5, 15, 46, 60, 76,
\PackageError . . . . . . 138, 2936, 3546, 107, 108, 109, 110,
. . . . . 144, 2725, 3661, 4294, 4323, 200, 210, 227, 228,
2757, 2760, 2765, 6526, 7982, 8080, 229, 249, 263, 278,
2768, 2773, 2776, 11101, 11737, 310, 313, 404, 423,
2781, 2784, 2935, 13265, 13277, 429, 431, 432, 451,
4503, 4630, 5738, 15074, 15137, 494, 500, 504, 516,
10400, 13425, 15222, 15229, 535, 562, 565, 631,
13432, 13600, 15368, 19553, 19944 641, 655, 668, 695,
13603, 13606, \PackageWarningNoLine 756, 766, 773, 774,
13609, 13612, 2600, 2965, 2990, 802, 841, 847, 851,
13615, 13618, 3019, 3044, 3076, 883, 897, 912, 938,
13621, 13625, 3082, 3110, 3116, 4490 952, 1008, 1018,
13628, 13631, \page@sofar . . . 164, 15046 1025, 1026, 1054,
13634, 13637, \pagebreak . . . . . . . 1093, 1099, 1103,

Index 564
1138, 1151, 1179, 10653, 10662, 16757, 16759,
1190, 1200, 1258, 10671, 10775, 16760, 16779,
1268, 1275, 1276, 10792, 10801, 16822, 16828,
1304, 1344, 1350, 10805, 10813, 16832, 16844,
1355, 1360, 1363, 10852, 10858, 16861, 16890,
1944, 1980, 2321, 10860, 10861, 16894, 16902,
4859, 4867, 4926, 10878, 10917, 17092, 17137,
4927, 4930, 4931, 10923, 10927, 17142, 17145,
4956, 4965, 4966, 11095, 11555, 17147, 17152,
5135, 5151, 5875, 13157, 13158, 17155, 17157,
5990, 5991, 5992, 13159, 13178, 17159, 17165,
5993, 6118, 6120, 13188, 13196, 17173, 17179,
6122, 6140, 6141, 13224, 13229, 17249, 17255,
6142, 6316, 6423, 13232, 13234, 17258, 17260,
6437, 6448, 6466, 13324, 13466, 17266, 17269,
6541, 6549, 6574, 13868, 13968, 17271, 17274,
6645, 6658, 6683, 13991, 13995, 17277, 17297,
6694, 6756, 6766, 14624, 14696, 17406, 17410,
6773, 6774, 6822, 14702, 14708, 17411, 17415,
6835, 6860, 6882, 14712, 14718, 17416, 17420,
6933, 6943, 6950, 14733, 14752, 17641, 17686,
6951, 6974, 6982, 14761, 15018, 17691, 17694,
6994, 7029, 7035, 15030, 15043, 17696, 17701,
7037, 7038, 7057, 15281, 15293, 17704, 17706,
7100, 7106, 7110, 15355, 15628, 17708, 17714,
7122, 7139, 7169, 15799, 15800, 17722, 17728,
7174, 7182, 7259, 15801, 15802, 17798, 17804,
7400, 7817, 8187, 15895, 15896, 17807, 17809,
8208, 8673, 8685, 15903, 15904, 17815, 17818,
8701, 8704, 8712, 15964, 16035, 17820, 17823,
8752, 8758, 8760, 16045, 16059, 17826, 17986,
8761, 8778, 8817, 16072, 16097, 17990, 17991,
8823, 8827, 8847, 16166, 16176, 17995, 17996,
8853, 8855, 8856, 16183, 16184, 18000, 18211,
8875, 8918, 8924, 16212, 16251, 18241, 18247,
8928, 8939, 8963, 16257, 16261, 18253, 18259,
8968, 8977, 9011, 16305, 16315, 18265, 18271,
9016, 9019, 9021, 16322, 16323, 18277, 18283,
9022, 9032, 9333, 16353, 16397, 18289, 18291,
9439, 9442, 9445, 16403, 16408, 18294, 18297,
9545, 9548, 9551, 16413, 16416, 18301, 18340,
9651, 9654, 9657, 16431, 16444, 18385, 18390,
9760, 9763, 9766, 16469, 16485, 18393, 18395,
9869, 9872, 9875, 16495, 16559, 18400, 18403,
9978, 9981, 9984, 16564, 16570, 18405, 18407,
10087, 10090, 16572, 16573, 18413, 18421,
10093, 10196, 16592, 16602, 18427, 18497,
10199, 10202, 16640, 16645, 18503, 18506,
10305, 10308, 16648, 16659, 18508, 18514,
10311, 10643, 16676, 16751, 18517, 18519,

Index 565
18522, 18525, 15312, 15313, 19900, 19960,
18669, 18673, 15314, 15316, 20361, 20363,
18674, 18678, 15317, 15318, 20477, 21090, 21175
18679, 18683, 15319, 15321, \parindent . . . 12, 42,
19004, 19614, 15322, 15323, 56, 72, 103, 207,
19620, 19773, 15324, 15326, 223, 245, 259, 274,
19879, 19960, 15327, 15328, 455, 513, 530, 557,
20387, 20489, 15329, 15330, 601, 616, 652, 665,
20546, 20547, 15331, 15333, 690, 742, 759, 865,
20553, 20554, 15334, 15335, 880, 892, 909, 946,
20556, 20564, 15336, 15337, 994, 1011, 1057,
20617, 20883, 15338, 15340, 1117, 1135, 1148,
20884, 20893, 15341, 15342, 1174, 1244, 1261,
20894, 21052, 15343, 15344, 1984, 2399, 4687,
21061, 21070, 17472, 18052, 5358, 5867, 5909,
21079, 21148, 18241, 18247, 5917, 5982, 6135,
21187, 21616, 21637 18253, 18259, 6441, 6544, 6624,
\par@updaterelative 18265, 18271, 6642, 6655, 6678,
. . . . . . . 17133, 18277, 18283, 6742, 6759, 6801,
17245, 17682, 18289, 18300, 18735 6819, 6832, 6855,
17794, 18381, 18493 \parfillskip . 13, 208, 6919, 6936, 6970,
\paragraph . . . . . . . 5771 514, 531, 650, 666, 6990, 7012, 7061,
\paragraphfootnotes 691, 877, 893, 910, 7119, 7134, 7165,
. . . . . 10403, 10409 1133, 1149, 1175, 7179, 7283, 7314,
\parbox . . . 2492, 2494, 5866, 6442, 6640, 7405, 8668, 8682,
8054, 9027, 10976, 6656, 6679, 6817, 8696, 8709, 8782,
10977, 10978, 6833, 6856, 7120, 8879, 8936, 8959,
10982, 10983, 7135, 7287, 7406, 8974, 9086, 9354,
10984, 12296, 8669, 8683, 8937, 9434, 9540, 9646,
12298, 12302, 10571, 10575, 9755, 9864, 9973,
12304, 12335, 10579, 10773, 10082, 10191,
12336, 12339, 10788, 13186, 10300, 10570,
12340, 12397, 13975, 15011, 10574, 10578,
12398, 12401, 15023, 15035, 10679, 10688,
12402, 12426, 15918, 15931, 10772, 10787,
12428, 12432, 15944, 15955, 10798, 10810,
12434, 13872, 16054, 16070, 10882, 12010,
14690, 14719, 16093, 16426, 13153, 13185,
15279, 15281, 16442, 16465, 13971, 15012,
15282, 15284, 16657, 16672, 15024, 15036,
15286, 15287, 16842, 16857, 15348, 15919,
15289, 15291, 19160, 19189, 15932, 15945,
15293, 15294, 19219, 19338, 15956, 16020,
15296, 15298, 19369, 19392, 16056, 16069,
15299, 15300, 19409, 19426, 16092, 16152,
15301, 15302, 19443, 19460, 16169, 16275,
15303, 15305, 19477, 19495, 16291, 16308,
15306, 15307, 19514, 19534, 16428, 16441,
15308, 15309, 19569, 19764, 16464, 16559,
15310, 15311, 19872, 19898, 16602, 16639,

Index 566
16656, 16671, 7742, 7897, 7906, \pgf@baseline . . . . 15589
16735, 16783, 7916, 9015, 9018, \pgf@insertlayers 15611
16841, 16856, 9020, 9022, 13153, \pgf@nodecallback 15567
16887, 16899, 13228, 13231, \pgf@oldpicture . . 15574
17093, 17642, 13233, 13971, \pgf@picmaxx . . 15568,
18212, 18341, 13980, 15634, 15580, 15582, 15600
19170, 19207, 15967, 16021, \pgf@picmaxy 15570, 15584
19308, 19339, 16276, 16639, \pgf@picminx . . . . . .
19370, 19393, 16736, 18234, . 15569, 15583, 15593
19410, 19427, 19309, 20297, \pgf@picminy 15571, 15585
19444, 19461, 20655, 20659, 20989 \pgf@picture . . . . . 15574
19478, 19496, \part . . . . . . . . 23, 13172 \pgf@picture@serial@count
19515, 19535, \partname . . . . 561, 8700 . . . . . 15565, 15566
19570, 19763, \partopsep 5931, 14675, \pgf@process . . . . . .
19871, 19902, 14677, 15424, 15444 . 15589, 15592, 15599
20297, 20358, \PassOptionsToClass \pgf@relevantforpicturesizefalse
20359, 20478, 6173, 6174, 6175, . . . . . . . . . . 15588
20889, 20899, 6176, 6177, 6197, \pgf@relevantforpicturesizetrue
20990, 21090, 6198, 6199, 6200, 6201 . . . . . . . . . . 15572
21115, 21116, 21176 \PassOptionsToPackage
\pgf@remember@layerlist@globally
\parsep . . . 949, 4679, . . . . . . . 5190, 6020
. . . . . . . . . . 15606
4680, 5889, 5890, \pbs . . . . . . . 15488, 15509
\pgf@resetpathsizes
5928, 5955, 20989 \pbs@newkey . . . . . . 15492
. . . . . . . . . . 15573
\parshape . . . . . 7256, \pdfencryptsetup . .
\pgf@restore@layerlist@from@global
11759, 11767, . . . 1658, 1659, 1767
. . . . . . . . . . 15610
13374, 15430, \pdflastxpos . . . 2947,
\pgf@shift@baseline
15450, 15634, 2975, 3055, 3092
. . . . . . . . . . 15590
15799, 15801, \pdflastypos . . . 3001,
\pgf@trimleft . . . . 15592
16558, 16601, 3029, 3058, 3095
\pgf@trimleft@final
17080, 17089, \pdfm@box . . . . 13102,
. 15594, 15595, 15597
17629, 17638, 13110, 13119, 13127
\pgf@trimright . . . 15599
18202, 18209, \pdfsavepos 2957, 2959,
18328, 18337, 2982, 2984, 3011, \pgf@trimright@final
20883, 20893, 3013, 3036, 3038, . 15601, 15602, 15604
21019, 21054, 3068, 3070, 3102, 3104 \pgf@x . . . . . . . 15593,
21056, 21057, \pdfstringdefDisableCommands 15597, 15600, 15604
21058, 21063, . . . . . . . . . . 13026 \pgf@y . . . . . . . . . . 15590
21065, 21066, \penalty 751, 1003, 1253, \pgfpic . . . . . . . . . 15620
21067, 21072, 6362, 6684, 6751, \pgfpicture . . . . . . 15561
21074, 21075, 6861, 6928, 7140, \pgfpictureid 15566, 15577
21076, 21081, 7244, 7250, 7721, \pgfpicturetrue . . 15564
21083, 21084, 21085 7730, 7740, 7895, \pgfsys@discardpath
\parskip . . . . . . 103, 7904, 7914, 10372, . . . . . . . . . . 15613
223, 602, 617, 10572, 10576, \pgfsys@endpicture 15616
866, 1118, 1977, 10580, 10793, \pgfsys@endscope . 15615
2400, 4688, 5359, 11668, 16098, \pgfsys@markposition
5910, 5918, 5981, 16161, 16300, . . . . . . . . . . 15577
6136, 6440, 6543, 16470, 16677, \pgfsys@typesetpicturebox
6578, 6625, 6802, 16862, 19774, . . . . . . . . . . 15620
7013, 7723, 7732, 20285, 20393, 20660 \pgfutil@gobble . . 15567

Index 567
\pgfutil@ifnextchar \poem@verse . . . . . . . \protect . . . . . . 400,
. . . . . . . . . . 15574 . . . 6346, 6416, 6419 1600, 1601, 1602,
\phantom . . . 14222, 15069 \poem@width . . . . . . . 1603, 1828, 1883,
\phantomsection . . . 2490 6349, 6350, 6354, 1884, 1885, 1886,
\phone . . . . . . . . . . . 2450 6431, 6433, 6436, 6469 2142, 2148, 2154,
\phonesymbol . . . . . . \poem@write@aux . . . 2160, 2169, 2175,
. . . 2410, 8061, 8159 . . . 6472, 6524, 6536 3210, 3211, 3838,
\photo . . . . . . . . . . . 2455 \poemblocksep . . . . . 3844, 4545, 4958,
\picbox . . . . . . . . . 15739 . . . 6343, 6447, 6547 11158, 11569,
\picinwindow . . . . . . 7537 \poemcolsepskip 6334, 6363 11583, 13490,
\picwd . . . . . . . 15627, \poemextrabaselineskip 13495, 13856,
15630, 15738, 15740 . . . 6336, 6424, 6459 14754, 18994,
\place@tag . 338, 339, 341 \poemmarginskip . . . 18995, 18999,
\plainauthor . . . . . . . . . 6335, 6357, 6358 19007, 19276,
. . . . 4997, 6040, \poemskip 6337, 6437, 6468 19620, 20826, 21528
6042, 6081, 6082, 6085 \postbibhook . . . . . 14768 \protected . . . . 1883,
\plainfootnotes . . . 9199 \postdisplaypenalty 1885, 2935, 2936,
\plainpublisher . . . . . . . . 11069, 11083 2937, 3158, 3166,
. . . 6043, 6108, 6109 \postmath . . . . . . . . 7250 3168, 3174, 3360,
\PotEndMark . . . . . . . 3376, 3392, 3415,
\plaintitle 4998, 4999,
. . . 8509, 8514, 8517 3417, 3467, 3520,
6040, 6041, 6064,
\predisplaydirection 3533, 15763,
6065, 6068, 6236, 6238
. . . . . . . 15847, 15773, 15783,
\plitemsep . . . . . . . 5929
15848, 21624, 21625 15791, 20843,
\plparsep . . . . . . . . 5928
\predisplaypenalty 20853, 20863, 20872
\plpartopsep . . . . . . 5931
. . . . . 11068, 11082 \protected@edef . 43,
\pLRE 1600, 1601, 1883, 1884
\premath . . . . . . . . . 7246 57, 73, 246, 260,
\pltopsep . . . . . . . . 5930 \prepare@bidi@copyins 275, 5557, 5575,
\poem@finish . . . . . . . . . . . . . 11776, 5593, 9115, 9129,
. . . 6473, 6523, 6530 11809, 11858, 12016 9143, 9155, 9166,
\poem@line 6400, 6406, 6457 \prepare@multicols 15207 9177, 9406, 9416,
\poem@linebegin 6357, 6415 \preparefootins . . . 9426, 9452, 9465,
\poem@lineend . 6358, 6421 . . . . . 11808, 11857 9477, 9515, 9524,
\poem@lineparsebegin \PrependToTokenList 3880 9533, 9558, 9570,
. . . 6369, 6426, 6453 \prepnext@tok . . . . . 9581, 9618, 9628,
\poem@lineparseend . . . . 1407, 1417, 9638, 9664, 9677,
. . . 6395, 6407, 6464 1465, 1497, 7324, 7352 9689, 9727, 9737,
\poem@lineversesep \presetkeys . . . . . . 20646 9747, 9773, 9786,
. . . . . . . 6359, 6418 \presig@skip . . . . . 18300 9798, 9836, 9846,
\poem@needrun . . 6351, \prevdepth . . . . . . . 9856, 9882, 9895,
6470, 6525, 6527 4859, 4867, 8257, 9907, 9945, 9955,
\poem@obeylines 6452, 8311, 14680, 15071 9965, 9991, 10004,
6521, 6561, 6585 \pRLE 1602, 1603, 1885, 1886 10016, 10054,
\poem@prop . . . 6433, 6535 \process@cols . 15047, 10064, 10074,
\poem@startedfalse 15080, 15097, 15103 10100, 10113,
. . . 6450, 6559, 6565 \ProcessOptions . . . 10125, 10163,
\poem@startedtrue . . . . . 2362, 4655, 10173, 10183,
. . . . . . . . 6408, 5746, 6005, 6037, 10209, 10222,
6409, 6449, 6551, 6178, 6202, 7984, 8082 10234, 10272,
6553, 6558, 6566, 6568 \ProcessOptionsX . . 1765 10282, 10292,

Index 568
10318, 10331, 11774, 12017, 15871, 15872,
10343, 10538, 12144, 12186, 15873, 15874,
10550, 10562, 12487, 13131, 15878, 15879,
10599, 10613, 13217, 13221, 15880, 15881, 15882
10627, 11440, 13243, 13380, \pst@hbox . . . . 15861,
11457, 11473, 13419, 13523, 15865, 15866,
11501, 11515, 11529 13817, 13946, 15867, 15883,
\protected@write 1726, 13954, 14612, 15885, 15886, 15888
1730, 4525, 4536 14769, 15007, \pst@ifstar . . . . . . 15853
\protected@xdef . . . 15045, 15278, \pst@killglue . . . . 15857
. . . . 5620, 5649, 15345, 15373, \pst@picture . . . . . 15853
5678, 6061, 6078, 15411, 15432, \pst@shift . . . . . . .
6094, 6105, 11405, 15452, 15486, . 15858, 15880, 15888
11414, 11568, 15512, 15560, \pst@tempa . 15870, 15872
11573, 11582, 15624, 15852,
\publisher . . . 6098, 6099
11588, 12670, 15893, 15909,
\publishers . . . . . . .
12708, 12741, 16009, 16264,
. 17230, 17779, 18478
12772, 12803, 12866 16541, 16723,
16926, 17055, \put . . . . . . . . . . 7416,
\providecommand . . .
17604, 18195, 7417, 7418, 7419,
2407, 2408, 2409,
18303, 18878, 7420, 7421, 7426,
2410, 2411, 2412,
7427, 7428, 7429,
2423, 2424, 2425, 18885, 18945,
7430, 7431, 7439,
2426, 2427, 2428, 18971, 18976,
19010, 19085, 7440, 7441, 7442,
2429, 2430, 2431,
19115, 19134, 7443, 7444, 7449,
2432, 2433, 2434,
19154, 19183, 7450, 7451, 7452,
2435, 2436, 2437,
19232, 19313, 7453, 7454, 7462,
2438, 2647, 5518,
19621, 20276, 7463, 7464, 7465,
5525, 5526, 5935,
20522, 20651, 7466, 7467, 7472,
8045, 8050, 11291
20727, 20831, 21779 7473, 7474, 7475,
\ProvidesClass . . . .
7476, 7477, 7485,
. . . 2329, 6172, 6196 \ProvidesPackage . .
7486, 7487, 7488,
\ProvidesExplPackage . . . . 1504, 1948,
7489, 7490, 7495,
. . . . . . . . . . 14029 2004, 2137, 2578,
7496, 7497, 7498,
\ProvidesFile . . . . 1, 2646, 4626, 5192,
7499, 7500, 8462,
131, 165, 196, 326, 5734, 5880, 5996,
8476, 8494, 15465,
344, 349, 351, 410, 6023, 6261, 7971, 8069
15467, 15480, 15483
605, 854, 1106, \prune . . . . . . . 15644,
1366, 6613, 6790, 15682, 15686,
6967, 7000, 7213, 15691, 15695, Q
7268, 7310, 7312, 15707, 15718, 15745 \Q . . . . . . . . . . 5375, 5397
7315, 7353, 7396, \prw@mkboth . . . 19282, \q 14117, 14120, 14349, 14403
7411, 7507, 7545, 19287, 19299, 19304 \qauthor . . . . . . . . 15894
8173, 8338, 8457, \psgrid . . . . . . . . . 15856 \qquad . . . . . . . . 5811,
8460, 8499, 8661, \pspicture . . . . . . 15853 5818, 5825, 5832,
8834, 9008, 9041, \psset . . . . . . . . . . 15891 5839, 5874, 15896
10765, 10941, \pst@dima . . . . . . . 15868 \quad . . . . . 1645, 1917,
10970, 10986, \pst@dimb 15866, 15871, 4997, 4998, 4999,
11063, 11093, 15873, 15878, 15881 6236, 6237, 6238,
11102, 11107, \pst@dimc . . . . . . . 15884 6343, 20956, 20965
11257, 11597, \pst@dimd . . . . 15865, \quote . . . . . . . . . . . 2456

Index 569
\quotecolour . . . . . . \RaggedLeftLeftskip \raggedsection . . . .
. . . 2418, 7989, 8087 . . . . . . . . . . 15928 . 17280, 17829, 18528
\quotefont . . . . 2427, \RaggedLeftParfillskip \raise . . . . . 10964, 13169
2435, 8029, 8122 . . . . . . . . . . 15931 \raisebox . 4910, 4915,
\quotestyle . . . . . . . \RaggedLeftParindent 4926, 4927, 4930,
. . . 2435, 8042, 8171 . . . . . . . . . . 15932 4931, 8507, 8512,
\quotewidth . . . . 2457, \RaggedLeftRightskip 8528, 8531, 8647,
2469, 8042, 8171 . . . . . . . . . . 15929 12309, 12311,
\raggedpart . . . . . . 17281 12315, 12317,
R \RaggedRight . . 15936, 12344, 12345,
\R@@page . . . . . 16931, 15974, 15989, 12348, 12349,
16932, 16941, 15994, 16006, 12406, 12407,
16943, 16974, 16008, 18883, 12410, 12411,
16975, 16986, 16988 18884, 21738, 12439, 12441,
\raggedbottom . . . . . 2405 21742, 21748, 21752 12445, 12447, 13375
\raggeddictum . . . . . \raggedright . . . . 25, \rangle . . . . . . . . . . 2051
. 17366, 17946, 18629 104, 224, 557, \rawtext . . . . . 15634,
\raggeddictumauthor 6970, 6990, 7165, 15640, 15662,
. 17368, 17948, 18631 7179, 8696, 8709, 15663, 15744, 15748
\raggeddictumtext . 8959, 8974, 9011, \rbrace . . . . 20945, 20954
. 17367, 17947, 18630 9014, 9019, 9027, \rcb . 2052, 2055, 2056, 2060
\RaggedLeft . . . 15923, 10798, 10810, \rcol@footinsskip .
15972, 15988, 13154, 13174, . . . . . 11789, 11838
15992, 16005, 13224, 13227, \realfootnote . . . . 12863
16007, 18883, 13232, 14651, \recomputelengths .
18884, 21738, 14652, 15896, . . . . . . . 2468, 2485
21742, 21746, 21754 15898, 15904, \recomputethemelengths
\raggedleft . . . . . 25, 16887, 16899, . . . . . . . . 2467,
104, 224, 557, 17280, 17281, 2483, 8134, 8139
6970, 7165, 7179, 17366, 17367, \reflectbox . . . . . . 12078
8696, 8709, 8959, 17368, 17370, \refname . . . . . . 570,
8974, 9011, 9014, 17829, 17946, 571, 705, 706, 968,
9019, 9027, 10798, 17947, 17948, 969, 1218, 1219,
10810, 13154, 17950, 18294, 2554, 5970, 8717, 8718
13174, 13224, 18300, 18528, \refstepcounter . . .
13227, 13232, 18629, 18630, . . . . . 552, 8691,
14651, 14652, 18631, 18633, 11084, 13040,
15896, 15898, 19905, 19908, 13478, 13484,
15904, 16887, 19912, 20013, 13819, 14745,
16899, 17280, 21087, 21092, 15421, 15442, 19273
17281, 17366, 21094, 21095, 21096 \refvskip . . . . . . . 18235
17367, 17368, \RaggedRightLeftskip \regex . . . . . . . 14057,
17370, 17829, . . . . . . . . . . 15941 14062, 14065,
17946, 17947, \RaggedRightParfillskip 14068, 14071,
17948, 17950, . . . . . . . . . . 15944 14072, 14108,
18294, 18300, \RaggedRightParindent 14113, 14115,
18528, 18629, . . . . . . . . 4685, 14159, 14160, 14172
18630, 18631, 5356, 5915, 15945 \reinsert@footnotes
18633, 21091, \RaggedRightRightskip . . . . . . . 15208,
21093, 21095, 21096 . . . . . . 5912, 15942 15210, 15238,

Index 570
15240, 15245, 2647, 2845, 2848, 7291, 7292, 7392,
15247, 15252, 15254 2858, 2876, 2930, 7410, 7560, 7623,
\relax . . . . . . 2, 8, 10, 3131, 3135, 3145, 7984, 8082, 8174,
12, 14, 28, 85, 103, 3152, 3165, 3349, 8175, 8176, 8177,
132, 166, 197, 203, 3353, 3678, 3679, 8178, 8190, 8211,
205, 207, 209, 223, 3683, 3722, 3723, 8265, 8277, 8280,
232, 288, 301, 319, 3765, 3788, 3915, 8317, 8329, 8332,
400, 414, 415, 416, 3929, 3992, 3994, 8483, 8489, 8550,
437, 438, 439, 440, 4003, 4004, 4020, 8629, 8677, 8745,
445, 446, 447, 448, 4028, 4045, 4056, 8746, 8747, 8766,
472, 473, 474, 475, 4061, 4110, 4134, 8767, 8772, 8773,
476, 481, 482, 483, 4149, 4166, 4181, 8774, 8775, 8799,
484, 508, 602, 617, 4197, 4214, 4226, 8800, 8801, 8806,
624, 654, 660, 678, 4258, 4269, 4348, 8807, 8808, 8809,
731, 738, 739, 740, 4556, 4557, 4566, 8838, 8839, 8840,
744, 753, 762, 779, 4594, 4659, 5157, 8861, 8862, 8863,
780, 785, 786, 787, 5366, 5474, 5537, 8864, 8869, 8870,
788, 791, 794, 798, 5541, 5545, 5625, 8871, 8872, 8896,
823, 824, 825, 830, 5636, 5654, 5665, 8897, 8898, 8899,
831, 832, 833, 866, 5683, 5694, 5752, 8900, 8905, 8906,
882, 904, 922, 931, 5949, 5957, 5962, 8907, 8908, 8932,
965, 990, 991, 992, 5993, 6178, 6202, 9078, 9079, 9080,
996, 1005, 1014, 6298, 6303, 6306, 9081, 9082, 9211,
1031, 1032, 1037, 6313, 6351, 6357, 9391, 9435, 9500,
1038, 1039, 1040, 6452, 6470, 6499, 9541, 9603, 9647,
1043, 1046, 1050, 6506, 6513, 6525, 9712, 9756, 9821,
1075, 1076, 1077, 6561, 6625, 6632, 9865, 9930, 9974,
1082, 1083, 1084, 6644, 6650, 6666, 10039, 10083,
1085, 1118, 1125, 6722, 6738, 6739, 10148, 10192,
1137, 1143, 1161, 6740, 6744, 6753, 10257, 10301,
1211, 1240, 1241, 6762, 6779, 6780, 10375, 10406,
1242, 1246, 1255, 6785, 6786, 6787, 10416, 10422,
1264, 1281, 1282, 6788, 6802, 6809, 10445, 10474,
1287, 1288, 1289, 6821, 6827, 6843, 10480, 10507,
1290, 1293, 1296, 6875, 6915, 6916, 10525, 10761,
1300, 1325, 1326, 6917, 6921, 6930, 10762, 10767,
1327, 1332, 1333, 6939, 6956, 6957, 10845, 10846,
1334, 1335, 1422, 6962, 6963, 6964, 10847, 10866,
1423, 1440, 1441, 6965, 7013, 7020, 10867, 10872,
1442, 1663, 1669, 7021, 7022, 7043, 10873, 10874,
1675, 1681, 1687, 7044, 7045, 7046, 10875, 10899,
1693, 1705, 1711, 7051, 7052, 7053, 10900, 10901,
1717, 1724, 1733, 7054, 7078, 7079, 10906, 10907,
1734, 1738, 1745, 7080, 7081, 7082, 10908, 10909,
1755, 1828, 1859, 7087, 7088, 7089, 10946, 10948,
1991, 1992, 1993, 7090, 7114, 7256, 10952, 10999,
1998, 1999, 2000, 7270, 7271, 7272, 11035, 11064,
2001, 2225, 2233, 7277, 7278, 7279, 11074, 11117,
2241, 2292, 2362, 7280, 7283, 7287, 11137, 11138,
2621, 2626, 2632, 7288, 7289, 7290, 11153, 11255,

Index 571
11387, 11409, 15583, 15584, 16774, 16775,
11418, 11577, 15585, 15754, 16776, 16800,
11592, 11630, 15818, 15908, 16801, 16802,
11652, 11690, 15979, 15985, 16803, 16804,
11801, 11850, 15997, 16021, 16809, 16810,
12249, 12251, 16028, 16058, 16811, 16812,
12254, 12267, 16064, 16080, 16836, 17101,
12269, 12272, 16112, 16148, 17102, 17108,
12518, 12529, 16149, 16150, 17109, 17111,
12540, 12551, 16154, 16163, 17120, 17121,
12565, 12576, 16172, 16189, 17122, 17182,
12587, 12598, 16190, 16195, 17208, 17209,
12613, 12628, 16196, 16197, 17210, 17211,
12669, 12688, 16198, 16201, 17212, 17225,
12707, 12726, 16204, 16208, 17226, 17227,
12740, 12759, 16233, 16234, 17228, 17229,
12771, 12790, 16235, 16240, 17230, 17231,
12802, 12821, 16241, 16242, 17232, 17233,
12903, 12937, 16243, 16276, 17234, 17235,
12968, 12997, 16285, 16286, 17296, 17358,
13134, 13153, 16287, 16293, 17363, 17524,
13163, 13175, 16302, 16311, 17541, 17650,
13181, 13183, 16328, 16329, 17651, 17657,
13185, 13187, 16330, 16331, 17658, 17660,
13272, 13284, 16336, 16337, 17669, 17670,
13291, 13292, 16338, 16339, 17671, 17731,
13296, 13297, 16342, 16345, 17757, 17758,
13306, 13374, 16349, 16374, 17759, 17760,
13856, 13993, 16375, 16376, 17761, 17774,
13996, 13999, 16377, 16378, 17775, 17776,
14000, 14001, 16383, 16384, 17777, 17778,
14007, 14615, 16385, 16386, 17779, 17780,
14616, 14617, 16430, 16436, 17781, 17782,
14618, 14619, 16452, 16478, 17783, 17784,
14679, 14783, 16535, 16540, 17832, 17848,
14883, 15009, 16545, 16546, 17856, 17864,
15011, 15012, 16547, 16578, 17875, 17938,
15015, 15021, 16579, 16580, 17943, 18104,
15023, 15024, 16581, 16586, 18121, 18349,
15027, 15033, 16587, 16588, 18350, 18356,
15035, 15036, 16589, 16618, 18357, 18359,
15039, 15135, 16619, 16620, 18368, 18369,
15177, 15471, 16621, 16622, 18370, 18430,
15472, 15473, 16627, 16628, 18456, 18457,
15516, 15521, 16629, 16630, 18458, 18459,
15526, 15535, 16652, 16736, 18460, 18473,
15543, 15565, 16742, 16743, 18474, 18475,
15568, 15569, 16744, 16765, 18476, 18477,
15570, 15571, 16766, 16767, 18478, 18479,
15580, 15582, 16768, 16773, 18480, 18481,

Index 572
18482, 18483, 20362, 20363, 979, 986, 987, 997,
18558, 18621, 20374, 20382, 1054, 1056, 1122,
18626, 18787, 20393, 20399, 1126, 1142, 1160,
18804, 18892, 20403, 20407, 1169, 1182, 1202,
18929, 18992, 20424, 20428, 1208, 1213, 1214,
19007, 19017, 20477, 20478, 1215, 1216, 1229,
19019, 19048, 20481, 20529, 1236, 1237, 1247,
19206, 19224, 20537, 20678, 1304, 1306, 1980,
19225, 19309, 20761, 20810, 1982, 2354, 2355,
19318, 19336, 20825, 20918, 2356, 2392, 2393,
19339, 19342, 20975, 20987, 2398, 2447, 2451,
19367, 19370, 21038, 21118, 2482, 2487, 2568,
19373, 19390, 21121, 21123, 4108, 4132, 4464,
19393, 19396, 21175, 21176, 4469, 4489, 4502,
19407, 19410, 21179, 21199, 4524, 4535, 4663,
19413, 19424, 21208, 21212, 4672, 4713, 4831,
19427, 19430, 21247, 21294, 4834, 4835, 4839,
19439, 19441, 21631, 21632, 21633 4840, 4992, 4993,
19444, 19447, \remainx . . . . . . . . 15281 5342, 5343, 5344,
19456, 19458, \remainxox . 15316, 15323 5345, 5346, 5347,
19461, 19464, \remainxoxx . . . . . . . 5348, 5349, 5350,
19475, 19478, . 15326, 15335, 15344 5404, 5519, 5528,
19481, 19493, \remainxx . . 15284, 15286 5549, 5567, 5585,
19496, 19499, \remainxxx . . . . . . . 5700, 5701, 5702,
19512, 19515, . . 15289, 15291, 5784, 5793, 5845,
19518, 19532, 15293, 15318, 15321 5853, 5877, 5882,
19535, 19538, \remainxxxx . . . 15296, 5893, 5894, 5895,
19550, 19565, 15298, 15300, 5896, 5897, 5898,
19567, 19570, 15302, 15328, 5899, 5965, 5970,
19573, 19587, 15330, 15333, 5972, 5973, 5990,
19617, 19618, 15337, 15340, 15342 5991, 5992, 5993,
19619, 19748, \remainxxxxx . . . . . . 6050, 6051, 6052,
19769, 19856, . . 15305, 15307, 6054, 6058, 6059,
19882, 19894, 15309, 15311, 15313 6060, 6064, 6065,
19896, 19902, \remove@strip . 14791, 6071, 6075, 6076,
19919, 19923, 14821, 14891, 14921 6077, 6081, 6082,
19935, 19937, \renewcommand . . . 19, 6087, 6091, 6092,
19943, 19952, 20, 21, 22, 86, 168, 6093, 6102, 6103,
19954, 20016, 214, 215, 216, 217, 6104, 6108, 6109,
20030, 20064, 289, 329, 412, 451, 6131, 6155, 6217,
20071, 20077, 453, 507, 524, 538, 6230, 6235, 6243,
20138, 20197, 542, 546, 547, 548, 6629, 6633, 6649,
20200, 20204, 549, 581, 621, 643, 6665, 6673, 6687,
20210, 20255, 659, 677, 685, 698, 6707, 6713, 6719,
20291, 20299, 700, 701, 702, 703, 6724, 6725, 6726,
20300, 20302, 716, 722, 728, 734, 6727, 6728, 6729,
20303, 20316, 735, 745, 802, 804, 6731, 6733, 6735,
20327, 20331, 870, 887, 900, 903, 6745, 6806, 6810,
20336, 20341, 921, 928, 954, 955, 6826, 6842, 6850,
20349, 20353, 956, 957, 958, 963, 6864, 6866, 6872,

Index 573
6895, 6901, 6902, 11236, 11237, 16214, 16281,
6903, 6904, 6905, 11238, 11240, 16282, 16294,
6906, 6908, 6910, 11242, 11244, 16353, 16355,
6912, 6922, 7018, 11246, 11247, 16419, 16435,
7057, 7059, 7113, 11248, 11249, 16451, 16459,
7128, 7143, 7147, 11250, 11251, 16473, 16475,
7151, 7153, 7155, 11252, 11262, 16497, 16498,
7157, 7158, 7159, 11331, 11598, 16499, 16500,
7160, 7161, 7162, 12145, 12155, 16501, 16502,
7185, 7204, 7269, 13135, 13192, 16504, 16506,
7274, 7296, 7303, 13193, 13194, 16520, 16526,
7313, 7397, 7402, 13195, 13218, 16532, 16537,
7412, 7435, 7458, 13222, 13235, 16543, 16551,
7481, 7508, 7524, 13239, 13248, 16592, 16594,
7985, 8025, 8026, 13249, 13250, 16651, 16665,
8027, 8028, 8029, 13251, 13882, 16680, 16683,
8030, 8031, 8032, 14613, 14624, 16687, 16691,
8046, 8051, 8083, 14647, 14648, 16693, 16695,
8117, 8118, 8119, 14649, 14650, 16697, 16698,
8120, 8121, 8122, 14651, 14652, 16699, 16700,
8123, 8124, 8134, 14653, 14654, 16701, 16714,
8146, 8334, 8335, 14656, 14658, 16740, 16779,
8336, 8458, 8461, 14660, 14662, 16781, 16835,
8465, 8481, 8634, 14663, 14665, 16850, 16865,
8635, 8662, 8676, 14666, 14673, 16869, 16873,
8728, 8734, 8738, 14674, 14676, 16875, 16877,
8743, 8778, 8780, 14682, 14683, 16879, 16880,
8830, 8831, 8832, 15279, 15282, 16881, 16882,
8833, 8836, 8875, 15287, 15294, 16883, 16884,
8877, 8931, 8945, 15303, 15314, 16917, 17061,
8947, 8949, 8951, 15319, 15324, 17065, 17069,
8952, 8953, 8954, 15331, 15338, 17073, 17099,
8955, 8956, 8980, 15355, 15357, 17106, 17113,
8999, 9009, 9022, 15374, 15416, 17126, 17128,
9033, 9037, 9107, 15437, 15513, 17190, 17192,
9121, 9135, 9149, 15522, 15894, 17237, 17282,
9160, 9171, 10766, 15897, 15906, 17283, 17284,
10781, 10816, 15910, 15923, 17287, 17288,
10820, 10836, 15936, 15949, 17302, 17327,
10843, 10878, 15961, 16025, 17356, 17361,
10880, 10930, 16047, 16063, 17366, 17367,
10931, 10932, 16079, 16087, 17368, 17369,
10933, 10934, 16101, 16103, 17372, 17445,
10935, 10937, 16109, 16126, 17463, 17485,
10939, 11064, 16132, 16133, 17487, 17508,
11074, 11094, 16134, 16135, 17510, 17512,
11103, 11208, 16136, 16137, 17515, 17521,
11227, 11229, 16139, 16141, 17530, 17532,
11231, 11233, 16144, 16145, 17534, 17540,
11234, 11235, 16155, 16212, 17610, 17614,

Index 574
17618, 17622, 19455, 19472, 17291, 17871,
17648, 17655, 19490, 19508, 18554, 19236,
17662, 17675, 19509, 19528, 19239, 19265, 20957
17677, 17739, 19529, 19548, \renewrobustcmd . . .
17741, 17786, 19616, 19890, . 13984, 14010, 14021
17830, 17831, 19912, 20189, \renewtagform . . . . 13952
17839, 17840, 20191, 20193, \repeat . . . 1783, 1784,
17843, 17844, 20209, 20216, 1785, 3942, 3949,
17847, 17855, 20218, 20220, 7523, 7685, 7691,
17863, 17882, 20223, 20227, 7799, 7857, 7867,
17907, 17936, 20232, 20236, 10386, 10395,
17941, 17946, 20240, 20254, 13334, 15652,
17947, 17948, 20259, 20261, 15699, 15710,
17949, 17952, 20264, 20268, 15721, 15749, 19031
18025, 18043, 20271, 20277, \RequirePackage 1553,
18065, 18067, 20397, 20504, 1555, 1556, 1557,
18088, 18090, 20526, 20544, 1558, 1559, 1790,
18092, 18095, 20566, 20578, 2005, 2006, 2364,
18101, 18109, 20614, 21093, 2365, 2366, 2367,
18111, 18114, 21094, 21325, 2374, 2375, 2390,
18120, 18196, 21326, 21327, 2443, 4311, 4312,
18309, 18313, 21637, 21679, 4328, 4372, 4373,
18317, 18321, 21681, 21682, 4376, 4628, 4690,
18347, 18354, 21683, 21735, 4692, 4699, 4720,
18361, 18374, 21737, 21739, 4724, 4760, 4761,
18376, 18438, 21741, 21745, 4984, 5194, 5195,
18440, 18485, 21747, 21751, 21753 5196, 5197, 5401,
18529, 18530, \RenewDocumentCommand 5402, 5517, 5736,
18534, 18535, . . . . . 14215, 14548 5911, 5922, 5974,
18538, 18539, \renewenvironment 83, 6000, 6008, 6025,
18542, 18546, 286, 569, 590, 6180, 6181, 6182,
18550, 18565, 606, 626, 633, 704, 6183, 6184, 6185,
18590, 18619, 855, 933, 940, 967, 6204, 6205, 6206,
18624, 18629, 1107, 1185, 1192, 6207, 6208, 6209,
18630, 18631, 1217, 4934, 4937, 21671, 21674,
18632, 18635, 4940, 4943, 5941, 21675, 21676, 21727
18708, 18726, 5951, 5959, 5975, \RequireXeTeX . 1554, 1867
18748, 18750, 6186, 6614, 6689, \reserved@a 2271, 2275,
18771, 18773, 6695, 6791, 6877, 2281, 2284, 2287,
18775, 18778, 6883, 7001, 7192, 2290, 2711, 2715,
18784, 18792, 7254, 7275, 7409, 3197, 3198, 3199,
18794, 18797, 8716, 8987, 10824, 4313, 4321, 4331,
18803, 18879, 11081, 11615, 4333, 4340, 4342,
18882, 19155, 14764, 15346, 4347, 4349, 4350,
19184, 19190, 15453, 16010, 4353, 4356, 4392,
19222, 19235, 16030, 16037, 4393, 4394, 4396,
19249, 19260, 16114, 16265, 4403, 4406, 4431,
19316, 19363, 16480, 16487, 4432, 4452, 4454,
19382, 19404, 16508, 16702, 4458, 4465, 4467,
19421, 19438, 16724, 16905, 4546, 4547, 19908,

Index 575
19909, 19912, 11497, 11498, 20991, 20997,
19913, 20393, 20394 11511, 11512, 21003, 21011, 21015
\reserved@b 2251, 2252, 11525, 11526, \rightskip 12, 13, 207,
2711, 2715, 2716, 21420, 21464, 21564 208, 305, 309, 513,
4303, 4304, 4332, \ResetCounterPerPage 530, 533, 534, 624,
4390, 4392, 4409, . . . . . . . 1791, 2581 637, 648, 649, 654,
4426, 4427, 4432, \resizebox . . . . . . 12099 665, 690, 693, 694,
4437, 4439, 4440, \restore@protect . . 3212 875, 876, 882, 892,
4442, 4445, 4465, 4467 \restoreCaptionSkip 895, 896, 909, 931,
\reserved@c . . . . 4405, . . . . . . . . . . 12280 1125, 1131, 1132,
4408, 4409, 4413, \restorecounters@ . 8561 1137, 1148, 1174,
4424, 4437, 4451, 4455 \restylefloat . . . . . 5184 1177, 1178, 1196,
\reserved@d . . . . 2710, 5865, 5872, 5873,
\resumename . . . . . . . 2444
2715, 4425, 4444, 4457 6443, 6632, 6638,
\righskip . . . . . . . 19618
\reset@dir . 15818, 20918 6639, 6644, 6655,
\right 20945, 20954, 20956
\reset@font . . . . . 37, 6678, 6681, 6682,
51, 67, 240, 254, \right@cor . . . 14793, 6809, 6815, 6816,
269, 5237, 5281, 14794, 14893, 14894 6821, 6832, 6855,
5325, 5553, 5554, \right@footnoterule 6858, 6859, 7119,
5571, 5572, 5589, . . . . . . 26, 230, 7134, 7137, 7138,
5590, 9111, 9125, 414, 542, 728, 738, 7270, 7271, 7272,
9139, 9153, 9164, 963, 990, 1208, 7398, 7399, 7405,
9175, 9404, 9414, 1240, 6719, 6738, 8668, 8671, 8672,
9424, 9450, 9462, 6872, 6915, 7020, 8682, 8936, 9353,
9475, 9513, 9522, 7147, 8738, 8745, 10678, 10687,
9531, 9556, 9567, 8838, 9037, 10820, 10772, 10787,
9579, 9616, 9626, 10845, 11347, 10790, 10791,
9636, 9662, 9674, 11361, 11371, 13185, 13186,
9687, 9725, 9735, 11494, 11522, 13974, 14647,
9745, 9771, 9783, 13161, 13239, 14648, 15011,
9796, 9834, 9844, 15175, 16109, 15015, 15016,
9854, 9880, 9892, 16148, 16285, 15023, 15028,
9905, 9943, 9953, 16532, 16545, 15035, 15040,
9963, 9989, 10001, 16687, 16742, 15915, 15917,
10014, 10052, 16869, 17106, 15928, 15930,
10062, 10072, 17120, 17361, 15941, 15943,
10098, 10110, 17655, 17669, 15952, 15954,
10123, 10161, 17941, 18221, 16028, 16041,
10171, 10181, 18354, 18368, 18624 16052, 16053,
10207, 10219, \rightfootnoterule 16058, 16069,
10232, 10270, 1698, 8175, 9079, 16092, 16095,
10280, 10290, 11359, 12006, 21633 16096, 16424,
10316, 10328, \rightline . . . 15851, 16425, 16430,
10341, 10536, 21103, 21107, 21109 16441, 16464,
10548, 10560, \rightlinenumbers . 16467, 16468,
10597, 10611, . . . . . 13407, 13415 16478, 16491,
10625, 11169, \rightmargin 948, 5927, 16540, 16656,
11434, 11435, 5946, 5954, 5960, 16671, 16674,
11451, 11452, 11752, 11756, 16675, 16680,
11467, 11468, 15904, 20980, 16681, 16841,

Index 576
16856, 16859, 16215, 16356, \rotFPtop . . . . 16949,
16860, 19159, 16553, 16596, 16960, 16996, 17009
19164, 19175, 16782, 17128, \rrb . . . . . . . . . 2054, 2064
19188, 19192, 17192, 17677, \rsb . . . . . . . . . 2053, 2062
19212, 19215, 17741, 18376, \RTL . . 15801, 20893, 20895
19220, 19224, 18440, 18920, 20928 \RTL@column@boxes .
19225, 19336, \RLE . 1602, 1885, 13029, . 15093, 15123, 15128
19337, 19338, 15808, 15809, \RTL@outputdblcol .
19346, 19367, 15813, 20531, . . . 7547, 10987,
19368, 19369, 20908, 20909, 20913 11833, 14770,
19377, 19390, \rmfamily . . . . . 734, 21234, 21325, 21326
19391, 19392, 986, 1236, 5755, \RTLbidituftesidenotemarginpar
19400, 19407, 5808, 5811, 5815, . . . 5286, 5586, 5727
19408, 19409, 5818, 5822, 5825, \RTLcases . . 20955, 20958
19417, 19424, 5829, 5832, 5836, \RTLcite . . . . . . . . .
19425, 19426, 5839, 16144, 16281 5513, 5633, 5662,
19434, 19441, \romannumeral . . 3988, 5691, 5713, 5722, 5731
19442, 19443, 3989, 6472, 6535, \RTLcolumnfootnotes 9200
19451, 19458, 8569, 8572, 8618, \RTLdblcol . . . . . . 21326
19459, 19460, 11210, 11211, \RTLdfnmakecol . . . . 8335
19468, 19475, 11212, 11213, \RTLfootfootmark . .
19476, 19477, 11215, 11216, 9097, 9240, 9445,
19485, 19493, 11217, 11218, 9551, 9657, 9766,
19494, 19495, 11219, 11222, 9875, 9984, 10093,
19503, 19512, 11223, 11224, 20983 10202, 10311, 10580
19513, 19514, \rot@float@box 16934, \RTLfootmarkstyle .
19522, 19532, 16935, 16936, . . . . . . . 9215, 9254
19533, 19534, 16950, 16959, \RTLfootnote . . . 419,
19542, 19567, 16977, 16978, 493, 2141, 2154,
19568, 19569, 16979, 16980, 5702, 6052, 7025,
19577, 19617, 16981, 16997, 17008 7099, 8843, 8917,
19619, 20297, 11404, 16290,
\rot@label . 16930, 16973
20359, 20360, 16396, 16550,
\rot@LR . . . . 16941, 16986
20361, 20367, 16638, 16747,
\rot@mess@toks 16933,
20370, 20417, 16821, 17125,
16945, 16955,
20477, 20482, 17241, 17674,
16964, 16976,
20505, 20512, 17790, 18373, 18489
16991, 17003, 17013
20881, 20882, \RTLfootnotetext . .
21088, 21115, \rot@message 16964, 17013 . . . . 2209, 2220,
21116, 21175, 21180 \rot@pageref 16931, 16974 6485, 6495, 11583,
\RL . . . 13030, 15808, 20908 \rotate . . . . . . . . . 17027 11586, 12699,
\rlap . . . 306, 454, 805, \rotatebox . . . . . . . 13914, 19080, 19084
1307, 1983, 7060, . . 11253, 12212, \RTLfootscript . 9215,
8781, 8878, 10881, 12261, 12474, 9243, 9247, 9249
10976, 10982, 14041, 14049, \RTLfoottextfont . .
11604, 12037, 14571, 16950, 9098, 9126, 9176,
12083, 12149, 16959, 16997, 17008 9294, 9424, 9445,
12150, 12163, \rotateframe 11215, 11252 9475, 9531, 9551,
12164, 13219, \rotFPbot . . . . 16951, 9579, 9636, 9657,
15069, 15837, 16958, 16998, 17007 9687, 9745, 9766,

Index 577
9796, 9854, 9875, \saved@@dir . . . 15817, 18751, 18753, 18755
9905, 9963, 9984, 15818, 20917, 20918 \scr@caption@before@longtable@warning
10014, 10072, \sbox . . . . 8641, 12243, . 17460, 18040, 18723
10093, 10123, 12260, 13261, \scr@compatibility
10181, 10202, 13269, 13314, . . . . . . . 17832,
10232, 10290, 13460, 13873, 17848, 17856, 17864
10311, 10341, 14040, 14048, \scr@dte@current . .
10560, 10580, 10625 14240, 14527, . . . . . 20012, 20015
\RTLmarginnote . . . . 5724 14566, 14571, \scr@dte@def@l@largetocline
\RTLmarginpar . . . . 21425 14684, 14699, . . . . . . . . . . 19779
\RTLmulticolcolumns 14731, 15454, \scr@dte@def@l@tocline
. . . . . . . . . . 15121 17382, 17396, . . . . . . . . . . 19981
\RTLsidenote . . 5456, 5698 17436, 17962, \scr@dte@def@l@undottedtocline
\RTLthanks . 419, 439, 17976, 18016, . . . . . . . . . . 19622
474, 493, 6052, 18645, 18659, \scr@dte@donumwidth
6060, 6077, 6093, 18699, 19174, . . . . . 20216, 20217
6104, 7025, 7045, 19191, 19933, 21614 \scr@dte@largetocline@init
7080, 7099, 8843, \sc@@temp . . . . 18240, . . . . . . . . . . 19780
8863, 8898, 8917, 18241, 18246, \scr@dte@nosub . . . .
11581, 14617, 18247, 18252, . . 20028, 20030,
16290, 16330, 18253, 18258, 20060, 20061,
16376, 16396, 18259, 18264, 20063, 20068,
16550, 16580, 18265, 18270, 20070, 20075,
16620, 16638, 18271, 18276, 20076, 20134, 20136
16747, 16767, 18277, 18282, \scr@dte@numberline@box
16802, 16821, 18283, 18288, 18289 . . . . . 19931, 19958
17125, 17210, \SC@FLOAT 18879, 21735, \scr@dte@tocline . .
17241, 17674, 21739, 21745, . . . . . 19890, 20273
17759, 17790, 21747, 21751, 21753 \scr@dte@tocline@init
18373, 18458, 18489 \SC@justify@caption . . . . . . . . . . 19982
\rtside . . . . . . 15682,
. . 18882, 21737, \scr@dte@tocline@numberwidth
21741, 21746, . . . . . . . 19934,
15684, 15695,
21748, 21752, 21754 19936, 19938, 19941
15697, 15718, 15720
\sc@temp . . . . . 18238, \scr@dte@tocline@numbox
\rule . . . . . . . . 46, 60,
18240, 18244, . 19933, 19935, 19949
76, 249, 263, 278,
18246, 18250, \scr@dte@undottedtocline@init
2492, 8039, 8650,
18252, 18256, . . . . . . . . . . 19623
8654, 8657, 9092,
18258, 18262, \scr@ifundefinedorrelax
9098, 9104, 11445,
18264, 18268, . . 19657, 19705,
11462, 11478,
18270, 18274, 19750, 19812,
11505, 11519,
18276, 18280, 19858, 19882,
11533, 14222, 15888
18282, 18286, 19921, 20026,
18288, 18298, 18300 20028, 20057,
S \sc@wm@text . . . . . . . 8459 20060, 20061,
\s . . . . . . . . 14071, 14072 \scalebox . . . . . . . 12097 20068, 20091,
\save@dir . . 15817, 20917 \scantokens . . . 3348, 3368 20131, 20132,
\savebox . . . . . . 8575, \scr@caption . . . . . . 20134, 20150,
12209, 12211, 12291 . . 17488, 17490, 20203, 20230, 20249
\saveCaptionSkip . 12241 17492, 18068, \scr@LT@array . 13039,
\savecounters@ . . . . 8558 18070, 18072, 17485, 17486,

Index 578
17498, 18065, 6692, 6880, 16033, 4741, 5119, 5743,
18066, 18078, 16042, 16483, 16492 5744, 5745, 6002,
18748, 18749, 18761 \sectfont . . . . . . . 15898 6003, 6004, 6029, 6030
\scr@parindent . . . . \section . . . . . . 570, \setbox 387, 1413, 1415,
. 17597, 18186, 18869 598, 614, 629, 1416, 1472, 1628,
\scr@saved@footnotetext 635, 638, 705, 863, 1903, 2303, 5165,
. . . . . . . 17058, 936, 942, 944, 968, 5221, 5224, 5265,
17062, 17607, 1115, 1188, 1194, 5268, 5309, 5312,
17611, 18306, 18310 1197, 1218, 2488, 6371, 6382, 6588,
\scr@saved@LTRfootnotetext 2554, 5757, 5779, 6602, 7228, 7255,
. . 17056, 17059, 5847, 5855, 5970, 7260, 7292, 7327,
17066, 17605, 5973, 5977, 6692, 7356, 7511, 7512,
17608, 17615, 6880, 8717, 16033, 7516, 7519, 7529,
18304, 18307, 18314 16039, 16042, 7533, 7536, 7540,
\scr@saved@RTLfootnotetext 16483, 16489, 16492 7550, 7553, 7554,
. . 17057, 17060, \sectionbib . . . . . . 19260 7568, 7585, 7601,
17070, 17606, \sectionfont . . . 2428, 7613, 7616, 7617,
17609, 17619, 2436, 8030, 8123 7631, 7644, 7660,
18305, 18308, 18318 \sectionstyle . 2436, 2494 7681, 7682, 7687,
\sectiontitlecolour 7688, 7693, 7696,
\scr@smashdp . . 17404,
. . . . . . . . 2419, 7719, 7727, 7737,
17418, 17419,
7992, 8000, 8007, 7788, 7802, 7806,
17437, 17984,
8014, 8021, 8091, 7816, 7821, 7830,
17998, 17999,
8097, 8103, 8109, 8115 7832, 7847, 7848,
18017, 18667,
\selectfont . . . . 347, 7859, 7860, 7872,
18681, 18682, 18700
3153, 6118, 6120, 7873, 7893, 7901,
\scr@tmp@footnotetext
6122, 15467, 15480 7911, 7959, 8183,
. . 17376, 17387,
\separatorcolumnwidth 8191, 8192, 8196,
17388, 17956,
2459, 2460, 2471, 8204, 8212, 8213,
17967, 17968,
2477, 2493, 2498, 8217, 8232, 8235,
18639, 18650, 18651
2504, 2562, 8137, 8167 8240, 8244, 8252,
\scr@tmp@LTRfootnotetext
\SepMark . . . 20967, 20968 8289, 8292, 8297,
. . 17378, 17389,
\seq . . . . . . . . . 14303, 8301, 8306, 9150,
17390, 17958,
14304, 15501, 15504 9161, 9172, 9264,
17969, 17970,
\set@color 7356, 7361, 9370, 9375, 9382,
18641, 18652, 18653
7369, 7375, 7383, 9447, 9459, 9472,
\scr@tmp@RTLfootnotetext 7390, 7395, 11611, 9553, 9564, 9576,
. . 17380, 17391, 20730, 20734, 20830 9659, 9671, 9684,
17392, 17960, \set@typeset@protect 9768, 9780, 9793,
17971, 17972, . . . . . . . 11164, 9877, 9889, 9902,
18643, 18654, 18655 11168, 18967, 9986, 9998, 10011,
\scriptsize . . . . 5893, 21150, 21536, 21538 10095, 10107,
18239, 18245, \SetatBoolean . . . . . 2770 10120, 10204,
18251, 18257, \setbaselineskip . . 3151 10216, 10229,
18263, 18269, \SetBoolean . . . . . . . 2754 10313, 10325,
18275, 18281, 18287 \setboolean 4634, 4635, 10338, 10360,
\scshape . . . . . . . . . 6973 4637, 4639, 4644, 10361, 10368,
\secshape . . 16639, 16680 4645, 4649, 4650, 10380, 10383,
\SectFont 629, 638, 936, 4721, 4725, 4728, 10385, 10389,
944, 1188, 1197, 4733, 4735, 4739, 10392, 10394,

Index 579
10396, 10540, 15696, 15706, 7077, 8765, 8798,
10552, 10564, 15708, 15717, 8860, 8895, 10865,
10582, 10601, 15719, 15734, 10898, 11194,
10607, 10615, 15736, 15744, 13246, 13247,
10621, 10629, 15746, 15755, 14645, 15419,
10639, 10649, 15836, 15837, 15440, 16156,
10659, 10668, 15867, 15885, 16188, 16232,
10698, 10706, 17019, 17029, 16295, 16327,
10721, 10737, 17040, 17047, 16373, 16577,
10748, 10960, 17402, 17982, 16617, 16764,
10990, 10993, 18239, 18245, 16799, 17116,
11006, 11026, 18251, 18257, 17207, 17320,
11029, 11043, 18263, 18269, 17393, 17394,
11094, 11134, 18275, 18281, 17665, 17756,
11139, 11495, 18287, 18665, 17900, 17973,
11509, 11523, 18908, 18956, 17974, 18364,
11542, 11666, 18997, 19047, 18455, 18583,
11675, 11679, 19117, 20435, 18656, 18657, 19560
11703, 11717, 20438, 20443, \setdefaultbibitems
11787, 11794, 20447, 20451, . . . . . . . . . . 20972
11795, 11811, 20455, 20459, \setdefaultmarginpar
11836, 11843, 20463, 20467, . . . . . . . . . . 21515
11844, 11860, 20471, 20722, \setDefaults . . . . . 12198
11911, 11923, 20730, 20835, \setfloatalignment 4793
11957, 11959, 20887, 20897, \setfootnoteLR . . . 11426
11970, 11995, 20927, 20928, \setfootnoteRL . . . 11424
12020, 12029, 21112, 21138, \setkeys . . . . . . 1658,
12036, 12037, 21237, 21240, 7219, 7236, 8539,
12082, 12083, 21241, 21255, 8545, 8547, 12028,
13852, 13861, 21284, 21287, 12072, 12200,
13923, 13928, 21288, 21302, 13260, 13298,
13931, 13940, 21331, 21333, 15460, 15519,
13960, 13992, 21347, 21349, 16938, 16983, 20615
13998, 14773, 21360, 21404, \setlatin . . . . . . . . 1564
14776, 14777, 21407, 21448, \setlength . . . . 511,
14799, 14804, 21451, 21479, 528, 664, 688,
14814, 14832, 21493, 21511, 21577 890, 908, 945,
14837, 14873, \setcaptionfont . . . 4713 946, 947, 948, 949,
14876, 14877, \setcaptionwidth . 13886 1147, 1172, 2128,
14899, 14904, \setchapterpreamble 2129, 2130, 2332,
14914, 14932, . . . . . 17876, 18559 2333, 2335, 2336,
14937, 14968, \setcitationfont . . 5348 2338, 2339, 2341,
15049, 15065, \setcounter . 436, 471, 2342, 2344, 2345,
15626, 15640, 746, 778, 822, 998, 2347, 2348, 2350,
15643, 15662, 1030, 1074, 1248, 2351, 2352, 2357,
15663, 15669, 1280, 1324, 1990, 2358, 2396, 2397,
15670, 15681, 5421, 5440, 5459, 2399, 2400, 2401,
15683, 15685, 5491, 5741, 6253, 2402, 2460, 2469,
15687, 15690, 6531, 6746, 6778, 2470, 2473, 2475,
15692, 15694, 6923, 6955, 7042, 2478, 2479, 2481,

Index 580
2484, 2550, 2560, 19597, 19598, 16120, 16514,
2561, 2562, 4658, 19600, 19601, 16708, 16911,
4685, 4686, 4687, 19761, 19869, 17313, 17893,
4688, 4709, 4715, 20214, 21036, 21039 18238, 18244,
4716, 4749, 4752, \setLR . . . . . 15843, 20936 18250, 18256,
4756, 4802, 4854, \setLTR . . . . . . 15804, 18262, 18268,
4855, 5356, 5357, 15805, 15818, 18274, 18280,
5358, 5359, 5365, 15843, 15844, 18286, 18576,
5607, 5900, 5901, 20904, 20905, 19243, 20400, 20402
5902, 5903, 5904, 20918, 20936, 20937 \setupL@lbox 13293, 13300
5905, 5906, 5907, \setLTRbibitems . . 20971 \Setversedim . . . . . .
5909, 5910, 5912, \setLTRcitationfont 5349 . . . 6266, 6270, 6296
5915, 5916, 5917, \setLTRmarginnotefont \SetWatermarkText . 8458
5918, 6135, 6136, . . . . . . . . . . . 5346 \sevencolumnfootnotes
6654, 6676, 6831, \setLTRmarginpar . 21514 . . . . . . . . . . . 9923
6853, 7117, 7132, \setLTRsidenotefont 5343 \sf . . . . . 18239, 18245,
7403, 8126, 8130, \setLTRtable . . . . . . 1570 18251, 18257,
8132, 8135, 8521, \setmarginnotefont 5345 18263, 18269,
8666, 8681, 9256, \setnonlatin . . . . . . 1565 18275, 18281, 18287
9259, 9296, 10771, \setparsizes . . 17133, \sf@size . . . . . . . . 13169
10785, 11540, 17245, 17682, \sfcode . . . . . . . . 93,
12014, 12122, 17794, 18381, 18493 296, 586, 718, 981,
12123, 12129, \setRL . . . . . 15842, 20935 1231, 6709, 6897,
12130, 12132, \setRTL . 15803, 15806, 7209, 8730, 9004,
12133, 12202, 15818, 15842, 10838, 13142,
12203, 12215, 20557, 20597, 15360, 16128,
12219, 12221, 20631, 20903, 16522, 16719,
12223, 12227, 20906, 20918, 20935 16922, 17330,
12229, 13252, \setRTLbibitems . . 20970 17910, 18593, 19254
13253, 13254, \setRTLcitationfont 5350 \sh@wgridXunit . . . 15856
13255, 13294, \setRTLmain . . . . . . . 1875 \sh@wgridYunit . . . 15856
13301, 13302, \setRTLmarginnotefont \shadowbox . . . . . . . 8635
13303, 13315, . . . . . . . . . . . 5347 \shadowsize 8645, 8649,
13316, 13339, \setRTLmarginpar . 21513 8650, 8653, 8654, 8657
13344, 13347, \setRTLsidenotefont 5344 \shipout . . . . . 11164,
13907, 15459, \setRTLtable . . . . . . 1569 11934, 11944, 21535
16068, 16090, \setsidenotefont . . 5342 \shortauthors . . . . .
16440, 16462, \setSingleSpace 9202, 9207 . . 115, 116, 121,
16669, 16839, \setspace@singlespace 13201, 13202, 13207
16854, 17075, . . . 5552, 5570, 5588 \shortcite . . . . . . 15362
17399, 17425, \setthesection . . . 14662 \shorttitle . . . . . . .
17624, 17979, \settodepth . . . . . . 15455 . . 114, 115, 121,
18005, 18323, \settoheight . 8518, 15456 13200, 13201, 13207
18662, 18688, \settowidth . . . . . 89, \showbox . . . . . . . . 11740
19163, 19164, 292, 575, 710, 973, \showgridp@s . . . . . 15855
19212, 19213, 1223, 2464, 6701, \showoutput . . . . . . 11740
19215, 19584, 6889, 7198, 8128, \sidecaptionsep 18880,
19588, 19589, 8563, 8722, 8993, 18881, 21736,
19591, 19592, 10830, 13138, 21740, 21745,
19594, 19595, 13341, 15458, 21747, 21751, 21753

Index 581
\sidenote . . . . . 5418, 944, 989, 1197, \soulomit . . . . . . . 18890
5472, 5510, 5605, 5696 1239, 2015, 2430, \space . . . . 1504, 3334,
\sidenotes . . . . . . . 5515 2520, 2525, 2555, 3477, 3585, 3599,
\sideways . . . . . . . 17045 5882, 5883, 5948, 3613, 3623, 4306,
\sigindent . . . . . . 18299 5956, 5961, 5980, 4493, 4495, 4506,
\sixcolumnfootnotes 9814 6737, 6914, 7019, 4508, 4511, 4974,
\sixt@@n . . . . . 2270, 2292 8744, 8837, 10844, 4979, 4980, 5113,
\size@chapter . . . . 15898 16042, 16147, 5114, 6973, 7168,
\skip . 1607, 1890, 6459, 16284, 16492, 7684, 7690, 7853,
6460, 8237, 8294, 16544, 16741, 7861, 7862, 8962,
9284, 9309, 9317, 17119, 17668, 18367 10800, 11640,
9325, 9339, 9355, \smallcaps 6236, 6237, 6238 11648, 11649,
9358, 9363, 10446, \smallskip . . . . . . . 11673, 11681,
10448, 10450, . . 15281, 15286, 13278, 13310,
10452, 10508, 15293, 15302, 13311, 14348,
10510, 10512, 15313, 15318, 15055, 15057,
10514, 10680, 15323, 15330, 15058, 15059,
10689, 10712, 15337, 15344, 15895 15060, 15226,
10725, 11558, \smash 4910, 4915, 4926, 15233, 15863,
11777, 11778, 4927, 4930, 4931, 16889, 16932,
11789, 11791, 5138, 8186, 8207, 16975, 17184,
11838, 11840, 11604, 13375, 17335, 17733,
11894, 11899, 15840, 20931, 20933 17915, 18432,
11962, 11973, \SOUL@apo . . . . . . . 18902 18598, 19067,
11980, 12014, \SOUL@comma . . . . . . 18901 19069, 19126,
15182, 15188, \SOUL@do . . . . . . . . 18904 19951, 19953,
15192, 15197, \SOUL@eventuallyexhyphen 20519, 21202, 21484
15201, 15263, . . . . . . . . . . 18891 \spacefactor . . . 5531,
15267, 15824, \SOUL@grave . . . . . . 18903 5536, 5542, 5545
15830, 21336, \SOUL@ignorespacesfalse \spaceskip . 18935, 18940
21352, 21363, 21371 . . . . . . . . . . 18895 \speci@ls . . 15244, 15251
\skip@ . . . . . . . . 311, 312 \SOUL@lasttoken . . 18898
\special . . . . . . . . .
\sloppy . . . . . . 42, 56, \SOUL@lowerthan . . 18888
1629, 1803, 1812,
72, 92, 245, 259, \SOUL@minus . . . . . . 18900
1904, 1930, 1979,
274, 295, 582, 717, \SOUL@postamble . . 18905
15837, 19123,
980, 1230, 2569, \SOUL@preamble . . . 18897
19124, 19128,
6708, 6896, 7205, \SOUL@soeventuallyskip
19129, 19131, 20928
8729, 9000, 10837, . . . . . . . . . . 18892
\SOUL@spaceskip . . 18893 \spinemargin . . 8468, 8472
11772, 13141,
13977, 15359, \SOUL@start . . . . . . 18886 \split@prev . . . . . . .
15978, 16127, \SOUL@ulcolor . 18917, . 11383, 11391, 11396
16521, 16715, 18923, 18929, 18937 \splitbotmark . . . . 11677
16918, 17329, \SOUL@uldp . . . . . . 18929 \splitfirstmark . . .
17909, 18592, 19250 \SOUL@uleveryspace 18931 . . . . 7557, 7620,
\slshape . . . 655, 883, \SOUL@ulht . . . . . . 18929 10996, 11032,
1138, 2516, 6645, \SOUL@ulleaders . . . 11676, 11798,
6822, 8028, 8029, . 18917, 18923, 18939 11847, 14780,
8119, 8120, 8122, \SOUL@uloverlap . . 18910 14880, 21244, 21291
16059, 16431, 16645 \SOUL@ulunderline 18907 \SplitFootnoteRule
\small . . 413, 638, 737, \SOUL@word . . . . . . 18899 . . . . . . 1700, 11382

Index 582
\splitfootnoterule \string . . . . . . . 359, 60, 76, 249, 263,
. . . . . 11386, 11394 1384, 1727, 1731, 278, 2045, 9031,
\splitmaxdepth 40, 54, 2612, 2648, 2654, 9439, 9442, 9445,
70, 243, 257, 272, 2726, 2728, 2746, 9545, 9548, 9551,
7551, 7614, 9301, 2747, 2750, 2751, 9651, 9654, 9657,
10991, 11027, 2928, 2947, 2975, 9760, 9763, 9766,
11438, 11455, 3001, 3029, 3055, 9869, 9872, 9875,
11471, 11792, 3058, 3092, 3095, 9978, 9981, 9984,
11841, 14774, 3179, 3180, 3186, 10087, 10090,
14874, 21238, 21285 3334, 3364, 3385, 10093, 10196,
\splittopskip . 40, 54, 3388, 3415, 3417, 10199, 10202,
70, 243, 257, 272, 3477, 3546, 3591, 10305, 10308,
9300, 9372, 9376, 3592, 3605, 3606, 10311, 10572,
9486, 9487, 9491, 3617, 3618, 3629, 10576, 10580,
9492, 9589, 9590, 3630, 3661, 3675, 13991, 17383,
9594, 9595, 9698, 3676, 3677, 3678, 17385, 17404,
9699, 9703, 9704, 3682, 4306, 4315, 17406, 17409,
9807, 9808, 9812, 4319, 4325, 4336, 17411, 17414,
9813, 9916, 9917, 4493, 4495, 4506, 17418, 17420,
9921, 9922, 10025, 4508, 4509, 4510, 17430, 17432,
10026, 10030, 4511, 4513, 5113, 17437, 17441,
10031, 10134, 5114, 7365, 7368, 17963, 17965,
10135, 10139, 7386, 7389, 10401, 17984, 17986,
10140, 10243, 10403, 11644, 17989, 17991,
10244, 10248, 11645, 11646, 17994, 17998,
10249, 10352, 11647, 11648, 18000, 18010,
10353, 10357, 11770, 12104, 18012, 18017,
10358, 11437, 12105, 15988, 18021, 18301,
11454, 11470, 15989, 17184, 18646, 18648,
11671, 11672, 15636 17335, 17337, 18667, 18669,
\stepcounter . . . 3641, 17343, 17733, 18672, 18674,
3647, 3655, 3661, 17915, 17917, 18677, 18681,
5429, 5448, 5467, 17923, 18432, 18683, 18693,
5499, 5619, 5648, 18598, 18600, 18695, 18700,
5677, 6429, 11193, 18606, 19093, 18704, 19174, 19179
11264, 11334, 20518, 20775, \strutbox 40, 54, 70, 243,
11404, 11413, 20822, 21202, 21222 257, 272, 385, 389,
12865, 13819, \strip@prefix . 3385, 3398 9093, 9099, 9105,
15414, 15418, \strip@pt . 2845, 3152, 9301, 9486, 9491,
15435, 15439, 8407, 8410, 8415, 9589, 9594, 9698,
16929, 16972, 21607 8418, 10459, 10521 9703, 9807, 9812,
\stopbreaks . . 9023, 18298 \stripsep . 7602, 7661, 9916, 9921, 10025,
\str . . . . 14060, 14111, 7676, 7722, 7731, 10030, 10134,
14183, 14201, 7741, 7786, 7896, 10139, 10243,
14263, 14287, 7905, 7915, 14808, 10248, 10352,
14292, 14366, 14810, 14817, 10357, 10441,
14397, 14410, 14908, 14910, 10503, 11438,
14432, 14486, 14518 14917, 14979, 11445, 11455,
\stretch . . . . . . 1474, 14982, 14984, 14991 11462, 11471,
1477, 7329, 7332 \strut . . . . . . . . . 46, 11478, 11505,

Index 583
11519, 11533, \tabular . . . . . . . . 19062 4756, 4855, 5156,
13838, 13854, \tabularnewline 404, 5157, 6297, 7569,
13896, 13993, 13833, 18965, 21147 7577, 7632, 7697,
17427, 17428, \tabularx . . . . . . . 19053 7703, 7874, 7879,
18007, 18008, \tabularxcolumn . . 19015 8039, 8054, 8126,
18690, 18691, \tagform@ . . . . . . . . 336 8135, 8249, 8471,
18957, 18958, \tamark . . . . . . . . . 14628 9371, 10379,
18993, 21139, 21140 \tcb@@icolorbox . . 19151 11006, 11012,
\subfig@oldlabel . . \tcb@vbox . . . . . . . 19138 11044, 11134,
. . . . . . . 4844, 4846 \tcd . . 15633, 15640, 15641 11139, 11545,
\subfigure . . . 4843, 4850 \tcdsav . . . . . . . . . 15633 11812, 11861,
\subitem . . . . . . . . . \tcl . . 15657, 15658, 15664 11869, 12150,
108, 228, 5991, 13158 \tcn 15641, 15642, 15664, 12153, 12158,
\subjclass . . . . . . . 324 15665, 15666, 15667 12164, 13965,
\subject . . . . . . . . . \Telefon . . . . . . . . . 2410 14838, 14846,
. 17229, 17778, 18477 \tencolumnfootnotes 14938, 14969,
\subject@font . 17142, . . . . . . . . . . 10250 15132, 15164,
17255, 17691, \TeX . . . . 13031, 15819, 15165, 15168,
17804, 18390, 18503 15820, 15841, 15169, 15172,
\subparagraph . . . . . 20919, 20920, 20932 15173, 15177,
. . . 5793, 5794, 5797 \textbf . . . . . . . . . . 15180, 17135,
\subsection . . . . . . . 2523, 5937, 11617, 17163, 17167,
. . . 2495, 5764, 5780 11619, 11621, 11623 17247, 17684,
\subsectioncolour . \textbullet . . . . 2407, 17712, 17716,
. . . . . . . . 2421, 7985, 8049, 8083 17796, 18298,
7993, 8001, 8008, \textcolor . . . . . . . 18383, 18411,
8015, 8022, 8092, 8634, 8649, 8653, 18415, 18495,
8098, 8104, 8110, 8116 8656, 11607, 13282 21256, 21264,
\subsectionfont 2429, \textdef@ . . . . . . . . 345 21303, 21581, 21597
2437, 8031, 8124 \textdir . . . . . . . . 14526 \textwidth@footnoterule
\subsectionstyle . . \textendash . 743, 995, . . 416, 740, 992,
. . . . . . . 2437, 2496 1058, 1245, 6743, 1242, 6740, 6917,
\subsubitem . . . . . . . 6920, 16153, 16292 7022, 8747, 8840,
109, 229, 5992, 13159 \textheight . . . . 1964, 10847, 11353,
\subsubsection . . . . 2371, 7585, 7644, 11364, 15179,
. . . 5784, 5785, 5788 11780, 12202, 16150, 16287,
\subtable . . . . . . . . 4850 16937, 16982, 21606 16547, 16744,
\supereject . . . . . . . 1944 \textit . . . . . . . . . 19620 17122, 17671, 18370
\symbol . . . . . . 2058, 2068 \textsf . . . . . . . . . . 1644 \textwidthfootnoterule
\sys . . . . . . . . . . . . 14281 \textsl . . 4997, 4998, 4999 1702, 8177, 9081,
\textsuperscript . . 11362, 12007, 21634
T . . . . 5544, 9252, \TeXXeTOff . 15752, 20833
\t@cb@bchapsec . . . 19235 9253, 9254, 17098, \TeXXeTOn . . . . 15751,
\tabcaption . 12251, 12269 17647, 18217, 18346 15753, 20832, 20834
\tabcolsep 379, 1356, \texttt . . . . . . . 2068, \TeXXeTstate . . 15751,
13849, 16409, 20942 2132, 2134, 2135, 3664 15752, 20832, 20833
\tablinesep . . . . . . 18990 \textwidth . . . . 1616, \TF@conlab . . . . . . .
\tabskip . . 395, 6439, 1622, 1963, 2369, . 11600, 11602, 11609
13863, 13864, 2460, 2469, 2470, \TF@savecolor 11606, 11611
18963, 19001, 21145 2482, 2484, 4752, \TF@Title . . . . . . . 11609

Index 584
\thanklessauthor 6045, 1957, 1960, 1962, 11848, 12074,
6078, 6081, 6118 2201, 2203, 2206, 12119, 12652,
\thanklesspublisher 2209, 2214, 2217, 12660, 12661,
. . . . . . . . 6046, 2220, 2325, 2661, 12667, 12669,
6105, 6108, 6122 2663, 2664, 2685, 12698, 12699,
\thanklesstitle 6044, 2687, 2688, 3349, 12705, 12707,
6061, 6064, 6120 3677, 3772, 3827, 12738, 12740,
\thanks . . . . . . . 323, 3855, 3857, 3864, 12769, 12771,
417, 437, 472, 491, 3866, 3868, 3870, 12800, 12802,
741, 753, 779, 790, 3871, 3872, 3883, 13210, 13211,
791, 800, 823, 840, 3890, 3892, 3897, 13308, 13310,
993, 1005, 1031, 3901, 3902, 3907, 13354, 13356,
1042, 1043, 1052, 3912, 3920, 3923, 13361, 13363,
1075, 1092, 1243, 3927, 3933, 4017, 13369, 13371,
1255, 1281, 1292, 4018, 4019, 4044, 13376, 13911,
1293, 1302, 1325, 4559, 4566, 4595, 13914, 14476,
1343, 1991, 6044, 5386, 5396, 5531, 14779, 14781,
6045, 6046, 6047, 5542, 6348, 6355, 14792, 14809,
6050, 6057, 6058, 6479, 6482, 6485, 14816, 14822,
6074, 6075, 6090, 6489, 6492, 6495, 14879, 14881,
6091, 6102, 6741, 6600, 7215, 7220, 14892, 14909,
6753, 6779, 6918, 7264, 7325, 7556, 14916, 14922,
6930, 6956, 7023, 7558, 7619, 7621, 14992, 15055,
7043, 7078, 7097, 7684, 7690, 7691, 15057, 15058,
8748, 8766, 8799, 7692, 7824, 7834, 15059, 15060,
8816, 8841, 8861, 7853, 7861, 7862, 15061, 15353,
8896, 8915, 10848, 7863, 7866, 7868, 15518, 15534,
10866, 10899, 7869, 7870, 10445, 15538, 15541,
10916, 14615, 10507, 10995, 15566, 15590,
16151, 16163, 10997, 11031, 15597, 15604,
16189, 16200, 11033, 11262, 15758, 15759,
16201, 16210, 11277, 11278, 16945, 16955,
16233, 16250, 11281, 11282, 16964, 16991,
16288, 16302, 11285, 11338, 17003, 17013,
16328, 16341, 11342, 11396, 17320, 17900,
16342, 16351, 11569, 11583, 18583, 18986,
16374, 16394, 11633, 11640, 18987, 19017,
16548, 16578, 11644, 11645, 19036, 19038,
16618, 16636, 11646, 11647, 19062, 19067,
16745, 16765, 11648, 11649, 19069, 19070,
16800, 16819, 11657, 11663, 19073, 19074,
17123, 17208, 11670, 11671, 19077, 19080,
17239, 17672, 11673, 11678, 19081, 19084,
17757, 17788, 11680, 11681, 19192, 19949,
18371, 18456, 18487 11695, 11721, 19952, 19954,
\thankses . . . . . . . . 323 11751, 11752, 20030, 20301,
\the . . . 124, 125, 1372, 11753, 11758, 20304, 20305,
1466, 1467, 1469, 11759, 11760, 20307, 20309,
1470, 1532, 1640, 11770, 11797, 20313, 20318,
1856, 1915, 1955, 11799, 11846, 20322, 20333,

Index 585
20334, 20337, 18531, 18543, \theHsection 15402, 15404
20343, 20347, 18547, 18551, 19276 \theindex . 98, 218, 13148
20355, 20356, \thecontentspage 5811, \thelstlisting 13490,
20393, 20409, 5818, 5825, 5832, 5839 13495, 13518, 13521
20413, 20512, \thedate . 6040, 6048, 6094 \thempfn . . . . . . . . .
20675, 20687, \theenumiv . . . . . 86, 2226, 2234, 2242,
20692, 20713, 89, 289, 292, 581, 5620, 5626, 5649,
20714, 20716, 716, 979, 1229, 5655, 5678, 5684,
20838, 20839, 2568, 6707, 6895, 6500, 6507, 6514,
20983, 21040, 7204, 8728, 8999, 11405, 11410,
21208, 21210, 10836, 13135, 11414, 11419,
21222, 21243, 13138, 16126, 11547, 11573,
21245, 21290, 21292 16520, 16714, 11578, 11588,
\the@cornersize . . . 16917, 17327, 11593, 12519,
. . . . . 10952, 10953 17907, 18590, 19249 12530, 12541,
\thealgocf . . . . . . . 168 \theequation . . . . . . 12671, 12709,
\theAlgoLine . . . . . 21679 . . . . 6729, 6906, 12742, 12773,
\thechapter . . . . 308, 7151, 8945, 10935, 12804, 12866, 14023
5753, 6724, 6730, 11227, 11240, \thempfootnote . . . .
6732, 6734, 6901, 13220, 14663, . . . . . 11547, 14023
6907, 6909, 6911, 16137, 16506, \theorem@indent 15428,
6973, 7152, 7154, 16691, 16873, 15429, 15448, 15449
7156, 7157, 7158, 17863, 18550, 21627 \theorem@prework . 15422
7168, 8946, 8948, \thefigure . . . . 6731, \theorempostskipamount
8950, 8951, 8952, 6908, 7153, 8947, . . . . . 15423, 15443
8962, 10800, 10937, 11229, \theorempreskipamount
10930, 10936, 11242, 14665, . . . . . 15426, 15446
10938, 10940, 16139, 16502, \thepage . . . . . . 1953,
11228, 11230, 16693, 16875, 1958, 2545, 4885,
11232, 11233, 17847, 18542, 18973 4997, 4998, 4999,
11234, 11241, \thefootdir@label . 5008, 5009, 6224,
11243, 11245, . . 11262, 11265, 6225, 6236, 6237,
11246, 11247, 11294, 11299, 6238, 7750, 7768,
13519, 14653, 11317, 11320, 11340 7925, 7943, 15226,
14662, 14664, \thefootnote . . . 453, 15233, 20719, 21484
14665, 14666, 745, 804, 997, \theparagraph . . . 21,
15394, 15901, 1056, 1247, 1306, 22, 216, 217, 548,
16132, 16138, 1982, 6745, 6922, 549, 702, 703, 956,
16140, 16142, 7059, 8780, 8877, 957, 1215, 1216,
16497, 16503, 10880, 12552, 5774, 6727, 6728,
16505, 16507, 16155, 16214, 6904, 6905, 7161,
16692, 16694, 16294, 16355, 7162, 8832, 8833,
16696, 16697, 16551, 16594, 8955, 8956, 10933,
16874, 16876, 16781, 17126, 10934, 11237,
16878, 16879, 17190, 17675, 11238, 11250,
16880, 16889, 17739, 18374, 18438 11251, 13194,
17833, 17835, \thefootnotemark . . 13195, 14658,
17849, 17851, . . . . . . . 17098, 14661, 16135,
17857, 17859, 17647, 18217, 18346 16136, 16500,
17865, 17867, \theHchapter . . . . . 15394 16501, 16700,

Index 586
16701, 16883, 16699, 16881, 18379, 18452, 19308
16884, 17287, 16882, 17283, \thm@topsepadd 15423,
17289, 17843, 17285, 17839, 15424, 15427,
17845, 18538, 18540 17841, 18534, 18536 15443, 15444, 15447
\thepart . . . . . . . . . \thesubsubsection 20, \thr@@ . . . . . 356, 372,
. 553, 561, 8692, 8700 21, 215, 216, 547, 1381, 1399, 1423,
\ther@tfl@t . . . 16930, 548, 701, 702, 1432, 9590, 9595,
16931, 16973, 16974 955, 956, 1214, 15217, 15235,
\thesection . . . . . 19, 1215, 6726, 6727, 18893, 19090, 19110
214, 546, 700, 954, 6903, 6904, 7160, \threecolumnfootnotes
1213, 5760, 6724, 7161, 8831, 8832, . . . . . . . . . . . 9493
6725, 6901, 6902, 8954, 8955, 10932, \tiny . . . . 2028, 5522, 5894
7158, 7159, 8830, 10933, 11236, \title 320, 445, 481, 785,
8952, 8953, 10930, 11237, 11249, 830, 1037, 1082,
10931, 11234, 11250, 13193, 1287, 1332, 1998,
11235, 11247, 13194, 14656, 2447, 2486, 6039,
11248, 13192, 14659, 16134, 6054, 6785, 6962,
14653, 14655, 16135, 16499, 7051, 7087, 8772,
15402, 15404, 16500, 16699, 8806, 8869, 8905,
16132, 16133, 16700, 16882, 10872, 10906,
16497, 16498, 16883, 17284, 16195, 16240,
16697, 16698, 17287, 17840, 16336, 16383,
16880, 16881, 17843, 18535, 18538 16586, 16627,
17283, 17831, \thetable . . . . . 6733, 16773, 16809,
17839, 18530, 18534 6910, 7155, 8949, 17226, 17775, 18474
\thesubparagraph . . 10939, 11231, \TitleBarFrame . . . .
. . . 22, 217, 549, 11244, 14666, . . 11598, 11617,
703, 957, 1216, 16141, 16504, 11619, 11621, 11623
6728, 6905, 7162, 16695, 16877, \titlecolour . . 2416, 8086
8833, 8956, 10934, 17855, 18546, 18974 \titlecontents . 5806,
11238, 11251, \TheTokenList . . . . . 3881 5813, 5820, 5827, 5834
13195, 14660, \thinlines . . . . 7415, \TitleFont . . . . 734,
16136, 16501, 7425, 7438, 7448, 750, 841, 843, 849,
16701, 16884, 7461, 7471, 7484, 7494 986, 1002, 1093,
17288, 17844, 18539 \thispagestyle . 101, 1095, 1101, 1236,
\thesubsection . . 19, 113, 221, 469, 1252, 1344, 1346,
20, 214, 215, 546, 601, 616, 820, 865, 1352, 1355, 1356,
547, 700, 701, 954, 1072, 1117, 1322, 1361, 6750, 6927,
955, 1213, 1214, 6125, 6147, 6168, 16144, 16160,
5767, 6725, 6726, 6624, 6801, 7012, 16251, 16253,
6902, 6903, 7159, 7075, 8796, 8893, 16259, 16281,
7160, 8830, 8831, 9010, 9013, 10896, 16299, 16397,
8953, 8954, 10931, 13151, 13199, 16399, 16405,
10932, 11235, 13223, 13226, 16408, 16409, 16414
11236, 11248, 14643, 16020, \titlefont . . . . 2425,
11249, 13192, 16230, 16275, 2433, 8119, 17145,
13193, 14654, 16371, 16615, 17258, 17694,
14657, 16133, 16735, 16797, 17807, 18393, 18506
16134, 16498, 17131, 17204, \titleformat . . . 5750,
16499, 16698, 17680, 17753, 5757, 5764, 5771

Index 587
\titlehead . . . . . . . 14332, 14333, \tocstyle@dottedtocline
. 17228, 17777, 18476 14334, 14335, . . . . . . . . . . 20277
\titlepage . . . . 627, 14336, 14345, \tocstyle@feature@dothook
934, 1186, 6690, 14348, 14352, . . . . . . . . . . 20376
6878, 16031, 16481 14353, 14354, \tocstyle@feature@entryhook
\titlepagestyle . . . 14357, 14371, . . . . . . . . . . 20372
. 17204, 17753, 18452 14377, 14390, \tocstyle@feature@entryvskip
\titlespacing . . . . . 14395, 14399, . . . . . 20291, 20294
. . . 5778, 5779, 5780 14420, 14428, \tocstyle@feature@leaders
\titlestyle . . . 2433, 8150 14429, 14454, . . . . . 20374, 20379
\tl . . . . . 14043, 14051, 14458, 14459, \tocstyle@feature@pagenumberbox
14056, 14058, 14460, 14473, . . . . . 20382, 20385
14059, 14060, 14545, 14546, \tocstyle@feature@pagenumberhook
14061, 14063, 14554, 14555, . . . . . 20383, 20385
14064, 14066, 14556, 14557, \tocstyle@feature@parfillskip
14069, 14073, 14567, 14568, . . . . . 20362, 20363
14082, 14086, 14569, 14574, \tocstyle@feature@raggedhook
14089, 14094, 14579, 14581, . . . . . . . . . . 20298
14099, 14107, 14584, 14585, \tocstyle@feature@spaceafternumber
14109, 14110, 14590, 14591, . . . . . . . 20399,
14111, 14112, 14596, 14608, 14609 20403, 20424, 20428
14114, 14116, \tmpcount . . . . 4071, 4097 \tocstyle@indentstyle
14118, 14119, \toaddress . . 9019, 13232 . . . . . 20349, 20419
14121, 14127, \toc@headstar 19298, 19303 \tocstyle@l@define
14131, 14134, \tocbasic@DependOnPenaltyAndTOCLevel . . 20436, 20439,
14135, 14138, . . . . . . . . . . 19893 20444, 20448,
14145, 14150, \tocbasic@SetPenaltyByTOCLevel 20452, 20456,
14158, 14161, . . . . . . . . . . 19977 20460, 20464,
14162, 14163, 20468, 20472, 20504
\TOCEntryStyleStartInitCode
14164, 14165, \tocstyle@macrochangewarning
. . 17507, 17520,
14168, 14174, . . . . . 20492, 20499
17539, 18087,
14175, 14176, \tocstyle@numberline
18100, 18119,
14181, 14183, . . . . . 20278, 20397
18770, 18783, 18802
14190, 14194, \tocstyle@saved@dottedtocline
\toclevel@subfigure
14199, 14201, . . . . . . . . . . 20494
. . . . . . . . . . 19510
14203, 14205, \tocstyle@saved@numberline
14224, 14230, \toclevel@subtable 19530 . . . . . . . . . . 20502
14231, 14232, \TOCLineLeaderFill \tocstyledepth 20289,
14233, 14234, . . . . . . . 17524, 20301, 20313,
14246, 14249, 17541, 18104, 20333, 20334,
14252, 14254, 18121, 18787, 20337, 20355,
14278, 14279, 18804, 19994, 20255 20356, 20405,
14281, 14290, \tocstyle@@numberline 20407, 20409, 20413
14293, 14294, . . . . . . . 20400, \tocstyleTOC . . . . . .
14295, 14296, 20402, 20420, . . 20301, 20304,
14297, 14298, 20422, 20425, 20427 20305, 20307,
14300, 14306, \tocstyle@activate@all@l 20309, 20313,
14311, 14314, . . . . . . . . . . 20513 20314, 20316,
14315, 14328, \tocstyle@activate@features 20317, 20321,
14330, 14331, . . . . . . . . . . 20290 20325, 20326,

Index 588
20329, 20330, . . 15645, 15647, \trivlist . . . . . . . .
20333, 20334, 15648, 15649, . 11085, 15425, 15445
20337, 20339, 15651, 15657, \ttdefault . . . 8025, 8117
20341, 20342, 15659, 15661, \ttfamily . . . . . . . .
20346, 20351, 15662, 15663, 2015, 2055, 2056,
20352, 20355, 15726, 15727, 2058, 2059, 2060,
20356, 20405, 15728, 15729, 2061, 2062, 2063, 2064
20407, 20408, 20412 15733, 15734, 15738 \ttl@a . . . . . 19197, 19199
\today . . . . . . . . . . . 6048 \topins . . . . . . . . . 15821 \ttl@b . . . . . . . 19192,
\token . . . . . . . . . . 15492 \topmargin 1968, 2370, 19193, 19197, 19199
\toks . . . . . . . . . 122, 8490, 11178, 21573 \ttl@beginlongest 19167
124, 1466, 1467, \topmark . . 7555, 7564, \ttl@calc . . 19162, 19174
1469, 1470, 5379, 7618, 7627, 10994, \ttl@changecentercr
5380, 5386, 7325, 11003, 11030, . . . . . . . . . . 19166
11676, 11677, 11039, 11796, \ttl@contentsstretch
11678, 13208, 13210 11805, 11845, . . . . . . . . . . 19204
\toks@ . . . . . 121, 125, 11854, 14778, \ttl@corr . . . . . . . .
1627, 1640, 1902, 14787, 14878, . 19219, 19220, 19223
1915, 4591, 4595, 14887, 21242, \ttl@endlongest . . 19182
7555, 7556, 7557, 21251, 21289, 21298 \ttl@filleft 19156, 19185
7558, 7618, 7619, \topsep . . . 2110, 2119, \ttl@filright 19157, 19186
7620, 7621, 10994, 2560, 4678, 5888, \ttl@glcmds . . . . . . 19169
10995, 10996, 5930, 14675, 14677 \ttl@hmode@error . 19168
10997, 11030, \topskip . . . . . . 301, \ttl@leaders . . . . . 19221
11031, 11032, 1976, 7810, 7813, \ttl@lselect 19228, 19231
11033, 11796, 11682, 11684, \ttl@makeline 19162, 19217
11797, 11798, 11689, 14681, \ttl@margin . 19216, 19222
11799, 11845, 14972, 19274, \ttl@midlongest . . 19181
11846, 11847, 19280, 19285, \ttl@outnoblock . . 19195
11848, 12071, 19292, 19297, 19302 \ttl@savel@chapter 19230
12074, 12108, \TOTALHEIGHT 19122, 19126 \ttl@savel@part . . 19227
12110, 12114, \totalheight . . . . . 12101 \ttlh@hang . . . . . . 19161
12116, 12119, \tovalue . . . . . . . . . \turn . . . . . . . . . . . 17017
12649, 12652, 3955, 4042, 4050, \turnbox . . . . . . . . 17038
13207, 13211, 4081, 4094, 4100, 4101 \tw@ . . . 355, 363, 1380,
14778, 14779, \tracingmacros . . . . 4070 1388, 1422, 1426,
14780, 14781, \traditionalconnverses 1431, 2282, 3180,
14878, 14879, . . . 6286, 6309, 6325 9487, 9492, 10957,
14880, 14881, \traditionalhalfverses 10958, 11675,
19036, 19056, . . . . . . . . 6275, 11679, 11680,
19062, 21242, 6279, 6286, 6319 11694, 11698,
21243, 21244, \traditionalpoem . . 6521 11703, 11706,
21245, 21289, \traditionalpoem@cr 11717, 11721,
21290, 21291, 21292 . . . 6399, 6448, 6449 11722, 11723,
\tolerance . . . . . . . \traditionalpoem@obeylines 11724, 11727,
9435, 9541, 9647, . . . . . . . 6329, 6521 12026, 12027,
9756, 9865, 9974, \traditionalpoem@par 12037, 12039,
10083, 10192, 10301 . . . 6329, 6330, 6448 12040, 12042,
\toname . . . . . 9019, 13232 \trimb . . . . . . . 5381, 5388 12043, 12046,
\topheight . . . . . . . \trimc . . . . . . . . . . . 5390 12048, 12049,

Index 589
12083, 12085, \TX@find@endtabularxbb 1292, 1293, 1302,
12086, 12088, . . . . . . . . . . 19041 6753, 6930, 16163,
12089, 12092, \TX@ftn . 19038, 19073, 16200, 16201,
12094, 12095, 19075, 19077, 16210, 16302,
13358, 15065, 19080, 19082, 19084 16341, 16342, 16351
15072, 15073, \TX@ftntext . . . . . . 19032 \uc@tx . . . . . . . . 790,
15081, 15082, \TX@LTRftntext . . . . 798, 1042, 1050,
15087, 15088, . . . . . 19033, 19072 1292, 1300, 16200,
15094, 15104, \TX@newcol . . . . . . 19015 16208, 16341, 16349
15105, 15112, \TX@old@table . . . . 19020 \uc@ty . . . . . . . . 799,
15113, 15136, \TX@RTLftntext . . . . 800, 1051, 1052,
15141, 15837, . . . . . 19034, 19079 1301, 1302, 16209,
15838, 17089, \TX@target . 19021, 19035 16210, 16350, 16351
17638, 18209, \TX@trial . . . . . . . . \undefined 4397, 6473,
18337, 18893, . 19025, 19030, 19046 6527, 6530, 6532,
18991, 19089, \TX@trial@ftn . . . . . 17388, 17390,
19097, 19422, . 19049, 19050, 19051 17392, 17968,
20928, 20929, \TX@typeout@ 19023, 19065 17970, 17972,
21158, 21162, 21164 \TX@verb . . . . . . . . 19016 18651, 18653, 18655
\twocolumn . . . . . . . \TX@vwarn . . . . . . . 19052 \underline . 21117, 21125
. . 462, 598, 614, \TX@xftntext . . . . . 19032 \undertext . . . . . . 21125
813, 863, 1065, \TX@xLTRftntext . . . \unexpanded . . . . 3207,
1115, 1315, 1952, . . . . . 19033, 19076 3216, 3217, 3224,
6622, 6799, 7009, \TX@xRTLftntext . . . 3225, 3238, 3239,
7068, 7749, 7924, . . . . . 19034, 19083 3246, 3247, 3348, 3469
8789, 8886, 10889, \typeout . . . . . . 1531, \unhbox . . . . . . . 1496,
14634, 16018, 1533, 4881, 4883, 6354, 6612, 7351,
16223, 16273, 4884, 4885, 4887, 10362, 10385,
16364, 16608, 4889, 4890, 4891, 10394, 10397,
16732, 16790, 11272, 15877, 10639, 10643,
17197, 17746, 20301, 20313, 10649, 10653,
18445, 19274, 20333, 20334, 10659, 10662,
19280, 19285, 20337, 20355, 20356 10668, 10671,
19292, 19297, 19302 13074, 13079,
\twocolumnfootnotes 9384 U 13107, 13112,
\TX@ . . . . . . . . . 19013, \uc@authornothanks 13124, 13129,
19014, 19042, 19043 . . 762, 791, 796, 21047, 21168,
\TX@align . . 19066, 19068 1014, 1043, 1048, 21169, 21170, 21171
\TX@arith . . . . . . . 19028 1264, 1293, 1298, \unhcopy 13090, 13095,
\TX@ckpt . . . 19018, 19064 6762, 6939, 16172, 18913, 18925, 19001
\TX@col@width . 19015, 16201, 16206, \unhskip . . . . . . . . . 3874
19021, 19026, 19069 16311, 16342, 16347 \unitindent . . . . 637,
\TX@cols . . . . . . . . . \uc@ax . . . . . . . . 792, 648, 649, 651,
. 19022, 19026, 19070 793, 1044, 1045, 725, 731, 875,
\TX@endtabularx 12638, 1294, 1295, 16202, 876, 878, 944, 945,
12649, 12655, 19011 16203, 16343, 16344 947, 948, 960, 965,
\TX@find@endtabularxa \uc@nothanks . . . . . . 1059, 1131, 1132,
. . . . . 19013, 19014 . . 753, 790, 791, 1134, 1196, 1205,
\TX@find@endtabularxb 800, 1005, 1042, 1211, 6638, 6639,
. . . . . . . . . . 19043 1043, 1052, 1255, 6641, 6716, 6722,

Index 590
6815, 6816, 6818, 18674, 18683, 14805, 14807,
6869, 6875, 16041, 21240, 21287, 21516 14815, 14833,
16052, 16053, \untilcondition 3956, 14835, 14876,
16055, 16106, 3970, 4054, 4097 14905, 14907,
16112, 16424, \unvbox . . . . . . . 7261, 14915, 14933,
16425, 16427, 7262, 7516, 7519, 14935, 14990,
16491, 16529, 16535 7536, 7540, 7553, 15683, 15687,
\unitlength . . . . . . . 7603, 7616, 7662, 15692, 15696,
7415, 7425, 7438, 7720, 7728, 7729, 15708, 15719,
7448, 7461, 7471, 7738, 7816, 7818, 15739, 15742,
7484, 7494, 15459 7822, 7825, 7831, 15747, 15821,
\unkern . . . . . . . . . . 5543 7835, 7894, 7902, 15822, 15826,
\unpenalty . . . . . . . 7903, 7912, 7960, 15831, 21047,
7250, 7793, 7805, 8191, 8194, 8195, 21240, 21287,
7816, 7822, 10365, 8212, 8215, 8216, 21335, 21340,
10382, 10391, 11706 8241, 8248, 8253, 21351, 21355,
\unrestored@protected@xdef 8258, 8298, 8303, 21362, 21367, 21374
. . . . . . . . 2226, 8307, 8312, 9151, \unvcopy . 7788, 8235, 8292
2234, 2242, 5626, 9162, 9173, 9266, \uppercase . . . . 308,
5655, 5684, 6500, 9287, 9342, 9348, 770, 790, 1022,
6507, 6514, 11410, 9383, 9448, 9460, 1042, 1272, 1292,
11419, 11578, 9473, 9554, 9565, 6770, 6947, 16180,
11593, 12519, 9577, 9660, 9672, 16200, 16319, 16341
12530, 12541, 12552 9685, 9769, 9781, \uppercasenonmath .
\unsetfootnoteRL . . 9794, 9878, 9890, . . . . . . . 114, 13200
. . . . . 11425, 11426 9903, 9987, 9999, \uppermargin . . . . . . 8474
\unsetLTR . . 15806, 20906 10012, 10096, \uppertitleback . . .
\unsetRL . . . 15844, 20937 10108, 10121, . 17231, 17780, 18479
\unsetRTL . . 15805, 20905 10205, 10217, \upshape . . . . . . . . .
\unskip . . . . . . 46, 60, 10230, 10314, 5811, 5818, 5825,
76, 249, 263, 278, 10326, 10339, 5832, 5839, 8026,
336, 1448, 1449, 10360, 10591, 8030, 8031, 8118,
1450, 4935, 4938, 10610, 10624, 8123, 8124, 15896
4941, 4944, 5634, 10636, 10646, \urlstyle . . . . . . . . 2389
5663, 5692, 6381, 10656, 10665, \use . . . . . . . . . . . . 14174
6392, 7247, 7553, 10701, 10709, \usebox . . . 2095, 2105,
7616, 7793, 7805, 10716, 10723, 4776, 4908, 4910,
7816, 7818, 7822, 10729, 11496, 4915, 4917, 4926,
7826, 9334, 10363, 11510, 11524, 4927, 4930, 4931,
10364, 11556, 11561, 11566, 5138, 8580, 8583,
11794, 11843, 11669, 11679, 8591, 8598, 8606,
13950, 13992, 11706, 11794, 8613, 8656, 12209,
13995, 14776, 11843, 11915, 12213, 12296,
14876, 17022, 11917, 11961, 12298, 12302,
17032, 17050, 11966, 11972, 12304, 12309,
17385, 17406, 11976, 11983, 12311, 12315,
17411, 17420, 11999, 13923, 12317, 12321,
17965, 17986, 13928, 13937, 12323, 12327,
17991, 18000, 13940, 13998, 12329, 12335,
18648, 18669, 14016, 14776, 12336, 12339,

Index 591
12340, 12344, 4316, 4321, 4322, 11793, 11842,
12345, 12348, 4325, 4328, 4373, 4374 14775, 14875,
12349, 12352, \usetocbasicnumberline 15635, 21239, 21286
12353, 12356, . . . . . . . . . . 19930 \vbox 306, 398, 404, 1416,
12357, 12371, 1483, 2306, 5165,
12372, 12374, V 5166, 5168, 6341,
12375, 12387, \v@aaa . . . . . . . . 7681, 7255, 7260, 7338,
12388, 12390, 7683, 7684, 7685, 7516, 7519, 7536,
12391, 12397, 7687, 7689, 7690, 7540, 7553, 7568,
12398, 12401, 7691, 7692, 7847, 7585, 7601, 7616,
12402, 12406, 7849, 7851, 7853, 7631, 7644, 7660,
12407, 12410, 7854, 7859, 7860, 7682, 7688, 7693,
12411, 12414, 7862, 7865, 7866, 7869 7696, 7702, 7705,
12415, 12418, \v@ccc 7682, 7688, 7690, 7710, 7715, 7719,
12419, 12426, 7691, 7692, 7693, 7727, 7737, 7788,
12428, 12432, 7702, 7710, 7848, 7816, 7818, 7821,
12434, 12439, 7860, 7861, 7865, 7830, 7848, 7860,
12441, 12445, 7868, 7872, 7878, 7884 7872, 7873, 7878,
12447, 12451, \vadjust . 6357, 6358, 6365 7880, 7884, 7888,
12453, 12457, \valign . . . . . . 9373, 9377 7893, 7901, 7911,
12459, 12472, \value . . . . 5424, 5443, 7959, 7965, 8183,
12474, 13375, 5462, 5494, 11262, 8191, 8192, 8200,
13377, 15455, 11277, 11278, 8204, 8212, 8213,
15456, 15458, 11281, 11282, 8221, 8235, 8240,
15465, 15483, 11285, 13246, 8244, 8247, 8251,
15754, 15755, 20835 13247, 13318, 8252, 8269, 8276,
\usecounter . . . . . 91, 13352, 17375, 8292, 8297, 8301,
294, 579, 714, 17955, 18638, 19017 8302, 8305, 8306,
977, 1227, 2566, \varcustomer . . 18229, 8321, 8328, 9150,
5926, 6705, 6893, 18255, 18256, 18259 9161, 9172, 9264,
7202, 8726, 8997, \varinvoice . . . 18230, 9447, 9459, 9472,
10834, 13140, 18261, 18262, 18265 9553, 9564, 9576,
16124, 16518, \varmyref . . . . 18228, 9659, 9671, 9684,
16712, 16915, 18249, 18250, 18253 9768, 9780, 9793,
17319, 17324, \varrefitemi . . 18231, 9877, 9889, 9902,
17899, 17904, 18267, 18268, 18271 9986, 9998, 10011,
18582, 18587, 19247 \varrefitemii . 18232, 10095, 10107,
\usekomafont . . 17103, 18273, 18274, 18277 10120, 10204,
17110, 17147, \varrefitemiii 18233, 10216, 10229,
17260, 17511, 18279, 18280, 18283 10313, 10325,
17514, 17531, \varrefitemnamei . 18269 10338, 10360,
17533, 17652, \varrefitemnameii 18275 10540, 10552,
17659, 17696, \varrefitemnameiii 18281 10564, 10588,
17809, 18091, \varyourmail . . 18227, 10601, 10607,
18094, 18110, 18243, 18244, 18247 10615, 10621,
18113, 18351, \varyourref . . . 18226, 10629, 10698,
18358, 18395, 18237, 18238, 18241 10706, 10721,
18508, 18774, \vbadness . 7552, 7615, 11006, 11043,
18777, 18793, 18796 9372, 9376, 10992, 11134, 11139,
\usepackage . . . . 4315, 11028, 11133, 11164, 11179,

Index 592
11204, 11495, \vcenter 398, 1480, 7335, 6340, 6342, 7350,
11509, 11523, 19003, 20955, 7572, 7637, 7700,
11542, 11666, 21044, 21045, 21136 7712, 7877, 7886,
11679, 11703, \veqno . . . . . . . . 327, 328 11008, 11049,
11794, 11811, \verb . . . . . . . . . . . 19016 11817, 11864,
11843, 11860, \VerbBox . . . . . 8637, 8639 13852, 13909,
11959, 11970, \verse@i . . . . . . 6371, 14258, 14520,
11995, 13861, 6402, 6408, 6416, 6457 14601, 14809,
13923, 13928, \verse@ii . . . . . . . . 14816, 14841,
13931, 13936, 6382, 6403, 6409, 14909, 14916,
13937, 13940, 6411, 6417, 6419, 6457 14943, 14972,
13960, 13998, \versewidth . . . . . . . 15085, 15099,
14530, 14681, . . . 6334, 6344, 6436 18929, 18957,
14776, 14799, \vfil 420, 434, 628, 631, 18998, 21139,
14804, 14806, 747, 776, 935, 938, 21259, 21308, 21508
14814, 14832, 999, 1028, 1187, \vsize . . . . 7758, 7933,
14837, 14876, 1190, 1249, 1278, 11154, 11631,
14899, 14904, 6341, 6691, 6694, 11682, 13935, 13943
14906, 14914, 6747, 6776, 6879, \vskip . . 309, 312, 421,
14932, 14937, 6882, 6924, 6953, 424, 430, 489, 495,
14968, 15507, 7026, 7040, 8191, 501, 505, 567, 646,
15669, 15670, 8212, 8749, 8763, 748, 757, 767, 838,
15683, 15687, 8844, 8858, 10849, 842, 848, 852, 873,
15692, 15696, 10863, 15827, 1000, 1009, 1019,
15708, 15719, 16032, 16035, 1090, 1094, 1100,
15734, 15736, 16157, 16186, 1104, 1129, 1250,
15738, 15741, 16296, 16325, 1259, 1269, 1340,
15746, 15783, 16482, 16485, 1345, 1351, 1355,
15790, 15791, 16561, 16575, 1361, 1364, 2321,
15798, 15907, 16748, 16762, 21578 6397, 6424, 6460,
17402, 17982, \vfill . . . . 1944, 6121, 6461, 6467, 6577,
18665, 18969, 9373, 9377, 10761, 6579, 6636, 6675,
19003, 19008, 15734, 15739, 6748, 6757, 6767,
20435, 20438, 15740, 16947, 6813, 6852, 6925,
20443, 20447, 16962, 16994, 6934, 6944, 6975,
20451, 20455, 17011, 17139, 6980, 6984, 6986,
20459, 20463, 17161, 17166, 6992, 6996, 6998,
20467, 20471, 17172, 17688, 7027, 7030, 7036,
20863, 20871, 17710, 17715, 7095, 7101, 7107,
20872, 20880, 17721, 18387, 7111, 7131, 7170,
21037, 21042, 18409, 18414, 18420 7175, 7183, 7602,
21136, 21153, \vfuzz . . . 5392, 5395, 5396 7661, 7722, 7723,
21240, 21255, \vleftskip . 14649, 14650 7731, 7732, 7741,
21287, 21302, \voffset . . . . . . . . . 1972 7742, 7823, 7896,
21333, 21349, \voidb@x . . . . . 7228, 7292 7897, 7905, 7906,
21360, 21494, \vphantom . . . . . . . 20598 7915, 7916, 8256,
21535, 21574, 21577 \vpic . 15659, 15669, 15670 8310, 8706, 8714,
\vboxL . . . . . . . 15791, \vrightskip . 14649, 14650 8750, 8753, 8759,
16937, 16982, 20872 \vrule . . . . . . . . 387, 8814, 8818, 8824,
\vboxR . . . . . 15783, 20863 1495, 5167, 5168, 8828, 8845, 8848,

Index 593
8854, 8913, 8919, 16749, 16752, 19474, 19492,
8925, 8929, 8964, 16758, 16817, 19511, 19531,
8969, 8978, 9284, 16823, 16829, 19566, 19755,
9309, 9317, 9325, 16833, 16853, 20292, 20476,
9339, 9355, 10680, 16891, 16895, 20655, 20659,
10689, 10702, 16903, 17102, 20678, 21059,
10710, 10712, 17109, 17143, 21068, 21077,
10725, 10784, 17146, 17148, 21086, 21174,
10802, 10806, 17154, 17156, 21336, 21352,
10814, 10850, 17158, 17174, 21363, 21371,
10853, 10859, 17252, 17256, 21494, 21573,
10914, 10918, 17259, 17261, 21586, 21613, 21621
10924, 10928, 17268, 17270, \vspace 2489, 4769, 4859,
11178, 11182, 17273, 17278, 4867, 5485, 5489,
11183, 11558, 17358, 17363, 5551, 5556, 5569,
11667, 11705, 17447, 17449, 5574, 5587, 5592,
11710, 11962, 17453, 17455, 5709, 5718, 5727,
11973, 11980, 17466, 17468, 5808, 5815, 5822,
12000, 13337, 17476, 17478, 5829, 5836, 6119,
13458, 13471, 17651, 17658, 6163, 6167, 6969,
13879, 13896, 17692, 17695, 6989, 7164, 7178,
13897, 13899, 17697, 17703, 8958, 8973, 9018,
14013, 14675, 17705, 17707, 9020, 9022, 10797,
14677, 14680, 17723, 17801, 10809, 13231,
14721, 14730, 17805, 17808, 13233, 13980,
14738, 14807, 17810, 17817, 13993, 16886,
14808, 14810, 17819, 17822, 16898, 18292,
14817, 14834, 17827, 17938, 18295, 18297,
14907, 14908, 17943, 18027, 18302, 19274,
14910, 14917, 18029, 18033, 19280, 19285,
14934, 14979, 18035, 18046, 19292, 19297, 19302
14991, 15010, 18048, 18056, \vsplit . . . . . . . 7511,
15022, 15034, 18058, 18234, 7512, 7529, 7533,
15634, 15651, 18235, 18350, 7554, 7617, 7683,
15672, 15738, 18357, 18391, 7689, 7694, 7849,
15824, 15830, 18394, 18396, 7851, 7860, 7872,
16050, 16089, 18402, 18404, 7962, 9382, 10993,
16158, 16167, 18406, 18422, 11029, 11675,
16177, 16248, 18500, 18504, 11795, 11844,
16252, 16258, 18507, 18509, 14777, 14877,
16262, 16297, 18516, 18518, 15640, 15643,
16306, 16316, 18521, 18526, 15662, 15663,
16391, 16398, 18621, 18626, 15681, 15685,
16404, 16408, 18710, 18712, 15690, 15694,
16414, 16417, 18716, 18718, 15706, 15717,
16422, 16461, 18729, 18731, 15744, 21241, 21288
16562, 16565, 18739, 18741, \vss . . . . . . . . . . 306,
16571, 16635, 19366, 19385, 7588, 7647, 7683,
16641, 16646, 19406, 19423, 7689, 7694, 7702,
16649, 16668, 19440, 19457, 7705, 7710, 7715,

Index 594
7850, 7860, 7872, 13294, 13301, 16521, 16718,
7878, 7880, 7884, 13339, 13340, 16921, 17329,
7888, 7963, 8248, 13465, 13874, 17909, 18592, 19253
8258, 8303, 8312, 13999, 14687, \WIDTH . . . . . 19118, 19126
11205, 13928, 14691, 14693, \width . . 11625, 12026,
13940, 14531, 14701, 14732, 12114, 12116,
15669, 15670, 15051, 15627, 14567, 14576, 14600
15741, 15907, 21047 15838, 15861, \widthof . . . . . 8505, 8510
\vtop . . 398, 404, 1415, 15888, 16934, \windowbox . 15736, 15742
1482, 5226, 5270, 16979, 17035, \wlog . . . . . 7684, 7690,
5314, 7261, 7337, 17042, 17400, 7692, 7853, 7861, 7868
13843, 18969, 17980, 18240, \write 2611, 2946, 2974,
19003, 19008, 18246, 18252, 3000, 3028, 3054,
21043, 21136, 18258, 18264, 3057, 3091, 3094,
21153, 21409, 21453 18270, 18276, 4546, 6330, 6333,
18282, 18288, 6537, 19055, 21221
W 18663, 18909, \WriteEndXPostoaux 2972
\waslice 15669, 15687, 19067, 19118, \WriteEndXYPostoaux 3089
15692, 15708, 19175, 19192,
\WriteEndYPostoaux 3026
15727, 15728, 15737 19935, 19949,
\WriteStartXPostoaux
\wbslice . . . . . 15670, 20689, 20733,
. . . . . . . . . . . 2943
15683, 15696, 20929, 21113, 21615
\WriteStartXYPostoaux
15719, 15726, \WF@@everypar . . . . 20652
. . . . . . . . . . . 3051
15728, 15729, \WF@adjlw . . 20692, 20717
\WriteStartYPostoaux
15733, 15734, \WF@adjtlm . 20714, 20717
. . . . . . . . . . . 2997
15741, 15746, 15747 \WF@box 20689, 20722, 20723
\WF@floatfalse 20655, \wstrutbox . 15646, 15648
\wd . . . . . . . 1635, 1910,
6347, 6348, 6408, 20663, 20673, 20676
6409, 6411, 6417, \WF@fltmes . . . . . . 20682 X
6457, 6551, 6553, \WF@info . . . . . 20662, \x . . . . . . . 4091, 4092,
6566, 6568, 7359, 20672, 20675, 4558, 4561, 8423,
8650, 8654, 10370, 20684, 20719, 20721 8424, 8427, 8428,
10968, 11095, \WF@ovh . . . . . . . . . 20689 8433, 8437, 8441,
11604, 11722, \WF@place . . 20687, 20693 8442, 8445, 8446,
11723, 12046, \WF@putfigmaybe . . 20653 8451, 8455, 13040,
12048, 12092, \WF@size . . . 20666, 20720 13049, 13051, 13063
12094, 12215, \WF@startwrapping 20725 \XC@@tmp 20760, 20761,
12296, 12298, \WF@wfname . . . . . . . 20775, 20809,
12302, 12304, . 20684, 20719, 20721 20810, 20818, 20822
12335, 12336, \WF@wrapil . 20713, 20716 \XC@@tstfalse 20760, 20809
12339, 12340, \whilecondition 3956, \XC@@tsttrue . . 20761,
12364, 12365, 3970, 4059, 4091 20762, 20763,
12367, 12380, \whiledo . . . . . . . . 11138 20810, 20811, 20812
12381, 12383, \widowpenalty . . . 92, \XC@bidideclaredc@lor
12397, 12398, 295, 585, 717, . . . . . 20816, 20821
12401, 12402, 980, 1230, 2569, \XC@bidideclaredcolor
12426, 12428, 6445, 6708, 6896, . . . . . 20815, 20817
12432, 12434, 7208, 8729, 9003, \XC@bidiundeclaredcolor
13102, 13110, 10837, 13141, . . . . . 20800, 20802
13119, 13127, 15359, 16127, \XC@coremodel 20744, 20787

Index 595
\XC@current@color . 20346, 20408, 1130, 1133, 1135,
. . . . . . . 20772, 20412, 20687, 1148, 1174, 1244,
20775, 20776, 20692, 20713, 1261, 1319, 1356,
20806, 20822, 20823 20714, 20716, 1382, 1386, 1389,
\XC@declaredc@lor . 20717, 21243, 1402, 1424, 1432,
. . . . . 20767, 20774 21245, 21290, 21292 1450, 1460, 1462,
\XC@declaredcolor 20766 \XeLaTeX . . . . . 13032, 1472, 1474, 1479,
\XC@display . . . 20773, 20933, 21782, 21783 1493, 1495, 1496,
20777, 20807, 20824 \XeTeX . . 13031, 15840, 1628, 1633, 1634,
\XC@edef . . . 20760, 20809 20931, 21780, 21781 1635, 1637, 1903,
\XC@fbox . . . . . . . . 20828 \XeTeXcharclass 1781, 1908, 1909, 1910,
\XC@getmodclr 20740, 20783 1782, 1783, 1784, 1785 1912, 2266, 2321,
\XC@inflate . 20754, 20797 \XeTeXinterchartokenstate 2581, 2591, 2596,
\XC@let@Nc . 20775, 20822 . . . . . . . . . . . 1778 3124, 3141, 3936,
\XC@mclr . . . 20754, 20797 \XeTeXinterchartoks 1786 3946, 4666, 4675,
\XC@mmod . . . . . 20752, \xm . . 8424, 8428, 8442, 8446 4974, 5207, 5211,
20753, 20795, 20796 \xxm . 8432, 8436, 8450, 8454 5251, 5255, 5295,
\XC@mul . . . . 20755, 20798 \xyzzy . . . . . . . . . . . 5373 5299, 5885, 5912,
\XC@split . . . . . . . 20818 5943, 5955, 6133,
\XC@tgt@mod . 20748, 20791 Y 6361, 6364, 6367,
\XC@type . . . 20761, 20810 \y . . . 8424, 8428, 8432, 6408, 6409, 6411,
\XC@undeclaredcolor 8436, 8441, 8442, 6417, 6431, 6435,
. . . . . 20757, 20768 8445, 8446, 8450, 6439, 6440, 6441,
\xcolor@ . . . 20772, 20806 8451, 8454, 8455, 6442, 6443, 6444,
\xdef . . . . . . . . . 333, 13036, 13038, 6457, 6531, 6543,
393, 2048, 2793, 13039, 13042, 13049 6544, 6551, 6553,
2928, 3224, 3225, \ym . . 8441, 8445, 8451, 8455 6566, 6568, 6576,
3228, 3229, 3246, \yourmailname . . . . 18245 6620, 6624, 6625,
3247, 3250, 3251, \yourrefname . . . . . 18239 6636, 6637, 6640,
3635, 4437, 4592, \yym . 8423, 8427, 8433, 8437 6642, 6655, 6678,
6348, 6350, 6431, 6730, 6732, 6734,
6433, 6435, 7556, Z 6742, 6759, 6797,
7558, 7619, 7621, \z@ . . . . . . . . . . 12, 24, 6801, 6802, 6813,
8201, 8222, 8267, 46, 60, 76, 99, 103, 6814, 6817, 6819,
8273, 8274, 8319, 111, 128, 134, 136, 6832, 6855, 6907,
8325, 8326, 10445, 207, 219, 223, 249, 6909, 6911, 6919,
10459, 10507, 263, 278, 306, 314, 6936, 6970, 6990,
10521, 10691, 318, 336, 357, 361, 7007, 7012, 7013,
10995, 10997, 364, 375, 390, 395, 7072, 7119, 7134,
11031, 11033, 401, 402, 466, 513, 7152, 7154, 7156,
11396, 11797, 525, 530, 557, 596, 7165, 7179, 7230,
11799, 11846, 601, 602, 612, 616, 7231, 7242, 7244,
11848, 11989, 617, 646, 647, 650, 7327, 7329, 7334,
12650, 13287, 652, 665, 690, 742, 7348, 7350, 7351,
13859, 14779, 759, 817, 861, 865, 7356, 7357, 7358,
14781, 14879, 866, 873, 874, 877, 7359, 7360, 7394,
14881, 15590, 880, 892, 909, 946, 7405, 7523, 7677,
15597, 15604, 949, 994, 1011, 7724, 7733, 7743,
19192, 20317, 1057, 1069, 1113, 7761, 7764, 7801,
20321, 20342, 1117, 1118, 1129, 7843, 7898, 7907,

Index 596
7917, 7936, 7939, 12040, 12042, 16016, 16020,
8189, 8210, 8227, 12043, 12045, 16021, 16050,
8228, 8230, 8231, 12046, 12048, 16051, 16054,
8239, 8261, 8263, 12082, 12083, 16056, 16069,
8266, 8284, 8285, 12084, 12085, 16092, 16138,
8287, 8288, 8296, 12086, 12088, 16140, 16142,
8313, 8315, 8318, 12089, 12091, 16152, 16169,
8619, 8641, 8643, 12092, 12094, 16227, 16271,
8645, 8648, 8650, 12166, 12172, 16275, 16276,
8652, 8654, 8656, 13149, 13153, 16291, 16308,
8657, 8663, 8668, 13169, 13173, 16368, 16409,
8682, 8696, 8709, 13185, 13197, 16422, 16423,
8793, 8890, 8936, 13214, 13311, 16426, 16428,
8946, 8948, 8950, 13354, 13361, 16441, 16464,
8959, 8974, 9092, 13369, 13382, 16503, 16505,
9098, 9104, 9217, 13384, 13424, 16507, 16560,
9222, 9229, 9234, 13431, 13436, 16603, 16612,
9241, 9246, 9352, 13447, 13519, 16639, 16656,
9353, 9354, 9434, 13821, 13823, 16671, 16692,
9540, 9646, 9755, 13855, 13861, 16694, 16696,
9864, 9973, 10082, 13864, 13869, 16730, 16735,
10191, 10300, 13872, 13909, 16736, 16794,
10369, 10442, 13923, 13927, 16841, 16856,
10504, 10570, 13928, 13931, 16874, 16876,
10574, 10578, 13937, 13950, 16878, 16887,
10677, 10678, 13971, 13973, 16899, 16934,
10679, 10686, 13995, 14024, 16935, 16936,
10687, 10688, 14637, 14640, 16979, 16980,
10772, 10787, 14664, 14789, 16981, 17019,
10798, 10810, 14793, 14803, 17023, 17024,
10893, 10936, 14864, 14889, 17029, 17033,
10938, 10940, 14893, 14903, 17034, 17035,
10969, 11120, 14961, 14978, 17040, 17041,
11177, 11205, 14987, 14989, 17042, 17047,
11228, 11230, 15010, 15022, 17051, 17052,
11232, 11241, 15034, 15054, 17094, 17102,
11243, 11245, 15065, 15071, 17109, 17111,
11391, 11445, 15348, 15353, 17133, 17156,
11462, 11478, 15394, 15404, 17174, 17201,
11505, 11519, 15454, 15455, 17245, 17270,
11533, 11547, 15456, 15458, 17358, 17363,
11551, 11672, 15460, 15465, 17408, 17472,
11722, 11729, 15483, 15755, 17548, 17551,
11755, 11756, 15799, 15801, 17557, 17567,
11757, 11778, 15836, 15837, 17577, 17587,
11779, 11945, 15838, 15847, 17643, 17651,
12020, 12021, 15848, 15861, 17658, 17660,
12022, 12029, 15885, 15886, 17682, 17705,
12036, 12037, 15907, 15952, 17723, 17750,
12038, 12039, 15953, 15970, 17794, 17819,

Index 597
17938, 17943, 19194, 19202, 21174, 21390,
17988, 18052, 19207, 19222, 21394, 21434,
18132, 18137, 19308, 19309, 21438, 21479,
18140, 18146, 19383, 19473, 21483, 21486,
18156, 18166, 19491, 19584, 21496, 21497,
18176, 18213, 19763, 19871, 21501, 21508,
18342, 18350, 19900, 20210, 21545, 21571,
18357, 18359, 20214, 20292, 21584, 21624, 21625
18381, 18404, 20297, 20302, \z@skip . . 2321, 11175,
18422, 18449, 20350, 20476, 11176, 13971,
18493, 18518, 20662, 20669, 13974, 15967,
18621, 18626, 20670, 20688, 18963, 18968,
18671, 18735, 20704, 20707, 19001, 19007,
18815, 18820, 20716, 20717, 21089, 21090,
18823, 18829, 20719, 20723, 21145, 21151, 21571
18839, 18849, 20730, 20731, \zap@space 4303, 4390, 4426
18859, 18900, 20732, 20733, \zifrefundefined . .
18901, 18902, 20828, 20833, . . . . . 11294, 11317
18903, 18908, 20835, 20883, \zref@extractdefault
18909, 18913, 20887, 20888, . . . . . 11299, 11320
18925, 18959, 20893, 20897, \zref@labelbyprops
18982, 18994, 20898, 20927, . . . . . 11265, 11340
18998, 19091, 20928, 20929,
19095, 19102, 20980, 20981, �
19113, 19159, 20982, 21059, \� . . . . . . . . . . . . . . . 1784
19160, 19170, 21068, 21077, \� . . . . . . . . . . . . . . . 1784
19174, 19175, 21086, 21090,
19176, 19179, 21110, 21111, �
19188, 19189, 21141, 21152, \� . . . . . . . . . . . . . . . 1785
19191, 19192, 21160, 21165, \� . . . . . . . . . . . . . . . 1785

Index 598

You might also like