summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/adjmulticol-xetex-bidi.def73
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def79
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/amsart-xetex-bidi.def161
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/amsbook-xetex-bidi.def162
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def50
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/amstext-xetex-bidi.def44
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def41
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/animate-xetex-bidi.def243
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/array-xetex-bidi.def98
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def233
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/artikel1-xetex-bidi.def287
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/artikel2-xetex-bidi.def290
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/artikel3-xetex-bidi.def298
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/arydshln-xetex-bidi.def174
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bibitem.pdfbin2936 -> 0 bytes
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidi-longtable.sty108
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidi-media9.sty456
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidi.sty156
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidi.tex93
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty95
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidicode.sty172
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidiftnxtra.sty228
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls287
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidipoem.sty368
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/biditools.sty1163
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/biditufte-book.cls94
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/biditufte-handout.cls63
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidituftefloat.sty601
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidituftegeneralstructure.sty147
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidituftehyperref.sty64
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidituftesidenote.sty550
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidituftetitle.sty177
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidituftetoc.sty174
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/boek-xetex-bidi.def215
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/boek3-xetex-bidi.def215
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/book-xetex-bidi.def251
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bookest-xetex-bidi.def72
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/breqn-xetex-bidi.def94
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/cals-xetex-bidi.def73
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def41
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/caption3-xetex-bidi.def42
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/color-xetex-bidi.def82
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def77
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/combine-xetex-bidi.def54
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/crop-xetex-bidi.def135
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/cuted-xetex-bidi.def409
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/cutwin-xetex-bidi.def77
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/cvthemebidicasual.sty137
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/cvthemebidiclassic.sty144
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/dblfnote-xetex-bidi.def204
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/draftwatermark-xetex-bidi.def42
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/empheq-xetex-bidi.def201
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/eso-pic-xetex-bidi.def78
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def211
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/extbook-xetex-bidi.def212
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/extletter-xetex-bidi.def72
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def1865
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/extreport-xetex-bidi.def214
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/fancybox-xetex-bidi.def68
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/fancyhdr-xetex-bidi.def51
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def108
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/fleqn-xetex-bidi.def69
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/float-xetex-bidi.def48
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/floatrow-xetex-bidi.def44
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/flowfram-xetex-bidi.def172
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def360
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/framed-xetex-bidi.def214
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/ftnright-xetex-bidi.def92
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/geometry-xetex-bidi.def61
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def157
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/hvfloat-xetex-bidi.def313
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/hyperref-xetex-bidi.def617
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def790
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def43
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/letter-xetex-bidi.def61
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def150
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def110
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/loadingorder-xetex-bidi.def321
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def117
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/mdframed-xetex-bidi.def113
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/memoir-xetex-bidi.def195
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/midfloat-xetex-bidi.def239
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/minitoc-xetex-bidi.def77
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def165
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/multienum-xetex-bidi.def106
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/natbib-xetex-bidi.def66
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/newfloat-xetex-bidi.def77
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/ntheorem-hyper-xetex-bidi.def59
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/ntheorem-xetex-bidi.def60
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/overpic-xetex-bidi.def71
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def87
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/pgfcorescopes.code-xetex-bidi.def103
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/picinpar-xetex-bidi.def145
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/plain-xetex-bidi.def125
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def71
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/quotchap-xetex-bidi.def55
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/ragged2e-xetex-bidi.def125
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/rapport1-xetex-bidi.def293
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/rapport3-xetex-bidi.def315
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/refrep-xetex-bidi.def220
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/report-xetex-bidi.def241
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/rotating-xetex-bidi.def168
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/scrartcl-xetex-bidi.def550
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def606
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/scrlettr-xetex-bidi.def147
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def563
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/sidecap-xetex-bidi.def46
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/soul-xetex-bidi.def99
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/stabular-xetex-bidi.def66
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def44
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/tabls-xetex-bidi.def74
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/tabularx-xetex-bidi.def114
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/tabulary-xetex-bidi.def69
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/tc-xetex-bidi.def58
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/titlesec-xetex-bidi.def68
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/titletoc-xetex-bidi.def88
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def119
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/tocloft-xetex-bidi.def347
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/tocstyle-xetex-bidi.def285
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def168
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/wrapfig-xetex-bidi.def115
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def143
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/xltxtra-xetex-bidi.def44
123 files changed, 0 insertions, 23401 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/adjmulticol-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/adjmulticol-xetex-bidi.def
deleted file mode 100644
index 266a0de4787..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/adjmulticol-xetex-bidi.def
+++ /dev/null
@@ -1,73 +0,0 @@
-%%
-%% This is file `adjmulticol-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,adjmulticol-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{adjmulticol-xetex-bidi.def}[2015/04/25 v0.1 bidi adaptations for adjmulticol package for XeTeX engine]
-\def\adjmulticols#1#2#3{\col@number#1\relax
- \def\@tempa{#2}%
- \ifx\@tempa\@empty\adjmc@inner\z@\else\adjmc@inner#2\fi
- \def\@tempa{#3}%
- \ifx\@tempa\@empty\adjmc@outer\z@\else\adjmc@outer#3\fi
- \ifnum\col@number<\@ne
- \PackageWarning{adjmulticol}%
- {Using `\number\col@number'
- columns doesn't seem a good idea.^^J
- I therefore use one columns instead}%
- \col@number\@ne\fi
- \ifnum\col@number>10
- \PackageError{adjmulticol}%
- {Too many columns}%
- {Current implementation doesn't
- support more than 10 columns.%
- \MessageBreak
- I therefore use 10 columns instead}%
- \col@number10 \fi
- \ifx\@footnotetext\mult@footnotetext\else
- \let\orig@footnotetext\@footnotetext
- \let\@footnotetext\mult@footnotetext
- \fi
- \ifx\@LTRfootnotetext\mult@LTRfootnotetext\else
- \let\orig@LTRfootnotetext\@LTRfootnotetext
- \let\@LTRfootnotetext\mult@LTRfootnotetext
- \fi
- \ifx\@RTLfootnotetext\mult@RTLfootnotetext\else
- \let\orig@RTLfootnotetext\@RTLfootnotetext
- \let\@RTLfootnotetext\mult@RTLfootnotetext
- \fi
- \@ifnextchar[\adjmult@cols{\adjmult@cols[]}}
-\let\adjmc@page@sofar@orig=\page@sofar
-\endinput
-%%
-%% End of file `adjmulticol-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def
deleted file mode 100644
index b7b91e3c9af..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/algorithm2e-xetex-bidi.def
+++ /dev/null
@@ -1,79 +0,0 @@
-%%
-%% This is file `algorithm2e-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,algorithm2e-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{algorithm2e-xetex-bidi.def}[2015/02/01 v0.1 bidi adaptations for algorithm2e package for XeTeX engine]
-\expandafter\ifx\csname algocf@within\endcsname\relax% if \algocf@within doesn't exist
-\else% else
-\renewcommand\thealgocf{\csname the\algocf@within\endcsname\@SepMark\@arabic\c@algocf}%
-\fi%
-
-\def\@algocf@pre@boxed{\noindent\begin{bidi@lrbox}{\algocf@algoframe}}
-\def\@algocf@post@boxed{\end{bidi@lrbox}\framebox[\hsize]{\box\algocf@algoframe}\par}%
-\def\@algocf@pre@boxruled{\noindent\begin{bidi@lrbox}{\algocf@algoframe}}%
-\def\@algocf@post@boxruled{\end{bidi@lrbox}\framebox[\hsize]{\box\algocf@algoframe}\par}%
-\renewcommand{\@algocf@start}{%
- \@algoskip%
- \begin{bidi@lrbox}{\algocf@algobox}%
- \setlength{\algowidth}{\hsize}%
- \vbox\bgroup% save all the algo in a box
- \hbox to\algowidth\bgroup\hbox to \algomargin{\hfill}\vtop\bgroup%
- \ifthenelse{\boolean{algocf@slide}}{\parskip 0.5ex\color{black}}{}%
- % initialization
- \addtolength{\hsize}{-1.5\algomargin}%
- \let\@mathsemicolon=\;\def\;{\ifmmode\@mathsemicolon\else\@endalgoln\fi}%
- \raggedright\AlFnt{}%
- \ifthenelse{\boolean{algocf@slide}}{\IncMargin{\skipalgocfslide}}{}%
- \@algoinsideskip%
-}%
-\renewcommand{\@algocf@finish}{%
- \@algoinsideskip%
- \egroup%end of vtop which contain all the text
- \hfill\egroup%end of hbox wich contains [margin][vtop]
- \ifthenelse{\boolean{algocf@slide}}{\DecMargin{\skipalgocfslide}}{}%
- %
- \egroup%end of main vbox
- \end{bidi@lrbox}%
- \algocf@makethealgo% print the algo
- \@algoskip%
- % restore dimension and macros
- \setlength{\hsize}{\algowidth}%
- \lineskip\normallineskip\setlength{\skiptotal}{\@defaultskiptotal}%
- \let\;=\@mathsemicolon%
- \let\]=\@emathdisplay%
-}%
-\endinput
-%%
-%% End of file `algorithm2e-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/amsart-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/amsart-xetex-bidi.def
deleted file mode 100644
index bcd953c19d0..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/amsart-xetex-bidi.def
+++ /dev/null
@@ -1,161 +0,0 @@
-%%
-%% This is file `amsart-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,amsart-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{amsart-xetex-bidi.def}[2015/11/14 v0.9 bidi adaptations for amsart class for XeTeX engine]
-\def\@tocline#1#2#3#4#5#6#7{\relax
- \ifnum #1>\c@tocdepth % then omit
- \else
- \par \addpenalty\@secpenalty\addvspace{#2}%
- \begingroup \hyphenpenalty\@M
- \@ifempty{#4}{%
- \@tempdima\csname r@tocindent\number#1\endcsname\relax
- }{%
- \@tempdima#4\relax
- }%
- \parindent\z@ \if@RTL\rightskip\else\leftskip\fi#3\relax \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima\relax
- \if@RTL\leftskip\else\rightskip\fi\@pnumwidth plus4em \parfillskip-\@pnumwidth
- #5\leavevmode\hskip-\@tempdima #6\nobreak\relax
- \hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
- \nobreak
- \endgroup
- \fi}
-\renewcommand\thesubsection {\thesection\@SepMark\arabic{subsection}}
-\renewcommand\thesubsubsection {\thesubsection \@SepMark\arabic{subsubsection}}
-\renewcommand\theparagraph {\thesubsubsection\@SepMark\arabic{paragraph}}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\arabic{subparagraph}}
-\def\part{\@startsection{part}{0}%
- \z@{\linespacing\@plus\linespacing}{.5\linespacing}%
- {\normalfont\bfseries\if@RTL\raggedleft\else\raggedright\fi}}
-\def\right@footnoterule{%
- \kern-.4\p@
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-5pc\relax \hrulefill }
- \kern11\p@\kern-\footnotesep}
-\def\left@footnoterule{\kern-.4\p@
- \hrule\@width 5pc\kern11\p@\kern-\footnotesep}
-
-\long\def\@footnotetext#1{%
- \insert\footins{%
- \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \normalfont\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
- \floatingpenalty\@MM \hsize\columnwidth
- \@parboxrestore \parindent\normalparindent \sloppy
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
-
-\long\def\@RTLfootnotetext#1{%
- \insert\footins{%
- \@RTLtrue%
- \normalfont\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
- \floatingpenalty\@MM \hsize\columnwidth
- \@parboxrestore \parindent\normalparindent \sloppy
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
-
-\long\def\@LTRfootnotetext#1{%
- \insert\footins{%
- \@RTLfalse%
- \normalfont\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
- \floatingpenalty\@MM \hsize\columnwidth
- \@parboxrestore \parindent\normalparindent \sloppy
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
-
-\footdir@temp\footdir@ORG@bidi@amsart@footnotetext\@footnotetext{\bidi@footdir@footnote}%
-\footdir@temp\footdir@ORG@bidi@amsart@RTLfootnotetext\@RTLfootnotetext{R}%
-\footdir@temp\footdir@ORG@bidi@amsart@LTRfootnotetext\@LTRfootnotetext{L}%
-
-\renewenvironment{thebibliography}[1]{%
- \@bibtitlestyle
- \normalfont\bibliofont\labelsep .5em\relax
- \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth \advance\leftmargin\labelsep
- \usecounter{enumiv}}%
- \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
- \sfcode`\.=\@m
-}{%
- \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
- \endlist
-}
-\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
- \columnseprule\z@ \columnsep 35\p@
- \@indextitlestyle
- \thispagestyle{plain}%
- \let\item\@idxitem
- \parindent\z@ \parskip\z@\@plus.3\p@\relax
- \if@RTL\raggedleft\else\raggedright\fi
- \hyphenpenalty\@M
- \footnotesize}
-\def\@idxitem{\par\hangindent \if@RTL-\fi2em}
-\def\subitem{\par\hangindent \if@RTL-\fi2em\hspace*{1em}}
-\def\subsubitem{\par\hangindent \if@RTL-\fi3em\hspace*{2em}}
-\def\maketitle{\par
- \@topnum\z@ % this prevents figures from falling at the top of page 1
- \@setcopyright
- \thispagestyle{firstpage}% this sets first page specifications
- \uppercasenonmath\shorttitle
- \ifx\@empty\shortauthors \let\shortauthors\shorttitle
- \else \andify\shortauthors
- \fi
- \@maketitle@hook
- \begingroup
- \@maketitle
- \toks@\@xp{\shortauthors}\@temptokena\@xp{\shorttitle}%
- \toks4{\def\\{ \ignorespaces}}% defend against questionable usage
- \edef\@tempa{%
- \@nx\markboth{\the\toks4
- \@nx\MakeUppercase{\the\toks@}}{\the\@temptokena}}%
- \@tempa
- \endgroup
- \c@footnote\z@
- \@cleartopmattertags
-}
-\endinput
-%%
-%% End of file `amsart-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/amsbook-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/amsbook-xetex-bidi.def
deleted file mode 100644
index abd0cbe5262..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/amsbook-xetex-bidi.def
+++ /dev/null
@@ -1,162 +0,0 @@
-%%
-%% This is file `amsbook-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,amsbook-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{amsbook-xetex-bidi.def}[2015/11/14 v1.0 bidi adaptations for amsbook class for XeTeX engine]
-\def\@tocline#1#2#3#4#5#6#7{\relax
- \ifnum #1>\c@tocdepth % then omit
- \else
- \par \addpenalty\@secpenalty\addvspace{#2}%
- \begingroup \hyphenpenalty\@M
- \@ifempty{#4}{%
- \@tempdima\csname r@tocindent\number#1\endcsname\relax
- }{%
- \@tempdima#4\relax
- }%
- \parindent\z@ \if@RTL\rightskip\else\leftskip\fi#3\relax \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima\relax
- \if@RTL\leftskip\else\rightskip\fi\@pnumwidth plus4em \parfillskip-\@pnumwidth
- #5\leavevmode\hskip-\@tempdima #6\nobreak\relax
- \hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
- \nobreak
- \endgroup
- \fi}
-\renewcommand\thesubsection {\thesection\@SepMark\arabic{subsection}}
-\renewcommand\thesubsubsection {\thesubsection \@SepMark\arabic{subsubsection}}
-\renewcommand\theparagraph {\thesubsubsection\@SepMark\arabic{paragraph}}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\arabic{subparagraph}}
-\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
- \columnseprule\z@ \columnsep 35\p@
- \@indextitlestyle
- \thispagestyle{plain}%
- \let\item\@idxitem
- \parindent\z@ \parskip\z@\@plus.3\p@\relax
- \if@RTL\raggedleft\else\raggedright\fi
- \hyphenpenalty\@M
- \footnotesize}
-\def\@idxitem{\par\hangindent \if@RTL-\fi2em}
-\def\subitem{\par\hangindent \if@RTL-\fi2em\hspace*{1em}}
-\def\subsubitem{\par\hangindent \if@RTL-\fi3em\hspace*{2em}}
-\def\right@footnoterule{%
- \kern-.4\p@
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-5pc\relax \hrulefill }
- \kern11\p@\kern-\footnotesep}
-\def\left@footnoterule{\kern-.4\p@
- \hrule\@width 5pc\kern11\p@\kern-\footnotesep}
-
-\long\def\@footnotetext#1{%
- \insert\footins{%
- \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \normalfont\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
- \floatingpenalty\@MM \hsize\columnwidth
- \@parboxrestore \parindent\normalparindent \sloppy
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
-
-\long\def\@RTLfootnotetext#1{%
- \insert\footins{%
- \@RTLtrue%
- \normalfont\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
- \floatingpenalty\@MM \hsize\columnwidth
- \@parboxrestore \parindent\normalparindent \sloppy
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
-
-\long\def\@LTRfootnotetext#1{%
- \insert\footins{%
- \@RTLfalse%
- \normalfont\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
- \floatingpenalty\@MM \hsize\columnwidth
- \@parboxrestore \parindent\normalparindent \sloppy
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\unskip\strut\par}}}
-
-\footdir@temp\footdir@ORG@bidi@amsbook@footnotetext\@footnotetext{\bidi@footdir@footnote}%
-\footdir@temp\footdir@ORG@bidi@amsbook@RTLfootnotetext\@RTLfootnotetext{R}%
-\footdir@temp\footdir@ORG@bidi@amsbook@LTRfootnotetext\@LTRfootnotetext{L}%
-
-\renewenvironment{thebibliography}[1]{%
- \@bibtitlestyle
- \normalfont\bibliofont\labelsep .5em\relax
- \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth \advance\leftmargin\labelsep
- \usecounter{enumiv}}%
- \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
- \sfcode`\.=\@m
-}{%
- \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
- \endlist
-}
-\def\@makechapterhead#1{\global\topskip 7.5pc\relax
- \begingroup
- \fontsize{\@xivpt}{18}\bfseries\centering
- \ifnum\c@secnumdepth>\m@ne
- \leavevmode \hskip-\if@RTL\rightskip\else\leftskip\fi
- \rlap{\vbox to\z@{\vss
- \centerline{\normalsize\mdseries
- \uppercase\@xp{\chaptername}\enspace\thechapter}
- \vskip 3pc}}\hskip\if@RTL\rightskip\else\leftskip\fi\fi
- #1\par \endgroup
- \skip@34\p@ \advance\skip@-\normalbaselineskip
- \vskip\skip@ }
-\def\maketitle{\par
- \@topnum\z@ % this prevents figures from falling at the top of page 1
- \begingroup
- \@maketitle
- \endgroup
- \c@footnote\z@
- \def\do##1{\let##1\relax}%
- \do\maketitle \do\@maketitle \do\title \do\@xtitle \do\@title
- \do\author \do\@xauthor \do\address \do\@xaddress
- \do\email \do\@xemail \do\curraddr \do\@xcurraddr
- \do\dedicatory \do\@dedicatory \do\thanks \do\thankses
- \do\keywords \do\@keywords \do\subjclass \do\@subjclass
-}
-\endinput
-%%
-%% End of file `amsbook-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def
deleted file mode 100644
index 94d515b2c99..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def
+++ /dev/null
@@ -1,50 +0,0 @@
-%%
-%% This is file `amsmath-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,amsmath-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{amsmath-xetex-bidi.def}[2014/09/04 v0.9 bidi adaptations for amsmath package for XeTeX engine]
-\let\veqno=\eqno
-\iftagsleft@ \let\veqno=\leqno \fi
-\renewcommand{\numberwithin}[3][\arabic]{%
- \@ifundefined{c@#2}{\@nocounterr{#2}}{%
- \@ifundefined{c@#3}{\@nocnterr{#3}}{%
- \@addtoreset{#2}{#3}%
- \@xp\xdef\csname the#2\endcsname{%
- \@xp\@nx\csname the#3\endcsname \@nx\@SepMark\@nx#1{#2}}}}%
-}
-\def\tagform@#1{\maketag@@@{\if@Latin\else\beginR\fi(\ignorespaces#1\unskip\@@italiccorr)\if@Latin\else\endR\fi}}
-\endinput
-%%
-%% End of file `amsmath-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/amstext-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/amstext-xetex-bidi.def
deleted file mode 100644
index 196431f2c95..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/amstext-xetex-bidi.def
+++ /dev/null
@@ -1,44 +0,0 @@
-%%
-%% This is file `amstext-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,amstext-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{amstext-xetex-bidi.def}[2013/04/04 v0.1 bidi adaptations for amstext package for XeTeX engine]
-\def\textdef@#1#2#3{\hbox{{%
- \everymath{#1}%
- \let\f@size#2\selectfont
- \if@Latin\else\beginR\fi#3\if@Latin\else\endR\fi}}}
-\endinput
-%%
-%% End of file `amstext-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def
deleted file mode 100644
index 447211b6d18..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def
+++ /dev/null
@@ -1,41 +0,0 @@
-%%
-%% This is file `amsthm-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,amsthm-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{amsthm-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for amsthm package for XeTeX engine]
-\def\@thmcountersep{\@SepMark}
-\endinput
-%%
-%% End of file `amsthm-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/animate-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/animate-xetex-bidi.def
deleted file mode 100644
index c0c7f2f51c5..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/animate-xetex-bidi.def
+++ /dev/null
@@ -1,243 +0,0 @@
-%%
-%% This is file `animate-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,animate-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{animate-xetex-bidi.def}[2015/11/24 v0.1 bidi adaptations for animate package for XeTeX engine]
-
-\renewcommand{\animategraphics}[5][]{%
- \@anim@endsanitize%
- \leavevmode%
- \ifpdf\else%
- \if@anim@grxloaded%
- \if@anim@xetex%
- \DeclareGraphicsRule{.mps}{eps}{*}{}%
- \fi%
- \else%
- \if@anim@xetex%
- \@anim@missing[xetex]{graphicx}%
- \else%
- \if@anim@dvipdfmx%
- \@anim@missing[dvipdfmx]{graphicx}%
- \else%
- \@anim@missing{graphicx}%
- \fi%
- \fi%
- \fi%
- \fi%
- \@anim@reset% to default settings
- \begingroup% make use of graphic[xs] search path
- \beginL%
- \ifcsname Ginput@path\endcsname%
- \let\input@path\Ginput@path%
- \fi%
- %
- \setkeys{anim@user}{#1}%
- \ifthenelse{\boolean{@anim@autoplay}\OR\boolean{@anim@autoresume}}{%
- \setboolean{@anim@autoplayorresume}{true}%
- }{}%
- \ifthenelse{\boolean{@anim@controls}\OR\boolean{@anim@palindrome}}{%
- \setboolean{@anim@morejs}{true}%
- }{}%
- \ifx\empty\@anim@label\empty\else%
- \setboolean{@anim@morejs}{true}%
- \fi%
- \ifthenelse{\NOT\boolean{@anim@controls}\AND\boolean{@anim@step}}{%
- \setboolean{@anim@loop}{true}%
- }{}%
- \def\@anim@base{#3}%
- \def\@anim@first{#4}%
- \def\@anim@last{#5}%
- %
- \@anim@checkmultipage{\@anim@base}{\@anim@ftype}%test for multipage file
- \if@anim@multipage\else% cope with wrong user input
- \ifthenelse{\equal{#4}{}\OR\equal{#5}{}}{%
- \PackageError{animate}{%
- Missing frame number in \protect\animategraphics\space command%
- }{}%
- }{}%
- \ifthenelse{\@anim@first<\z@\OR\@anim@last<\z@}{%
- \PackageError{animate}{%
- Negative frame numbers not allowed%
- }{}%
- }{}%
- \fi%
- \def\@anim@relop{>}%
- \edef\@anim@numtemplate{\@anim@first}%
- \ifnum\@anim@first>\@anim@last%
- \edef\@anim@every{-\@anim@every}%
- \def\@anim@relop{<}%
- \edef\@anim@numtemplate{\@anim@last}%
- \fi%
- \global\@anim@curframe=\@anim@first%
- \global\@anim@curframe@zb=\z@%
- %
- \if@anim@draft%
- \if@anim@multipage%
- %store file in a box
- \@anim@filebox{\@anim@pathtofile}{\@anim@first}%
- \else%
- %get file name extension
- \@anim@getpath{\@anim@base\@anim@first}{\@anim@ftype}%
- \@anim@filebox{\@anim@pathtofile}{1}%
- \fi%
- \@anim@scale{\@anim@box}%
- %draw draftbox according to dimensions of the first frame
- \@anim@draftbox%
- \else%
- \if@anim@controls%
- %create button faces only once in the current colour combination
- \ifcsname
- btncol:\@anim@bgcolour:\@anim@fgcolour\endcsname\else%
- \@anim@makebuttons{\the\@anim@num}%
- \@anim@newkey{btncol:\@anim@bgcolour:\@anim@fgcolour}{\the\@anim@num}%
- \fi%
- \fi%
- \xdef\@anim@nfps{#2\space}% current frame rate
- \xdef\@anim@nfps{\expandafter\zap@space\@anim@nfps\@empty}%
- \ifdim\@anim@nfps\p@<\z@%
- \PackageError{animate}{%
- Negative frame rate `\@anim@nfps' is not allowed%
- }{}%
- \fi%
- \xdef\@anim@fps{\@anim@nfps}%
- %
- %read all frames of the sequence
- \loop\ifnum\@anim@curframe\@anim@relop\@anim@last\else%
- \if@anim@multipage%
- %embed graphics
- \@anim@ximage{\the\@anim@num}{\the\@anim@curframe@zb}{%
- \@anim@pathtofile}{\the\@anim@curframe}%
- \else%
- %get path to current file end its extension
- \@anim@getpath{%
- \@anim@base\@anim@pad{\@anim@numtemplate}{\the\@anim@curframe}%
- }{\@anim@ftype}%
- %embed graphics
- \@anim@ximage{\the\@anim@num}{\the\@anim@curframe@zb}{%
- \@anim@pathtofile}{1}%
- \fi%
- \global\advance\@anim@curframe by \@anim@every%
- \global\advance\@anim@curframe@zb by \@ne%
- \repeat%
- \xdef\@anim@frames{\the\@anim@curframe@zb}% total number
- \global\@anim@tmpcnt=\@anim@frames%
- \global\advance\@anim@tmpcnt by -\@ne%
- \xdef\@anim@maxframe{\the\@anim@tmpcnt}% highest frame index
- %build timeline from optional timeline file
- \@anim@sanitizeJS%
- \if@anim@timeline\@anim@buildtmln{\the\@anim@num}\fi%
- %insert animation widget & controls
- \@anim@insertwidgets{\the\@anim@num}{%
- \@anim@getkeyval{btncol:\@anim@bgcolour:\@anim@fgcolour}}%
- \@anim@endsanitize%
- \fi%
- \endL%
- \endgroup%
- \global\advance\@anim@num by \@ne%
-}%
-\let\@anim@animategraphics\animategraphics
-\def\animategraphics{\@anim@sanitizeColon\@anim@animategraphics}
-
-\renewenvironment{animateinline}[2][]{%
- \@anim@endsanitize%
- \leavevmode%
- \setboolean{@anim@inside}{true}%
- \@anim@reset% to default settings
- \begingroup%
- \beginL%
- % make use of graphic[xs] search path
- \ifcsname Ginput@path\endcsname%
- \let\input@path\Ginput@path%
- \fi%
- \setkeys{anim@user}{#1}%
- \ifthenelse{\boolean{@anim@autoplay}\OR\boolean{@anim@autoresume}}{%
- \setboolean{@anim@autoplayorresume}{true}%
- }{}%
- \ifthenelse{\boolean{@anim@controls}\OR\boolean{@anim@palindrome}}{%
- \setboolean{@anim@morejs}{true}%
- }{}%
- \ifx\empty\@anim@label\empty\else%
- \setboolean{@anim@morejs}{true}%
- \fi%
- \ifthenelse{\NOT\boolean{@anim@controls}\AND\boolean{@anim@step}}{%
- \setboolean{@anim@loop}{true}%
- }{}%
- \global\@anim@curframe@zb=\z@%
- \global\@anim@skipfram=\z@%
- \if@anim@draft\else%
- %create button faces if necessary
- \if@anim@controls%
- \ifcsname
- btncol:\@anim@bgcolour:\@anim@fgcolour\endcsname\else%
- \@anim@makebuttons{\the\@anim@num}%
- \@anim@newkey{btncol:\@anim@bgcolour:\@anim@fgcolour}{\the\@anim@num}%
- \fi%
- \fi%
- \if@anim@step\else%
- \xdef\@anim@nfps{-1}%
- \@anim@processfpsarg{#2}%
- \fi%
- \fi%
- \ifdefined\NoHyper\NoHyper\fi% silently suppress any hyperref specials
- \@anim@beginframe%
- \ignorespaces%
-}{%
- \unskip%
- \@anim@endframe{\the\@anim@num}{\the\@anim@curframe@zb}%
- \ifdefined\endNoHyper\endNoHyper\fi%
- \global\advance\@anim@curframe@zb by \@ne%
- \if@anim@draft\else%
- \xdef\@anim@frames{\the\@anim@curframe@zb}% total number
- \global\@anim@tmpcnt=\@anim@frames%
- \global\advance\@anim@tmpcnt by -\@ne%
- \xdef\@anim@maxframe{\the\@anim@tmpcnt}% highest frame index
- %build timeline from optional timeline file
- \@anim@sanitizeJS%
- \if@anim@timeline\@anim@buildtmln{\the\@anim@num}\fi%
- %insert animation widget & controls
- \@anim@insertwidgets{\the\@anim@num}{%
- \@anim@getkeyval{btncol:\@anim@bgcolour:\@anim@fgcolour}}%
- \@anim@endsanitize%
- \fi%
- \endL%
- \endgroup%
- \global\advance\@anim@num by \@ne%
- \setboolean{@anim@inside}{false}%
-}
-\let\@anim@animateinline\animateinline
-\def\animateinline{\@anim@sanitizeColon\@anim@animateinline}
-\endinput
-%%
-%% End of file `animate-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/array-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/array-xetex-bidi.def
deleted file mode 100644
index 1ca898622a1..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/array-xetex-bidi.def
+++ /dev/null
@@ -1,98 +0,0 @@
-%%
-%% This is file `array-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,array-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{array-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for array package for XeTeX engine]
-\def\@testpach{\@chclass
- \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
- \ifnum \@lastchclass=7 5 \else
- \ifnum \@lastchclass=8 \tw@ \else
- \ifnum \@lastchclass=9 \thr@@
- \else \z@
- \ifnum \@lastchclass = 10 \else
- \edef\@nextchar{\expandafter\string\@nextchar}%
- \@chnum
- \if \@nextchar c\z@ \else
- \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
- \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
- \z@ \@chclass
- \if\@nextchar |\@ne \else
- \if \@nextchar !6 \else
- \if \@nextchar @7 \else
- \if \@nextchar <8 \else
- \if \@nextchar >9 \else
- 10
- \@chnum
- \if \@nextchar m\thr@@\else
- \if \@nextchar p4 \else
- \if \@nextchar b5 \else
- \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
- \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
-\def\@tabular{\if@RTL\@RTLtabtrue\fi%
- \leavevmode
- \hbox \bgroup\if@RTLtab\beginR \fi $\col@sep\tabcolsep \let\d@llarbegin\begingroup
- \let\d@llarend\endgroup
- \@tabarray}
-\def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup\@RTLtabfalse}
-\expandafter\let\csname endtabular*\endcsname=\endtabular
-\def\@array[#1]#2{%
- \@tempdima \ht \strutbox
- \advance \@tempdima by\extrarowheight
- \setbox \@arstrutbox \hbox{\vrule
- \@height \arraystretch \@tempdima
- \@depth \arraystretch \dp \strutbox
- \@width \z@}%
- \begingroup
- \@mkpream{#2}%
- \xdef\@preamble{\noexpand \ialign \@halignto
- \bgroup \@arstrut \@preamble
- \tabskip \z@ \cr}%
- \endgroup
- \@arrayleft
- \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi \fi
- \bgroup
- \let \@sharp ##\let \protect \relax
- \lineskip \z@
- \baselineskip \z@
- \m@th
- \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if@RTLtab\hbox\bgroup\beginR\if #1t\vtop \else \vbox \fi\bgroup\fi\@preamble}
-\def\@tabarray{\@ifnextchar[{\@array}{\@array[c]}}
-\def\endarray{\crcr \egroup\if@RTLtab\egroup\endR\egroup\fi \egroup \@arrayright \gdef\@preamble{}}
-\def\array{\col@sep\arraycolsep
- \def\d@llarbegin{$}\let\d@llarend\d@llarbegin\gdef\@halignto{}%
- \@RTLtabfalse\@tabarray}
-\endinput
-%%
-%% End of file `array-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def
deleted file mode 100644
index 01a98d457cc..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def
+++ /dev/null
@@ -1,233 +0,0 @@
-%%
-%% This is file `article-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,article-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{article-xetex-bidi.def}[2015/11/14 v0.5 bidi adaptations for standard article class for XeTeX engine]
-\if@titlepage
- \renewcommand\maketitle{\begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \let \LTRfootnote \LTRthanks
- \let \RTLfootnote \RTLthanks
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- {\LARGE \@title \par}%
- \vskip 3em%
- {\large
- \lineskip .75em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large \@date \par}% % Set date in \large size.
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\else
-\renewcommand\maketitle{\par
- \begingroup
- \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext##1{\parindent 1em\noindent
- \hb@xt@1.8em{%
- \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@ % Prevents figures from going at top of page.
- \@maketitle
- \fi
- \thispagestyle{plain}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
- \begin{center}%
- \let \footnote \thanks
- \let \LTRfootnote \LTRthanks
- \let \RTLfootnote \RTLthanks
- {\LARGE \@title \par}%
- \vskip 1.5em%
- {\large
- \lineskip .5em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1em%
- {\large \@date}%
- \end{center}%
- \par
- \vskip 1.5em}
-\fi
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty\@secpenalty
- \addvspace{2.25em \@plus\p@}%
- \setlength\@tempdima{3em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \if@compatibility
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \fi
- \endgroup
- \fi}
-\renewcommand*\l@section[2]{%
- \ifnum \c@tocdepth >\z@
- \addpenalty\@secpenalty
- \addvspace{1.0em \@plus\p@}%
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \endgroup
- \fi}
-\renewcommand\left@footnoterule{%
- \kern-3\p@
- \hrule\@width.4\columnwidth
- \kern2.6\p@}
-\renewcommand\right@footnoterule{%
- \kern-3\p@
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern2.6\p@}
-\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
-\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
-\def\@part[#1]#2{%
- \ifnum \c@secnumdepth >\m@ne
- \refstepcounter{part}%
- \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
- \else
- \addcontentsline{toc}{part}{#1}%
- \fi
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
- \interlinepenalty \@M
- \normalfont
- \ifnum \c@secnumdepth >\m@ne
- \Large\bfseries \partname\nobreakspace\thepart
- \par\nobreak
- \fi
- \huge \bfseries #2%
- \markboth{}{}\par}%
- \nobreak
- \vskip 3ex
- \@afterheading}
-\renewenvironment{thebibliography}[1]
- {\section*{\refname}%
- \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy
- \clubpenalty4000
- \@clubpenalty \clubpenalty
- \widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\renewenvironment{theindex}
- {\if@twocolumn
- \@restonecolfalse
- \else
- \@restonecoltrue
- \fi
- \columnseprule \z@
- \columnsep 35\p@
- \twocolumn[\section*{\indexname}]%
- \@mkboth{\MakeUppercase\indexname}%
- {\MakeUppercase\indexname}%
- \thispagestyle{plain}\parindent\z@
- \parskip\z@ \@plus .3\p@\relax
- \let\item\@idxitem}
- {\if@restonecol\onecolumn\else\clearpage\fi}
-\endinput
-%%
-%% End of file `article-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/artikel1-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/artikel1-xetex-bidi.def
deleted file mode 100644
index bdab45580b1..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/artikel1-xetex-bidi.def
+++ /dev/null
@@ -1,287 +0,0 @@
-%%
-%% This is file `artikel1-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,artikel1-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{artikel1-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for artikel1 class for XeTeX engine]
-\renewenvironment{theindex}{%
- \if@twocolumn
- \@restonecolfalse
- \else
- \@restonecoltrue
- \fi
- \columnseprule \z@
- \columnsep 35\p@
- \twocolumn[\section*{\indexname}]%
- \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
- \thispagestyle{plain}\parindent\z@
- \parskip\z@ \@plus .3\p@\relax
- \let\item\@idxitem
- }{%
- \if@restonecol\onecolumn\else\clearpage\fi}
-\renewcommand*\head@style{%
- \interlinepenalty \@M
- \hyphenpenalty=\@M \exhyphenpenalty=\@M
- \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
-\if@titlepage
- \renewenvironment{abstract}{%
- \titlepage
- \null\vfil
- \section*{\SectFont\abstractname}
- \noindent\ignorespaces}
- {\par\vfil\null\endtitlepage}
-\else
- \renewenvironment{abstract}{%
- \if@twocolumn
- \section*{\abstractname}%
- \else
- \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
- \section*{\small\SectFont\abstractname}%
- \noindent\ignorespaces
- \fi}
- {\if@twocolumn\else\par\egroup\fi}
-\fi
-\renewcommand*\@regtocline[3]{%
- \ifnum #1>\c@tocdepth
- \else
- \vskip\z@\@plus.2\p@
- {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
- \if@RTL\rightskip\else\leftskip\fi\unitindent
- \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
- \parfillskip\z@
- \@tempdima\unitindent
- \parindent\z@
- \leavevmode
- \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
- \hskip 1em \nobreak{\slshape #3}\par
- }%
- \fi}
-\if@oldtoc
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty\@secpenalty
- \addvspace{2.25em \@plus\p@}%
- \begingroup
- \setlength\@tempdima{3em}%
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \if@compatibility
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \fi
- \endgroup
- \fi}
-\else
- \renewcommand*\l@part{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty\@secpenalty
- \addvspace{2.25em \@plus \p@}%
- \@regtocline{0}%
- \fi}
-\fi
-\if@oldtoc
-\renewcommand*\l@section[2]{%
- \addpenalty\@secpenalty
- \addvspace{1.0em \@plus\p@}%
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \endgroup}
-\else
- \renewcommand*\l@section{\@regtocline{1}}
-\fi
-\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
-\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
-\renewenvironment{thebibliography}[1]
- {\section*{\refname}%
- \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
- \sloppy\clubpenalty4000\widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\renewcommand*\left@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hrule\@width\unitindent
- \kern.4\baselineskip
-}
-\renewcommand*\right@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
- \kern.4\baselineskip}
-\if@titlepage
-\renewcommand*\TitleFont{\rmfamily}
-\renewcommand*\maketitle{%
- \begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \long\def\@makefntext##1{\parindent\z@
- \def\labelitemi{\textendash}\@revlabeltrue
- \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \if@compatibility\setcounter{page}{0}\fi
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- \TitleFont
- {\LARGE \def\\{\penalty -\@M}
- \if@allcaps
- \expandafter\uc@nothanks\@title\thanks\relax
- \else
- \@title
- \fi\par}%
- \vskip 3em%
- {\large
- \lineskip .75em \parindent\z@
- \begin{tabular}[t]{c}%
- \if@allcaps
- \expandafter\uc@authornothanks\@author\and\relax
- \else
- \@author
- \fi
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large
- \if@allcaps
- \uppercase\expandafter{\@date}%
- \else
- \@date
- \fi\par}%
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
-\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
- \futurelet\@tempa\uc@ax}
-\def\uc@ax{%
- \ifx\@tempa\relax
- \else
- \\ \andname \\ \expandafter\uc@authornothanks
- \fi}
-\def\uc@tx{\ifx\@tempa\relax
- \else \expandafter\uc@ty \fi}
-\def\uc@ty#1{\thanks{#1}\uc@nothanks}
-\else
-\renewcommand*\maketitle{\par
- \begingroup
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark{\rlap{%
- \@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext{\@xmakefntext{%
- \@textsuperscript{\normalfont\@thefnmark}}}%
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@
- \@maketitle
- \fi
- \thispagestyle{plain}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
- }
-\def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
- \begin{center}%
- \let \footnote \thanks
- {\LARGE \TitleFont \@title \par}%
- \vskip 1.5em%
- {\large \TitleFont
- \lineskip .5em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1em%
- {\large \TitleFont \@date}%
- \end{center}%
- \par
- \vskip 1.5em}
-\fi
-\endinput
-%%
-%% End of file `artikel1-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/artikel2-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/artikel2-xetex-bidi.def
deleted file mode 100644
index b6f8a9989c1..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/artikel2-xetex-bidi.def
+++ /dev/null
@@ -1,290 +0,0 @@
-%%
-%% This is file `artikel2-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,artikel2-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{artikel2-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for artikel2 class for XeTeX engine]
-\renewenvironment{theindex}{%
- \if@twocolumn
- \@restonecolfalse
- \else
- \@restonecoltrue
- \fi
- \columnseprule \z@
- \columnsep 35\p@
- \twocolumn[\section*{\indexname}]%
- \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
- \thispagestyle{plain}\parindent\z@
- \parskip\z@ \@plus .3\p@\relax
- \let\item\@idxitem
- }{%
- \if@restonecol\onecolumn\else\clearpage\fi}
-\renewcommand*\@regtocline[3]{%
- \ifnum #1>\c@tocdepth
- \else
- \vskip\z@\@plus.2\p@
- {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
- \if@RTL\rightskip\else\leftskip\fi\unitindent
- \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
- \parfillskip\z@
- \@tempdima\unitindent
- \advance\@tempdima by \othermargin
- \parindent\z@
- \leavevmode
- \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
- \hskip 1em \nobreak{\slshape #3}\par
- }%
- \fi}
-\if@oldtoc
-\renewcommand*\l@section[2]{%
- \addpenalty\@secpenalty
- \addvspace{1.0em \@plus\p@}%
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \endgroup}
-\else
- \renewcommand*\l@section{\@regtocline{1}}
-\fi
-\if@oldtoc
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty\@secpenalty
- \addvspace{2.25em \@plus\p@}%
- \begingroup
- \setlength\@tempdima{3em}%
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \if@compatibility
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \fi
- \endgroup
- \fi}
-\else
- \renewcommand*\l@part{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty\@secpenalty
- \addvspace{2.25em \@plus \p@}%
- \@regtocline{0}%
- \fi}
-\fi
-\renewcommand*\head@style{%
- \interlinepenalty \@M
- \hyphenpenalty=\@M \exhyphenpenalty=\@M
- \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
-\if@titlepage
- \renewenvironment{abstract}{%
- \titlepage
- \null\vfil
- \section*{\SectFont\abstractname}%
- \noindent\ignorespaces}
- {\par\vfil\null\endtitlepage}
-\else
- \renewenvironment{abstract}{%
- \if@twocolumn
- \section*{\abstractname}%
- \else
- \section*{\hskip\unitindent\small\SectFont\abstractname}%
- \list{}{\setlength\listparindent{\unitindent}%
- \setlength\parindent {\z@}%
- \setlength\leftmargin {\unitindent}%
- \setlength\rightmargin {\unitindent}%
- \setlength\parsep {\z@}}%
- \item[]%
- \fi}
- {\if@twocolumn\else\par\endlist\fi}
-\fi
-\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
-\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
-\renewcommand*\left@footnoterule{%
- \kern-3\p@
- \hrule\@width 3\unitindent
- \kern 2.6\p@
-}
-\renewcommand*\right@footnoterule{%
- \kern-3\p@
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-3\unitindent\relax \hrulefill }
- \kern 2.6\p@}
-\renewenvironment{thebibliography}[1]
- {\section*{\refname}%
- \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
- \sloppy\clubpenalty4000\widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\if@titlepage
-\renewcommand*\TitleFont{\rmfamily}
-\renewcommand*\maketitle{%
- \begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \long\def\@makefntext##1{\parindent\z@
- \def\labelitemi{\textendash}\@revlabeltrue
- \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \if@compatibility\setcounter{page}{0}\fi
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- \TitleFont
- {\LARGE \def\\{\penalty -\@M}
- \if@allcaps
- \expandafter\uc@nothanks\@title\thanks\relax
- \else
- \@title
- \fi\par}%
- \vskip 3em%
- {\large
- \lineskip .75em \parindent\z@
- \begin{tabular}[t]{c}%
- \if@allcaps
- \expandafter\uc@authornothanks\@author\and\relax
- \else
- \@author
- \fi
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large
- \if@allcaps
- \uppercase\expandafter{\@date}%
- \else
- \@date
- \fi\par}%
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
-\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
- \futurelet\@tempa\uc@ax}
-\def\uc@ax{%
- \ifx\@tempa\relax
- \else
- \\ \andname \\ \expandafter\uc@authornothanks
- \fi}
-\def\uc@tx{\ifx\@tempa\relax
- \else \expandafter\uc@ty \fi}
-\def\uc@ty#1{\thanks{#1}\uc@nothanks}
-\else
-\renewcommand*\maketitle{\par
- \begingroup
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \long\def\@makefntext##1{\parindent\z@
- \def\labelitemi{\textendash}%
- \leavevmode\hb@xt@.5\unitindent{%
- \@textsuperscript{\normalfont\@thefnmark}\hfil}##1}
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@
- \@maketitle
- \fi
- \thispagestyle{plain}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
- }
-\def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
- \begin{center}%
- \let \footnote \thanks
- {\LARGE \TitleFont \@title \par}%
- \vskip 1.5em%
- {\large \TitleFont
- \lineskip .5em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1em%
- {\large \TitleFont \@date}%
- \end{center}%
- \par
- \vskip 1.5em}
-\fi
-\endinput
-%%
-%% End of file `artikel2-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/artikel3-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/artikel3-xetex-bidi.def
deleted file mode 100644
index 41b3935d655..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/artikel3-xetex-bidi.def
+++ /dev/null
@@ -1,298 +0,0 @@
-%%
-%% This is file `artikel3-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,artikel3-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{artikel3-xetex-bidi.def}[2015/11/14 v0.4 bidi adaptations for artikel3 class for XeTeX engine]
-\renewenvironment{theindex}{%
- \if@twocolumn
- \@restonecolfalse
- \else
- \@restonecoltrue
- \fi
- \columnseprule \z@
- \columnsep 35\p@
- \twocolumn[\section*{\indexname}]%
- \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
- \thispagestyle{plain}\parindent\z@
- \parskip\z@ \@plus .3\p@\relax
- \let\item\@idxitem
- }{%
- \if@restonecol\onecolumn\else\clearpage\fi}
-\renewcommand*\head@style{%
- \interlinepenalty \@M
- \hyphenpenalty=\@M \exhyphenpenalty=\@M
- \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
-\renewcommand*\@regtocline[3]{%
- \ifnum #1>\c@tocdepth
- \else
- \vskip\z@\@plus.2\p@
- {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
- \if@RTL\rightskip\else\leftskip\fi\unitindent
- \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
- \parfillskip\z@
- \@tempdima\unitindent
- \parindent\z@
- \leavevmode
- \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
- \hskip 1em \nobreak{\slshape #3}\par
- }%
- \fi}
-\if@oldtoc
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty\@secpenalty
- \addvspace{2.25em \@plus\p@}%
- \begingroup
- \setlength\@tempdima{3em}%
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \if@compatibility
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \fi
- \endgroup
- \fi}
-\else
- \renewcommand*\l@part{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty\@secpenalty
- \addvspace{2.25em \@plus \p@}%
- \@regtocline{0}%
- \fi}
-\fi
-
-\if@oldtoc
-\renewcommand*\l@section[2]{%
- \addpenalty\@secpenalty
- \addvspace{1.0em \@plus\p@}%
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \endgroup}
-\else
- \renewcommand*\l@section{\@regtocline{1}}
-\fi
-\if@titlepage
- \renewenvironment{abstract}{%
- \titlepage
- \null\vfil
- \section*{\SectFont\abstractname}%
- \noindent\ignorespaces}
- {\par\vfil\null\endtitlepage}
-\else
- \renewenvironment{abstract}{%
- \if@twocolumn
- \section*{\abstractname}%
- \else
- \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
- \section*{\small\SectFont\abstractname}%
- \noindent\ignorespaces
- \fi}
- {\if@twocolumn\else\par\egroup\fi}
-\fi
-\renewcommand*\left@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hrule\@width\unitindent
- \kern.4\baselineskip
-}
-\renewcommand*\right@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
- \kern.4\baselineskip}
-\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
-\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
-\renewenvironment{thebibliography}[1]
- {\section*{\refname}%
- \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
- \sloppy\clubpenalty4000\widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\if@titlepage
-\renewcommand*\TitleFont{\rmfamily}
-\renewcommand*\maketitle{%
- \begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \long\def\@makefntext##1{\parindent\z@
- \def\labelitemi{\textendash}\@revlabeltrue
- \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \if@compatibility\setcounter{page}{0}\fi
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- \TitleFont
- {\LARGE \def\\{\penalty -\@M}
- \if@allcaps
- \expandafter\uc@nothanks\@title\thanks\relax
- \else
- \@title
- \fi\par}%
- \vskip 3em%
- {\large
- \lineskip .75em \parindent\z@
- \begin{tabular}[t]{c}%
- \if@allcaps
- \expandafter\uc@authornothanks\@author\and\relax
- \else
- \@author
- \fi
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large
- \if@allcaps
- \uppercase\expandafter{\@date}%
- \else
- \@date
- \fi\par}%
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
-\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
- \futurelet\@tempa\uc@ax}
-\def\uc@ax{%
- \ifx\@tempa\relax
- \else
- \\ \andname \\ \expandafter\uc@authornothanks
- \fi}
-\def\uc@tx{\ifx\@tempa\relax
- \else \expandafter\uc@ty \fi}
-\def\uc@ty#1{\thanks{#1}\uc@nothanks}
-\else
-\renewcommand*\maketitle{\par
- \begingroup
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark{\rlap{%
- \@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext{\@xmakefntext{%
- \@textsuperscript{\normalfont\@thefnmark}}}%
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@
- \@maketitle
- \fi
- \thispagestyle{plain}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
- }
-\def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
-\if@titlecentered
- \begin{center}%
- \let \footnote \thanks
- {\LARGE \TitleFont \@title \par}%
- \vskip 1.5em%
- {\large \TitleFont
- \lineskip .5em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1em%
- {\large \TitleFont \@date}%
- \end{center}%
- \else
- {\LARGE \TitleFont \head@style \@title \par} \vskip 1.5em
- {\large \TitleFont \lineskip .5em \tabcolsep\z@
- \def\and{%%% \begin{tabular} has already started
- \end{tabular}\hskip 1em plus .17fil
- \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi}%% \end{tabular} will come
- \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi\@author\end{tabular}\par}
- \vskip 1em {\large \TitleFont \@date}
- \fi
- \par
- \vskip 1.5em}
-\fi
-\endinput
-%%
-%% End of file `artikel3-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/arydshln-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/arydshln-xetex-bidi.def
deleted file mode 100644
index 4eecdbaf499..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/arydshln-xetex-bidi.def
+++ /dev/null
@@ -1,174 +0,0 @@
-%%
-%% This is file `arydshln-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,arydshln-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{arydshln-xetex-bidi.def}[2010/08/01 v0.2 bidi adaptations for arydshln package for XeTeX engine]
-\def\endarray{\adl@endarray \egroup \adl@arrayrestore \if@RTLtab\egroup\endR\egroup\fi\egroup}
-\def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup\@RTLtabfalse}
-\expandafter\let\csname endtabular*\endcsname\endtabular
-\let\adl@array\@array
-\def\@array{\adl@everyvbox\everyvbox
- \everyvbox{\adl@arrayinit \the\adl@everyvbox \everyvbox\adl@everyvbox}%
- \ifadl@inactive \adl@inactivate \else \adl@activate \fi
- \let\adl@noalign\noalign
- \adl@array}
-\ifadl@usingarypkg
-\def\@testpach{\@chclass
- \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
- \ifnum \@lastchclass=7 5 \else
- \ifnum \@lastchclass=8 \tw@ \else
- \ifnum \@lastchclass=9 \thr@@
- \else \z@
- \ifnum \@lastchclass = 10 \else
- \edef\@nextchar{\expandafter\string\@nextchar}%
- \@chnum
- \if \@nextchar c\z@ \else
- \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
- \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
- \z@ \@chclass
- \if\@nextchar |\@ne \let\@arrayrule\adl@arrayrule \else
- \if\@nextchar :\@ne \let\@arrayrule\adl@arraydashrule \else
- \if\@nextchar ;\@ne \let\@arrayrule\adl@argarraydashrule \else
- \if \@nextchar !6 \else
- \if \@nextchar @7 \else
- \if \@nextchar <8 \else
- \if \@nextchar >9 \else
- 10
- \@chnum
- \if \@nextchar m\thr@@\else
- \if \@nextchar p4 \else
- \if \@nextchar b5 \else
- \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi \fi \fi
- \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
-
-\def\@classz{\@classx
- \@tempcnta \count@
- \prepnext@tok
- \@addtopreamble{\ifcase \@chnum
- \hfil
- \adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or
- \hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\hfil \or
- \hfil\hskip1sp\adl@putlrc{\d@llarbegin \insert@column \d@llarend}\or
- \setbox\adl@box\hbox \adl@startmbox{\@nextchar}\insert@column
- \adl@endmbox\or
- \setbox\adl@box\vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or
- \setbox\adl@box\vbox \@startpbox{\@nextchar}\insert@column \@endpbox
- \fi}\prepnext@tok}
-\def\adl@class@start{4}
-\def\adl@class@iiiorvii{7}
-
-\else
-\def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4\relax \else
- \ifnum \@lastchclass=\thr@@ 5\relax \else
- \z@ \if #1c\@chnum \z@ \else
- \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else
- \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else
- \@chclass
- \if #1|\@ne \let\@arrayrule\adl@arrayrule \else
- \if #1:\@ne \let\@arrayrule\adl@arraydashrule \else
- \if #1;\@ne \let\@arrayrule\adl@argarraydashrule \else
- \if #1@\tw@ \else
- \if #1p\thr@@ \else \z@ \@preamerr 0\fi
- \fi \fi \fi \fi \fi \fi \fi \fi \fi}
-
-\def\@arrayclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or
- \or \or \@addamp \or
- \@acolampacol \or \@firstampfalse \@acol \fi
- \edef\@preamble{\@preamble
- \ifcase \@chnum
- \hfil\adl@putlrc{$\relax\@sharp$}\hfil
- \or \adl@putlrc{$\relax\@sharp$}\hfil
- \or \hfil\adl@putlrc{$\relax\@sharp$}\fi}}
-\def\@tabclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or
- \or \or \@addamp \or
- \@acolampacol \or \@firstampfalse \@acol \fi
- \edef\@preamble{\@preamble
- \ifcase \@chnum
- \hfil\adl@putlrc{\@sharp\unskip}\hfil
- \or \adl@putlrc{\@sharp\unskip}\hfil
- \or \hfil\hskip\z@ \adl@putlrc{\@sharp\unskip}\fi}}
-\def\adl@class@start{6}
-\def\adl@class@iiiorvii{3}
-\fi
-\@ifpackageloaded{colortbl}{%
-\def\adl@inactivate{\adl@org@inactivate \let\CT@setup\adl@CT@setup}
-\def\adl@activate{\adl@org@activate \let\CT@setup\adl@act@CT@setup
- \let\@endpbox\adl@org@endpbox}
-\let\adl@CT@setup\CT@setup
-\def\CT@setup{\adl@CT@setup
- \@tempdima\ht\z@ \advance\@tempdima\minrowclearance
- \ifdim\adl@height<\@tempdima \global\adl@height\@tempdima \fi
- \ifdim\adl@depth<\dp\z@ \global\adl@depth\dp\z@\fi}
-\let\adl@act@CT@setup\CT@setup
-\def\@classz{\@classx
- \@tempcnta\count@ \prepnext@tok
- \expandafter\CT@extract\the\toks\@tempcnta\columncolor!\@nil
- \expandafter\adl@extract@arc\the\toks\@tempcnta\arrayrulecolor!\@nil
- \expandafter\adl@extract@drsc
- \the\toks\@tempcnta\doublerulesepcolor!\@nil
- \expandafter\adl@extract@dgc\the\toks\@tempcnta\dashgapcolor!\@nil
- \@addtopreamble{\if@RTL\beginL\fi%
- \setbox\z@\hbox\bgroup\bgroup\if@RTL\beginR\fi
- \ifcase \@chnum
- \hskip\stretch{.5}\kern\z@
- \d@llarbegin
- \insert@column
- \d@llarend\hskip\stretch{.5}%
- \or \d@llarbegin \insert@column \d@llarend \hfill
- \or \hfill \kern\z@ \d@llarbegin \insert@column \d@llarend
- \or $\vcenter
- \@startpbox{\@nextchar}\insert@column \@endpbox $%
- \or \vtop \@startpbox{\@nextchar}\insert@column \@endpbox
- \or \vbox \@startpbox{\@nextchar}\insert@column \@endpbox
- \fi
- \if@RTL\endR\fi\egroup\egroup
- \begingroup
- \CT@setup
- \CT@column@color
- \CT@row@color
- \CT@cell@color
- \CT@do@color
- \endgroup
- \@tempdima\ht\z@
- \advance\@tempdima\minrowclearance
- \vrule\@height\@tempdima\@width\z@
- \unhbox\z@\if@RTL\endL\fi}%
- \prepnext@tok}
-\let\adl@act@classz\@classz
-\let\adl@org@classz\@classz
-}{}
-\endinput
-%%
-%% End of file `arydshln-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bibitem.pdf b/Master/texmf-dist/tex/xelatex/bidi/bibitem.pdf
deleted file mode 100644
index 49191743021..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bibitem.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi-longtable.sty b/Master/texmf-dist/tex/xelatex/bidi/bidi-longtable.sty
deleted file mode 100644
index 1cb88bb8009..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidi-longtable.sty
+++ /dev/null
@@ -1,108 +0,0 @@
-%%
-%% This is file `bidi-longtable.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidi-longtable.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesPackage{bidi-longtable}[2012/12/12 v0.1 typesetting bidi longtables in XeTeX engine (experimental)]
-\def\longtable{\if@RTL\@RTLtabtrue\fi%
- \par
- \ifx\multicols\@undefined
- \else
- \ifnum\col@number>\@ne
- \@twocolumntrue
- \fi
- \fi
- \if@twocolumn
- \LT@err{longtable not in 1-column mode}\@ehc
- \fi
- \begingroup
- \@ifnextchar[\LT@array{\LT@array[x]}}
-\def\endlongtable{%
- \crcr
- \noalign{%
- \let\LT@entry\LT@entry@chop
- \xdef\LT@save@row{\LT@save@row}}%
- \LT@echunk
- \LT@start
- \unvbox\z@
- \LT@get@widths
- \if@filesw
- {\let\LT@entry\LT@entry@write\immediate\write\@auxout{%
- \gdef\expandafter\noexpand
- \csname LT@\romannumeral\c@LT@tables\endcsname
- {\LT@save@row}}}%
- \fi
- \ifx\LT@save@row\LT@@save@row
- \else
- \LT@warn{Column \@width s have changed\MessageBreak
- in table \thetable}%
- \LT@final@warn
- \fi
- \endgraf\penalty -\LT@end@pen
- \endgroup
- \global\@mparbottom\z@
- \pagegoal\vsize
- \endgraf\penalty\z@\addvspace\LTpost
- \ifvoid\footins\else\insert\footins{}\fi\@RTLtabfalse}
-\def\LT@output{%
- \ifnum\outputpenalty <-\@Mi
- \ifnum\outputpenalty > -\LT@end@pen
- \LT@err{floats and marginpars not allowed in a longtable}\@ehc
- \else
- \setbox\z@\vbox{\unvbox\@cclv}%
- \ifdim \ht\LT@lastfoot>\ht\LT@foot
- \dimen@\pagegoal
- \advance\dimen@-\ht\LT@lastfoot
- \ifdim\dimen@<\ht\z@
- \setbox\@cclv\vbox{\unvbox\z@\copy\LT@foot\vss}%
- \@makecol
- \@outputpage
- \setbox\z@\vbox{\box\LT@head}%
- \fi
- \fi
- \global\@colroom\@colht
- \global\vsize\@colht
- \vbox
- {\hbox{\if@RTLtab\beginR\fi\vbox{\unvbox\z@\box\ifvoid\LT@lastfoot\LT@foot\else\LT@lastfoot\fi}\if@RTLtab\endR\fi}}%
- \fi
- \else
- \setbox\@cclv\vbox{\hbox{\if@RTLtab\beginR\fi\vbox{\unvbox\@cclv\copy\LT@foot\vss}\if@RTLtab\endR\fi}}%
- \@makecol
- \@outputpage
- \global\vsize\@colroom
- \copy\LT@head\nobreak
- \fi}
-\endinput
-%%
-%% End of file `bidi-longtable.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi-media9.sty b/Master/texmf-dist/tex/xelatex/bidi/bidi-media9.sty
deleted file mode 100644
index 74d9a65d700..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidi-media9.sty
+++ /dev/null
@@ -1,456 +0,0 @@
-%%
-%% This is file `bidi-media9.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidi-media9.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesExplPackage{bidi-media9}{2015/11/24}{0.1}
-{bidi fixes for media9 package for the XeTeX engine}
-
-\keys_define:nn{media9/mbtn}{
- overface .code:n = {
- \hbox_set:Nn\l_mix_poster_box{\if@RTL\beginR\fi#1\if@RTL\endR\fi}
- \mix_pdfxform:n{\l_mix_poster_box}
- \tl_gset:Nx\g_mix_overbtn_tl{\mix_pdflastxform:}
- },
- overface .value_required:n = {true},
-
- downface .code:n = {
- \hbox_set:Nn\l_mix_poster_box{\if@RTL\beginR\fi#1\if@RTL\endR\fi}
- \mix_pdfxform:n{\l_mix_poster_box}
- \tl_gset:Nx\g_mix_downbtn_tl{\mix_pdflastxform:}
- },
- downface .value_required:n = {true}
-}
-
-\RenewDocumentCommand\includemedia{O{}mm}{%#1 options, #2 text/image #3 media file
- \mix_uriend:
- \group_begin:
- \beginL
- \leavevmode
- %empty stream as appearance dummy
- \cs_if_exist:NF\g_mix_appearance_tl{
- \hbox_set:Nn\l_mix_poster_box{\phantom{\rule{1pt}{1pt}}}
- \mix_pdfxform:n{\l_mix_poster_box}
- \tl_gset:Nx\g_mix_appearance_tl{\mix_pdflastxform:}
- }
- \mix_reset:
- \mix_uribegin: %treat URI characters correctly
- \keys_set:nn{media9/user}{#1}
- \mix_uriend:
- \tl_greplace_all:Nnn\g_mix_flashvars_tl{~&}{&}
- \tl_greplace_all:Nnn\g_mix_flashvars_tl{&~}{&}
- \tl_greplace_all:Nnn\g_mix_flashvars_tl{~=}{=}
- \tl_greplace_all:Nnn\g_mix_flashvars_tl{=~}{=}
- \tl_gtrim_spaces:N\g_mix_flashvars_tl
-
- \cs_if_exist:NT\Ginput@path{\cs_set_eq:NN\input@path\Ginput@path}
-
- \hbox_set:Nn\l_mix_poster_box{\group_begin:\if@RTL\beginR\fi#2\if@RTL\endR\fi\group_end:}
- %\hbox_set:Nn\l_mix_poster_box{#2}
- \mix_scale:n{\l_mix_poster_box}
- \bool_if:nT{
- \dim_compare_p:n{\g_mix_tt_tl=\c_zero_dim}||
- \dim_compare_p:n{\g_mix_wd_tl=\c_zero_dim}
- }{
- \tl_gset:Nn\g_mix_usrpbtn_tl{none}
- }
- \bool_if:NTF\g_mix_usrdraft_bool{
- \tl_if_empty:NF\g_mix_usrlabel_tl{
- \mix_keytoaux_now:nn{ann@\g_mix_usrlabel_tl}{draft}
- }
- \tl_if_blank:oTF{#2}{
- \mix_uribegin: %treat URI characters correctly
- \mix_draftbox:n{\tl_to_str:n{#3}}
- \mix_uriend:
- }{
- \hbox_to_wd:nn{\g_mix_wd_tl}{
- \vrule~width~\c_zero_dim~height~\g_mix_ht_tl~depth~\g_mix_dp_tl
- \box_use:N\l_mix_poster_box\hss
- }
- }
- }{
- \bool_if:nF{\str_if_eq_p:Vn\g_mix_usrpbtn_tl{none}}{
- %attach script that switches off play button overlay upon activation
- \mix_pdfobj:nnn{}{stream}{
- var~ocgs=host.getOCGs(host.pageNum);
- for(var~i=0;i<ocgs.length;i++){
- if(ocgs[i].name=='MediaPlayButton\int_use:N\g_mix_rmcnt_int'){
- ocgs[i].state=false;
- }
- }
- }
- \mix_pdfobj:nnn{}{dict}{
- /Type/Filespec/EF~<</F~\mix_pdflastobj:>>/F~(btnoff)%/UF~(btnoff)
- }
- \tl_gset:Nx\g_mix_assets_tl{(btnoff)~\mix_pdflastobj:}
- \tl_set:Nx\l_mix_scripts_tl{~\mix_pdflastobj:~}
- %enforce plain playbutton overlay for XeTeX
- \sys_if_engine_xetex:T{\tl_gset:Nn\g_mix_usrpbtn_tl{plain}}
- }
- %embed main asset
- \mix_uribegin:
- \mix_embedasset:n{#3}
- \bool_if:nTF{
- \str_if_eq_p:Vn\l_mix_ext_tl{prc}||\str_if_eq_p:Vn\l_mix_ext_tl{u3d}
- }{
- \bool_gset_true:N\g_mix_iiid_bool
- \tl_gset:Nn\g_mix_mainassetsub_tl{3D}
- }{
- \str_case_x:nnF{\l_mix_base_tl}{
- {APlayer}{\tl_gset:Nn\g_mix_mainassetsub_tl{Sound}}
- {AudioPlayer}{\tl_gset:Nn\g_mix_mainassetsub_tl{Sound}}
- {VPlayer}{\tl_gset:Nn\g_mix_mainassetsub_tl{Video}}
- {VideoPlayer}{\tl_gset:Nn\g_mix_mainassetsub_tl{Video}}
- {StrobeMediaPlayback}{\tl_gset:Nn\g_mix_mainassetsub_tl{Video}}
- }{\tl_gset:Nn\g_mix_mainassetsub_tl{Flash}}
- }
- \tl_gset:Nx\g_mix_mainasset_tl{~\g_mix_lastasset_tl}
- \mix_uriend:
- %secondary assets (added by addresource)
- \seq_map_function:NN\g_mix_res_seq\mix_embedasset:n
- \seq_map_inline:Nn\g_mix_script_seq{
- \mix_embedasset:n{##1}
- \tl_put_right:Nx\l_mix_scripts_tl{~\g_mix_lastasset_tl}
- }
- %attach 3D calculation script
- \bool_if:nT{\g_mix_iiid_bool && \g_mix_iiidcalc_bool}{
- \mix_embedasset:n{3Dmenu.js}
- \tl_put_left:Nx\l_mix_scripts_tl{\g_mix_lastasset_tl~}
- }
- %create 3D views from file (option 3Dviews)
- \bool_if:nT{\g_mix_iiid_bool && !(\tl_if_blank_p:V\g_mix_vfile_tl)}{
- \tl_set:Nn\l_mix_level_tl{\c_minus_one}
- \int_zero:N\l_mix_viewcnt_int
- \int_zero:N\l_mix_lineno_int
-
- \ior_open:Nn\l_mix_vfile_stream{\g_mix_vfile_tl}
- \ior_map_inline:Nn\l_mix_vfile_stream{
- \int_incr:N\l_mix_lineno_int
- \keys_set:nn{media9/views}{##1} %process input line
- }
- \ior_close:N\l_mix_vfile_stream
- }
- \bool_if:nT{ %create default 3D view if required
- \g_mix_iiid_bool &&
- (\g_mix_opt_iiidview_bool || \tl_if_blank_p:V\l_mix_iiidviewarray_tl)
- }{
- \tl_set_eq:NN\l_mix_bg_tl\g_mix_opt_bg_tl
- \tl_set_eq:NN\l_mix_ls_tl\g_mix_opt_ls_tl
- \tl_set_eq:NN\l_mix_rm_tl\g_mix_opt_rm_tl
- \tl_set_eq:NN\l_mix_psob_tl\g_mix_opt_psob_tl
- \tl_set_eq:NN\l_mix_coo_tl\g_mix_opt_coo_tl
- \tl_set_eq:NN\l_mix_ctoc_tl\g_mix_opt_ctoc_tl
- \tl_set_eq:NN\l_mix_ciiw_tl\g_mix_opt_ciiw_tl
-
- \fp_set_eq:NN\l_mix_roo_fp\g_mix_opt_roo_fp
- \fp_set_eq:NN\l_mix_aac_fp\g_mix_opt_aac_fp
- \fp_set_eq:NN\l_mix_oscale_fp\g_mix_opt_oscale_fp
- \fp_set_eq:NN\l_mix_roll_fp\g_mix_opt_roll_fp
-
- \bool_set_eq:NN\l_mix_ciiw_bool\g_mix_opt_ciiw_bool
- \bool_set_eq:NN\l_mix_iiidortho_bool\g_mix_opt_iiidortho_bool
- \tl_clear:N\l_mix_naarray_tl
-
- \bool_if:NF\l_mix_ciiw_bool{
- \tl_set:Nx\l_mix_args_tl{\l_mix_coo_tl\space\l_mix_ctoc_tl\space}
- \exp_after:wN\mix_calc_ciiw:w\l_mix_args_tl\q_stop
- }
-
- \tl_clear:N\l_mix_naarray_tl
- \tl_clear:N\l_mix_saarray_tl
- \tl_set_eq:NN\l_mix_nr_tl\g_mix_nrdflt_tl
-
- \mix_view:n{Default}
- \tl_set:Nx\l_mix_dfltview_tl{\mix_pdflastobj:}
-
- }
- \mix_pdfobj:nnn{}{dict}{
- /Type/RichMediaInstance
- /Subtype/\g_mix_mainassetsub_tl
- /Asset~\g_mix_mainasset_tl
- \bool_if:NF\g_mix_iiid_bool{
- /Params~<<
- /Binding\str_if_eq:VnTF\g_mix_transp_tl{true}{
- /Foreground
- }{
- /Background
- }
- \tl_if_blank:VF\g_mix_flashvars_tl{
- /FlashVars~(\g_mix_flashvars_tl)
- }
- >>
- }
- }
- \tl_if_empty:NF\g_mix_usrlabel_tl{
- \mix_keytoaux_now:nn{main@\g_mix_usrlabel_tl}{\mix_pdflastobj:}
- }
- \mix_pdfobj:nnn{}{dict}{
- /Type/RichMediaConfiguration
- /Subtype/\g_mix_mainassetsub_tl
- /Instances~[\mix_pdflastobj:]
- }
- \mix_pdfobj:nnn{}{dict}{
- /Type/RichMediaContent
- /Assets~<</Names~[\g_mix_assets_tl]>>
- /Configurations~[\mix_pdflastobj:]
- \bool_if:nT{
- \g_mix_iiid_bool && !(\tl_if_empty_p:V\l_mix_iiidviewarray_tl)
- }{
- /Views~[\l_mix_iiidviewarray_tl]
- }
- }
- \tl_set:Nx\l_mix_content_tl{\mix_pdflastobj:}
- \bool_if:nT{
- \g_mix_iiid_bool && \str_if_eq_p:Vn\g_mix_playtpe_tl{Oscillating}
- }{
- \tl_gset:Nx\g_mix_playcnt_tl{\int_eval:n{\g_mix_playcnt_tl*2}}
- }
- %determine floating window size
- \bool_if:NT\g_mix_opt_windowed_bool{
- \exp_after:wN\mix_parse_winsizearg:w\g_mix_winsize_tl\q_stop
- }
- \mix_pdfobj:nnn{}{dict}{
- /Activation~<<
- /Condition\g_mix_act_tl
- \bool_if:nT{
- \g_mix_iiid_bool &&
- !(\str_if_eq_p:Vn\g_mix_playtpe_tl{None})
- }{%seems to work only with 3D content
- /Animation~<<
- /Subtype/\g_mix_playtpe_tl
- /PlayCount~\g_mix_playcnt_tl
- /Speed~\g_mix_playspd_tl
- >>
- }
- \bool_if:nT{
- \g_mix_iiid_bool && (
- \g_mix_opt_iiidview_bool || \tl_if_blank_p:V\l_mix_iiidviewarray_tl
- )
- }{/View~\l_mix_dfltview_tl}
- /Presentation~<<
- /Transparent~\g_mix_transp_tl
- \bool_if:NTF\g_mix_opt_windowed_bool{
- /Style/Windowed
- /Window~<<
- /Width~<</Default~\tl_mix_fltwd>>
- /Height~<</Default~\tl_mix_fltht>>
- /Position~<<
- /HOffset~0/VOffset~0
- \str_case_x:nnF{\g_mix_winpos_tl}{
- {tl}{/VAlign/Near/HAlign/Near}
- {cl}{/VAlign/Center/HAlign/Near}
- {bl}{/VAlign/Far/HAlign/Near}
- {bc}{/VAlign/Far/HAlign/Center}
- {br}{/VAlign/Far/HAlign/Far}
- {cr}{/VAlign/Center/HAlign/Far}
- {tr}{/VAlign/Near/HAlign/Far}
- {tc}{/VAlign/Near/HAlign/Center}
- }{/HAlign/Center/VAlign/Center}
- >>
- >>
- }{
- /Style/Embedded
- }
- \bool_if:NTF\g_mix_iiid_bool{
- /Toolbar~\g_mix_tools_tl
- /NavigationPane~\g_mix_nav_tl
- }{
- /PassContextClick~\g_mix_contextclick_tl
- }
- >>
- \tl_if_blank:VF\l_mix_scripts_tl{/Scripts~[\l_mix_scripts_tl]}
- >>
- /Deactivation~<</Condition\g_mix_deact_tl>>
- }
- \tl_set:Nx\l_mix_settings_tl{\mix_pdflastobj:}
- \tl_if_empty:NF\g_mix_usrlabel_tl{
- \tl_gset_eq:NN\g_mix_label_tl\g_mix_usrlabel_tl
- }
- % #1:width, #2:height, #3:depth, #4:content (key-value)
- \mix_pdfannot:nnnn{\g_mix_wd_tl}{\g_mix_ht_tl}{\g_mix_dp_tl}{
- /Subtype/RichMedia
- /F~4\cs_if_exist_use:N\ocgxii@insert@OC
- /BS~<</W~0/S/S>>
- /Contents~(media~embedded~by~media9~[\g_mix_version_tl~(\g_mix_date_tl)])
- /NM~(\g_mix_label_tl)
- /AP~<</N~\g_mix_appearance_tl>>
- /RichMediaSettings~\l_mix_settings_tl
- /RichMediaContent~\l_mix_content_tl
- }
- \tl_if_empty:NF\g_mix_usrlabel_tl{
- \mix_keytoaux_now:nn{ann@\g_mix_usrlabel_tl}{\mix_pdflastann:}
- \mix_keytoaux_shipout:nn{page@\g_mix_usrlabel_tl}{
- \noexpand\the\g@mix@page@int}
- }
- \mix_pdfobj:nnn{}{dict}{
- /S/JavaScript/JS~(
- try{
- if(typeof(annotRM)=='undefined'){annotRM=new~Array();}
- if(typeof(annotRM['\g_mix_label_tl'])=='undefined'){
- annotRM['\g_mix_label_tl']=
- this.getAnnotRichMedia(this.pageNum,'\g_mix_label_tl');
- }
- \str_if_eq_x:nnF{\g_mix_usrpbtn_tl}{none}{
- if(typeof(ocgBtn\int_use:N\g_mix_rmcnt_int)=='undefined'){
- var~ocgs=this.getOCGs(this.pageNum);
- for(var~i=0;i<ocgs.length;i++){
- if(ocgs[i].name=='MediaPlayButton\int_use:N\g_mix_rmcnt_int'){
- var~ocgBtn\int_use:N\g_mix_rmcnt_int=ocgs[i];
- }
- }
- }
- if(
- !annotRM['\g_mix_label_tl'].activated&&(
- app.viewerType=='Reader'||
- app.viewerType=='Exchange'||
- app.viewerType=='Exchange-Pro'
- )&&app.viewerVersion>=9
- ){
- ocgBtn\int_use:N\g_mix_rmcnt_int.state=true;
- }
- }
- }catch(e){}
- this.dirty=false;
- )
- }
- \mix_pdfannot:nnnn{0pt}{0pt}{0pt}{
- /Subtype/Widget
- /FT/Btn/Ff~65537/F~2
- /BS~<</W~0>>
- /T~(fd@\g_mix_label_tl)
- /AA~<</PO~\mix_pdflastobj:~/PV~\mix_pdflastobj:>>
- }
- \tl_gput_right:Nx\@anim@fields{\space\mix_pdflastann:\space}
- \hbox_overlap_right:n{\box_use:N\l_mix_poster_box}
- \str_if_eq_x:nnTF{\g_mix_usrpbtn_tl}{none}{
- \hbox_to_wd:nn{\g_mix_wd_tl}{
- \vrule~width~\c_zero_dim~height~\g_mix_ht_tl~depth~\g_mix_dp_tl\hss
- }
- }{%insert play button overlay
- \mix_insert_btnocg: %create OCG
- \cs_gset_eq:Nc\mix_pbtn:NN{g@mix@pbtn@\g_mix_usrpbtn_tl @tl}
- \hbox_set:Nn\l_mix_pbtn_box{\mix_pbtn:NN\g_mix_wd_tl\g_mix_tt_tl}
- \box_move_down:nn{\g_mix_dp_tl}{
- \hbox_to_wd:nn{\g_mix_wd_tl}{
- \vbox_to_ht:nn{\g_mix_tt_tl}{
- \vss
- \ocgbase_oc_bdc:n{\g_mix_btnocg_tl}
- \box_use:N\l_mix_pbtn_box
- \ocgbase_oc_emc:
- }
- }
- }
- }
- \int_gincr:N\g_mix_rmcnt_int
- }
- \endL
- \group_end:
-}
-\tl_set_eq:NN\l_mix_includemedia_tl\includemedia
-\tl_set:Nn\includemedia{\mix_uribegin:\l_mix_includemedia_tl}
-
-\RenewDocumentCommand\mediabutton{O{}m}{%#1 options, #2 normal button text
- \mix_uriend:
- \group_begin:
- \beginL
- \leavevmode
- %reset various variables
- \tl_gclear:N\g_mix_overbtn_tl
- \tl_gclear:N\g_mix_downbtn_tl
- \tl_gclear:N\g_mix_btnactions_tl
- \tl_gclear:N\g_mix_tooltip_tl
- %process options
- \bool_gset_eq:NN\g_mix_btndraft_bool\g_mix_pkgdraft_bool
- \mix_uribegin: %treat URI characters correctly
- \keys_set:nn{media9/mbtndraft}{#1} %detect draft/final on first pass
- \bool_if:NF\g_mix_btndraft_bool{\keys_set:nn{media9/mbtn}{#1}}
- \mix_uriend:
- %normal button appearance
- \hbox_set:Nn\l_mix_poster_box{\if@RTL\beginR\fi#2\if@RTL\endR\fi}
- \tl_set:Nx\width {\dim_use:N\box_wd:N\l_mix_poster_box}
- \tl_set:Nx\height{\dim_use:N\box_ht:N\l_mix_poster_box}
- \tl_set:Nx\depth {\dim_use:N\box_dp:N\l_mix_poster_box}
- \bool_if:NTF\g_mix_btndraft_bool{\box_use:N\l_mix_poster_box}{
- \mix_pdfxform:n{\l_mix_poster_box}
- \tl_set:Nx\g_mix_normalbtn_tl{\mix_pdflastxform:}
- \bool_if:nT{ %dummy Widget for ocgx2, AR seems to need it
- !\cs_if_exist:NTF\ocgxii@insert@OC{
- \tl_if_blank_p:V\ocgxii@insert@OC
- }{
- \c_true_bool
- }
- }{\mix_pdfannot:nnnn{\width}{\height}{\depth}{/Subtype/Widget/F~2}}
- %insert widget annotation
- \mix_pdfannot:nnnn{\width}{\height}{\depth}{
- /Subtype/Widget
- /T~(mbtn@\int_use:N\g_mix_mbtncnt_int)
- \tl_if_empty:NF\g_mix_tooltip_tl{/TU~(\g_mix_tooltip_tl)}
- /FT/Btn/Ff~65536\cs_if_exist_use:N\ocgxii@insert@OC
- \tl_if_empty:NTF\g_mix_downbtn_tl{/H/I}{/H/P}
- /AP~<<
- /N~\g_mix_normalbtn_tl
- \tl_if_empty:NF\g_mix_overbtn_tl{/R~\g_mix_overbtn_tl}
- \tl_if_empty:NF\g_mix_downbtn_tl{/D~\g_mix_downbtn_tl}
- >>
- /MK~<<
- /TP~1~/IF~<</S/A/FB~true/A~[0.0~0.0]>>
- /I~\g_mix_normalbtn_tl
- \tl_if_empty:NF\g_mix_overbtn_tl{/RI~\g_mix_overbtn_tl}
- \tl_if_empty:NF\g_mix_downbtn_tl{/IX~\g_mix_downbtn_tl}
- >>
- /A~<<
- /S/JavaScript/JS~(app.focusRect=false;)
- %sequence of actions to perform
- \tl_if_empty:NF\g_mix_btnactions_tl{/Next~[\g_mix_btnactions_tl]}
- >>
- }
- \tl_gput_right:Nx\@anim@fields{\mix_pdflastann:\space}
- \hbox_to_wd:nn{\width}{
- \vrule~width~\c_zero_dim~height~\height~depth~\depth\hss
- }
- \int_gincr:N\g_mix_mbtncnt_int
- \cs_if_exist:NF\g_mix_dpiwarned_tl{
- \tl_new:N\g_mix_dpiwarned_tl
- \AtEndDvi{\special{ps::[nobreak]\mix_dpiwarning:}}
- }
- }
- \endL
- \group_end:
-}
-\tl_set_eq:NN\l_mix_mediabutton_tl\mediabutton
-\tl_set:Nn\mediabutton{\mix_uribegin:\l_mix_mediabutton_tl}
-
-\endinput
-%%
-%% End of file `bidi-media9.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
deleted file mode 100644
index 5111a873672..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
+++ /dev/null
@@ -1,156 +0,0 @@
-%%
-%% This is file `bidi.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidi.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\def\bididate{2015/12/07}
-\def\bidiversion{v19.1}
-\ProvidesPackage{bidi}[\bididate\space \bidiversion\space
-Bidirectional typesetting in plain TeX and LaTeX]
-\edef\@bidi@info{****************************************************^^J%
-* ^^J%
-* bidi package (Bidirectional typesetting in^^J%
-* plain TeX and LaTeX, using XeTeX engine)^^J%
-* ^^J%
-* Description: A convenient interface for^^J%
-* typesetting bidirectional texts in plain TeX^^J%
-* and LaTeX. The package includes adaptations^^J%
-* for use with many other commonly-used packages.^^J%
-* ^^J%
-* Copyright (c) 2009--2015 Vafa Khalighi^^J%
-* ^^J%
-* \bididate, \bidiversion^^J%
-* ^^J%
-* License: LaTeX Project Public License, version^^J%
-* 1.3c or higher (your choice)^^J%
-* ^^J%
-* Location on CTAN: /macros/xetex/latex/bidi^^J%
-* ^^J%
-* Issue tracker: https://github.com/persian-tex/bidi/issues^^J%
-* ^^J%
-* Support: persian-tex@tug.org^^J%
-****************************************************}
-\typeout{\@bidi@info}
-\edef\bidi@everyjob{\the\everyjob}
-\everyjob{\bidi@everyjob\typeout{\@bidi@info}}
-\RequirePackage{iftex}
-\RequireXeTeX
-\RequirePackage{biditools}
-\RequirePackage{zref-abspage}
-\RequirePackage{auxhook}
-\RequirePackage{ltxcmds}
-\RequirePackage{xkeyval}
-\eqnewif{\if@RTLmain}{\if@rlmain}
-\eqnewif{\if@RTL}{\if@rl}
-\newif\if@Latin
-\eqnewif{\if@RTLtab}{\if@tab@rl}
-\newif\if@RTLmarginpar
-\newif\if@LTRmarginpar
-\newif\if@LTRbibitems
-\newif\if@RTLbibitems
-\newif\if@extrafootnotefeatures
-\newif\if@parafootRTL
-\newif\if@RTLcolumnfootnotes
-\eqnewif{\if@RTL@footnote}{\if@rl@footnote}
-\newif\if@bidi@list@minipage@parbox
-\newif\if@bidi@list@minipage@parbox@not@nob
-\@RTLmainfalse
-\AtBeginDocument{%
- \if@RTLmain\else
- \if@RTL\@RTLmaintrue%
- \else\@RTLmainfalse%
- \fi%
- \fi%
-}
-\let\n@xt=\
-\bidi@newrobustcmd*{\LRE}{\protect\pLRE}%
-\def\pLRE{\protect\afterassignment\moreLRE \let\n@xt= }
-\bidi@newrobustcmd*{\RLE}{\protect\pRLE}
-\def\pRLE{\protect\afterassignment\moreRLE \let\n@xt= }
-\def\bracetext{\ifcat\n@xt{\else\ifcat\n@xt}\fi
- \errmessage{Missing left brace has been substituted}\fi \bgroup}
-\input{latex-xetex-bidi.def}
-\input{loadingorder-xetex-bidi.def}
-\define@choicekey{bidi.sty}{RTLdocument}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
- \ifcase\bidi@tempb\relax
- \@RTLtrue
- \or
- \@RTLfalse
- \fi}
-\define@choicekey{bidi.sty}{rldocument}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
- \ifcase\bidi@tempb\relax
- \@RTLtrue
- \or
- \@RTLfalse
- \fi}
-\define@choicekey{bidi.sty}{footnoterule}[\bidi@tempa\bidi@tempb]{automatic,left,right,split,textwidth}{%
- \ifcase\bidi@tempb\relax
- \autofootnoterule
- \or
- \leftfootnoterule
- \or
- \rightfootnoterule
- \or
- \SplitFootnoteRule
- \or
- \textwidthfootnoterule
- \fi}
-\define@choicekey{bidi.sty}{footnotedirection}[\bidi@tempa\bidi@tempb]{righttoleft,lefttoright}{%
- \ifcase\bidi@tempb\relax
- \@RTL@footnotetrue
- \or
- \@RTL@footnotefalse
- \fi}
-\define@choicekey{bidi.sty}{debugfootnotedirection}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
- \ifcase\bidi@tempb\relax
- \footdir@debugtrue
- \or
- \footdir@debugfalse
- \fi}
-\define@choicekey{bidi.sty}{extrafootnotefeatures}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
- \ifcase\bidi@tempb\relax
- \@extrafootnotefeaturestrue
- \or
- \@extrafootnotefeaturesfalse
- \fi}
-
-\ProcessOptionsX
-
-\if@extrafootnotefeatures
- \input{extrafootnotefeatures-xetex-bidi.def}
-\fi
-\endinput
-%%
-%% End of file `bidi.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi.tex b/Master/texmf-dist/tex/xelatex/bidi/bidi.tex
deleted file mode 100644
index 333d54d5c91..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidi.tex
+++ /dev/null
@@ -1,93 +0,0 @@
-%%
-%% This is file `bidi.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidi.tex')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\def\bididate{2015/10/16}
-\def\bidiversion{v0.3}
-\catcode`@=11
-\let \protect \relax
-\newlinechar`\^^J
-\edef\@bidi@info{****************************************************^^J%
-* ^^J%
-* bidi package (Bidirectional typesetting in^^J%
-* plain TeX and LaTeX, using XeTeX engine)^^J%
-* ^^J%
-* Description: A convenient interface for^^J%
-* typesetting bidirectional texts in plain TeX^^J%
-* and LaTeX. The package includes adaptations^^J%
-* for use with many other commonly-used packages.^^J%
-* ^^J%
-* Copyright (c) 2009--2015 Vafa Khalighi^^J%
-* ^^J%
-* \bididate, \bidiversion^^J%
-* ^^J%
-* License: LaTeX Project Public License, version^^J%
-* 1.3c or higher (your choice)^^J%
-* ^^J%
-* Location on CTAN: /macros/xetex/latex/bidi^^J%
-* ^^J%
-* Issue tracker: https://github.com/persian-tex/bidi/issues^^J%
-* ^^J%
-* Support: persian-tex@tug.org^^J%
-****************************************************}
-\message{\@bidi@info}
-\edef\bidi@everyjob{\the\everyjob}
-\everyjob{\bidi@everyjob\message{\@bidi@info}}
-\input iftex.sty
-\RequireXeTeX
-\newif\if@RTLmain
-\newif\if@RTL
-\newif\if@sentdir
-\newif\if@RTL@footnote
-\@RTLmainfalse
-\def\setRTLmain{%
- \if@RTLmain\else
- \if@RTL\@RTLmaintrue%
- \else\@RTLmainfalse%
- \fi%
- \fi%
-}
-\let\n@xt=\
-\protected\def\LRE{\protect\pLRE}%
-\def\pLRE{\protect\afterassignment\moreLRE \let\n@xt= }
-\protected\def\RLE{\protect\pRLE}
-\def\pRLE{\protect\afterassignment\moreRLE \let\n@xt= }
-\def\bracetext{\ifcat\n@xt{\else\ifcat\n@xt}\fi
- \errmessage{Missing left brace has been substituted}\fi \bgroup}
-\input plain-xetex-bidi.def
-\catcode`@=12
-\endinput
-%%
-%% End of file `bidi.tex'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty b/Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty
deleted file mode 100644
index 1ba103b43a3..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty
+++ /dev/null
@@ -1,95 +0,0 @@
-%%
-%% This is file `bidi2in1.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidi2in1.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bidi2in1}
-\pagestyle{plain}
-\newcount\evenpage
-\newcount\oddpage
-\twocolumn
-\def\@oddfoot{\evenpage=\thepage%
-\multiply\evenpage by 2%
-\oddpage=\the\evenpage%
-\advance\oddpage by -1%
-\hfil\the\evenpage\hfil\hfil\the\oddpage\hfil}%
-\def\@evenfoot{\evenpage=\thepage%
-\multiply\evenpage by 2%
-\oddpage=\the\evenpage%
-\advance\oddpage by -1%
-\hfil\the\oddpage\hfil\hfil\the\evenpage\hfil}%
-\textwidth 9.49in
-\textheight 6.7in
-\columnsep 0.9in
-\columnseprule 0.125pt
-\headheight 0cm
-\topmargin 0in
-\marginparwidth 0in
-\marginparsep 0in
-\hoffset 0.05in % Corrected
-\voffset -0.5in %top margin space is 1.0in by default
-\oddsidemargin 0in
-\evensidemargin 0in
-\headsep 0cm
-\topskip 0cm
-\parskip 0.15in %
-\headsep 0pt
-\special{papersize=11.69in,8.26in}
-\renewcommand\maketitle{\par
-\begingroup
-\renewcommand\thefootnote{\@fnsymbol\c@footnote}%
-\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
-\long\def\@makefntext##1{\parindent 1em\noindent
-\hb@xt@1.8em{%
-\hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
-\@maketitle
-\@thanks
-\endgroup
-\setcounter{footnote}{0}%
-\global\let\thanks\relax
-\global\let\maketitle\relax
-\global\let\@maketitle\relax
-\global\let\@thanks\@empty
-\global\let\@author\@empty
-\global\let\@date\@empty
-\global\let\@title\@empty
-\global\let\title\relax
-\global\let\author\relax
-\global\let\date\relax
-\global\let\and\relax
-}
-\endinput
-%%
-%% End of file `bidi2in1.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidicode.sty b/Master/texmf-dist/tex/xelatex/bidi/bidicode.sty
deleted file mode 100644
index baaa62ea8f4..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidicode.sty
+++ /dev/null
@@ -1,172 +0,0 @@
-%%
-%% This is file `bidicode.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidicode.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bidicode}
-\RequirePackage{xcolor}
-\RequirePackage{showexpl}
-\definecolor{hellgelb}{rgb}{1,1,0.85}
-\definecolor{colKeys}{rgb}{0,0,1}
-\definecolor{colIdentifier}{rgb}{0,0,0}
-\definecolor{colComments}{rgb}{1,0,0}
-\definecolor{colString}{rgb}{0,0.5,0}
-\lstset{
- language=[LaTeX]TEX,
- float=hbp,
- basicstyle=\ttfamily\small,
- identifierstyle=\color{colIdentifier},
- keywordstyle=\color{colKeys},
- stringstyle=\color{colString},
- commentstyle=\color{colComments},
- columns=flexible,
- tabsize=4,
- gobble =1,
- extendedchars=true,
- showspaces=false,
- showstringspaces=false,
- numbers=left,
- numbersep=0.9em,
- numberstyle=\tiny, %
- frame=single,
- captionpos=b,
- xleftmargin=1em,
- breaklines=true,
- breakautoindent=false,
- breakindent=0pt,
- escapeinside=**,
- pos=r,
- explpreset={%
- xleftmargin=1em,columns=flexible,language=[LaTeX]TEX},
- morekeywords={setLTR,setLR,setRTL,setRL,LRE,LR,RLE,RL,lr,bidiversion,bididate}
-}
-\newcommand\HLON{%
- \gdef\lst@alloverstyle##1{%
- \fboxrule=0pt
- \fboxsep=0pt
- \fcolorbox{hellgelb}{hellgelb}{\bfseries\strut##1}%
-}}
-\newcommand\HLOFF{%
- \xdef\lst@alloverstyle##1{##1}%
-}
-\newcommand\Larg [1]{{\normalfont\itshape#1\/}}
-\newcommand\Larga[1]{$\langle$\Larg{#1}$\rangle$}
-\newcommand\Largb[1]{\lcb\Larg{#1}\rcb}
-\newcommand\Largs[1]{\lsb\Larg{#1}\rsb}
-\newcommand\Largr[1]{\lrb\Larg{#1}\rrb}
-\newcommand\LBEG[1]{{\normalfont\ttfamily\bs{}begin\lcb#1\rcb}}
-\newcommand\LEND[1]{{\normalfont\ttfamily\bs{}end\lcb#1\rcb}}
-
-\DeclareRobustCommand\bs{{\normalfont\ttfamily\symbol{92}}}
-\DeclareRobustCommand\lcb{{\normalfont\ttfamily\char`\{}}
-\DeclareRobustCommand\rcb{{\normalfont\ttfamily\char`\}}}
-\DeclareRobustCommand\lsb{{\normalfont\ttfamily[}}
-\DeclareRobustCommand\rsb{{\normalfont\ttfamily]}}
-\DeclareRobustCommand\lrb{{\normalfont\ttfamily(}}
-\DeclareRobustCommand\rrb{{\normalfont\ttfamily)}}
-
-\def\Lcs#1{\nxLcs{#1}}
-\def\LcsStar#1{\nxLcs{#1}\OptArg*{*}}
-\def\nxLcs#1{\texttt{\symbol{92}#1}}
-
-\def\Coordx#1{$x_{#1}$}
-\def\Coordy#1{$y_{#1}$}
-\def\Coordz#1{$z_{#1}$}
-\def\Coord#1{\Coordx{#1},\kern 1pt\Coordy{#1}}
-\def\Coordn{\Coordx{n},\kern 1pt\Coordy{n}}
-\def\CoordIII#1{\Coordx{#1},\kern 1pt\Coordy{#1},\kern 1pt\Coordz{#1}}
-\def\CAny{\Coordx{},\kern 1pt\Coordy{}}
-\def\CIIIAny{\Coordx{},\kern 1pt\Coordy{},\kern 1pt\Coordz{}}
-\def\coord#1{(\Coordx{#1},\kern 1pt\Coordy{#1})}
-\def\coordn{(\Coordx{n},\kern 1pt\Coordy{n})}
-\def\coordiii#1{(\Coordx{#1},\kern 1pt\Coordy{#1},\kern 1pt\Coordz{#1})}
-\def\coordx#1{($x_{#1}$)}
-\def\coordy#1{($y_{#1}$)}
-\def\coordz#1{($z_{#1}$)}
-\def\cAny{(\Coordx{},\kern 1pt\Coordy{})}
-\def\ciiiAny{(\Coordx{},\kern 1pt\Coordy{},\kern 1pt\Coordz{})}
-
-\newsavebox{\boxdef}
-\newenvironment{BDef}
- {\begin{lrbox}\boxdef
- \def\arraystretch{1.0}
- \begin{tabular}{@{}l@{}l@{}l@{}}
- }
- {\end{tabular}\end{lrbox}
-
- {\BCmd\fbox{\usebox\boxdef}\endBCmd}
- \aftergroup\@afterindentfalse\aftergroup\@afterheading
- }
-
-\newenvironment{BDef*}
- {\begin{lrbox}\boxdef
- \def\arraystretch{1.0}
- \begin{tabular}{@{}l@{}l@{}l@{}}
- }
- {\end{tabular}\end{lrbox}
- {\begin{BCmd*}\fbox{\usebox\boxdef}\end{BCmd*}}
- \aftergroup\@afterindentfalse\aftergroup\@afterheading
- }
-\newenvironment{BCmd}{
- \@beginparpenalty-\@lowpenalty
- \topsep\BDefaboveskip
- \fboxsep3pt
- \flushleft}
- {\@endparpenalty\@M
- \@topsepadd\BDefbelowskip
- \endflushleft}
-
-\newenvironment{BCmd*}{
- \@beginparpenalty\@M
- \topsep\BDefinlineskip
- \fboxsep3pt
- \flushleft}
- {\@endparpenalty5000
- \endflushleft}
-
-\newskip\BDefaboveskip
-\newskip\BDefbelowskip
-\newskip\BDefinlineskip
-\setlength\BDefaboveskip{10pt plus 4pt}
-\setlength\BDefbelowskip{6pt}
-\setlength\BDefinlineskip{6pt}
-
-\def\OptArgs{\colorbox{black!20}{\texttt{[Options]}}\kern1pt}
-\def\OptArg{\@ifnextchar*\OptArg@i{\OptArg@ii*}}
-\def\OptArg@i*#1{\colorbox{black!20}{\texttt{#1}}\kern1pt}
-\def\OptArg@ii*#1{\colorbox{black!20}{\texttt{[#1]}}\kern1pt}
-\endinput
-%%
-%% End of file `bidicode.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidiftnxtra.sty b/Master/texmf-dist/tex/xelatex/bidi/bidiftnxtra.sty
deleted file mode 100644
index 4597ff90b88..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidiftnxtra.sty
+++ /dev/null
@@ -1,228 +0,0 @@
-%%
-%% This is file `bidiftnxtra.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidiftnxtra.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bidiftnxtra}
-\newtoks\bidi@p@ftn
-\let\FN@sf@@footnote\footnote
-\let\FN@sf@@LTRfootnote\LTRfootnote
-\let\FN@sf@@RTLfootnote\RTLfootnote
-\def\footnote{\ifx\protect\@typeset@protect
- \expandafter\FN@sf@@footnote
- \else
- \expandafter\FN@sf@gobble@opt
- \fi
-}
-\def\LTRfootnote{\ifx\protect\@typeset@protect
- \expandafter\FN@sf@@LTRfootnote
- \else
- \expandafter\FN@sf@gobble@opt
- \fi
-}
-\def\RTLfootnote{\ifx\protect\@typeset@protect
- \expandafter\FN@sf@@RTLfootnote
- \else
- \expandafter\FN@sf@gobble@opt
- \fi
-}
-\edef\FN@sf@gobble@opt{\noexpand\protect
- \expandafter\noexpand\csname FN@sf@gobble@opt \endcsname}
-\expandafter\def\csname FN@sf@gobble@opt \endcsname{%
- \@ifnextchar[%]
- \FN@sf@gobble@twobracket
- \@gobble
-}
-\def\FN@sf@gobble@twobracket[#1]#2{}
-\let\FN@sf@@footnotemark\footnotemark
-\def\footnotemark{\ifx\protect\@typeset@protect
- \expandafter\FN@sf@@footnotemark
- \else
- \expandafter\FN@sf@gobble@optonly
- \fi
-}
-\edef\FN@sf@gobble@optonly{\noexpand\protect
- \expandafter\noexpand\csname FN@sf@gobble@optonly \endcsname}
-\expandafter\def\csname FN@sf@gobble@optonly \endcsname{%
- \@ifnextchar[%]
- \FN@sf@gobble@bracket
- {}%
-}
-\def\FN@sf@gobble@bracket[#1]{}
-\def\@tabular{\if@RTL\global\@RTLtabtrue\fi
- \leavevmode \hbox \bgroup
- \let\@footnotetext\bidi@p@ftntext
- \let\@LTRfootnotetext\bidi@p@LTRftntext
- \let\@RTLfootnotetext\bidi@p@RTLftntext
- \let\@xfootnotenext\bidi@p@xftntext
- \let\@xfootnote\bidi@p@xfootnote
- \let\@xLTRfootnotenext\bidi@p@xLTRftntext
- \let\@xLTRfootnote\bidi@p@xLTRfootnote
- \let\@xRTLfootnotenext\bidi@p@xRTLftntext
- \let\@xRTLfootnote\bidi@p@xRTLfootnote
- \if@RTLtab\beginR \fi
- $\let\@acol\@tabacol
- \let\@classz\@tabclassz
- \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
-\def\endtabular{\crcr\egroup\if@RTLtab\egroup\endR\egroup\fi
- \egroup $\if@RTLtab\endR\fi\egroup
- \ifx\@captype\@undefined
- \global\bidi@p@ftn\expandafter{\expandafter}\the\bidi@p@ftn\fi%
- \global\@RTLtabfalse}
-\long\def\bidi@p@ftntext#1{%
- \edef\@tempy{\the\bidi@p@ftn\noexpand\footnotetext[\the\csname c@\@mpfn\endcsname]}%
- \global\bidi@p@ftn\expandafter{\@tempy{#1}}}%
-\long\def\bidi@p@LTRftntext#1{%
- \edef\@tempyi{\the\bidi@p@ftn\noexpand\LTRfootnotetext[\the\csname c@\@mpfn\endcsname]}%
- \global\bidi@p@ftn\expandafter{\@tempyi{#1}}}%
-\long\def\bidi@p@RTLftntext#1{%
- \edef\@tempyii{\the\bidi@p@ftn\noexpand\RTLfootnotetext[\the\csname c@\@mpfn\endcsname]}%
- \global\bidi@p@ftn\expandafter{\@tempyii{#1}}}%
-
-\long\def\bidi@p@xftntext[#1]#2{%
- \global\bidi@p@ftn\expandafter{\the\bidi@p@ftn\footnotetext[#1]{#2}}}
-
-\long\def\bidi@p@xLTRftntext[#1]#2{%
- \global\bidi@p@ftn\expandafter{\the\bidi@p@ftn\LTRfootnotetext[#1]{#2}}}
-
-\long\def\bidi@p@xRTLftntext[#1]#2{%
- \global\bidi@p@ftn\expandafter{\the\bidi@p@ftn\RTLfootnotetext[#1]{#2}}}
-
-\def\bidi@p@xfootnote[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \@footnotemark\bidi@p@xftntext[#1]}
-
-\def\bidi@p@xLTRfootnote[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \@footnotemark\bidi@p@xLTRftntext[#1]}
-
-\def\bidi@p@xRTLfootnote[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \@footnotemark\bidi@p@xRTLftntext[#1]}
-
-\def\@xfloat #1[#2]{%
- \@nodocument
- \def \@captype {#1}%
- \def \@fps {#2}%
- \@onelevel@sanitize \@fps
- \def \reserved@b {!}%
- \ifx \reserved@b \@fps
- \@fpsadddefault
- \else
- \ifx \@fps \@empty
- \@fpsadddefault
- \fi
- \fi
- \ifhmode
- \@bsphack
- \@floatpenalty -\@Mii
- \else
- \@floatpenalty-\@Miii
- \fi
- \ifinner
- \@parmoderr\@floatpenalty\z@
- \else
- \@next\@currbox\@freelist
- {%
- \@tempcnta \sixt@@n
- \expandafter \@tfor \expandafter \reserved@a
- \expandafter :\expandafter =\@fps
- \do
- {%
- \if \reserved@a h%
- \ifodd \@tempcnta
- \else
- \advance \@tempcnta \@ne
- \fi
- \fi
- \if \reserved@a t%
- \@setfpsbit \tw@
- \fi
- \if \reserved@a b%
- \@setfpsbit 4%
- \fi
- \if \reserved@a p%
- \@setfpsbit 8%
- \fi
- \if \reserved@a !%
- \ifnum \@tempcnta>15
- \advance\@tempcnta -\sixt@@n\relax
- \fi
- \fi
- }%
- \@tempcntb \csname ftype@\@captype \endcsname
- \multiply \@tempcntb \@xxxii
- \advance \@tempcnta \@tempcntb
- \global \count\@currbox \@tempcnta
- }%
- \@fltovf
- \fi
- \global \setbox\@currbox
- \color@vbox
- \normalcolor
- \vbox \bgroup
- \let\@footnotetext\bidi@p@ftntext
- \let\@LTRfootnotetext\bidi@p@LTRftntext
- \let\@RTLfootnotetext\bidi@p@RTLftntext
- \let\@xfootnotenext\bidi@p@xftntext
- \let\@xfootnote\bidi@p@xfootnote
- \let\@xLTRfootnotenext\bidi@p@xLTRftntext
- \let\@xLTRfootnote\bidi@p@xLTRfootnote
- \let\@xRTLfootnotenext\bidi@p@xRTLftntext
- \let\@xRTLfootnote\bidi@p@xRTLfootnote
- \hsize\columnwidth
- \@parboxrestore
- \@floatboxreset
-}
-\def \@endfloatbox{%
- \par\vskip\z@skip %% \par\vskip\z@ added 15 Dec 87
- \@minipagefalse
- \outer@nobreak
- \egroup %% end of vbox
- \global\bidi@p@ftn\expandafter{\expandafter}\the\bidi@p@ftn
- \color@endbox
-}
-\endinput
-%%
-%% End of file `bidiftnxtra.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls b/Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls
deleted file mode 100644
index 812c70f2024..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls
+++ /dev/null
@@ -1,287 +0,0 @@
-%%
-%% This is file `bidimoderncv.cls',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidimoderncv.cls')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{bidimoderncv}
-\newif\if@DEBUG\@DEBUGfalse
-\DeclareOption{a4paper}{
- \setlength\paperheight{297mm}
- \setlength\paperwidth{210mm}}
-\DeclareOption{a5paper}{
- \setlength\paperheight{210mm}
- \setlength\paperwidth{148mm}}
-\DeclareOption{b5paper}{
- \setlength\paperheight{250mm}
- \setlength\paperwidth{176mm}}
-\DeclareOption{letterpaper}{
- \setlength\paperheight{11in}
- \setlength\paperwidth{8.5in}}
-\DeclareOption{legalpaper}{
- \setlength\paperheight{14in}
- \setlength\paperwidth{8.5in}}
-\DeclareOption{executivepaper}{
- \setlength\paperheight{10.5in}
- \setlength\paperwidth{7.25in}}
-\DeclareOption{landscape}{
- \setlength\@tempdima{\paperheight}
- \setlength\paperheight{\paperwidth}
- \setlength\paperwidth{\@tempdima}}
-\newcommand\@ptsize{}
-\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
-\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
-\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
-\DeclareOption{draft}{\setlength\overfullrule{5pt}}
-\DeclareOption{final}{\setlength\overfullrule{0pt}}
-\newif\if@colour\@colourtrue
-\DeclareOption{nocolour}{\@colourfalse}
-\ExecuteOptions{a4paper,11pt,colour,final}
-\ProcessOptions\relax
-\input{size1\@ptsize.clo}
-\RequirePackage{color}
-\RequirePackage{graphicx}
-\RequirePackage{ifthen}
-\RequirePackage{marvosym}
-\addtolength{\oddsidemargin}{-54pt}
-\addtolength{\textwidth}{109pt}
-\addtolength{\topmargin}{-70pt}
-\addtolength{\textheight}{122pt}
-\addtolength{\marginparsep}{-5pt}
-\addtolength{\marginparwidth}{-10pt}
-\RequirePackage{url}
-\RequirePackage{hyperref}
-\hypersetup{%
- breaklinks,
- baseurl = http://,%
- pdfborder = 0 0 0,%
- pdfpagemode = UseNone,%
- pdfstartpage = 1}
-\AtEndOfClass{%
- \AtBeginDocument{%
- \hypersetup{%
- pdfauthor = \@firstname~\@familyname,%
- pdftitle = \@title,%
- pdfsubject = \@firstname~\@familyname,%
- pdfkeywords = \@resumename~\@firstname~\@familyname}}}
-\urlstyle{tt}
-\RequirePackage{fancyhdr}
-\fancypagestyle{plain}{%
- \renewcommand{\headrulewidth}{0pt}
- \renewcommand{\footrulewidth}{0pt}
- \fancyhf{}}
-\pagestyle{plain}
-\setlength\lineskip{1\p@}
-\setlength\normallineskip{1\p@}
-\renewcommand\baselinestretch{}
-\setlength{\parindent}{0pt}
-\setlength{\parskip}{0pt}
-\setlength\columnsep{10\p@}
-\setlength\columnseprule{0\p@}
-\pagestyle{empty}
-\pagenumbering{arabic}
-\raggedbottom
-\onecolumn
-\providecommand*{\listitemsymbol}{\textbullet}
-\providecommand*{\addresssymbol}{}
-\providecommand*{\mobilesymbol}{\Mobilefone}
-\providecommand*{\phonesymbol}{\Telefon}
-\providecommand*{\faxsymbol}{\FAX}
-\providecommand*{\emailsymbol}{\Letter}
-\definecolor{firstnamecolor}{rgb}{0,0,0}
-\def\firstnamecolour#1{\gdef\@firstnamecolour{\addfontfeature{Color=#1}}}
-\def\familynamecolour#1{\gdef\@familynamecolour{\addfontfeature{Color=#1}}}
-\def\titlecolour#1{\gdef\@titlecolour{\addfontfeature{Color=#1}}}
-\def\addresscolour#1{\gdef\@addresscolour{\addfontfeature{Color=#1}}}
-\def\quotecolour#1{\gdef\@quotecolour{\addfontfeature{Color=#1}}}
-\def\sectiontitlecolour#1{\gdef\@sectiontitlecolour{\addfontfeature{Color=#1}}}
-\definecolor{sectionrectanglecolor}{rgb}{0,0,0}
-\def\subsectioncolour#1{\gdef\@subsectioncolour{\addfontfeature{Color=#1}}}
-\def\hintcolour#1{\gdef\@hintcolour{\addfontfeature{Color=#1}}}
-\providecommand*{\firstnamefont}{}
-\providecommand*{\familynamefont}{}
-\providecommand*{\titlefont}{}
-\providecommand*{\addressfont}{}
-\providecommand*{\quotefont}{}
-\providecommand*{\sectionfont}{}
-\providecommand*{\subsectionfont}{}
-\providecommand*{\hintfont}{\small}
-\providecommand*{\firstnamestyle}[1]{{\firstnamefont\@firstnamecolour#1}}
-\providecommand*{\familynamestyle}[1]{{\familynamefont\@familynamecolour#1}}
-\providecommand*{\titlestyle}[1]{{\titlefont\@titlecolour#1}}
-\providecommand*{\addresstyle}[1]{{\addressfont\@addresscolour#1}}
-\providecommand*{\quotestyle}[1]{{\quotefont\@quotecolour#1}}
-\providecommand*{\sectionstyle}[1]{{\sectionfont\@sectiontitlecolour#1}}
-\providecommand*{\subsectionstyle}[1]{{\subsectionfont\@subsectioncolour#1}}
-\providecommand*{\hintstyle}[1]{{\hintfont\@hintcolour#1}}
-\newcommand*{\cvtheme}[2][]{
- \def\@cvtheme{#2}
- \def\@cvthemeoptions{#1}}
-\cvtheme{bidi-casual}
-\AtBeginDocument{\RequirePackage[\@cvthemeoptions]{cvtheme\@cvtheme}}
-\newcommand*{\resumename}[1]{\def\@resumename{#1}}
-\newcommand*{\firstname}[1]{\def\@firstname{#1}}
-\newcommand*{\familyname}[1]{\def\@familyname{#1}}
-\renewcommand*{\title}[1]{\def\@title{#1}}
-\newcommand*{\address}[1]{\def\@address{#1}}
-\newcommand*{\mobile}[1]{\def\@mobile{#1}}
-\newcommand*{\phone}[1]{\def\@phone{#1}}
-\renewcommand*{\fax}[1]{\def\@fax{#1}}
-\newcommand*{\email}[1]{\def\@email{#1}}
-\newcommand*{\extrainfo}[1]{\def\@extrainfo{#1}}
-\def\@photowidth{0pt}
-\newcommand*{\photo}[2][64pt]{\def\@photowidth{#1}\def\@photo{#2}}
-\newcommand*{\quote}[1]{\def\@quote{#1}}
-\newlength{\quotewidth}
-\newlength{\hintscolumnwidth}
-\newlength{\separatorcolumnwidth}
-\setlength{\separatorcolumnwidth}{0.025\textwidth}
-\newlength{\maincolumnwidth}
-\newlength{\doubleitemmaincolumnwidth}
-\newlength{\listitemsymbolwidth}
-\settowidth{\listitemsymbolwidth}{\listitemsymbol{}~}
-\newlength{\listitemmaincolumnwidth}
-\newlength{\listdoubleitemmaincolumnwidth}
-\newcommand*{\recomputethemelengths}{}
-\newcommand*{\recomputelengths}{%
-\setlength{\quotewidth}{0.65\textwidth}%
-\setlength{\maincolumnwidth}{\textwidth}%
-\addtolength{\maincolumnwidth}{-\separatorcolumnwidth}%
-\addtolength{\maincolumnwidth}{-\hintscolumnwidth}%
-\setlength{\listitemmaincolumnwidth}{\maincolumnwidth}%
-\addtolength{\listitemmaincolumnwidth}{-\listitemsymbolwidth}%
-\setlength{\doubleitemmaincolumnwidth}{\maincolumnwidth}%
-\addtolength{\doubleitemmaincolumnwidth}{-\hintscolumnwidth}%
-\addtolength{\doubleitemmaincolumnwidth}{-\separatorcolumnwidth}%
-\setlength{\doubleitemmaincolumnwidth}{0.5\doubleitemmaincolumnwidth}%
-\setlength{\listdoubleitemmaincolumnwidth}{\maincolumnwidth}%
-\addtolength{\listdoubleitemmaincolumnwidth}{-\listitemsymbolwidth}%
-\setlength{\listdoubleitemmaincolumnwidth}{0.475\listdoubleitemmaincolumnwidth}%
-\renewcommand{\headwidth}{\textwidth}%
-\recomputethemelengths}
-\setlength{\hintscolumnwidth}{0.15\textwidth}
-\recomputelengths
-\title{}
-\renewcommand*{\maketitle}{}
-\newcommand*{\section}[1]{%
-\vspace*{2.5ex \@plus 1ex \@minus .2ex}%
- \phantomsection{}%
- \addcontentsline{toc}{part}{#1}%
- \parbox[m]{\hintscolumnwidth}{\bidi@raggedleft\hintfont{\leavevmode\color{sectionrectanglecolor}\rule{\hintscolumnwidth}{1ex}}}%
- \hspace{\separatorcolumnwidth}%
- \parbox[m]{\maincolumnwidth}{\sectionstyle{#1}}\\[1ex]}
-\newcommand*{\subsection}[1]{%
- \cvline[0.45em]{}{\subsectionstyle{#1}}}
-\newcommand*{\cvline}[3][.25em]{%
- \begin{tabular}{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}%
- \bidi@raggedleft\hintfont{#2} &{#3}%
- \end{tabular}\\[#1]}
-\newcommand*{\cvdoubleitem}[4]{%
- \cvline{#1}{\begin{minipage}[t]{\doubleitemmaincolumnwidth}#2\end{minipage}%
- \hfill%
- \begin{minipage}[t]{\hintscolumnwidth}\bidi@raggedleft\hintfont{#3}\end{minipage}\hspace*{\separatorcolumnwidth}\begin{minipage}[t]{\doubleitemmaincolumnwidth}#4\end{minipage}}}
-\newcommand*{\cvlistitem}[2][\listitemsymbol{}]{%
- \cvline[0pt]{}{#1~\begin{minipage}[t]{\listitemmaincolumnwidth}#2\end{minipage}}}
-\newcommand*{\cvlistdoubleitem}[3][\listitemsymbol{}]{%
- \cvline[0pt]{}{#1~\begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#2\end{minipage}%
- \hfill%
- \ifthenelse{\equal{#3}{}}%
- {}%
- {#1~\begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#3\end{minipage}}}}
-\newcommand*{\cventry}[6]{%
- \cvline{#1}{%
- {\bfseries#2}%
- \ifx#3\else{, {\slshape#3}}\fi%
- \ifx#4\else{, #4}\fi%
- \ifx#5\else{, #5}\fi%
- .%
- \ifx#6\else{\newline{}\begin{minipage}[t]{\linewidth}\small#6\end{minipage}}\fi
- }}%
-\newcommand*{\cvlanguage}[3]{%
- \cvline{#1}{\begin{minipage}[t]{.225\maincolumnwidth}\textbf{#2}\end{minipage}\hfill\begin{minipage}[t]{0.725\maincolumnwidth}\bidi@raggedleft\footnotesize\itshape #3\end{minipage}}}
-\newcommand*{\cvcomputer}[4]{%
- \cvdoubleitem{#1}{\small#2}{#3}{\small#4}}
-\newcommand*{\link}[2][]{%
- \ifthenelse{\equal{#1}{}}%
- {\href{#2}{#2}}%
- {\href{#2}{#1}}}
-\newcommand*{\httplink}[2][]{%
- \ifthenelse{\equal{#1}{}}%
- {\href{http://#2}{#2}}%
- {\href{http://#2}{#1}}}
-\newcommand*{\emaillink}[2][]{%
- \ifthenelse{\equal{#1}{}}%
- {\href{mailto:#2}{#2}}%
- {\href{mailto:#2}{#1}}}
-\newif\if@displaypagenumbers\@displaypagenumberstrue
-\newcommand*{\nopagenumbers}{\@displaypagenumbersfalse}
-\AtBeginDocument{%
- \if@displaypagenumbers%
- \@ifundefined{r@lastpage}{}{%
- \ifthenelse{\pageref{lastpage} > 1}{%
- \fancypagestyle{plain}{%
- \fancyfoot[r]{\beginL\addressfont\@quotecolour\footnotesize\thepage\beginL/\endL\pageref{lastpage}\endL}}%
- \pagestyle{plain}}{}}%
- \AtEndDocument{\label{lastpage}}%
- \fi}
-\newlength{\bibindent}
-\setlength{\bibindent}{1.5em}
-\newcommand*{\bibliographyitemlabel}{\includegraphics{bibitem.pdf}}
-\newenvironment{thebibliography}[1]%
- {%
- \section{\refname}%
- \small%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \begin{list}{\bibliographyitemlabel}%
- {%
- \setlength{\topsep}{0pt}%
- \setlength{\labelwidth}{\hintscolumnwidth}%
- \setlength{\labelsep}{\separatorcolumnwidth}%
- \leftmargin\labelwidth%
- \advance\leftmargin\labelsep%
- \@openbib@code%
- \usecounter{enumiv}%
- \let\p@enumiv\@empty%
- \renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy\clubpenalty4000\widowpenalty4000%
- }%
- {%
- \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
- \end{list}%
- }
-\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
-\let\@openbib@code\@empty
-\endinput
-%%
-%% End of file `bidimoderncv.cls'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidipoem.sty b/Master/texmf-dist/tex/xelatex/bidi/bidipoem.sty
deleted file mode 100644
index 565df8d5d07..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidipoem.sty
+++ /dev/null
@@ -1,368 +0,0 @@
-%%
-%% This is file `bidipoem.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidipoem.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bidipoem}%
-[2014/04/27 v0.9 Environments for typesetting Persian traditional and modern poems]
-
-
-\newcommand*{\bidipoem@spreadbox}[2]{\hbox to #1{#2}}
-
-
-\newdimen \bidipoem@hvlen \newdimen \bidipoem@hvsep
-\newdimen \bidipoem@hvind \newdimen \bidipoem@@hvlen
-
-\newcommand*{\Setversedim}[2]{% set lengths of half-verse, [separation]
-\bidipoem@hvind \textwidth
-\bidipoem@hvlen #1\relax \advance \bidipoem@hvind -\bidipoem@hvlen
-\ifx [#2\def \bidipoem@next {\bidipoem@set@verseI [}\else
-\bidipoem@@hvlen \bidipoem@hvlen \def \bidipoem@next {\bidipoem@set@@verse {#2}}\fi \bidipoem@next }
-
-\def \bidipoem@set@verseI [#1]{% optional parameter
-\bidipoem@@hvlen #1\relax \bidipoem@set@@verse }
-
-\newcommand*{\bidipoem@set@@verse}[1]{% separation
-\advance \bidipoem@hvind -\bidipoem@@hvlen \bidipoem@hvsep #1\relax
-\advance \bidipoem@hvind -\bidipoem@hvsep \divide \bidipoem@hvind 2 }
-
-\newcommand*{\traditionalconnverses}[3]{% first half-verse, connection, second half-verse
-\ifdim 0pt > \bidipoem@hvind %
-\bidipoem@spreadbox \bidipoem@hvlen {#1}\\ \hfill % first block
-\else
-\noindent \hskip \bidipoem@hvind \relax \bidipoem@spreadbox \bidipoem@hvlen {#1}\fi
-\bidipoem@spreadbox \bidipoem@hvsep {#2}% separator
-\bidipoem@spreadbox \bidipoem@@hvlen {#3}% second block
-\par }
-
-\newcommand*{\traditionalhalfverses}[2]{% optional parameter?
-\ifx [#2\def\bidipoem@half@verses@next{\bidipoem@half@verses {#1}[}%
-\else\def\bidipoem@half@verses@next{\bidipoem@half@verses {#1}[\hfill]{#2}}\fi%
-\bidipoem@half@verses@next}
-
-\def \bidipoem@half@verses #1[#2]#3{% first[mid]second
-\traditionalconnverses {#1}{#2}{#3}}
-
-{\catcode`\^^M=\active % these lines must end with %
- \gdef\traditionalpoem@obeylines{\catcode`\^^M\active \let^^M\traditionalpoem@par}%
- \global\let^^M\traditionalpoem@par} % this is in case ^^M appears in a \write
-{\catcode`\^^M=\active % these lines must end with %
- \gdef\modernpoem@obeylines{\catcode`\^^M\active \let^^M\modernpoem@par}%
- \global\let^^M\modernpoem@par} % this is in case ^^M appears in a \write
-\def\poemcolsepskip{.1\versewidth plus .1\versewidth minus .05\versewidth}
-\def\poemmarginskip{1em plus 1fil minus 1em}
-\def\poemextrabaselineskip{0\baselineskip}
-\def\poemskip{\medskip}
-\newcommand{\bidipoem@openbox}{\leavevmode
- \hbox to.77778em{%
- \hfil\vrule
- \vbox to.675em{\hrule width.6em\vfil\hrule}%
- \vrule\hfil}}
-\def\poemblocksep{\quad\hbox{\bidipoem@openbox}}
-\newdimen\versewidth
-\newtoks\bidipoem@p@ftn
-\def\poem@verse#1{%
-\ifdim\wd#1>\new@poem@width
-\xdef\new@poem@width{\the\wd#1}%
-\ifdim\new@poem@width>\poem@width
-\xdef\poem@width{\new@poem@width}%
-\global\let\poem@needrun\relax
-\fi
-\fi
-\hbox to\poem@width{\unhbox#1}%
-\global\bidipoem@p@ftn\expandafter{\expandafter}\the\bidipoem@p@ftn%
-}
-\def\poem@linebegin{\vadjust{}\hskip\@flushglue\hskip\poemmarginskip\relax}
-\def\poem@lineend{\nobreak\hskip\poemmarginskip\hskip\@flushglue\vadjust{}}
-\def\poem@lineversesep{%
-\nobreak
-\hskip\z@ plus 1filll%
-\penalty600%
-\hskip\poemcolsepskip
-\hskip\z@ plus -2filll%
-\vadjust{}%
-\nobreak
-\hskip\z@ plus 1filll%
-}
-\def\poem@lineparsebegin{%
-\halign\bgroup
-\global\setbox\verse@i=\hbox{%
-\let\@footnotetext\bidipoem@p@ftntext%
-\let\@LTRfootnotetext\bidipoem@p@LTRftntext%
-\let\@RTLfootnotetext\bidipoem@p@RTLftntext%
-\let\@xfootnotenext\bidipoem@p@xftntext%
-\let\@xfootnote\bidipoem@p@xfootnote%
-\let\@xLTRfootnotenext\bidipoem@p@xLTRftntext%
-\let\@xLTRfootnote\bidipoem@p@xLTRfootnote%
-\let\@xRTLfootnotenext\bidipoem@p@xRTLftntext%
-\let\@xRTLfootnote\bidipoem@p@xRTLfootnote%
-\ignorespaces##\unskip}&&
-\global\setbox\verse@ii=\hbox{%
-\let\@footnotetext\bidipoem@p@ftntext%
-\let\@LTRfootnotetext\bidipoem@p@LTRftntext%
-\let\@RTLfootnotetext\bidipoem@p@RTLftntext%
-\let\@xfootnotenext\bidipoem@p@xftntext%
-\let\@xfootnote\bidipoem@p@xfootnote%
-\let\@xLTRfootnotenext\bidipoem@p@xLTRftntext%
-\let\@xLTRfootnote\bidipoem@p@xLTRfootnote%
-\let\@xRTLfootnotenext\bidipoem@p@xRTLftntext%
-\let\@xRTLfootnote\bidipoem@p@xRTLfootnote%
-\ignorespaces##\unskip}
-\cr
-}
-\def\poem@lineparseend{%
-\crcr\egroup
-\vskip-\baselineskip
-}
-\def\traditionalpoem@cr{%
- \cr\poem@line
-}
-\newbox\verse@i
-\newbox\verse@ii
-\newif\ifpoem@started
-
-\def\poem@line{%
-\poem@lineparseend
-\ifdim\wd\verse@i>\z@\global\poem@startedtrue\fi
-\ifdim\wd\verse@ii>\z@\global\poem@startedtrue\fi
-\ifpoem@started
- \ifdim\wd\verse@ii>\z@\else
- \nopagebreak[3]
- \fi
- \leavevmode
- \poem@linebegin
- \poem@verse\verse@i
- \ifdim\wd\verse@ii>\z@
- \poem@lineversesep
- \poem@verse\verse@ii
- \fi
- \poem@lineend
- \par
- \vskip\poemextrabaselineskip
-\fi
-\poem@lineparsebegin
-}
-\def\@traditionalpoem{%
-\stepcounter{poem@no}
- \ifnum\max@poem@no<\number\c@poem@no%
-\xdef\poem@width{\z@}%
- \else
-\xdef\poem@width{\poem@prop{poem@width}}%
-\fi
-\xdef\new@poem@width{\z@}%
-\global\versewidth=\poem@width
-\poemskip\par
-\begingroup
-\tabskip=\z@
-\parskip=\z@
-\parindent=\z@
-\parfillskip=\z@
-\rightskip=\z@
-\leftskip=\z@
-\widowpenalty=10000% No break between verses of the same line.
-\clubpenalty=10000% Same as above. Not really needed.
-\def\newblock{\hfil\poemblocksep\hfil\null}%
-\def\traditionalpoem@par{\traditionalpoem@cr}% Redefine \par for possible \obeylines
-\def\\{\global\poem@startedtrue\traditionalpoem@cr}%
-\global\poem@startedfalse
-\csname poem@obeylines\endcsname
-\let\poem@obeylines\relax
-\poem@lineparsebegin
-}
-\def\@endtraditionalpoem{%
-\cr
-\ifdim\wd\verse@i>\z@\poem@line\else\ifdim\wd\verse@ii>\z@\poem@line\else
-\noalign{%
-\skip0=\poemextrabaselineskip
-\vskip-\skip0
-\vskip-\baselineskip
-}%
-\fi\fi
-\poem@lineparseend
-\endgroup
-\par
-\vskip\baselineskip
-\poemskip
- \if@noparlist \else
- \ifdim\lastskip >\z@
- \@tempskipa\lastskip \vskip -\lastskip
- \advance\@tempskipa\parskip \advance\@tempskipa -\@outerparskip
- \vskip\@tempskipa
- \fi
- \@endparenv
- \fi
-\ifdim\new@poem@width<\poem@width
-\global\let\poem@needrun\relax
-\fi
- \poem@write@aux{poem@width@\romannumeral\c@poem@no}{\new@poem@width}%
-\ifx\AtEndDocument\undefined\poem@finish\fi
-}
-
-\long\def\bidipoem@p@ftntext#1{%
- \edef\@tempx{\the\bidipoem@p@ftn\noexpand\footnotetext[\the\csname c@\@mpfn\endcsname]}%
- \global\bidipoem@p@ftn\expandafter{\@tempx{#1}}}%
-\long\def\bidipoem@p@LTRftntext#1{%
- \edef\@tempxi{\the\bidipoem@p@ftn\noexpand\LTRfootnotetext[\the\csname c@\@mpfn\endcsname]}%
- \global\bidipoem@p@ftn\expandafter{\@tempxi{#1}}}%
-\long\def\bidipoem@p@RTLftntext#1{%
- \edef\@tempxii{\the\bidipoem@p@ftn\noexpand\RTLfootnotetext[\the\csname c@\@mpfn\endcsname]}%
- \global\bidipoem@p@ftn\expandafter{\@tempxii{#1}}}%
-
-\long\def\bidipoem@p@xftntext[#1]#2{%
- \global\bidipoem@p@ftn\expandafter{\the\bidipoem@p@ftn\footnotetext[#1]{#2}}}
-
-\long\def\bidipoem@p@xLTRftntext[#1]#2{%
- \global\bidipoem@p@ftn\expandafter{\the\bidipoem@p@ftn\LTRfootnotetext[#1]{#2}}}
-
-\long\def\bidipoem@p@xRTLftntext[#1]#2{%
- \global\bidipoem@p@ftn\expandafter{\the\bidipoem@p@ftn\RTLfootnotetext[#1]{#2}}}
-
-\def\bidipoem@p@xfootnote[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \@footnotemark\bidipoem@p@xftntext[#1]}
-
-\def\bidipoem@p@xLTRfootnote[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \@footnotemark\bidipoem@p@xLTRftntext[#1]}
-
-\def\bidipoem@p@xRTLfootnote[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \@footnotemark\bidipoem@p@xRTLftntext[#1]}
-
-\newenvironment{traditionalpoem}{\@traditionalpoem}{\@endtraditionalpoem}
-\expandafter\def\csname traditionalpoem*\endcsname{\let\poem@obeylines=\traditionalpoem@obeylines\traditionalpoem}
-\expandafter\def\csname endtraditionalpoem*\endcsname{\endtraditionalpoem}
-\def\poem@finish{%
-\poem@write@aux{max@poem@no}{\number\c@poem@no}%
-\ifx\poem@needrun\relax
-\PackageWarning{bidipoem}{Unjustified poem. Rerun XeLaTeX to get poem right}%
-\global\let\poem@needrun\undefined
-\fi
-}
-\ifx\AtEndDocument\undefined\else\AtEndDocument\poem@finish\fi
-\newcounter{poem@no}\setcounter{poem@no}{\z@}
-\ifx\max@poem@no\undefined
- \def\max@poem@no{0}%
-\fi
-\newcommand{\poem@prop}[1]{\@nameuse{#1@\romannumeral\c@poem@no}}
-\newcommand{\poem@write@aux}[2]{%
- \def\@x{\immediate\write\@auxout{\global\noexpand\@namedef{#1}{#2}}}%
- \@x
-}
-\def\@modernpoem{%
-\par
-\begingroup
-\parskip=\z@
-\parindent=\z@
-\def\[{\@settab\@tabplus\ignorespaces}%
-\def\]{\@tabminus\ignorespaces}%
-\def\newblock{\poemblocksep}%
-\let\newpoem@tabcr\@tabcr
-\def\modernpoem@par{% Redefine \par for possible \obeylines
- \ifpoem@started\else
- \ifdim\wd\@curline>\z@\global\poem@startedtrue\else
- \@stopfield
- \ifdim\wd\@curfield>\z@\global\poem@startedtrue\fi
- \@contfield
- \fi
- \fi
- \ifpoem@started\newpoem@tabcr\fi}%
-\def\@tabcr{\global\poem@startedtrue\newpoem@tabcr}%
-\global\poem@startedfalse
-\csname poem@obeylines\endcsname
-\let\poem@obeylines\relax
-\begin{tabbing}%
-}
-\def\@endmodernpoem{%
-\global\poem@startedfalse
-\ifdim\wd\@curline>\z@\global\poem@startedtrue\else
- \@stopfield
- \ifdim\wd\@curfield>\z@\global\poem@startedtrue\fi
- \@contfield
-\fi
-\ifpoem@started\else\let\@stopline\@stopfield\fi
-\end{tabbing}%
-\endgroup
-\par
- \if@noparlist \else
- \ifdim\lastskip >\z@
- \@tempskipa\lastskip \vskip -\lastskip
- \advance\@tempskipa\parskip \advance\@tempskipa -\@outerparskip
- \vskip\@tempskipa
- \fi
- \@endparenv
- \fi
-}
-\newenvironment{modernpoem}{\@modernpoem}{\@endmodernpoem}
-\expandafter\def\csname modernpoem*\endcsname{\let\poem@obeylines=\modernpoem@obeylines\modernpoem}
-\expandafter\def\csname endmodernpoem*\endcsname{\endmodernpoem}
-\gdef\@startfield{%
-\global\setbox\@curfield\hbox\bgroup%
-\let\@footnotetext\bidipoem@p@ftntext%
-\let\@LTRfootnotetext\bidipoem@p@LTRftntext%
-\let\@RTLfootnotetext\bidipoem@p@RTLftntext%
-\let\@xfootnotenext\bidipoem@p@xftntext%
-\let\@xfootnote\bidipoem@p@xfootnote%
-\let\@xLTRfootnotenext\bidipoem@p@xLTRftntext%
-\let\@xLTRfootnote\bidipoem@p@xLTRfootnote%
-\let\@xRTLfootnotenext\bidipoem@p@xRTLftntext%
-\let\@xRTLfootnote\bidipoem@p@xRTLfootnote%
-\color@begingroup}
-\gdef\@stopfield{%
- \color@endgroup\egroup\global\bidipoem@p@ftn\expandafter{\expandafter}\the\bidipoem@p@ftn}
-\gdef\@contfield{%
-\global\setbox\@curfield\hbox\bgroup%
-\let\@footnotetext\bidipoem@p@ftntext%
-\let\@LTRfootnotetext\bidipoem@p@LTRftntext%
-\let\@RTLfootnotetext\bidipoem@p@RTLftntext%
-\let\@xfootnotenext\bidipoem@p@xftntext%
-\let\@xfootnote\bidipoem@p@xfootnote%
-\let\@xLTRfootnotenext\bidipoem@p@xLTRftntext%
-\let\@xLTRfootnote\bidipoem@p@xLTRfootnote%
-\let\@xRTLfootnotenext\bidipoem@p@xRTLftntext%
-\let\@xRTLfootnote\bidipoem@p@xRTLfootnote%
-\color@begingroup\unhbox\@curfield}
-\endinput
-%%
-%% End of file `bidipoem.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/biditools.sty b/Master/texmf-dist/tex/xelatex/bidi/biditools.sty
deleted file mode 100644
index 362ab4f2dd9..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/biditools.sty
+++ /dev/null
@@ -1,1163 +0,0 @@
-%%
-%% This is file `biditools.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,biditools.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{biditools}[2015/11/14 v0.8 Programming tools for bidi package]
-\providecommand{\@bidi@saveprimitive}[2]{\begingroup\escapechar`\\\relax
- \edef\@tempa{\string#1}\edef\@tempb{\meaning#1}%
- \ifx\@tempa\@tempb \global\let#2#1%
- \else
- \edef\@tempb{\meaning#2}%
- \ifx\@tempa\@tempb
- \else
- \@latex@error{Unable to properly define \string#2; primitive
- \noexpand#1no longer primitive}\@eha
- \fi
- \fi
- \endgroup}
-\newtoks\@bidi@envbody
-\newtoks\@bidi@emptytoks
-\def\bidi@addto@envbody#1{\global\@bidi@envbody\expandafter{\the\@bidi@envbody#1}}
-\def\bidi@collect@body#1{%
- \@bidi@envbody{\expandafter#1\expandafter{\the\@bidi@envbody}}%
- \edef\bidi@process@envbody{\the\@bidi@envbody\noexpand\end{\@currenvir}}%
- \@bidi@envbody\@bidi@emptytoks \def\begin@bidi@stack{b}%
- \begingroup
- \expandafter\let\csname\@currenvir\endcsname\bidi@collect@@body
- \edef\bidi@process@envbody{\expandafter\noexpand\csname\@currenvir\endcsname}%
- \bidi@process@envbody
-}
-\def\bidi@push@begins#1\begin#2{%
- \ifx\end#2\else b\expandafter\bidi@push@begins\fi
-}
-\def\bidi@collect@@body#1\end#2{%
- \edef\begin@bidi@stack{\bidi@push@begins#1\begin\end \expandafter\@gobble\begin@bidi@stack}%
- \ifx\@empty\begin@bidi@stack
- \endgroup
- \@checkend{#2}%
- \bidi@addto@envbody{#1}%
- \else
- \bidi@addto@envbody{#1\end{#2}}%
- \fi
- \bidi@process@envbody % A little tricky! Note the grouping
-}
-\long\def\bidi@addto@long@envbody#1{\global\@bidi@envbody\expandafter{\the\@bidi@envbody#1}}
-\long\def\bidi@collect@long@body#1{%
- \@bidi@envbody{\expandafter#1\expandafter{\the\@bidi@envbody}}%
- \edef\bidi@process@envbody{\the\@bidi@envbody\noexpand\end{\@currenvir}}%
- \@bidi@envbody\@bidi@emptytoks \def\begin@bidi@stack{b}%
- \begingroup
- \expandafter\let\csname\@currenvir\endcsname\bidi@collect@long@@body
- \edef\bidi@process@envbody{\expandafter\noexpand\csname\@currenvir\endcsname}%
- \bidi@process@envbody
-}
-\long\def\bidi@push@long@begins#1\begin#2{%
- \ifx\end#2\else b\expandafter\bidi@push@long@begins\fi
-}
-\long\def\bidi@collect@long@@body#1\end#2{%
- \edef\begin@bidi@stack{\bidi@push@long@begins#1\begin\end \expandafter\@gobble\begin@bidi@stack}%
- \ifx\@empty\begin@bidi@stack
- \endgroup
- \@checkend{#2}%
- \bidi@addto@long@envbody{#1}%
- \else
- \bidi@addto@long@envbody{#1\end{#2}}%
- \fi
- \bidi@process@envbody % A little tricky! Note the grouping
-}
-\long\def\bidi@new@ifnextchar#1#2#3{%
- \let\reserved@d= #1%
- \def\reserved@a{#2}\def\reserved@b{#3}%
- \futurelet\@let@token\bidi@new@ifnch
-}
-\def\bidi@new@ifnch{%
- \ifx\@let@token\reserved@d \let\reserved@b\reserved@a \fi
- \reserved@b
-}
-\def\bidi@matrix@check#1{%
- \expandafter\ifx\csname\@currenvir\endcsname#1%
- \else\bidi@matrix@error#1%
- \expandafter\@gobble
- \fi
-}
-\def\bidi@matrix@error#1{%
- \PackageError{biditools}{%
-Old form `\string#1' should be \string\begin{\expandafter\@gobble\string#1}%
- }{%
-`\string#1{...}' is old bidi package syntax whose use is
-ill-advised in the old versions of bidi package.%
- }%
-}
-\def\@tagsextension{clo}
-\def\@definitionfileextension{def}
-\def\@texfileextension{tex}
-\def\@iftagsloaded{\@ifl@aded\@tagsextension}
-\def\@ifdefinitionfileloaded{\@ifl@aded\@definitionfileextension}
-\def\@iftexfileloaded{\@ifl@aded\@texfileextension}
-\def\eqnewif#1#2{%
- \count@\escapechar \escapechar\m@ne
- \let#1\iffalse
- \let#2\iffalse
- \eq@if#1#2\iftrue
- \eq@if#1#2\iffalse
- \escapechar\count@}
-\def\eq@if#1#2#3{%
- \expandafter\def\csname\expandafter\@gobbletwo\string#1%
- \expandafter\@gobbletwo\string#3\endcsname
- {\let#1#3%
- \let#2#3}%
- \expandafter\def\csname\expandafter\@gobbletwo\string#2%
- \expandafter\@gobbletwo\string#3\endcsname
- {\let#2#3%
- \let#1#3}}
-\def\@bidi@removefromreset#1#2{{%
- \expandafter\let\csname c@#1\endcsname\@bidi@removefromreset
- \def\@elt##1{%
- \expandafter\ifx\csname c@##1\endcsname\@bidi@removefromreset
- \else
- \noexpand\@elt{##1}%
- \fi}%
- \expandafter\xdef\csname cl@#2\endcsname{%
- \csname cl@#2\endcsname}}}
-\newcommand*{\if@bidi@csdef}[1]{%
- \ifcsname#1\endcsname
- \expandafter\@firstoftwo
- \else
- \expandafter\@secondoftwo
- \fi}
-\newcommand*{\if@bidi@csundef}[1]{%
- \ifcsname#1\endcsname
- \expandafter\ifx\csname#1\endcsname\relax
- \expandafter\expandafter
- \expandafter\@firstoftwo
- \else
- \expandafter\expandafter
- \expandafter\@secondoftwo
- \fi
- \else
- \expandafter\@firstoftwo
- \fi}
-\newcommand{\if@bidi@def}[1]{%
- \ifdefined#1%
- \expandafter\@firstoftwo
- \else
- \expandafter\@secondoftwo
- \fi}
-\newcommand{\if@bidi@undef}[1]{%
- \ifdefined#1%
- \ifx#1\relax
- \expandafter\expandafter
- \expandafter\@firstoftwo
- \else
- \expandafter\expandafter
- \expandafter\@secondoftwo
- \fi
- \else
- \expandafter\@firstoftwo
- \fi}
-\newcommand{\if@bidi@blank}[1]{% from url.sty
- \bidi@ifblank@i#1&&\@secondoftwo\@firstoftwo:}
-\long\def\bidi@ifblank@i#1#2&#3#4#5:{#4}
-\newcommand{\bidi@notblank}[1]{%
- \bidi@ifblank@i#1&&\@firstoftwo\@secondoftwo:}
-\newcommand{\if@bidi@defmacro}{}
-\long\edef\if@bidi@defmacro#1{%
- \noexpand\expandafter\noexpand\bidi@ifdefmacro
- \noexpand\meaning#1\detokenize{macro}:&}
-\edef\bidi@ifdefmacro{%
- \def\noexpand\bidi@ifdefmacro##1\detokenize{macro}:##2&}
-\bidi@ifdefmacro{\bidi@notblank{#2}}
-\newcommand*{\if@bidi@csmacro}[1]{%
- \if@bidi@csdef{#1}
- {\expandafter\if@bidi@defmacro\csname#1\endcsname}
- {\@secondoftwo}}
-\newcommand{\if@bidi@defprimitive}[1]{%
- \ifprimitive#1%
- \expandafter\@firstoftwo
- \else
- \expandafter\@secondoftwo
- \fi}
-\newcommand{\if@bidi@csprimitive}[1]{%
- \begingroup\expandafter\expandafter\expandafter\endgroup%
- \expandafter\ifprimitive\csname#1\endcsname%
- \expandafter\@firstoftwo
- \else
- \expandafter\@secondoftwo
- \fi}
-\newcommand*{\bidi@csdefcs}[2]{%
-\expandafter\@ifdefinable \csname#1\endcsname{%
-\expandafter\def\csname#1\expandafter\endcsname{\csname#2\endcsname}}}
-\newcommand*{\bidi@csletcs}[2]{%
-\expandafter\@ifdefinable \csname#1\endcsname{%
-\expandafter\let\csname#1\expandafter\endcsname\csname#2\endcsname}}
-\newcommand*{\bidi@cslet}[2]{%
-\expandafter\@ifdefinable \csname#1\endcsname{%
-\expandafter\let\csname#1\endcsname#2}}
-\newcommand{\bidi@namelongdef}[1]{%
- \long\expandafter\def\csname #1\endcsname}
-\def\bidi@ensure@newcommand{\@star@or@long\bidi@ensure@new@command}
-\def\bidi@ensure@new@command#1{%
- \begingroup \escapechar\m@ne\xdef\@gtempa{{\string#1}}\endgroup
- \expandafter\if@bidi@csundef\@gtempa
- {\new@command#1}{\relax%
- \let\@ifdefinable\@rc@ifdefinable%
- \new@command#1}}
-\def\bidi@ensure@newlength#1{\if@bidi@undef#1{\newskip#1}{}}
-
-\protected\def\bidi@error{\PackageError{bidi}}
-\protected\def\bidi@warning{\PackageWarning{bidi}}
-\protected\def\bidi@info{\PackageInfo{bidi}}
-
-\newcommand*{\bidi@newrobustcmd}{}
-\protected\def\bidi@newrobustcmd{\@star@or@long\bidi@new@command}
-
-\def\bidi@new@command#1{\@testopt{\bidi@newcommand#1}0}
-
-\def\bidi@newcommand#1[#2]{%
- \@ifnextchar[%]
- {\bidi@xargdef#1[#2]}
- {\ifx\l@ngrel@x\relax
- \let\l@ngrel@x\protected
- \else
- \protected\def\l@ngrel@x{\protected\long}%
- \fi
- \@argdef#1[#2]}}
-
-\long\def\bidi@xargdef#1[#2][#3]#4{%
- \@ifdefinable#1{%
- \expandafter\protected
- \expandafter\def
- \expandafter#1%
- \expandafter{%
- \expandafter\@testopt
- \csname\string#1\endcsname{#3}}%
- \expandafter\@yargdef\csname\string#1\endcsname\tw@{#2}{#4}}}
-
-\bidi@newrobustcmd*{\bidi@renewrobustcmd}{\@star@or@long\bidi@renew@command}
-
-\def\bidi@renew@command#1{%
- \if@bidi@undef{#1}
- {\bidi@error{\string#1 undefined}\@ehc}
- {}%
- \let\@ifdefinable\@rc@ifdefinable
- \bidi@new@command#1}
-
-\bidi@newrobustcmd*{\bidi@providerobustcmd}{\@star@or@long\bidi@provide@command}
-
-\def\bidi@provide@command#1{%
- \if@bidi@undef{#1}
- {\def\reserved@a{\bidi@new@command#1}}
- {\def\reserved@a{\bidi@renew@command\reserved@a}}%
- \reserved@a}
-
-\newcommand*{\bidi@csuse}[1]{%
- \ifcsname#1\endcsname
- \csname#1\expandafter\endcsname
- \fi}
-
-\newcommand{\bidi@expandonce}[1]{%
- \unexpanded\expandafter{#1}}
-
-\def\bidi@protected{%
- \let\@@protect\protect
- \let\protect\@unexpandable@protect
- \afterassignment\restore@protect}
-
-\bidi@newrobustcmd{\bidi@appto}[2]{%
- \if@bidi@undef{#1}
- {\edef#1{\unexpanded{#2}}}
- {\edef#1{\bidi@expandonce#1\unexpanded{#2}}}}
-\bidi@newrobustcmd{\bidi@eappto}[2]{%
- \if@bidi@undef{#1}
- {\edef#1{#2}}
- {\edef#1{\bidi@expandonce#1#2}}}
-\bidi@newrobustcmd{\bidi@gappto}[2]{%
- \if@bidi@undef{#1}
- {\xdef#1{\unexpanded{#2}}}
- {\xdef#1{\bidi@expandonce#1\unexpanded{#2}}}}
-\bidi@newrobustcmd{\bidi@xappto}[2]{%
- \if@bidi@undef{#1}
- {\xdef#1{#2}}
- {\xdef#1{\bidi@expandonce#1#2}}}
-
-\bidi@newrobustcmd*{\bidi@protected@eappto}{\bidi@protected\bidi@eappto}
-\bidi@newrobustcmd*{\bidi@protected@xappto}{\bidi@protected\bidi@xappto}
-
-\bidi@newrobustcmd{\bidi@preto}[2]{%
- \if@bidi@undef{#1}
- {\edef#1{\unexpanded{#2}}}
- {\edef#1{\unexpanded{#2}\bidi@expandonce#1}}}
-\bidi@newrobustcmd{\bidi@epreto}[2]{%
- \if@bidi@undef{#1}
- {\edef#1{#2}}
- {\edef#1{#2\bidi@expandonce#1}}}
-\bidi@newrobustcmd{\bidi@gpreto}[2]{%
- \if@bidi@undef{#1}
- {\xdef#1{\unexpanded{#2}}}
- {\xdef#1{\unexpanded{#2}\bidi@expandonce#1}}}
-\bidi@newrobustcmd{\bidi@xpreto}[2]{%
- \if@bidi@undef{#1}
- {\xdef#1{#2}}
- {\xdef#1{#2\bidi@expandonce#1}}}
-
-\bidi@newrobustcmd*{\bidi@protected@epreto}{\bidi@protected\bidi@epreto}
-\bidi@newrobustcmd*{\bidi@protected@xpreto}{\bidi@protected\bidi@xpreto}
-
-\bidi@newrobustcmd*{\bidi@csappto}[1]{\expandafter\bidi@appto\csname#1\endcsname}
-\bidi@newrobustcmd*{\bidi@cseappto}[1]{\expandafter\bidi@eappto\csname#1\endcsname}
-\bidi@newrobustcmd*{\bidi@csgappto}[1]{\expandafter\bidi@gappto\csname#1\endcsname}
-\bidi@newrobustcmd*{\bidi@csxappto}[1]{\expandafter\bidi@xappto\csname#1\endcsname}
-\bidi@newrobustcmd*{\bidi@protected@cseappto}{\bidi@protected\bidi@cseappto}
-\bidi@newrobustcmd*{\bidi@protected@csxappto}{\bidi@protected\bidi@csxappto}
-
-\bidi@newrobustcmd*{\bidi@cspreto}[1]{\expandafter\bidi@preto\csname#1\endcsname}
-\bidi@newrobustcmd*{\bidi@csepreto}[1]{\expandafter\bidi@epreto\csname#1\endcsname}
-\bidi@newrobustcmd*{\bidi@csgpreto}[1]{\expandafter\bidi@gpreto\csname#1\endcsname}
-\bidi@newrobustcmd*{\bidi@csxpreto}[1]{\expandafter\bidi@xpreto\csname#1\endcsname}
-\bidi@newrobustcmd*{\bidi@protected@csepreto}{\bidi@protected\bidi@csepreto}
-\bidi@newrobustcmd*{\bidi@protected@csxpreto}{\bidi@protected\bidi@csxpreto}
-
-\bidi@newrobustcmd{\if@bidi@patchable}{%
- \bidi@dbg@trce\if@bidi@patchable
- \begingroup
- \@makeother\#%
- \@ifstar\bidi@ifpatchable@i\bidi@ifpatchable}
-
-\long\def\bidi@ifpatchable#1#2{%
- \endgroup
- \bidi@dbg@init#1%
- \if@bidi@undef{#1}
- {\bidi@dbg@fail{def}\@secondoftwo}
- {\bidi@dbg@info{def}%
- \if@bidi@defmacro{#1}
- {\bidi@dbg@info{mac}%
- \bidi@ifscanable{#1}
- {\bidi@ifhashcheck{#2}
- {\bidi@dbg@info{tok}%
- \bidi@ifpattern#1{#2}
- {\bidi@dbg@info{pat}%
- \bidi@dbg@info{pos}\@firstoftwo}
- {\bidi@dbg@fail{pat}\@secondoftwo}}
- {\bidi@dbg@fail{hsh}\@secondoftwo}}
- {\bidi@dbg@fail{tok}\@secondoftwo}}
- {\bidi@dbg@fail{mac}\@secondoftwo}}}
-
-\long\def\bidi@ifpatchable@i#1{%
- \endgroup
- \bidi@dbg@init#1%
- \if@bidi@undef{#1}
- {\bidi@dbg@fail{def}\@secondoftwo}
- {\bidi@dbg@info{def}%
- \if@bidi@defmacro{#1}
- {\bidi@dbg@info{mac}%
- \if@bidi@defparam{#1}
- {\bidi@dbg@info{prm}%
- \bidi@ifscanable{#1}
- {\bidi@dbg@info{tok}%
- \bidi@dbg@info{pos}\@firstoftwo}
- {\bidi@dbg@fail{tok}\@secondoftwo}}
- {\bidi@dbg@info{prl}%
- \if@bidi@defprotected{#1}
- {\bidi@dbg@info{pro}}
- {}%
- \bidi@dbg@info{pos}\@firstoftwo}}
- {\bidi@dbg@fail{mac}\@secondoftwo}}}
-
-\bidi@newrobustcmd*{\bidi@patchcmd}{%
- \bidi@dbg@trce\bidi@patchcmd
- \begingroup
- \@makeother\#%
- \bidi@@patchcmd}
-
-\newcommand{\bidi@@patchcmd}[4][########1]{%
- \bidi@ifpatchable#2{#3}
- {\bidi@dbg@succ{ret}%
- \begingroup
- \edef\bidi@resrvda{%
- \def\noexpand\bidi@resrvda####1\detokenize{macro:}####2->####3&{%
- #1\def\string\bidi@resrvda\space####2{\noexpand\bidi@resrvdb####3&}}%
- \def\noexpand\bidi@resrvdb####1\detokenize{#3}####2&{%
- ####1\detokenize{#4}####2}%
- \edef\noexpand\bidi@resrvda{%
- \noexpand\bidi@resrvda\meaning#2&}}%
- \bidi@resrvda
- \bidi@patchcmd@scantoks\bidi@resrvda
- \let#2\bidi@resrvda
- \bidi@undef\bidi@resrvda
- \@firstoftwo}
- {\@secondoftwo}}
-
-\def\bidi@patchcmd@scantoks#1{%
- \edef\bidi@resrvda{\endgroup
- \unexpanded{\makeatletter\scantokens}{#1}%
- \catcode\number`\@=\the\catcode`\@\relax}%
- \bidi@resrvda}
-
-\newcommand\bidi@isloaded[2][]{
- \expandafter\ifx\csname if@bidi@#2loaded@\endcsname\relax
- \expandafter\newif\csname if@bidi@#2loaded@\endcsname
- \fi
- \@ifpackageloaded{#2}
- {\csname @bidi@#2loaded@true\endcsname #1}
- {\csname @bidi@#2loaded@false\endcsname}}
-
-\protected\def\bidi@ifscanable#1{%
- \begingroup
- \edef\bidi@resrvda{%
- \def\noexpand\bidi@resrvda####1\detokenize{macro}:####2->####3&{%
- ####1\def\string\bidi@resrvda####2{####3}}%
- \edef\noexpand\bidi@resrvda{\noexpand\bidi@resrvda\meaning#1&}}%
- \bidi@resrvda
- \makeatletter
- \scantokens\expandafter{\bidi@resrvda}%
- \expandafter\endgroup\ifx#1\bidi@resrvda
- \expandafter\@firstoftwo
- \else
- \expandafter\@secondoftwo
- \fi}
-
-\protected\long\def\bidi@ifhashcheck#1{%
- \begingroup
- \edef\bidi@resrvda{\detokenize{#1}}%
- \expandafter\endgroup
- \expandafter\bidi@ifhashcheck@i\meaning\bidi@resrvda&}
-
-\edef\bidi@ifhashcheck@i#1&{%
- \noexpand\expandafter
- \noexpand\bidi@ifhashcheck@ii
- \noexpand\strip@prefix#1\string#\string#&}
-
-\edef\bidi@ifhashcheck@ii{%
- \def\noexpand\bidi@ifhashcheck@ii##1\string#\string###2&}
-\bidi@ifhashcheck@ii{\if@bidi@blank{#2}}
-
-\protected\long\def\bidi@ifpattern#1#2{%
- \begingroup
- \edef\bidi@resrvda{%
- \def\noexpand\bidi@resrvda####1\detokenize{#2}####2&{%
- \endgroup\noexpand\noexpand\noexpand\if@bidi@blank{####2}}%
- \edef\noexpand\bidi@resrvda{\noexpand\bidi@resrvda
- \expandafter\strip@prefix\meaning#1\detokenize{#2}&}%
- \noexpand\bidi@resrvda}
- \bidi@resrvda\@secondoftwo\@firstoftwo}
-
-\newcommand{\if@bidi@defparam}{}
-\long\edef\if@bidi@defparam#1{%
- \noexpand\expandafter\noexpand\bidi@ifdefparam
- \noexpand\meaning#1\detokenize{macro}:->&}
-\edef\bidi@ifdefparam{%
- \def\noexpand\bidi@ifdefparam##1\detokenize{macro}:##2->##3&}
-\bidi@ifdefparam{\bidi@notblank{#2}}
-
-\newcommand{\if@bidi@defprotected}{}
-\long\edef\if@bidi@defprotected#1{%
- \noexpand\expandafter\noexpand\bidi@ifdefprotected
- \noexpand\meaning#1\string\protected&}
-\edef\bidi@ifdefprotected{%
- \def\noexpand\bidi@ifdefprotected##1\string\protected##2&}
-\bidi@ifdefprotected{\bidi@notblank{#2}}
-
-\bidi@newrobustcmd{\bidi@undef}[1]{\let#1\bidi@undefined}
-
-\let\bidi@dbg@trce\@gobble
-\let\bidi@dbg@init\@gobble
-\let\bidi@dbg@info\@gobble
-\let\bidi@dbg@succ\@gobble
-\let\bidi@dbg@fail\@gobble
-
-\bidi@newrobustcmd*{\bidi@apptocmd}{%
- \bidi@dbg@trce\bidi@apptocmd
- \begingroup
- \@makeother\#%
- \bidi@hooktocmd\bidi@append}
-
-\bidi@newrobustcmd*{\bidi@pretocmd}{%
- \bidi@dbg@trce\bidi@pretocmd
- \begingroup
- \@makeother\#%
- \bidi@hooktocmd\bidi@prepend}
-
-\long\def\bidi@hooktocmd#1#2#3{%
- \endgroup
- \bidi@dbg@init#2%
- \if@bidi@undef{#2}
- {\bidi@dbg@fail{def}\@secondoftwo}
- {\bidi@dbg@info{def}%
- \if@bidi@defmacro{#2}
- {\bidi@dbg@info{mac}%
- \if@bidi@defparam{#2}
- {\bidi@dbg@info{prm}%
- \bidi@ifscanable{#2}
- {\bidi@ifhashcheck{#3}
- {\bidi@dbg@info{tok}%
- \bidi@dbg@succ{ret}%
- \bidi@hooktocmd@i#1#2{#3}%
- \@firstoftwo}
- {\bidi@dbg@fail{hsh}\@secondoftwo}}
- {\bidi@dbg@fail{tok}\@secondoftwo}}
- {\bidi@dbg@info{prl}%
- \if@bidi@defprotected{#2}
- {\bidi@dbg@info{pro}%
- \bidi@dbg@succ{red}%
- \protected}
- {\bidi@dbg@succ{red}}%
- \edef#2{#1{\bidi@expandonce#2}{\unexpanded{#3}}}%
- \@firstoftwo}}
- {\bidi@dbg@fail{mac}\@secondoftwo}}}
-
-\long\def\bidi@hooktocmd@i#1#2#3{%
- \begingroup
- \edef\bidi@resrvda{%
- \def\noexpand\bidi@resrvda####1\detokenize{macro}:####2->####3&{%
- ####1\def\string\bidi@resrvda\space####2{#1{####3}{\detokenize{#3}}}}%
- \edef\noexpand\bidi@resrvda{%
- \noexpand\bidi@resrvda\meaning#2&}}%
- \bidi@resrvda
- \bidi@patchcmd@scantoks\bidi@resrvda
- \let#2\bidi@resrvda
- \bidi@undef\bidi@resrvda}
-
-\long\def\bidi@append#1#2{#1#2}
-\long\def\bidi@prepend#1#2{#2#1}
-
-\bidi@newrobustcmd*{\bidi@AtEndPreamble}{\bidi@gappto\bidi@endpreamblehook}
-\newcommand*{\bidi@endpreamblehook}{}
-
-\bidi@preto\document{%
- \endgroup
- \let\bidi@AtEndPreamble\@firstofone
- \bidi@endpreamblehook
- \protected\def\bidi@AtEndPreamble{\@notprerr\@gobble}%
- \bidi@undef\bidi@endpreamblehook
- \begingroup}
-
-\bidi@newrobustcmd*{\bidi@AfterPreamble}{\AtBeginDocument}
-\bidi@AtEndPreamble{\let\bidi@AfterPreamble\@firstofone}
-
-\bidi@newrobustcmd*{\bidi@AfterEndPreamble}{\bidi@gappto\bidi@afterendpreamblehook}
-\newcommand*{\bidi@afterendpreamblehook}{}
-
-\bidi@appto\document{%
- \let\bidi@AfterEndPreamble\@firstofone
- \bidi@afterendpreamblehook
- \protected\def\bidi@AfterEndPreamble{\@notprerr\@gobble}%
- \bidi@undef\bidi@afterendpreamblehook
- \ignorespaces}
-
-\AtEndDocument{\let\bidi@AfterEndPreamble\@gobble}
-
-\bidi@newrobustcmd*{\bidi@AfterEndDocument}{\bidi@gappto\bidi@afterenddocumenthook}
-\newcommand*{\bidi@afterenddocumenthook}{}
-
-\bidi@patchcmd\enddocument
- {\deadcycles}
- {\let\bidi@AfterEndDocument\@firstofone
- \bidi@afterenddocumenthook
- \deadcycles}
- {}
- {\let\bidi@@end\@@end
- \def\@@end{%
- \let\bidi@AfterEndDocument\@firstofone
- \bidi@afterenddocumenthook
- \bidi@@end}}
-
-\bidi@newrobustcmd{\bidi@AtBeginEnvironment}[1]{%
- \bidi@csgappto{@bidi@begin@#1@hook}}
-
-\bidi@patchcmd\begin
- {\csname #1\endcsname}
- {\bidi@csuse{@bidi@begin@#1@hook}%
- \csname #1\endcsname}
- {}
- {\bidi@warning{%
- Patching '\string\begin' failed!\MessageBreak
- '\string\bidi@AtBeginEnvironment' will not work\@gobble}}
-
-\bidi@newrobustcmd{\bidi@AtEndEnvironment}[1]{%
- \bidi@csgappto{@bidi@end@#1@hook}}
-
-\bidi@patchcmd\end
- {\csname end#1\endcsname}
- {\bidi@csuse{@bidi@end@#1@hook}%
- \csname end#1\endcsname}
- {}
- {\bidi@warning{%
- Patching '\string\end' failed!\MessageBreak
- '\string\bidi@AtEndEnvironment' will not work\@gobble}}
-
-\bidi@newrobustcmd{\bidi@BeforeBeginEnvironment}[1]{%
- \bidi@csgappto{@bidi@beforebegin@#1@hook}}
-
-\bidi@pretocmd\begin
- {\bidi@csuse{@bidi@beforebegin@#1@hook}}
- {}
- {\bidi@warning{%
- Patching '\string\begin' failed!\MessageBreak
- '\string\bidi@BeforeBeginEnvironment' will not work\@gobble}}
-
-\bidi@newrobustcmd{\bidi@AfterEndEnvironment}[1]{%
- \bidi@csgappto{@bidi@afterend@#1@hook}}
-
-\bidi@patchcmd\end
- {\if@ignore}
- {\bidi@csuse{@bidi@afterend@#1@hook}%
- \if@ignore}
- {}
- {\bidi@warning{%
- Patching '\string\end' failed!\MessageBreak
- '\string\bidi@AfterEndEnvironment' will not work\@gobble}}
-
-\CheckCommand{\InputIfFileExists}[2]{%
- \IfFileExists{#1}%
- {#2\@addtofilelist{#1}\@@input \@filef@und}}
-
-\renewcommand{\InputIfFileExists}[2]{%
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname #1-@bidi@alias\endcsname\relax
- \expandafter\@secondoftwo
- \else
- \bidi@replacefile@msg{\csname #1-@bidi@alias\endcsname}{#1}%
- \expandafter\@firstoftwo
- \fi
- {%
- \expandafter\InputIfFileExists\expandafter{\csname
- #1-@bidi@alias\endcsname}{#2}%
- }%
- {\IfFileExists{#1}{%
- \bidi@load@hook{before}{#1}%
- #2\@addtofilelist{#1}%
- \@@input \@filef@und
- \bidi@load@hook{after}{#1}%
- }}%
-}
-
-\newcommand*{\bidi@@loadwithoptions}{}
-\newcommand*{\bidi@loadwithoptions}{}
-\let\bidi@loadwithoptions\@loadwithoptions
-
-\renewcommand*{\@loadwithoptions}[3]{%
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname #3.#1-@bidi@aliasname\endcsname\relax
- \def\bidi@@loadwithoptions{\bidi@loadwithoptions{#1}{#2}{#3}}%
- \else
- \bidi@replacefile@msg{\csname #3.#1-@bidi@aliasname\endcsname.#1}{#3.#1}%
- \def\bidi@@loadwithoptions{%
- \@loadwithoptions{#1}{#2}{\csname #3.#1-@bidi@aliasname\endcsname}%
- }%
- \fi
- \bidi@@loadwithoptions
-}
-
-\newcommand*{\bidi@onefilewithoptions}{}
-\let\bidi@onefilewithoptions\@onefilewithoptions
-\def\@onefilewithoptions#1[#2][#3]#4{%
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname #1.#4-@bidi@aliasname\endcsname\relax
- \def\bidi@@onefilewithoptions{\bidi@onefilewithoptions{#1}}%
- \else
- \bidi@replacefile@msg{\csname #1.#4-@bidi@aliasname\endcsname.#4}{#1.#4}%
- \edef\bidi@@onefilewithoptions{%
- \noexpand\@onefilewithoptions{\csname #1.#4-@bidi@aliasname\endcsname}}%
- \fi
- \bidi@@onefilewithoptions[{#2}][{#3}]{#4}%
- \bidi@load@hook{lateafter}{#1.#4}%
-}
-
-\newcommand*{\bidi@ReplaceInput}[2]{%
- \expandafter\edef\csname #1-@bidi@alias\endcsname{#2}%
-}
-
-\newcommand*{\bidi@UnReplaceInput}[1]{%
- \ifcsname #1-@bidi@alias\endcsname
- \expandafter\let\csname #1-@bidi@alias\endcsname\relax
- \fi
-}
-
-\newcommand*{\@bidi@replacefilewithext}[3]{%
- \expandafter\edef\csname #1.#3-@bidi@aliasname\endcsname{#2}%
- }
-\newcommand*{\bidi@ReplacePackage}[2]{%
- \@bidi@replacefilewithext{#1}{#2}\@pkgextension
-}
-\newcommand*{\bidi@ReplaceClass}[2]{%
- \@bidi@replacefilewithext{#1}{#2}\@clsextension
-}
-\newcommand*{\@bidi@unreplacefilewithext}[2]{%
- \ifcsname #1.#2-@bidi@aliasname\endcsname
- \expandafter\let\csname #1.#2-@bidi@aliasname\endcsname\relax
- \fi
-}
-\newcommand*{\bidi@UnReplacePackage}[1]{%
- \@bidi@unreplacefilewithext{#1}\@pkgextension
-}
-\newcommand*{\bidi@UnReplaceClass}[1]{%
- \@bidi@unreplacefilewithext{#1}\@clsextension
-}
-\newcommand*{\bidi@replacefile@msg}[2]{%
- \PackageInfo{biditools}{inputing `#1' instead of `#2'}%
-}
-
-\newcommand*{\bidi@load@hook}[2]{%
- \@ifundefined{#2-@#1}{}{%
- \@nameuse{#2-@#1}%
- \expandafter\let\csname #2-@#1\endcsname=\relax}}
-\newcommand*{\bidi@set@load@hook}[2]{%
- \@ifundefined{#2-@#1}{\@namedef{#2-@#1}{}}{}%
- \expandafter\g@addto@macro\csname #2-@#1\endcsname}
-\newcommand*{\bidi@BeforeFile}{\bidi@set@load@hook{before}}
-\newcommand*{\bidi@AfterFile}{\bidi@set@load@hook{after}}
-\newcommand*{\bidi@BeforeClass}[1]{%
- \bidi@set@load@hook{before}{#1.\@clsextension}}
-\newcommand*{\bidi@AfterClass}{%
- \@ifstar {\@s@bidi@AfterClass}{%
- \@ifnextchar +\@@bidi@AfterClass{%
- \@ifnextchar !\@@@bidi@AfterClass\@bidi@AfterClass
- }%
- }%
-}
-
-\newcommand*{\@@@bidi@AfterClass}[2]{%
- \begingroup\ifx\csname #2.\@clsextension-h@@k\endcsname\relax
- \aftergroup\@s@bidi@AfterClass
- \else
- \aftergroup\bidi@AfterAtEndOfClass
- \fi
- \endgroup{#2}%
-}
-
-\newcommand*{\bidi@AfterAtEndOfClass}[1]{%
- \bidi@set@load@hook{lateafter}{#1.\@clsextension}}
-\newcommand*{\@@bidi@AfterClass}[2]{%
- \begingroup
- \expandafter\ifx\csname #2.\@clsextension-h@@k\endcsname\relax
- \aftergroup\@s@bidi@AfterClass
- \else
- \aftergroup\@bidi@AfterClass
- \fi
- \endgroup{#2}%
-}
-
-\newcommand*{\@bidi@AfterClass}[1]{%
- \bidi@set@load@hook{after}{#1.\@clsextension}}
-\newcommand*{\@s@bidi@AfterClass}[1]{%
- \begingroup
- \@ifclassloaded{#1}{%
- \aftergroup\@secondoftwo
- }{%
- \aftergroup\@bidi@AfterClass
- }%
- \endgroup
- {#1}%
-}
-
-\newcommand*{\bidi@BeforePackage}[1]{%
- \bidi@set@load@hook{before}{#1.\@pkgextension}}
-\newcommand*{\bidi@AfterPackage}{%
- \@ifstar {\@s@bidi@AfterPackage}{%
- \@ifnextchar +\@@bidi@AfterPackage{%
- \@ifnextchar !\@@@bidi@AfterPackage\@bidi@AfterPackage
- }%
- }%
-}
-\newcommand*{\@@@bidi@AfterPackage}[2]{%
- \begingroup\ifx\csname #2.\@pkgextension-h@@k\endcsname\relax
- \aftergroup\@s@bidi@AfterPackage
- \else
- \aftergroup\bidi@AfterAtEndOfPackage
- \fi
- \endgroup{#2}%
-}
-\newcommand*{\bidi@AfterAtEndOfPackage}[1]{%
- \bidi@set@load@hook{lateafter}{#1.\@pkgextension}}
-\newcommand*{\@@bidi@AfterPackage}[2]{%
- \begingroup
- \expandafter\ifx\csname #2.\@pkgextension-h@@k\endcsname\relax
- \aftergroup\@s@bidi@AfterPackage
- \else
- \aftergroup\@bidi@AfterPackage
- \fi
- \endgroup{#2}%
-}
-\newcommand*{\@bidi@AfterPackage}[1]{%
- \bidi@set@load@hook{after}{#1.\@pkgextension}}
-\newcommand*{\@s@bidi@AfterPackage}[1]{%
- \begingroup
- \@ifpackageloaded{#1}{%
- \aftergroup\@secondoftwo
- }{%
- \aftergroup\@bidi@AfterPackage
- }%
- \endgroup
- {#1}%
-}
-
-\newcommand*{\bidi@excludedpackages}{}
-\let\bidi@excludedpackages\@empty
-\newcommand*{\bidi@saved@RequirePackage}{}
-\newcommand*{\bidi@PreventPackageFromLoading}{%
- \@ifstar{\@bidi@PreventPackageFromLoading\PackageInfo}%
- {\@bidi@PreventPackageFromLoading\PackageWarning}%
-}
-\newcommand*{\@bidi@PreventPackageFromLoading}[1]{%
- \@ifnextchar [%]
- {\@@bidi@PreventPackageFromLoading#1}{\@@bidi@PreventPackageFromLoading#1[]}%
-}
-\newcommand*{\@@bidi@PreventPackageFromLoading}{}
-
-\def\@@bidi@PreventPackageFromLoading#1[#2]#3{%
- \edef\reserved@b{\zap@space#3 \@empty}%
- \ifx \reserved@b\@empty
- #1{biditools}{%
- \string\bidi@PreventPackageFromLoading\space with empty packages\MessageBreak
- argument ignored%
- }%
- \else
- \ifx\bidi@excludedpackages\@empty
- \let\bidi@saved@RequirePackage\RequirePackage
- \let\RequirePackage\bidi@RequirePackage
- \def\reserved@a##1##{%
- \@latex@error
- {\noexpand \usepackage before \string\documentclass}%
- {\noexpand \usepackage may only appear in the document
- preamble, i.e.,\MessageBreak
- between \noexpand\documentclass and
- \string\begin{document}.}%
- \@gobble}%
- \ifx\reserved@a\usepackage\else
- \ifx\usepackage\bidi@saved@RequirePackage\else
- \PackageWarning{biditools}{%
- Maybe serious problem: unexpected definition of\MessageBreak
- \string\usepackage
- }%
- \fi
- \let\usepackage\RequirePackage
- \fi
- \fi
- \expandafter\@for \expandafter\reserved@a\expandafter:\expandafter=%
- \reserved@b\do {%
- \ifx\reserved@a\@empty
- #1{biditools}{%
- empty package argument for
- \string\bidi@PreventPackageFromLoading\MessageBreak
- ignored%
- }%
- \else
- \expandafter\@ifpackageloaded\expandafter{\reserved@a}{%
- #1{biditools}{%
- package `\reserved@a' already loaded.\MessageBreak
- Cannot prevent it from beeing loaded%
- }%
- }{%
- \edef\bidi@excludedpackages{\bidi@excludedpackages,%
- \reserved@a}%
- \if\relax\detokenize{#2}\relax\else
- \@ifundefined{bidi@exclude@package@\reserved@a @do}{%
- \@namedef{bidi@exclude@package@\reserved@a @do}{}%
- }{}%
- \expandafter\def
- \csname bidi@exclude@package@\reserved@a
- @do\expandafter\expandafter\expandafter\endcsname
- \expandafter\expandafter\expandafter{%
- \csname bidi@exclude@package@\reserved@a @do\endcsname
- #2%
- }%
- \fi
- }%
- \fi
- }%
- \ifx\bidi@excludedpackages\@empty
- \bidi@ResetPreventPackageFromLoading
- \fi
- \fi
-}
-
-\@onlypreamble\bidi@PreventPackageFromLoading
-\newcommand*{\bidi@ResetPreventPackageFromLoading}{%
- \let\bidi@excludedpackages\@empty
- \ifx\RequirePackage\bidi@RequirePackage
- \ifx\usepackage\RequirePackage
- \let\usepackage\bidi@saved@RequirePackage
- \fi
- \let\RequirePackage\bidi@saved@RequirePackage
- \fi
-}
-\@onlypreamble\bidi@ResetPreventPackageFromLoading
-\newcommand*{\bidi@StorePreventPackageFromLoading}[1]{%
- \let#1\bidi@excludedpackages
-}
-\@onlypreamble\bidi@StorePreventPackageFromLoading
-\newcommand*{\bidi@UnPreventPackageFromLoading}{%
- \@ifstar {\@tempswatrue\@bidi@UnPreventPackageFromLoading}%
- {\@tempswafalse\@bidi@UnPreventPackageFromLoading}%
-}
-
-\newcommand*{\@bidi@UnPreventPackageFromLoading}[1]{%
- \edef\reserved@b{\zap@space#1 \@empty}%
- \if@tempswa
- \@for\reserved@a:=\reserved@b\do {%
- \ifx\reserved@a\@empty \else
- \ifcsname bidi@exclude@package@\reserved@a @do\endcsname
- \expandafter\let
- \csname bidi@exclude@package@\reserved@a @do\endcsname
- \undefined
- \fi
- \fi
- }%
- \fi
- \ifcsname bidi@excludedpackages\endcsname
- \let\reserved@a\bidi@excludedpackages
- \let\bidi@excludedpackages\@empty
- \expandafter\@for\expandafter\reserved@c
- \expandafter:\expandafter=\reserved@a
- \do{%
- \ifx\reserved@c\@empty\else
- \@expandtwoargs\in@{,\reserved@c,}{,\reserved@b,}%
- \ifin@
- \else
- \edef\bidi@excludedpackages{%
- \bidi@excludedpackages,\reserved@c
- }%
- \fi
- \fi
- }%
- \ifx\bidi@excludedpackages\@empty\bidi@ResetPreventPackageFromLoading\fi
- \fi
-}
-
-\newcommand*{\bidi@RequirePackage}[2][]{%
- \let\reserved@c\@empty
- \let\reserved@d\@empty
- \edef\reserved@b{\zap@space#2 \@empty}%
- \expandafter\@for\expandafter\reserved@b\expandafter:\expandafter=\reserved@b
- \do {%
- \begingroup
- \@tempswatrue
- \@for\reserved@a:=\bidi@excludedpackages\do {%
- \ifx\reserved@a\reserved@b
- \@tempswafalse
- \fi
- }%
- \if@tempswa
- \xdef\reserved@c{\reserved@c,\reserved@b}%
- \else
- \ifx\reserved@b\@empty\else
- \PackageInfo{biditools}{Excluding package `\reserved@b'\MessageBreak
- from loading}%
- \@ifundefined{bidi@exclude@package@\reserved@b @do}{%
- }{%
- \expandafter\g@addto@macro\expandafter\reserved@d
- \csname bidi@exclude@package@\reserved@b @do\endcsname
- }%
- \fi
- \fi
- \endgroup
- }%
- \ifx\reserved@c\@empty
- \let\reserved@a\bidi@gobbleopt
- \else
- \edef\reserved@a{\noexpand\bidi@saved@RequirePackage[#1]{%
- \expandafter\@gobble\reserved@c\@empty}}%
- \fi
- \expandafter\reserved@d
- \reserved@a
-}
-
-\newcommand{\bidi@gobbleopt}[1][]{}
-\AtEndDocument{%
- \let\bidi@saved@checkend=\@checkend
- \renewcommand*{\@checkend}[1]{%
- \def\reserved@a{#1}\def\reserved@b{document}%
- \bidi@saved@checkend{#1}%
- \ifx\reserved@a\reserved@b
- \let\bidi@saved@clearpage=\clearpage
- \renewcommand*{\clearpage}{\bidi@saved@clearpage
- \bidi@hook@bcma
- \bidi@restore@newpage
- \let\clearpage=\bidi@saved@clearpage}%
- \fi%
- \let\bidi@saved@dofilelist\@dofilelist
- \def\@dofilelist{%
- \bidi@hook@acma
- \let\@dofilelist\bidi@saved@dofilelist
- \bidi@saved@dofilelist
- }%
- }%
-}
-
-\newcommand*{\bidi@saved@checkend}{}
-\newcommand*{\bidi@saved@dofilelist}{}
-\newcommand*{\bidi@redefine@newpage}{%
- \let\bidi@saved@newpage\newpage
- \def\bidi@restore@newpage{%
- \renewcommand*{\newpage}{%
- \PackageWarningNoLine{%
- biditools%
- }{%
- \string\newpage\space at main aux file!\MessageBreak
- You have output material at the main aux file.\MessageBreak
- Note, that the \string\bidi@BeforeClosingMainAux\space commands\MessageBreak
- are processed before the output from aux file%
- }%
- \let\newpage\bidi@saved@newpage
- \newpage
- }%
- }%
- \renewcommand*{\newpage}{%
- \PackageError{%
- biditools%
- }{%
- \string\newpage\space at \string\bidi@BeforeClosingMainAux
- }{%
- You should never use \string\newpage\space or
- \string\clear(double)page or other output material at the\MessageBreak
- argument of \string\bidi@BeforeClosingMainAux!\MessageBreak
- If you'll continue, the \string\newpage\space will be ignored to
- avoid corruption of\MessageBreak
- every prior use of \string\bidi@BeforeClosingMainAux.
- }%
- }%
-}
-
-\newcommand*{\bidi@restore@newpage}{}
-\newcommand*{\bidi@hook@bcma}{}
-\newcommand*{\bidi@hook@acma}{}
-\newcommand*{\bidi@BeforeClosingMainAux}{%
- \ifx\bidi@hook@bcma\@empty
- \gdef\bidi@hook@bcma{%
- \renewcommand*{\bidi@BeforeClosingMainAux}[1]{####1}%
- \let\protected@write\bidi@protected@immediate@write
- \bidi@redefine@newpage
- }%
- \fi
- \g@addto@macro\bidi@hook@bcma%
-}
-
-\newcommand*{\bidi@AfterReadingMainAux}{%
- \ifx\bidi@hook@acma\@empty
- \gdef\bidi@hook@acma{%
- \renewcommand*{\bidi@AfterReadingMainAux}[1]{####1}%
- \let\protected@write\bidi@protected@immediate@write
- }%
- \fi
- \g@addto@macro\bidi@hook@acma%
-}
-
-\long\def\bidi@protected@immediate@write#1#2#3{%
- \begingroup
- #2%
- \let\protect\@unexpandable@protect
- \edef\reserved@a{\immediate\write#1{#3}}%
- \reserved@a
- \endgroup
- \if@nobreak\ifvmode\nobreak\fi\fi
-}
-
-\def\bidi@patch@counter{0}%
-\if@bidi@csundef{numexpr}{%
- \def\bidi@patch@stepcounter{%
- \begingroup
- \count@\bidi@patch@counter\relax
- \advance\count@\@ne\relax
- \edef\x{\endgroup
- \noexpand\def\noexpand\bidi@patch@counter{\the\count@}%
- }%
- \x
- }%
-}{%
- \def\bidi@patch@stepcounter{%
- \edef\bidi@patch@counter{%
- \the\numexpr\bidi@patch@counter+\@ne\relax
- }%
- }%
-}
-\def\bidi@patch@list{}
-\def\bidi@patch@Add{%
- \bidi@appto\bidi@patch@list
-}
-\def\bidi@patch@AfterPackage#1{%
- \@ifpackageloaded{#1}{%
- \@firstofone
- }{%
- \bidi@patch@AfterPackage{#1}%
- }%
-}
-\def\bidi@patch@AfterPackage#1{%
- \edef\bidi@patch@temp{#1}%
- \bidi@patch@stepcounter
- \expandafter\bidi@patch@@AfterPackage
- \csname bidi@patch@\bidi@patch@counter\expandafter\endcsname{%
- \bidi@patch@temp
- }%
-}
-\def\bidi@patch@@AfterPackage#1#2#3{%
- \begingroup
- \toks@{#3}%
- \xdef\bidi@patch@gtemp{%
- \noexpand\@ifpackageloaded{#2}{%
- \noexpand\let\noexpand#1\noexpand\relax
- \the\toks@
- }{}%
- }%
- \endgroup
- \let#1\bidi@patch@gtemp
- \bidi@patch@Add#1%
- \bidi@patch@try{bidi@AfterPackage}{#2}#1%
-}
-
-\def\bidi@patch@try#1#2#3{%
- \if@bidi@csundef{#1}{}{%
- \csname #1\endcsname{#2}{#3}%
- }%
-}
-
-\AtBeginDocument{\bidi@patch@list}
-
-\bidi@AtEndPreamble{\bidi@patch@list}%
-
-\bidi@AfterEndPreamble{%
- \let\bidi@patch@OrgIfPackageLoaded\@ifpackageloaded
- \let\bidi@patch@OrgIfPackageLater\@ifpackagelater
- \let\bidi@patch@OrgIfClassLoaded\@ifclassloaded
- \let\bidi@patch@OrgIfClassLater\@ifclasslater
- \bidi@patch@list
- \let\@ifpackageloaded\bidi@patch@OrgIfPackageLoaded
- \let\@ifpackagelater\bidi@patch@OrgIfPackageLater
- \let\@ifclassloaded\bidi@patch@OrgIfClassLoaded
- \let\@ifclasslater\bidi@patch@OrgIfClassLater
-}%
-\endinput
-%%
-%% End of file `biditools.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/biditufte-book.cls b/Master/texmf-dist/tex/xelatex/bidi/biditufte-book.cls
deleted file mode 100644
index 317e95462d4..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/biditufte-book.cls
+++ /dev/null
@@ -1,94 +0,0 @@
-%%
-%% This is file `biditufte-book.cls',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,biditufte-book.cls')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}[1994/06/01]
-\ProvidesClass{biditufte-book}[2011/06/18 v0.1 biditufte-book class]
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftefloat}}
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftetoc}}
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftehyperref}}
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftetitle}}
-\ProcessOptions\relax
-\LoadClass{book}
-\RequirePackage{bidituftefloat}
-\RequirePackage{bidituftesidenote}
-\RequirePackage{bidituftetoc}
-\RequirePackage{bidituftegeneralstructure}
-\RequirePackage{bidituftehyperref}
-\RequirePackage{bidituftetitle}
-%%
-%%
-\renewcommand\frontmatter{%
- \cleardoublepage%
- \@mainmatterfalse%
- \pagenumbering{arabic}%
- %\pagestyle{plain}%
- \fancyhf{}%
- \ifthenelse{\boolean{@bidituftefloat@twoside}}%
- {\fancyhead[LE,RO]{\thepage}}%
- {\fancyhead[RE,RO]{\thepage}}%
-}
-%%
-\renewcommand\mainmatter{%
- \cleardoublepage%
- \@mainmattertrue%
- \fancyhf{}%
- \ifthenelse{\boolean{@bidituftefloat@twoside}}%
- {\renewcommand{\chaptermark}[1]{\markboth{##1}{}}%
- \fancyhead[LE]{\thepage\quad\smallcaps{\newlinetospace{\plaintitle}}}% book title
- \fancyhead[RO]{\smallcaps{\newlinetospace{\leftmark}}\quad\thepage}}% chapter title
- {\fancyhead[RE,RO]{\smallcaps{\newlinetospace{\plaintitle}}\quad\thepage}}% book title
-}
-%%
-\renewcommand\backmatter{%
- \if@openright%
- \cleardoublepage%
- \else%
- \clearpage%
- \fi%
- \@mainmatterfalse%
-}
-%%
-\setcounter{tocdepth}{0}
-\AtBeginDocument{%
-\IfFileExists{biditufte-book.cfg}
- {\input{biditufte-book.cfg}
- \ClassInfo{biditufte-book}{Loading biditufte-book configuration file \@gobble}}
- {}%
-}
-\endinput
-%%
-%% End of file `biditufte-book.cls'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/biditufte-handout.cls b/Master/texmf-dist/tex/xelatex/bidi/biditufte-handout.cls
deleted file mode 100644
index 7bc7e6b0e67..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/biditufte-handout.cls
+++ /dev/null
@@ -1,63 +0,0 @@
-%%
-%% This is file `biditufte-handout.cls',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,biditufte-handout.cls')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}[1994/06/01]
-\ProvidesClass{biditufte-handout}[2011/06/18 v0.1 biditufte-handout class]
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftefloat}}
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftetoc}}
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftehyperref}}
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{bidituftetitle}}
-\ProcessOptions\relax
-\LoadClass{article}
-\RequirePackage{bidituftefloat}
-\RequirePackage{bidituftesidenote}
-\RequirePackage{bidituftetoc}
-\RequirePackage{bidituftegeneralstructure}
-\RequirePackage{bidituftehyperref}
-\RequirePackage{bidituftetitle}
-\renewenvironment{abstract}
- {\begin{quotation}}
- {\end{quotation}}
-\AtBeginDocument{%
-\IfFileExists{biditufte-handout.cfg}
- {\input{biditufte-handout.cfg}
- \ClassInfo{biditufte-handout}{Loading biditufte-handout configuration file \@gobble}}
- {}%
-}
-\endinput
-%%
-%% End of file `biditufte-handout.cls'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidituftefloat.sty b/Master/texmf-dist/tex/xelatex/bidi/bidituftefloat.sty
deleted file mode 100644
index e376f06c346..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidituftefloat.sty
+++ /dev/null
@@ -1,601 +0,0 @@
-%%
-%% This is file `bidituftefloat.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidituftefloat.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bidituftefloat}[2011/06/14 v0.1
-bidi implementation of tufte float]
-\RequirePackage{xifthen}
-\newcommand{\@bidituftefloat@pkgname}{bidituftefloat}
-\newcommand{\bidituftefloatError}[2]{\PackageError{\@bidituftefloat@pkgname}{#1}{#2}}
-\newcommand{\bidituftefloatDebugInfoNL}[1]{\ifthenelse{\boolean{@bidituftefloat@debug}}{\bidituftefloatInfoNL{#1}}{}}
-\newcommand{\bidituftefloatInfoNL}[1]{\PackageInfo{\@bidituftefloat@pkgname}{#1\@gobble}}
-\newboolean{@bidituftefloat@RTLgeometry}
-\setboolean{@bidituftefloat@RTLgeometry}{true}
-\DeclareOption{RTLgeometry}{\setboolean{@bidituftefloat@RTLgeometry}{true}}
-\DeclareOption{LTRgeometry}{\setboolean{@bidituftefloat@RTLgeometry}{false}}
-\newboolean{@bidituftefloat@afourpaper}
-\DeclareOption{a4paper}{\setboolean{@bidituftefloat@afourpaper}{true}}
-\newboolean{@bidituftefloat@bfivepaper}
-\DeclareOption{b5paper}{\setboolean{@bidituftefloat@bfivepaper}{true}}
-\newboolean{@bidituftefloat@symmetric}
-\newboolean{@bidituftefloat@twoside}
-\DeclareOption{twoside}{%
-\@twosidetrue \@mparswitchtrue%
-\setboolean{@bidituftefloat@twoside}{true}%
-\setboolean{@bidituftefloat@symmetric}{true}%
-}
-\DeclareOption{oneside}{%
-\@twosidefalse \@mparswitchfalse%
-\setboolean{@bidituftefloat@twoside}{false}%
-\setboolean{@bidituftefloat@symmetric}{false}%
-}
-\@ifclassloaded{book}{\ExecuteOptions{twoside}}{}
-\newboolean{@bidituftefloat@debug}
-\newcommand*{\@bidituftefloat@caption@justification}{\@bidituftefloat@justification@autodetect}
-\ProcessOptions
-%% Globally sets the length
-\newcommand*{\gsetlength}[2]{%
- \setlength{#1}{#2}%
- \global#1=#1\relax%
-}
-%% Globally sets a boolean
-\newcommand*{\gsetboolean}[2]{% based on code from ifthen pkg
- \lowercase{\def\@tempa{#2}}%
- \@ifundefined{@tempswa\@tempa}%
- {\PackageError{ifthen}{You can only set a boolean to `true' or `false'}\@ehc}%
- {\@ifundefined{#1\@tempa}%
- {\PackageError{ifthen}{Boolean #1 undefined}\@ehc}%
- {\global\csname#1\@tempa\endcsname}%
- }%
-}
-%% Set the font sizes and baselines to match bidituftefloat's books
-\renewcommand\normalsize{%
- \@setfontsize\normalsize\@xpt{14}%
- \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
- \abovedisplayshortskip \z@ \@plus3\p@
- \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
- \belowdisplayskip \abovedisplayskip
- \let\@listi\@listI}
-\normalbaselineskip=14pt
-\normalsize
-\renewcommand\footnotesize{%
- \@setfontsize\footnotesize\@viiipt{10}%
- \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
- \abovedisplayshortskip \z@ \@plus\p@
- \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
- \def\@listi{\leftmargin\leftmargini
- \topsep 3\p@ \@plus\p@ \@minus\p@
- \parsep 2\p@ \@plus\p@ \@minus\p@
- \itemsep \parsep}%
- \belowdisplayskip \abovedisplayskip
-}
-%% Paragraph indentation and separation for marginal text
-\newcommand{\@bidituftefloat@margin@par}{%
- \setlength{\RaggedRightParindent}{0.5pc}%
- \setlength{\JustifyingParindent}{0.5pc}%
- \setlength{\parindent}{0.5pc}%
- \setlength{\parskip}{0pt}%
-}
-\RequirePackage{ragged2e}
-\ifthenelse{\boolean{@bidituftefloat@RTLgeometry}}{%
-\RequirePackage[letterpaper,right=1in,top=1in,headsep=2\baselineskip,textwidth=26pc,marginparsep=2pc,marginparwidth=12pc,textheight=44\baselineskip,headheight=\baselineskip]{geometry}
-\ifthenelse{\boolean{@bidituftefloat@afourpaper}}
- {\geometry{a4paper,right=24.8mm,top=27.4mm,headsep=2\baselineskip,textwidth=107mm,marginparsep=8.2mm,marginparwidth=49.4mm,textheight=49\baselineskip,headheight=\baselineskip}}
- {}
-\ifthenelse{\boolean{@bidituftefloat@bfivepaper}}
- {\geometry{paperwidth=176mm,paperheight=250mm,right=14.66mm,top=13.88mm,textwidth=102.66mm,marginparsep=7.33mm,marginparwidth=36.66mm,textheight=38\baselineskip,includehead}}
- {}}{%
-\RequirePackage[letterpaper,left=1in,top=1in,headsep=2\baselineskip,textwidth=26pc,marginparsep=2pc,marginparwidth=12pc,textheight=44\baselineskip,headheight=\baselineskip]{geometry}
-\ifthenelse{\boolean{@bidituftefloat@afourpaper}}
- {\geometry{a4paper,left=24.8mm,top=27.4mm,headsep=2\baselineskip,textwidth=107mm,marginparsep=8.2mm,marginparwidth=49.4mm,textheight=49\baselineskip,headheight=\baselineskip}}
- {}
-\ifthenelse{\boolean{@bidituftefloat@bfivepaper}}
- {\geometry{paperwidth=176mm,paperheight=250mm,left=14.66mm,top=13.88mm,textwidth=102.66mm,marginparsep=7.33mm,marginparwidth=36.66mm,textheight=38\baselineskip,includehead}}
- {}}
-\ifthenelse{\boolean{@bidituftefloat@symmetric}}
- {}
- {\geometry{asymmetric}}% forces internal LaTeX `twoside'
-\setlength\marginparpush{10pt}
-%% Font for margin items
-\newcommand{\@bidituftefloat@marginfont}{\normalfont\footnotesize}
-\newcommand*{\@bidituftefloat@caption@font}{\@bidituftefloat@marginfont}
-\newcommand*{\setcaptionfont}[1]{\renewcommand*{\@bidituftefloat@caption@font}{#1}}
-\newcommand{\@bidituftefloat@justification}{\justifying}%
-\setlength\abovedisplayskip{6pt plus 2pt minus 4pt}
-\setlength\belowdisplayskip{6pt plus 2pt minus 4pt}
-\newboolean{@bidituftefloat@changepage}
-\IfFileExists{changepage.sty}{%
- \bidituftefloatDebugInfoNL{Found changepage.sty}
- \RequirePackage[strict]{changepage}
- \setboolean{@bidituftefloat@changepage}{true}
-}{%
- \bidituftefloatDebugInfoNL{Found chngpage.sty}
- \RequirePackage[strict]{chngpage}
- \setboolean{@bidituftefloat@changepage}{false}
-}
-\newboolean{@bidituftefloat@odd@page}
-\setboolean{@bidituftefloat@odd@page}{true}
-\newcommand*{\@bidituftefloat@checkoddpage}{%
- \checkoddpage%
- \ifthenelse{\boolean{@bidituftefloat@changepage}}{%
- \ifoddpage%
- \setboolean{@bidituftefloat@odd@page}{true}%
- \else%
- \setboolean{@bidituftefloat@odd@page}{false}%
- \fi%
- }{%
- \ifcpoddpage%
- \setboolean{@bidituftefloat@odd@page}{true}%
- \else%
- \setboolean{@bidituftefloat@odd@page}{false}%
- \fi%
- }%
-}
-\newlength{\@bidituftefloat@overhang}% used by the fullwidth environment and the running heads
-\newlength{\@bidituftefloat@fullwidth}
-\newlength{\@bidituftefloat@caption@fill}
-\newcommand{\bidituftefloatRecalculate}{%
- \setlength{\@bidituftefloat@overhang}{\marginparwidth}
- \addtolength{\@bidituftefloat@overhang}{\marginparsep}
-
- \setlength{\@bidituftefloat@fullwidth}{\textwidth}
- \addtolength{\@bidituftefloat@fullwidth}{\marginparsep}
- \addtolength{\@bidituftefloat@fullwidth}{\marginparwidth}
-
- \setlength{\@bidituftefloat@caption@fill}{\textwidth}
- \addtolength{\@bidituftefloat@caption@fill}{\marginparsep}
-}
-\AtBeginDocument{\bidituftefloatRecalculate}
-\RequirePackage{optparams}% provides multiple optional arguments for commands
-\RequirePackage{placeins}
-\newsavebox{\@bidituftefloat@margin@floatbox}
-\newenvironment{@bidituftefloat@margin@float}[2][-1.2ex]%
- {\FloatBarrier% process all floats before this point so the figure/table numbers stay in order.
- \begin{lrbox}{\@bidituftefloat@margin@floatbox}%
- \begin{minipage}{\marginparwidth}%
- \@bidituftefloat@caption@font%
- \def\@captype{#2}%
- \hbox{}\vspace*{#1}%
- \@bidituftefloat@caption@justification%
- \@bidituftefloat@margin@par%
- \noindent%
- }
- {\end{minipage}%
- \end{lrbox}%
- \marginpar{\usebox{\@bidituftefloat@margin@floatbox}}%
- }
-\newenvironment{marginfigure}[1][-1.2ex]%
- {\begin{@bidituftefloat@margin@float}[#1]{figure}}
- {\end{@bidituftefloat@margin@float}}
-\newenvironment{margintable}[1][-1.2ex]%
- {\begin{@bidituftefloat@margin@float}[#1]{table}}
- {\end{@bidituftefloat@margin@float}}
-\newcommand*{\@bidituftefloat@justification@autodetect}{\justifying}%
-
-\newcommand{\@bidituftefloat@float@debug@info}{}% contains debug info generated as the float is processed
-\newcommand{\@bidituftefloat@float@debug}[1]{% adds debug info to the queue for output
- \ifthenelse{\equal{\@bidituftefloat@float@debug@info}{}}%
- {\def\@bidituftefloat@float@debug@info{#1}}%
- {\g@addto@macro\@bidituftefloat@float@debug@info{\MessageBreak#1}}%
-}
-\newcommand{\floatalignment}{x}% holds the current float alignment (t, b, h, p)
-\newcommand{\setfloatalignment}[1]{\global\def\floatalignment{#1}\@bidituftefloat@float@debug{Forcing position: [#1]}}% manually sets the float alignment
-\newboolean{@bidituftefloat@float@recto}
-\newcommand{\forcerectofloat}{\gsetboolean{@bidituftefloat@float@recto}{true}\@bidituftefloat@float@debug{Forcing page: [recto]}}
-\newcommand{\forceversofloat}{\gsetboolean{@bidituftefloat@float@recto}{false}\@bidituftefloat@float@debug{Forcing page: [verso]}}
-\newsavebox{\@bidituftefloat@figure@box}
-\newsavebox{\@bidituftefloat@caption@box}
-\let\@bidituftefloat@orig@float\@float
-\let\@bidituftefloat@orig@endfloat\end@float
-\newlength{\@bidituftefloat@caption@vertical@offset}
-\setlength{\@bidituftefloat@caption@vertical@offset}{0pt}
-\newcommand{\@bidituftefloat@stored@shortcaption}{}
-\newcommand{\@bidituftefloat@stored@caption}{}
-\newcommand{\@bidituftefloat@stored@label}{}
-\long\def\@bidituftefloat@caption[#1][#2]#3{%
- \ifthenelse{\isempty{#1}}%
- {\gdef\@bidituftefloat@stored@shortcaption{#3}}%
- {\gdef\@bidituftefloat@stored@shortcaption{#1}}%
- \gsetlength{\@bidituftefloat@caption@vertical@offset}{-#2}% we want a positive offset to lower captions
- \gdef\@bidituftefloat@stored@caption{#3}%
-}
-\newcommand{\@bidituftefloat@label}[1]{%
- \gdef\@bidituftefloat@stored@label{#1}%
-}
-\newcommand{\@bidituftefloat@fps}{}
-\newboolean{@bidituftefloat@float@star}
-\newlength{\@bidituftefloat@float@contents@width}
-\newenvironment{@bidituftefloat@float}[3][htbp]%
- {% begin @bidituftefloat@float
- % Should this float be full-width or just text-width?
- \ifthenelse{\equal{#3}{star}}%
- {\gsetboolean{@bidituftefloat@float@star}{true}}%
- {\gsetboolean{@bidituftefloat@float@star}{false}}%
- % Check page side (recto/verso) and store detected value -- can be overriden in environment contents
- \@bidituftefloat@checkoddpage%
- \ifthenelse{\boolean{@bidituftefloat@odd@page}}%
- {\gsetboolean{@bidituftefloat@float@recto}{true}\@bidituftefloat@float@debug{Detected page: [recto/odd]}}%
- {\gsetboolean{@bidituftefloat@float@recto}{false}\@bidituftefloat@float@debug{Detected page: [verso/even]}}%
- % If the float placement specifier is 'b' and only 'b', then bottom-align the mini-pages, otherwise top-align them.
- \renewcommand{\@bidituftefloat@fps}{#1}%
- \@bidituftefloat@float@debug{Allowed positions: [#1]}%
- \ifthenelse{\equal{#1}{b}\OR\equal{#1}{B}}%
- {\renewcommand{\floatalignment}{b}\@bidituftefloat@float@debug{Presumed position: [bottom]}}%
- {\renewcommand{\floatalignment}{t}\@bidituftefloat@float@debug{Presumed position: [top]}}%
- % Capture the contents of the \caption and \label commands to use later
- \global\let\@bidituftefloat@orig@caption\caption%
- \global\let\@bidituftefloat@orig@label\label%
- \renewcommand{\caption}{\optparams{\@bidituftefloat@caption}{[][0pt]}}%
- \renewcommand{\label}[1]{\@bidituftefloat@label{##1}}%
- % Handle subfigure package compatibility
- \ifthenelse{\boolean{@bidituftefloat@packages@subfigure}}{%
- % don't move the label while inside a \subfigure or \subtable command
- \global\let\label\@bidituftefloat@orig@label%
- }{}% subfigure package is not loaded
- \@bidituftefloat@orig@float{#2}[#1]%
- \ifthenelse{\boolean{@bidituftefloat@float@star}}%
- {\setlength{\@bidituftefloat@float@contents@width}{\@bidituftefloat@fullwidth}}%
- {\setlength{\@bidituftefloat@float@contents@width}{\textwidth}}%
- \begin{lrbox}{\@bidituftefloat@figure@box}%
- \begin{minipage}[\floatalignment]{\@bidituftefloat@float@contents@width}\hbox{}%
- }{% end @bidituftefloat@float
- \par\hbox{}\vspace{-\baselineskip}\ifthenelse{\prevdepth>0}{\vspace{-\prevdepth}}{}% align baselines of boxes
- \end{minipage}%
- \end{lrbox}%
- % build the caption box
- \begin{lrbox}{\@bidituftefloat@caption@box}%
- \begin{minipage}[\floatalignment]{\marginparwidth}\hbox{}%
- \ifthenelse{\NOT\equal{\@bidituftefloat@stored@caption}{}}{\@bidituftefloat@orig@caption[\@bidituftefloat@stored@shortcaption]{\@bidituftefloat@stored@caption}}{}%
- \ifthenelse{\NOT\equal{\@bidituftefloat@stored@label}{}}{\@bidituftefloat@orig@label{\@bidituftefloat@stored@label}}{}%
- \par\vspace{-\prevdepth}%% TODO: DOUBLE-CHECK FOR SAFETY
- \end{minipage}%
- \end{lrbox}%
- % now typeset the stored boxes
- \begin{fullwidth}%
- \begin{minipage}[\floatalignment]{\linewidth}%
- \ifthenelse{\boolean{@bidituftefloat@float@star}}%
- {\@bidituftefloat@float@fullwidth[\@bidituftefloat@caption@vertical@offset]{\@bidituftefloat@figure@box}{\@bidituftefloat@caption@box}}%
- {\@bidituftefloat@float@textwidth[\@bidituftefloat@caption@vertical@offset]{\@bidituftefloat@figure@box}{\@bidituftefloat@caption@box}}%
- \end{minipage}%
- \end{fullwidth}%
- \@bidituftefloat@orig@endfloat% end original LaTeX float environment
- % output debug info
- \ifthenelse{\boolean{@bidituftefloat@debug}}{%
- \typeout{^^J^^J----------- bidituftefloat package float information ----------}%
- \ifthenelse{\equal{\@bidituftefloat@stored@label}{}}%
- {\typeout{Warning: Float unlabeled!}}%
- {\typeout{Float label: [\@bidituftefloat@stored@label]}}%
- \typeout{Page number: [\thepage]}%
- \def\MessageBreak{^^J}%
- \typeout{\@bidituftefloat@float@debug@info}%
- \ifthenelse{\boolean{@bidituftefloat@symmetric}}%
- {\typeout{Symmetric: [true]}}%
- {\typeout{Symmetric: [false]}}%
- \typeout{----------------------------------------------------^^J^^J}%
- }{}%
- % reset commands and temp boxes and captions
- \gdef\@bidituftefloat@float@debug@info{}%
- \let\caption\@bidituftefloat@orig@caption%
- \let\label\@bidituftefloat@orig@label%
- \begin{lrbox}{\@bidituftefloat@figure@box}\hbox{}\end{lrbox}%
- \begin{lrbox}{\@bidituftefloat@caption@box}\hbox{}\end{lrbox}%
- \gdef\@bidituftefloat@stored@shortcaption{}%
- \gdef\@bidituftefloat@stored@caption{}%
- \gdef\@bidituftefloat@stored@label{}%
- \gsetlength{\@bidituftefloat@caption@vertical@offset}{0pt}% reset caption offset
- }
-\newcommand{\@bidituftefloat@float@textwidth}[3][0pt]{%
- \ifthenelse{\NOT\boolean{@bidituftefloat@symmetric}\OR\boolean{@bidituftefloat@float@recto}}{%
- % asymmetric or page is odd, so caption is on the right
- \hbox{%
- \usebox{#2}%
- \hspace{\marginparsep}%
- \smash{\raisebox{#1}{\usebox{#3}}}%
- }
- \@bidituftefloat@float@debug{Caption position: [right]}%
- }{% symmetric pages and page is even, so caption is on the left
- \hbox{%
- \smash{\raisebox{#1}{\usebox{#3}}}%
- \hspace{\marginparsep}%
- \usebox{#2}%
- }
- \@bidituftefloat@float@debug{Caption position: [left]}%
- }%
-}
-\newcommand{\@bidituftefloat@float@fullwidth}[3][0pt]{%
- \ifthenelse{\equal{\floatalignment}{b}}%
- {% place caption above figure
- \ifthenelse{\NOT\boolean{@bidituftefloat@symmetric}\OR\boolean{@bidituftefloat@float@recto}}%
- {\hfill\smash{\raisebox{#1}{\usebox{#3}}}\par\usebox{#2}\@bidituftefloat@float@debug{Caption position: [above right]}}% caption on the right
- {\smash{\raisebox{#1}{\usebox{#3}}}\hfill\par\usebox{#2}\@bidituftefloat@float@debug{Caption position: [above left]}}% caption on the left
- }{% place caption below figure
- \ifthenelse{\NOT\boolean{@bidituftefloat@symmetric}\OR\boolean{@bidituftefloat@float@recto}}%
- {\usebox{#2}\par\hfill\smash{\raisebox{#1}{\usebox{#3}}}\@bidituftefloat@float@debug{Caption position: [below right]}}% caption on the right
- {\usebox{#2}\par\smash{\raisebox{#1}{\usebox{#3}}}\hfill\@bidituftefloat@float@debug{Caption position: [below left]}}% caption on the left
- }%
-}
-\renewenvironment{figure}[1][htbp]%
- {\ifvmode\else\unskip\fi\begin{@bidituftefloat@float}[#1]{figure}{}}
- {\end{@bidituftefloat@float}}
-\renewenvironment{table}[1][htbp]
- {\ifvmode\else\unskip\fi\begin{@bidituftefloat@float}[#1]{table}{}}
- {\end{@bidituftefloat@float}}
-\renewenvironment{figure*}[1][htbp]%
- {\ifvmode\else\unskip\fi\begin{@bidituftefloat@float}[#1]{figure}{star}}
- {\end{@bidituftefloat@float}}
-\renewenvironment{table*}[1][htbp]%
- {\ifvmode\else\unskip\fi\begin{@bidituftefloat@float}[#1]{table}{star}}
- {\end{@bidituftefloat@float}}
-\newenvironment{fullwidth}
- {\ifthenelse{\boolean{@bidituftefloat@symmetric}}%
- {\ifthenelse{\boolean{@bidituftefloat@changepage}}{\begin{adjustwidth*}{}{-\@bidituftefloat@overhang}}{\begin{adjustwidth}[]{}{-\@bidituftefloat@overhang}}}%
- {\begin{adjustwidth}{}{-\@bidituftefloat@overhang}}%
- }%
- {\ifthenelse{\boolean{@bidituftefloat@symmetric}}%
- {\ifthenelse{\boolean{@bidituftefloat@changepage}}{\end{adjustwidth*}}{\end{adjustwidth}}}%
- {\end{adjustwidth}}%
- }
-\long\def\@caption#1[#2]#3{%
- \par%
- \addcontentsline{\csname ext@#1\endcsname}{#1}%
- {\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}%
- \begingroup%
- \@parboxrestore%
- \if@minipage%
- \@setminipage%
- \fi%
- \@bidituftefloat@caption@font\@bidituftefloat@caption@justification%
- \noindent\csname fnum@#1\endcsname: \ignorespaces#3\par%
- %\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
- \endgroup}
-%%
-\DeclareRobustCommand{\@biditufteheading@newlinetospace}{%
- \@ifstar{\@biditufteheading@newlinetospace@i}{\@biditufteheading@newlinetospace@i}%
-}
-\def\@biditufteheading@newlinetospace@i{%
- \ifdim\lastskip>\z@\else\space\fi
- \ignorespaces%
-}
-\DeclareRobustCommand{\newlinetospace}[1]{%
- \let\@biditufteheading@orig@cr\\% save the original meaning of \\
- \def\\{\@biditufteheading@newlinetospace}% turn \\ and \\* into \space
- \let\newline\\% turn \newline into \space
- #1%
- \let\\\@biditufteheading@orig@cr% revert to original meaning of \\
-}
-\RequirePackage{fancyhdr}
-\pagestyle{fancy}
-\AtBeginDocument{%
- \ifthenelse{\boolean{@bidituftefloat@symmetric}}
- {\fancyhfoffset[LE,RO]{\@bidituftefloat@overhang}}
- {\fancyhfoffset[RE,RO]{\@bidituftefloat@overhang}}
-}
-\renewcommand{\headrulewidth}{0pt}
-\renewcommand{\footrulewidth}{0pt}
-\fancyhf{} % clear header and footer fields
- \ifthenelse{\boolean{@bidituftefloat@symmetric}}
- {\fancyhead[LE]{\thepage\quad\textsl{\newlinetospace{\plainauthor}}}%
- \fancyhead[RO]{\textsl{\newlinetospace{\plaintitle}}\quad\thepage}}%
- {\fancyhead[RE,RO]{\textsl{\newlinetospace{\plaintitle}}\quad\thepage}}%
-\fancypagestyle{plain}{
- \fancyhf{} % clear header and footer fields
- % Uncomment the following five lines of code if you want the opening page
- % of the chapter to express the folio in the lower outside corner.
- % \ifthenelse{\boolean{@bidituftefloat@symmetric}}
- % {\fancyfoot[LE,RO]{\thepage}}
- % {\fancyfoot[RE,RO]{\thepage}}
-}
-\fancypagestyle{empty}{
- \fancyhf{} % clear header and footer fields
-}
-\def\morefloats{% provides a total of 52 floats
- \ifthenelse{\isundefined{\bx@S}}{%
- \bidituftefloatDebugInfoNL{Adding 34 more float slots.}
- \newinsert\bx@S
- \newinsert\bx@T
- \newinsert\bx@U
- \newinsert\bx@V
- \newinsert\bx@W
- \newinsert\bx@X
- \newinsert\bx@Y
- \newinsert\bx@Z
- \newinsert\bx@a
- \newinsert\bx@b
- \newinsert\bx@c
- \newinsert\bx@d
- \newinsert\bx@e
- \newinsert\bx@f
- \newinsert\bx@g
- \newinsert\bx@h
- \newinsert\bx@i
- \newinsert\bx@j
- \newinsert\bx@k
- \newinsert\bx@l
- \newinsert\bx@m
- \newinsert\bx@n
- \newinsert\bx@o
- \newinsert\bx@p
- \newinsert\bx@q
- \newinsert\bx@r
- \newinsert\bx@s
- \newinsert\bx@t
- \newinsert\bx@u
- \newinsert\bx@v
- \newinsert\bx@w
- \newinsert\bx@x
- \newinsert\bx@y
- \newinsert\bx@z
- \gdef\@freelist{\@elt\bx@A\@elt\bx@B\@elt\bx@C\@elt\bx@D\@elt\bx@E
- \@elt\bx@F\@elt\bx@G\@elt\bx@H\@elt\bx@I\@elt\bx@J
- \@elt\bx@K\@elt\bx@L\@elt\bx@M\@elt\bx@N
- \@elt\bx@O\@elt\bx@P\@elt\bx@Q\@elt\bx@R
- \@elt\bx@S\@elt\bx@T\@elt\bx@U\@elt\bx@V
- \@elt\bx@W\@elt\bx@X\@elt\bx@Y\@elt\bx@Z
- \@elt\bx@a\@elt\bx@b\@elt\bx@c\@elt\bx@d\@elt\bx@e
- \@elt\bx@f\@elt\bx@g\@elt\bx@h\@elt\bx@i\@elt\bx@j
- \@elt\bx@k\@elt\bx@l\@elt\bx@m\@elt\bx@n
- \@elt\bx@o\@elt\bx@p\@elt\bx@q\@elt\bx@r
- \@elt\bx@s\@elt\bx@t\@elt\bx@u\@elt\bx@v
- \@elt\bx@w\@elt\bx@x\@elt\bx@y\@elt\bx@z}%
- }{% we've already added another 34 floats, so we'll add 26 more, but that's it!
- \ifthenelse{\isundefined{\bx@AA}}{%
- \bidituftefloatDebugInfoNL{Adding 26 more float slots.}
- \newinsert\bx@AA
- \newinsert\bx@BB
- \newinsert\bx@CC
- \newinsert\bx@DD
- \newinsert\bx@EE
- \newinsert\bx@FF
- \newinsert\bx@GG
- \newinsert\bx@HH
- \newinsert\bx@II
- \newinsert\bx@JJ
- \newinsert\bx@KK
- \newinsert\bx@LL
- \newinsert\bx@MM
- \newinsert\bx@NN
- \newinsert\bx@OO
- \newinsert\bx@PP
- \newinsert\bx@QQ
- \newinsert\bx@RR
- \newinsert\bx@SS
- \newinsert\bx@TT
- \newinsert\bx@UU
- \newinsert\bx@VV
- \newinsert\bx@WW
- \newinsert\bx@XX
- \newinsert\bx@YY
- \newinsert\bx@ZZ
- \gdef\@freelist{\@elt\bx@A\@elt\bx@B\@elt\bx@C\@elt\bx@D\@elt\bx@E
- \@elt\bx@F\@elt\bx@G\@elt\bx@H\@elt\bx@I\@elt\bx@J
- \@elt\bx@K\@elt\bx@L\@elt\bx@M\@elt\bx@N
- \@elt\bx@O\@elt\bx@P\@elt\bx@Q\@elt\bx@R
- \@elt\bx@S\@elt\bx@T\@elt\bx@U\@elt\bx@V
- \@elt\bx@W\@elt\bx@X\@elt\bx@Y\@elt\bx@Z
- \@elt\bx@a\@elt\bx@b\@elt\bx@c\@elt\bx@d\@elt\bx@e
- \@elt\bx@f\@elt\bx@g\@elt\bx@h\@elt\bx@i\@elt\bx@j
- \@elt\bx@k\@elt\bx@l\@elt\bx@m\@elt\bx@n
- \@elt\bx@o\@elt\bx@p\@elt\bx@q\@elt\bx@r
- \@elt\bx@s\@elt\bx@t\@elt\bx@u\@elt\bx@v
- \@elt\bx@w\@elt\bx@x\@elt\bx@y\@elt\bx@z
- \@elt\bx@AA\@elt\bx@BB\@elt\bx@CC\@elt\bx@DD\@elt\bx@EE
- \@elt\bx@FF\@elt\bx@GG\@elt\bx@HH\@elt\bx@II\@elt\bx@JJ
- \@elt\bx@KK\@elt\bx@LL\@elt\bx@MM\@elt\bx@NN
- \@elt\bx@OO\@elt\bx@PP\@elt\bx@QQ\@elt\bx@RR
- \@elt\bx@SS\@elt\bx@TT\@elt\bx@UU\@elt\bx@VV
- \@elt\bx@WW\@elt\bx@XX\@elt\bx@YY\@elt\bx@ZZ}%
- }{%
- \bidituftefloatError{You may only call \string\morefloats\space twice. See the\MessageBreak bidituftefloat package documentation for other workarounds}
- {There are already 78 float slots allocated. Try using \string\FloatBarrier\space or\MessageBreak \string\clearpage\space to place some floats before creating more.}
- }%
- }%
-}
-\newboolean{@bidituftefloat@packages@subfigure}
-\setboolean{@bidituftefloat@packages@subfigure}{false}
-\AtBeginDocument{%
- \@ifpackageloaded{subfigure}
- {\gsetboolean{@bidituftefloat@packages@subfigure}{true}}
- {\gsetboolean{@bidituftefloat@packages@subfigure}{false}}%
-}
-\AtBeginDocument{%
- \@ifpackageloaded{float}{%
- % Save the redefined float environment (instead of the LaTeX float environment)
- \let\@bidituftefloat@orig@float\@float
- \let\@bidituftefloat@orig@endfloat\end@float
-
- % Define Tuftian float styles (with the caption in the margin)
- \newcommand{\floatc@bidituftefloatplain}[2]{%
- \begin{lrbox}{\@bidituftefloat@caption@box}%
- \begin{minipage}[\floatalignment]{\marginparwidth}\hbox{}%
- \@bidituftefloat@caption@font{\@fs@cfont #1:} #2\par%
- \end{minipage}%
- \end{lrbox}%
- \smash{\hspace{\@bidituftefloat@caption@fill}\usebox{\@bidituftefloat@caption@box}}%
- }
- \newcommand{\fs@bidituftefloatplain}{%
- \def\@fs@cfont{\@bidituftefloat@caption@font}%
- \let\@fs@capt\floatc@bidituftefloatplain%
- \def\@fs@pre{}%
- \def\@fs@post{}%
- \def\@fs@mid{}%
- \let\@fs@iftopcapt\iftrue%
- }
- \let\fs@bidituftefloatplaintop=\fs@bidituftefloatplain
- \let\floatc@bidituftefloatplaintop=\floatc@bidituftefloatplain
- \newcommand\floatc@bidituftefloatruled[2]{%
- {\@fs@cfont #1} #2\par%
- }
- \newcommand\fs@bidituftefloatruled{%
- \def\@fs@cfont{\@bidituftefloat@caption@font}%
- \let\@fs@capt\floatc@bidituftefloatplain%
- \def\@fs@pre{\hrule height.8pt depth0pt width\textwidth \kern2pt}%
- \def\@fs@post{\kern2pt\hrule width\textwidth\relax}%
- \def\@fs@mid{}%
- \let\@fs@iftopcapt\iftrue%
- }
- \newcommand\fs@bidituftefloatboxed{%
- \def\@fs@cfont{}%
- \let\@fs@capt\floatc@bidituftefloatplain%
- \def\@fs@pre{%
- \setbox\@currbox\vbox{\hbadness10000
- \moveleft3.4pt\vbox{\advance\hsize by6.8pt
- \hrule \hbox to\hsize{\vrule\kern3pt
- \vbox{\kern3pt\box\@currbox\kern3pt}\kern3pt\vrule}\hrule}}
- }%
- \def\@fs@mid{\kern2pt}%
- \def\@fs@post{}%
- \let\@fs@iftopcapt\iftrue%
- }
- }{%
- % Nothing to do
- }
-}
-\AtBeginDocument{%
- \@ifpackageloaded{algorithm}{%
- % Set the float style to the Tuftian version
- \ifthenelse{\equal{\ALG@floatstyle}{plain}\OR\equal{\ALG@floatstyle}{ruled}\OR\equal{\ALG@floatstyle}{boxed}}{%
- \bidituftefloatInfoNL{Switching algorithm float style from \ALG@floatstyle\MessageBreak to bidituftefloat\ALG@floatstyle}%
- \floatstyle{bidituftefloat\ALG@floatstyle}%
- \restylefloat{algorithm}%
- }{}%
- }{%
- % Nothing to do
- }
-}
-\PassOptionsToPackage{caption=false}{subfig}
-\endinput
-%%
-%% End of file `bidituftefloat.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidituftegeneralstructure.sty b/Master/texmf-dist/tex/xelatex/bidi/bidituftegeneralstructure.sty
deleted file mode 100644
index d7597651323..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidituftegeneralstructure.sty
+++ /dev/null
@@ -1,147 +0,0 @@
-%%
-%% This is file `bidituftegeneralstructure.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidituftegeneralstructure.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bidituftegeneralstructure}[2011/06/18 v0.1
-bidi implementation of tufte general structure]
-\renewcommand\small{%
- \@setfontsize\small\@ixpt{12}%
- \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
- \abovedisplayshortskip \z@ \@plus2\p@
- \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
- \def\@listi{\leftmargin\leftmargini
- \topsep 4\p@ \@plus2\p@ \@minus2\p@
- \parsep 2\p@ \@plus\p@ \@minus\p@
- \itemsep \parsep}%
- \belowdisplayskip \abovedisplayskip
-}
-\renewcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
-\renewcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
-\renewcommand\large{\@setfontsize\large\@xipt{15}}
-\renewcommand\Large{\@setfontsize\Large\@xiipt{16}}
-\renewcommand\LARGE{\@setfontsize\LARGE\@xivpt{18}}
-\renewcommand\huge{\@setfontsize\huge\@xxpt{30}}
-\renewcommand\Huge{\@setfontsize\Huge{24}{36}}
-\setlength\leftmargini {1pc}
-\setlength\leftmarginii {1pc}
-\setlength\leftmarginiii {1pc}
-\setlength\leftmarginiv {1pc}
-\setlength\leftmarginv {1pc}
-\setlength\leftmarginvi {1pc}
-\setlength\labelsep {.5pc}
-\setlength\labelwidth {\leftmargini}
-\addtolength\labelwidth{-\labelsep}
-\setlength{\parindent}{1.0pc}%
-\setlength{\parskip}{0pt}%
-\RequirePackage{ragged2e}
-\setlength{\RaggedRightRightskip}{\z@ plus 0.08\hsize}
-\newcommand{\@bidituftegeneralstructure@reset@par}{%
- \setlength{\RaggedRightParindent}{1.0pc}%
- \setlength{\JustifyingParindent}{1.0pc}%
- \setlength{\parindent}{1pc}%
- \setlength{\parskip}{0pt}%
-}
-\@bidituftegeneralstructure@reset@par
-\RequirePackage{paralist}
-\def\@compactenum@{%
- \expandafter\list\csname label\@enumctr\endcsname{%
- \usecounter{\@enumctr}%
- \rightmargin=2em% added this
- \parsep\plparsep
- \itemsep\plitemsep
- \topsep\pltopsep
- \partopsep\plpartopsep
- \def\makelabel##1{\hss\llap{##1}}}}
-%%
-\providecommand\newthought[1]{%
- \addvspace{1.0\baselineskip plus 0.5ex minus 0.2ex}%
- \noindent\textbf{#1}%
-}
-%%
-\renewenvironment{verse}
- {\let\\\@centercr
- \list{}{\itemsep \z@
- \itemindent -1pc%
- \listparindent\itemindent
- \rightmargin \leftmargin
- \advance\leftmargin 1pc}%
- \small%
- \item\relax}
- {\endlist}
-\renewenvironment{quotation}
- {\list{}{\listparindent 1pc%
- \itemindent \listparindent
- \rightmargin \leftmargin
- \parsep \z@ \@plus\p@}%
- \small%
- \item\relax\noindent\ignorespaces}
- {\endlist}
-\renewenvironment{quote}
- {\list{}{\rightmargin\leftmargin}%
- \small%
- \item\relax}
- {\endlist}
-\renewcommand*\descriptionlabel[1]{\hspace\labelsep\normalfont\em #1}
-%%
-\@ifundefined{chapter}%
- {\renewcommand\bibsection{\section*{\refname}}}
- {\@ifundefined{NAT@sectionbib}%
- {\renewcommand\bibsection{\chapter{\bibname}}}
- {\renewcommand\bibsection{\section*{\bibname}}}}
-\RequirePackage{multicol}
-\renewenvironment{theindex}{%
-\@ifundefined{chapter}%
- {\section*{\indexname}}%
- {\chapter{\indexname}}%
- \begin{fullwidth}%
- \small%
- \parskip0pt%
- \parindent0pt%
- \let\item\@idxitem%
- \begin{multicols}{3}%
-}{%
- \end{multicols}%
- \end{fullwidth}%
-}
-\AtBeginDocument{%
-\renewcommand\@idxitem{\par\hangindent \if@RTL-\fi2em}%
-\renewcommand\subitem{\par\hangindent \if@RTL-\fi3em\hspace*{1em}}%
-\renewcommand\subsubitem{\par\hangindent \if@RTL-\fi4em\hspace*{2em}}}
-\renewcommand\indexspace{\par\addvspace{1.0\baselineskip plus 0.5ex minus 0.2ex}\relax}%
-\newcommand{\lettergroup}[1]{}% swallow the letter heading in the index
-\endinput
-%%
-%% End of file `bidituftegeneralstructure.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidituftehyperref.sty b/Master/texmf-dist/tex/xelatex/bidi/bidituftehyperref.sty
deleted file mode 100644
index 08985efbd8f..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidituftehyperref.sty
+++ /dev/null
@@ -1,64 +0,0 @@
-%%
-%% This is file `bidituftehyperref.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidituftehyperref.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bidituftehyperref}[2011/06/18 v0.1
-bidi implementation of tufte hyperref]
-%%
-\RequirePackage[usenames,dvipsnames,svgnames]{xcolor}%
-\newboolean{@bidituftehyperref@loadhyper}
-\setboolean{@bidituftehyperref@loadhyper}{true}
-\DeclareOption{hyper}{\setboolean{@bidituftehyperref@loadhyper}{true}}
-\DeclareOption{nohyper}{\setboolean{@bidituftehyperref@loadhyper}{false}}
-\ProcessOptions
-%% Loads the hyperref package and sets some default options.
-\newcommand{\bidituftehyperrefLoadHyperref}{%
-\RequirePackage[hyperfootnotes=false,colorlinks=true]{hyperref}
- \hypersetup{%
- bookmarksdepth = section,
- citecolor = DarkGreen,
- linkcolor = DarkBlue,
- urlcolor = DarkGreen,
- }%
-}
-\ifthenelse{\boolean{@bidituftehyperref@loadhyper}}{%
- \bidituftehyperrefLoadHyperref%
-}{% hyperfootnotes override our modifications to the \footnote* and \@footnote* commands.
- \PassOptionsToPackage{hyperfootnotes=false}{hyperref}
-}
-\endinput
-%%
-%% End of file `bidituftehyperref.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidituftesidenote.sty b/Master/texmf-dist/tex/xelatex/bidi/bidituftesidenote.sty
deleted file mode 100644
index e5ec1b063dc..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidituftesidenote.sty
+++ /dev/null
@@ -1,550 +0,0 @@
-%%
-%% This is file `bidituftesidenote.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidituftesidenote.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bidituftesidenote}[2015/04/30 v0.3
-bidi implementation of tufte sidenote]
-\RequirePackage{xifthen}
-\RequirePackage{ragged2e}
-\RequirePackage{setspace}
-\RequirePackage{biditools}
-\def\bidituftesidenotemarginpar{%
- \ifhmode
- \@bsphack
- \@floatpenalty -\@Mii
- \else
- \@floatpenalty-\@Miii
- \fi
- \ifinner
- \@parmoderr
- \@floatpenalty\z@
- \else
- \@next\@currbox\@freelist{}{}%
- \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
- {\@floatpenalty\z@
- \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
- \fi
- \@ifnextchar [\@bidituftesidenotexmpar\@bidituftesidenoteympar}
-\long\def\@bidituftesidenotexmpar[#1]#2{%
- \@bidituftesidenotesavemarbox\@marbox{#1}%
- \@bidituftesidenotesavemarbox\@currbox{#2}%
- \@xympar}
-\long\def\@bidituftesidenoteympar#1{%
- \@bidituftesidenotesavemarbox\@marbox{#1}%
- \global\setbox\@currbox\copy\@marbox
- \@xympar}
-\long\def \@bidituftesidenotesavemarbox #1#2{%
- \global\setbox #1%
- \color@vbox
- \vtop{%
- \hsize\marginparwidth
- \@parboxrestore
- \@bidituftesidenotemarginparreset
- #2%
- \@minipagefalse
- \outer@nobreak
- }%
- \color@endbox
-}
-\def \@bidituftesidenotemarginparreset {%
- \reset@font
- \normalsize
- \@minipagetrue
- \everypar{\@minipagefalse\everypar{}\if@RTL@footnote\beginR\else\beginL\fi}%
-}
-\def\LTRbidituftesidenotemarginpar{%
- \ifhmode
- \@bsphack
- \@floatpenalty -\@Mii
- \else
- \@floatpenalty-\@Miii
- \fi
- \ifinner
- \@parmoderr
- \@floatpenalty\z@
- \else
- \@next\@currbox\@freelist{}{}%
- \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
- {\@floatpenalty\z@
- \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
- \fi
- \@ifnextchar [\@LTRbidituftesidenotexmpar\@LTRbidituftesidenoteympar}
-\long\def\@LTRbidituftesidenotexmpar[#1]#2{%
- \@LTRbidituftesidenotesavemarbox\@marbox{#1}%
- \@LTRbidituftesidenotesavemarbox\@currbox{#2}%
- \@xympar}
-\long\def\@LTRbidituftesidenoteympar#1{%
- \@LTRbidituftesidenotesavemarbox\@marbox{#1}%
- \global\setbox\@currbox\copy\@marbox
- \@xympar}
-\long\def \@LTRbidituftesidenotesavemarbox #1#2{%
- \global\setbox #1%
- \color@vbox
- \vtop{%
- \hsize\marginparwidth
- \@parboxrestore
- \@LTRbidituftesidenotemarginparreset
- #2%
- \@minipagefalse
- \outer@nobreak
- }%
- \color@endbox
-}
-\def \@LTRbidituftesidenotemarginparreset {%
- \reset@font
- \normalsize
- \@minipagetrue
- \everypar{\@minipagefalse\everypar{}\beginL}%
-}
-\def\RTLbidituftesidenotemarginpar{%
- \ifhmode
- \@bsphack
- \@floatpenalty -\@Mii
- \else
- \@floatpenalty-\@Miii
- \fi
- \ifinner
- \@parmoderr
- \@floatpenalty\z@
- \else
- \@next\@currbox\@freelist{}{}%
- \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
- {\@floatpenalty\z@
- \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
- \fi
- \@ifnextchar [\@RTLbidituftesidenotexmpar\@RTLbidituftesidenoteympar}
-\long\def\@RTLbidituftesidenotexmpar[#1]#2{%
- \@RTLbidituftesidenotesavemarbox\@marbox{#1}%
- \@RTLbidituftesidenotesavemarbox\@currbox{#2}%
- \@xympar}
-\long\def\@RTLbidituftesidenoteympar#1{%
- \@RTLbidituftesidenotesavemarbox\@marbox{#1}%
- \global\setbox\@currbox\copy\@marbox
- \@xympar}
-\long\def \@RTLbidituftesidenotesavemarbox #1#2{%
- \global\setbox #1%
- \color@vbox
- \vtop{%
- \hsize\marginparwidth
- \@parboxrestore
- \@RTLbidituftesidenotemarginparreset
- #2%
- \@minipagefalse
- \outer@nobreak
- }%
- \color@endbox
-}
-\def \@RTLbidituftesidenotemarginparreset {%
- \reset@font
- \normalsize
- \@minipagetrue
- \everypar{\@minipagefalse\everypar{}\beginR}%
-}
-\newcommand{\@bidituftesidenote@marginfont}{\normalfont\footnotesize}
-\newcommand*{\@bidituftesidenote@sidenote@font}{\@bidituftesidenote@marginfont}
-\newcommand*{\@bidituftesidenote@marginnote@font}{\@bidituftesidenote@marginfont}
-\newcommand*{\@bidituftesidenote@citation@font}{\@bidituftesidenote@marginfont}
-\newcommand*{\@biditufteLTRsidenote@citation@font}{\@bidituftesidenote@marginfont}
-\newcommand*{\setsidenotefont}[1]{\renewcommand*{\@bidituftesidenote@sidenote@font}{#1}}
-\newcommand*{\setmarginnotefont}[1]{\renewcommand*{\@bidituftesidenote@marginnote@font}{#1}}
-\newcommand*{\setcitationfont}[1]{\renewcommand*{\@bidituftesidenote@citation@font}{#1}}
-\newcommand*{\setLTRcitationfont}[1]{\renewcommand*{\@biditufteLTRsidenote@citation@font}{#1}}
-\newcommand*{\@bidituftesidenote@sidenote@justification}{\@bidituftesidenote@justification@autodetect}
-\newcommand*{\@bidituftesidenote@marginnote@justification}{\@bidituftesidenote@justification@autodetect}
-\newcommand*{\@bidituftesidenote@citation@justification}{\@bidituftesidenote@justification@autodetect}
-\newcommand*{\@bidituftesidenote@justification@autodetect}{\justifying}%
-\newcommand{\@bidituftesidenote@margin@par}{%
- \setlength{\RaggedRightParindent}{0.5pc}%
- \setlength{\JustifyingParindent}{0.5pc}%
- \setlength{\parindent}{0.5pc}%
- \setlength{\parskip}{0pt}%
-}
-%%
-\@ifundefined{gsetlength}{%
-\newcommand*{\gsetlength}[2]{%
- \setlength{#1}{#2}%
- \global#1=#1\relax%
-}%
-}{}
-%%
-\@ifundefined{gsetboolean}{%
-\newcommand*{\gsetboolean}[2]{% based on code from ifthen pkg
- \lowercase{\def\@tempa{#2}}%
- \@ifundefined{@tempswa\@tempa}%
- {\PackageError{ifthen}{You can only set a boolean to `true' or `false'}\@ehc}%
- {\@ifundefined{#1\@tempa}%
- {\PackageError{ifthen}{Boolean #1 undefined}\@ehc}%
- {\global\csname#1\@tempa\endcsname}%
- }%
-}%
-}{}
-%%
-\catcode`\Q=3
-\def\@bidituftesidenote@trim@spaces#1{%
- % Use grouping to emulate a multi-token afterassignment queue
- \begingroup%
- % Put `\toks 0 {' into the afterassignment queue
- \aftergroup\toks\aftergroup0\aftergroup{%
- % Apply \trimb to the replacement text of #1, adding a leading
- % \noexpand to prevent brace stripping and to serve another purpose
- % later.
- \expandafter\@bidituftesidenote@trim@b\expandafter\noexpand#1Q Q}%
- % Transfer the trimmed text back into #1.
- \edef#1{\the\toks0}%
-}
-\def\@bidituftesidenote@trim@b#1 Q{\@bidituftesidenote@trim@c#1Q}
-\def\@bidituftesidenote@trim@c#1Q#2{\afterassignment\endgroup \vfuzz\the\vfuzz#1}
-\catcode`\Q=11
-%%
-
-\RequirePackage{natbib}
-\RequirePackage{bibentry} % allows bibitems to be typeset outside thebibliography environment
-\renewcommand\BR@b@bibitem[2][]{%
- \ifthenelse{\isempty{#1}}%
- {\BR@bibitem{#2}}%
- {\BR@bibitem[#1]{#2}}%
- \BR@c@bibitem{#2}%
-}
-\bidi@AtEndPreamble{\nobibliography*} % pre-loads the bibliography keys
-%%
-\newcounter{@bidituftesidenote@num@bibkeys}%
-\newcommand{\@bidituftesidenote@normal@cite}[2][0pt]{%
- % Snag the last bibentry in the list for later comparison
- \let\@temp@last@bibkey\@empty%
- \@for\@temp@bibkey:=#2\do{\let\@temp@last@bibkey\@temp@bibkey}%
- \sidenote[][#1]{%
- % Loop through all the bibentries, separating them with semicolons and spaces
- \normalsize\normalfont\@bidituftesidenote@citation@font%
- \setcounter{@bidituftesidenote@num@bibkeys}{0}%
- \@for\@temp@bibkeyx:=#2\do{%
- \ifthenelse{\equal{\@temp@last@bibkey}{\@temp@bibkeyx}}%
- {\ifthenelse{\equal{\value{@bidituftesidenote@num@bibkeys}}{0}}{}{and\ }%
- \@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
- \bibentry{\@temp@bibkeyx}}%
- {\@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
- \bibentry{\@temp@bibkeyx};\ }%
- \stepcounter{@bidituftesidenote@num@bibkeys}%
- }%
- }%
-}
-\newcommand{\@biditufteLTRsidenote@normal@cite}[2][0pt]{%
- % Snag the last bibentry in the list for later comparison
- \let\@temp@last@bibkey\@empty%
- \@for\@temp@bibkey:=#2\do{\let\@temp@last@bibkey\@temp@bibkey}%
- \LTRsidenote[][#1]{%
- % Loop through all the bibentries, separating them with semicolons and spaces
- \normalsize\normalfont\@biditufteLTRsidenote@citation@font%
- \setcounter{@bidituftesidenote@num@bibkeys}{0}%
- \@for\@temp@bibkeyx:=#2\do{%
- \ifthenelse{\equal{\@temp@last@bibkey}{\@temp@bibkeyx}}%
- {\ifthenelse{\equal{\value{@bidituftesidenote@num@bibkeys}}{0}}{}{and\ }%
- \@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
- \bibentry{\@temp@bibkeyx}}%
- {\@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
- \bibentry{\@temp@bibkeyx};\ }%
- \stepcounter{@bidituftesidenote@num@bibkeys}%
- }%
- }%
-}
-\newcommand{\@biditufteRTLsidenote@normal@cite}[2][0pt]{%
- % Snag the last bibentry in the list for later comparison
- \let\@temp@last@bibkey\@empty%
- \@for\@temp@bibkey:=#2\do{\let\@temp@last@bibkey\@temp@bibkey}%
- \RTLsidenote[][#1]{%
- % Loop through all the bibentries, separating them with semicolons and spaces
- \normalsize\normalfont\@bidituftesidenote@citation@font%
- \setcounter{@bidituftesidenote@num@bibkeys}{0}%
- \@for\@temp@bibkeyx:=#2\do{%
- \ifthenelse{\equal{\@temp@last@bibkey}{\@temp@bibkeyx}}%
- {\ifthenelse{\equal{\value{@bidituftesidenote@num@bibkeys}}{0}}{}{and\ }%
- \@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
- \bibentry{\@temp@bibkeyx}}%
- {\@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
- \bibentry{\@temp@bibkeyx};\ }%
- \stepcounter{@bidituftesidenote@num@bibkeys}%
- }%
- }%
-}
-%%
-\gdef\@bidituftesidenote@citations{}% list of cite keys
-\newcommand\@bidituftesidenote@add@citation[1]{\relax% adds a new bibkey to the list of cite keys
- \ifx\@bidituftesidenote@citations\@empty\else
- \g@addto@macro\@bidituftesidenote@citations{,}% separate by commas
- \fi
- \g@addto@macro\@bidituftesidenote@citations{#1}
-}
-\newcommand{\@bidituftesidenote@print@citations}[1][0pt]{% puts the citations in a margin note
- % Snag the last bibentry in the list for later comparison
- \let\@temp@last@bibkey\@empty%
- \@for\@temp@bibkey:=\@bidituftesidenote@citations\do{\let\@temp@last@bibkey\@temp@bibkey}%
- \marginpar{%
- \hbox{}\vspace*{#1}%
- \@bidituftesidenote@citation@font%
- \@bidituftesidenote@citation@justification%
- \@bidituftesidenote@margin@par% use parindent and parskip settings for marginal text
- \vspace*{-1\baselineskip}%
- % Loop through all the bibentries, separating them with semicolons and spaces
- \setcounter{@bidituftesidenote@num@bibkeys}{0}%
- \@for\@temp@bibkeyx:=\@bidituftesidenote@citations\do{%
- \ifthenelse{\equal{\@temp@last@bibkey}{\@temp@bibkeyx}}%
- {\ifthenelse{\equal{\value{@bidituftesidenote@num@bibkeys}}{0}}{}{and\ }%
- \@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
- \bibentry{\@temp@bibkeyx}}%
- {\@bidituftesidenote@trim@spaces\@temp@bibkeyx% trim spaces around bibkey
- \bibentry{\@temp@bibkeyx};\ }%
- \stepcounter{@bidituftesidenote@num@bibkeys}%
- }%
- }%
-}
-%%
-\newcommand{\@bidituftesidenote@sidenote@citations}{}% contains list of \cites in sidenote
-\newcommand{\@bidituftesidenote@infootnote@cite}[1]{%
- \@bidituftesidenote@add@citation{#1}
-}
-%%
-\let\cite\@bidituftesidenote@normal@cite
-\let\LTRcite\@biditufteLTRsidenote@normal@cite
-\let\RTLcite\@biditufteRTLsidenote@normal@cite
-%%
-\RequirePackage{optparams}% for our new sidenote commands -- provides multiple optional arguments for commands
-\providecommand{\footnotelayout}{\@bidituftesidenote@sidenote@font\@bidituftesidenote@sidenote@justification}
-\renewcommand{\footnotelayout}{\@bidituftesidenote@sidenote@font\@bidituftesidenote@sidenote@justification}
-\bidi@patch@AfterPackage{bidi}{\long\def\@makefntext#1{\@textsuperscript{\@bidituftesidenote@sidenote@font\tiny\@thefnmark}\,\footnotelayout#1}}
-\bidi@patch@AfterPackage{bidi}{\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\footnotesize\@thefnmark}}}}
-\providecommand*{\multiplefootnotemarker}{3sp}
-\providecommand*{\multfootsep}{,}
-\bidi@patch@AfterPackage{bidi}{%
-\renewcommand{\@footnotemark}{%
- \leavevmode%
- \ifhmode%
- \edef\@x@sf{\the\spacefactor}%
- \@bidituftesidenote@check@multiple@sidenotes%
- \nobreak%
- \fi%
- \@makefnmark%
- \ifhmode\spacefactor\@x@sf\fi%
- \relax%
-}%
-}
-\newcommand{\@bidituftesidenote@check@multiple@sidenotes}{%
- \ifdim\lastkern=\multiplefootnotemarker\relax%
- \edef\@x@sf{\the\spacefactor}%
- \unkern%
- \textsuperscript{\multfootsep}%
- \spacefactor\@x@sf\relax%
- \fi
-}
-\bidi@patch@AfterPackage{bidi}{%
-\renewcommand\@footnotetext[2][0pt]{%
- \bidituftesidenotemarginpar{%
- \hbox{}\vspace*{#1}%
- \def\baselinestretch {\setspace@singlespace}%
- \reset@font\footnotesize%
- \@bidituftesidenote@margin@par% use parindent and parskip settings for marginal text
- \vspace*{-1\baselineskip}\noindent%
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark%
- }%
- \color@begingroup%
- \@makefntext{%
- \ignorespaces#2%
- }%
- \color@endgroup%
- }%
-}%
-\renewcommand\@LTRfootnotetext[2][0pt]{%
- \LTRbidituftesidenotemarginpar{%
- \hbox{}\vspace*{#1}%
- \def\baselinestretch {\setspace@singlespace}%
- \reset@font\footnotesize%
- \@bidituftesidenote@margin@par% use parindent and parskip settings for marginal text
- \vspace*{-1\baselineskip}\noindent%
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark%
- }%
- \color@begingroup%
- \@makefntext{%
- \ignorespaces#2%
- }%
- \color@endgroup%
- }%
-}%
-\renewcommand\@RTLfootnotetext[2][0pt]{%
- \RTLbidituftesidenotemarginpar{%
- \hbox{}\vspace*{#1}%
- \def\baselinestretch {\setspace@singlespace}%
- \reset@font\footnotesize%
- \@bidituftesidenote@margin@par% use parindent and parskip settings for marginal text
- \vspace*{-1\baselineskip}\noindent%
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark%
- }%
- \color@begingroup%
- \@makefntext{%
- \ignorespaces#2%
- }%
- \color@endgroup%
- }%
-}%
-}
-\newlength{\@bidituftesidenote@sidenote@vertical@offset}
-\setlength{\@bidituftesidenote@sidenote@vertical@offset}{0pt}
-\long\def\@bidituftesidenote@sidenote[#1][#2]#3{%
- \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
- \gdef\@bidituftesidenote@citations{}% clear out any old citations
- \ifthenelse{\NOT\isempty{#2}}{%
- \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{#2}%
- }{%
- \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{0pt}%
- }%
- \ifthenelse{\isempty{#1}}{%
- % no specific footnote number provided
- \stepcounter\@mpfn%
- \protected@xdef\@thefnmark{\thempfn}%
- \@footnotemark\@footnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
- }{%
- % specific footnote number provided
- \begingroup%
- \csname c@\@mpfn\endcsname #1\relax%
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup%
- \@footnotemark\@footnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
- }%
- \@bidituftesidenote@print@citations% print any citations
- \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite command
- \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRcite command
- \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLcite command
- \unskip\ignorespaces% remove extra white space
- \kern-\multiplefootnotemarker% remove \kern left behind by sidenote
- \kern\multiplefootnotemarker\relax% add new \kern here to replace the one we yanked
-}
-\long\def\@LTRbidituftesidenote@sidenote[#1][#2]#3{%
- \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
- \gdef\@bidituftesidenote@citations{}% clear out any old citations
- \ifthenelse{\NOT\isempty{#2}}{%
- \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{#2}%
- }{%
- \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{0pt}%
- }%
- \ifthenelse{\isempty{#1}}{%
- % no specific footnote number provided
- \stepcounter\@mpfn%
- \protected@xdef\@thefnmark{\thempfn}%
- \@footnotemark\@LTRfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
- }{%
- % specific footnote number provided
- \begingroup%
- \csname c@\@mpfn\endcsname #1\relax%
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup%
- \@footnotemark\@LTRfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
- }%
- \@bidituftesidenote@print@citations% print any citations
- \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite command
- \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRcite command
- \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLcite command
- \unskip\ignorespaces% remove extra white space
- \kern-\multiplefootnotemarker% remove \kern left behind by sidenote
- \kern\multiplefootnotemarker\relax% add new \kern here to replace the one we yanked
-}
-\long\def\@RTLbidituftesidenote@sidenote[#1][#2]#3{%
- \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
- \gdef\@bidituftesidenote@citations{}% clear out any old citations
- \ifthenelse{\NOT\isempty{#2}}{%
- \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{#2}%
- }{%
- \gsetlength{\@bidituftesidenote@sidenote@vertical@offset}{0pt}%
- }%
- \ifthenelse{\isempty{#1}}{%
- % no specific footnote number provided
- \stepcounter\@mpfn%
- \protected@xdef\@thefnmark{\thempfn}%
- \@footnotemark\@RTLfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
- }{%
- % specific footnote number provided
- \begingroup%
- \csname c@\@mpfn\endcsname #1\relax%
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup%
- \@footnotemark\@RTLfootnotetext[\@bidituftesidenote@sidenote@vertical@offset]{#3}%
- }%
- \@bidituftesidenote@print@citations% print any citations
- \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite command
- \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRcite command
- \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLcite command
- \unskip\ignorespaces% remove extra white space
- \kern-\multiplefootnotemarker% remove \kern left behind by sidenote
- \kern\multiplefootnotemarker\relax% add new \kern here to replace the one we yanked
-}
-\newcommand{\sidenote}{\optparams{\@bidituftesidenote@sidenote}{[][0pt]}}
-\newcommand{\LTRsidenote}{\optparams{\@LTRbidituftesidenote@sidenote}{[][0pt]}}
-\newcommand{\RTLsidenote}{\optparams{\@RTLbidituftesidenote@sidenote}{[][0pt]}}
-\bidi@patch@AfterPackage{bidi}{%
-\renewcommand{\footnote}{\optparams{\@bidituftesidenote@sidenote}{[][0pt]}}%
-\renewcommand{\LTRfootnote}{\optparams{\@LTRbidituftesidenote@sidenote}{[][0pt]}}%
-\renewcommand{\RTLfootnote}{\optparams{\@RTLbidituftesidenote@sidenote}{[][0pt]}}%
-}
-%%
-\newcommand\marginnote[2][0pt]{%
- \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
- \gdef\@bidituftesidenote@citations{}% clear out any old citations
- \bidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote@marginnote@font\@bidituftesidenote@marginnote@justification\@bidituftesidenote@margin@par\vspace*{-1\baselineskip}\noindent #2}%
- \@bidituftesidenote@print@citations% print any citations
- \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite command
- \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRcite command
- \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLcite command
-}
-\newcommand\LTRmarginnote[2][0pt]{%
- \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
- \gdef\@bidituftesidenote@citations{}% clear out any old citations
- \LTRbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote@marginnote@font\@bidituftesidenote@marginnote@justification\@bidituftesidenote@margin@par\vspace*{-1\baselineskip}\noindent #2}%
- \@bidituftesidenote@print@citations% print any citations
- \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite command
- \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRcite command
- \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLcite command
-}
-\newcommand\RTLmarginnote[2][0pt]{%
- \let\cite\@bidituftesidenote@infootnote@cite% use the in-sidenote \cite command
- \gdef\@bidituftesidenote@citations{}% clear out any old citations
- \RTLbidituftesidenotemarginpar{\hbox{}\vspace*{#1}\@bidituftesidenote@marginnote@font\@bidituftesidenote@marginnote@justification\@bidituftesidenote@margin@par\vspace*{-1\baselineskip}\noindent #2}%
- \@bidituftesidenote@print@citations% print any citations
- \let\cite\@bidituftesidenote@normal@cite% go back to using normal in-text \cite command
- \let\LTRcite\@biditufteLTRsidenote@normal@cite% go back to using normal in-text \LTRcite command
- \let\RTLcite\@biditufteRTLsidenote@normal@cite% go back to using normal in-text \RTLcite command
-}
-\endinput
-%%
-%% End of file `bidituftesidenote.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidituftetitle.sty b/Master/texmf-dist/tex/xelatex/bidi/bidituftetitle.sty
deleted file mode 100644
index 97cd2ec1eda..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidituftetitle.sty
+++ /dev/null
@@ -1,177 +0,0 @@
-%%
-%% This is file `bidituftetitle.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidituftetitle.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bidituftetitle}[2011/06/18 v0.1
-bidi implementation of tufte title]
-\RequirePackage{biditools}
-%%
-\newboolean{@bidituftetitle@titlepage}
-\DeclareOption{titlepage}{\setboolean{@bidituftetitle@titlepage}{true}}
-\DeclareOption{notitlepage}{\setboolean{@bidituftetitle@titlepage}{false}}
-\@ifclassloaded{book}{%
-\ExecuteOptions{titlepage}}{%
-\@ifclassloaded{article}{%
-\ExecuteOptions{notitlepage}}%
-{}}
-\ProcessOptions
-%%
-\newcommand{\plaintitle}{}% plain-text-only title
-\newcommand{\plainauthor}{}% plain-text-only author
-\newcommand{\plainpublisher}{}% plain-text-only publisher
-\newcommand{\thanklesstitle}{}% full title text minus \thanks{}
-\newcommand{\thanklessauthor}{}% full author text minus \thanks{}
-\newcommand{\thanklesspublisher}{}% full publisher minus \thanks{}
-\newcommand{\@publisher}{}% full publisher with \thanks{}
-\newcommand{\thedate}{\today}
-\bidi@patch@AfterPackage{bidi}{%
-\renewcommand{\thanks}[1]{\footnote{#1}}
-\renewcommand{\LTRthanks}[1]{\LTRfootnote{#1}}
-\renewcommand{\RTLthanks}[1]{\RTLfootnote{#1}}
-}
-\renewcommand{\title}[2][]{%
- \gdef\@title{#2}%
- \begingroup%
- % TODO store contents of \thanks command
- \renewcommand{\thanks}[1]{}% swallow \thanks contents
- \renewcommand{\LTRthanks}[1]{}% swallow \LTRthanks contents
- \renewcommand{\RTLthanks}[1]{}% swallow \RTLthanks contents
- \protected@xdef\thanklesstitle{#2}%
- \endgroup%
- \ifthenelse{\isempty{#1}}%
- {\renewcommand{\plaintitle}{\thanklesstitle}}% use thankless title
- {\renewcommand{\plaintitle}{#1}}% use provided plain-text title
- \@ifundefined{hypersetup}%
- {}% hyperref is not loaded; do nothing
- {\hypersetup{pdftitle={\plaintitle}}}% set the PDF metadata title
-}
-\let\@author\@empty% suppress default latex.ltx ``no author'' warning
-\renewcommand{\author}[2][]{%
- \ifthenelse{\isempty{#2}}{}{\gdef\@author{#2}}%
- \begingroup%
- % TODO store contents of \thanks command
- \renewcommand{\thanks}[1]{}% swallow \thanks contents
- \renewcommand{\LTRthanks}[1]{}% swallow \LTRthanks contents
- \renewcommand{\RTLthanks}[1]{}% swallow \RTLthanks contents
- \protected@xdef\thanklessauthor{#2}%
- \endgroup%
- \ifthenelse{\isempty{#1}}%
- {\renewcommand{\plainauthor}{\thanklessauthor}}% use thankless author
- {\renewcommand{\plainauthor}{#1}}% use provided plain-text author
- \@ifundefined{hypersetup}%
- {}% hyperref is not loaded; do nothing
- {\hypersetup{pdfauthor={\plainauthor}}}% set the PDF metadata author
-}
-\renewcommand{\date}[1]{%
- \gdef\@date{#1}%
- \begingroup%
- % TODO store contents of \thanks command
- \renewcommand{\thanks}[1]{}% swallow \thanks contents
- \renewcommand{\LTRthanks}[1]{}% swallow \LTRthanks contents
- \renewcommand{\RTLthanks}[1]{}% swallow \RTLthanks contents
- \protected@xdef\thedate{#1}%
- \endgroup%
-}
-%%
-\newcommand{\publisher}[2][]{%
- \gdef\@publisher{#2}%
- \begingroup%
- \renewcommand{\thanks}[1]{}% swallow \thanks contents
- \renewcommand{\LTRthanks}[1]{}% swallow \LTRthanks contents
- \renewcommand{\RTLthanks}[1]{}% swallow \RTLthanks contents
- \protected@xdef\thanklesspublisher{#2}%
- \endgroup%
- \ifthenelse{\isempty{#1}}
- {\renewcommand{\plainpublisher}{\thanklesspublisher}}% use thankless publisher
- {\renewcommand{\plainpublisher}{#1}}% use provided plain-text publisher
-}
-%%
-\newcommand{\maketitlepage}[0]{%
- \cleardoublepage%
- {%
- \bfseries%
- \begin{fullwidth}%
- \fontsize{18}{20}\selectfont\par\noindent\thanklessauthor%
- \vspace{11.5pc}%
- \fontsize{36}{40}\selectfont\par\noindent\thanklesstitle%
- \vfill%
- \fontsize{14}{16}\selectfont\par\noindent\thanklesspublisher%
- \end{fullwidth}%
- }
- \thispagestyle{empty}%
- \clearpage%
-}
-%%
-\bidi@AfterEndPreamble{%
-\renewcommand{\maketitle}{%
- \newpage%
- \global\@topnum\z@% prevent floats from being placed at the top of the page
- \begingroup%
- \setlength{\parindent}{0pt}%
- \setlength{\parskip}{4pt}%
- \let\@@title\@empty%
- \let\@@author\@empty%
- \let\@@date\@empty%
- \gdef\@@title{\LARGE\itshape\@title\par}%
- \gdef\@@author{\Large\itshape\@author\par}%
- \gdef\@@date{\Large\itshape\@date\par}%
- \@@title%
- \@@author%
- \@@date%
- \endgroup%
- \thispagestyle{plain}% suppress the running head
-}%
-}
-%%
-\bidi@AfterEndPreamble{%
-\ifthenelse{\boolean{@bidituftetitle@titlepage}}
- {\renewcommand{\maketitle}{\maketitlepage}}
- {}
-}
-%%
-\def\cleardoublepage{\clearpage\if@twoside\ifodd\c@page\else
- \hbox{}
- %\vspace*{\fill}
- %\begin{center}
- % This page intentionally contains only this sentence.
- %\end{center}
- %\vspace{\fill}
- \thispagestyle{empty}
- \newpage
- \if@twocolumn\hbox{}\newpage\fi\fi\fi}
-\endinput
-%%
-%% End of file `bidituftetitle.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidituftetoc.sty b/Master/texmf-dist/tex/xelatex/bidi/bidituftetoc.sty
deleted file mode 100644
index 29ac4d0d3cb..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bidituftetoc.sty
+++ /dev/null
@@ -1,174 +0,0 @@
-%%
-%% This is file `bidituftetoc.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bidituftetoc.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bidituftetoc}[2011/06/17 v0.1
-bidi implementation of tufte toc]
-\RequirePackage{titlesec,titletoc,xifthen,biditools}
-\newcommand{\@bidituftetoc@pkgname}{bidituftetoc}
-\newcommand{\bidituftetocError}[2]{\PackageError{\@bidituftetoc@pkgname}{#1}{#2}}
-%%
-\setcounter{secnumdepth}{-1}
-\newboolean{@bidituftetoc@toc}
-\setboolean{@bidituftetoc@toc}{true}
-\DeclareOption{notoc}{\setboolean{@bidituftetoc@toc}{false}}
-\DeclareOption{toc}{\setboolean{@bidituftetoc@toc}{true}}
-\ProcessOptions
-%%
-\bidi@patch@AfterPackage{bidi}{%
-\titleformat{\chapter}%
- [display]% shape
- {\relax\ifthenelse{\NOT\boolean{@bidituftefloat@symmetric}}{\begin{fullwidth}}{}}% format applied to label+text
- {\itshape\huge\thechapter}% label
- {0pt}% horizontal separation between label and title body
- {\huge\rmfamily\itshape}% before the title body
- [\ifthenelse{\NOT\boolean{@bidituftefloat@symmetric}}{\end{fullwidth}}{}]% after the title body
-\titleformat{\section}%
- [hang]% shape
- {\normalfont\Large\itshape}% format applied to label+text
- {\thesection}% label
- {1em}% horizontal separation between label and title body
- {}% before the title body
- []% after the title body
-\titleformat{\subsection}%
- [hang]% shape
- {\normalfont\large\itshape}% format applied to label+text
- {\thesubsection}% label
- {1em}% horizontal separation between label and title body
- {}% before the title body
- []% after the title body
-\titleformat{\paragraph}%
- [runin]% shape
- {\normalfont\itshape}% format applied to label+text
- {\theparagraph}% label
- {1em}% horizontal separation between label and title body
- {}% before the title body
- []% after the title body
-\titlespacing*{\chapter}{0pt}{50pt}{40pt}
-\titlespacing*{\section}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
-\titlespacing*{\subsection}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus.2ex}
-}
-\renewcommand\subsubsection{%
- \bidituftetocError{\noexpand\subsubsection is undefined by this class.%
- \MessageBreak See Robert Bringhurst's _The Elements of
- \MessageBreak Typographic Style_, section 4.2.2.
- \MessageBreak \noexpand\subsubsection was used}
- {From Bringhurst's _The Elements of Typographic Style_, section 4.2.2: Use as
- \MessageBreak many levels of headings as you need, no more and no fewer. Also see the many
- \MessageBreak related threads on Ask E.T. at http://www.edwardbidituftetoc.com/.}
-}
-\renewcommand\subparagraph{%
- \bidituftetocError{\noexpand\subparagraph is undefined by this class.%
- \MessageBreak See Robert Bringhurst's _The Elements of
- \MessageBreak Typographic Style_, section 4.2.2.
- \MessageBreak \noexpand\subparagraph was used}
- {From Bringhurst's _The Elements of Typographic Style_, section 4.2.2: Use as
- \MessageBreak many levels of headings as you need, no more and no fewer. Also see the many
- \MessageBreak related threads on Ask E.T. at http://www.edwardbidituftetoc.com/.}
-}
-\ifthenelse{\boolean{@bidituftetoc@toc}}{%
- \bidi@patch@AfterPackage{bidi}{%
- \titlecontents{part}% FIXME
- [0em] % distance from left margin
- {\vspace{1.5\baselineskip}\begin{fullwidth}\LARGE\rmfamily\itshape} % above (global formatting of entry)
- {\contentslabel{2em}} % before w/label (label = ``II'')
- {} % before w/o label
- {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
- [\end{fullwidth}] % after
- \titlecontents{chapter}%
- [0em] % distance from left margin
- {\vspace{1.5\baselineskip}\begin{fullwidth}\LARGE\rmfamily\itshape} % above (global formatting of entry)
- {\hspace*{0em}\contentslabel{2em}} % before w/label (label = ``2'')
- {\hspace*{0em}} % before w/o label
- {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
- [\end{fullwidth}] % after
- \titlecontents{section}% FIXME
- [0em] % distance from left margin
- {\vspace{0\baselineskip}\begin{fullwidth}\Large\rmfamily\itshape} % above (global formatting of entry)
- {\hspace*{2em}\contentslabel{2em}} % before w/label (label = ``2.6'')
- {\hspace*{2em}} % before w/o label
- {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
- [\end{fullwidth}] % after
- \titlecontents{subsection}% FIXME
- [0em] % distance from left margin
- {\vspace{0\baselineskip}\begin{fullwidth}\large\rmfamily\itshape} % above (global formatting of entry)
- {\hspace*{4em}\contentslabel{4em}} % before w/label (label = ``2.6.1'')
- {\hspace*{4em}} % before w/o label
- {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
- [\end{fullwidth}] % after
- \titlecontents{paragraph}% FIXME
- [0em] % distance from left margin
- {\vspace{0\baselineskip}\begin{fullwidth}\normalsize\rmfamily\itshape} % above (global formatting of entry)
- {\hspace*{6em}\contentslabel{2em}} % before w/label (label = ``2.6.0.0.1'')
- {\hspace*{6em}} % before w/o label
- {\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
- [\end{fullwidth}] % after
-}%
-}{}
-%%
-\renewcommand\listoffigures{%
- \@ifundefined{chapter}%
- {\section*{\listfigurename}}%
- {\chapter*{\listfigurename}}%
- \@starttoc{lof}%
-}
-\renewcommand\listoftables{%
- \@ifundefined{chapter}%
- {\section*{\listtablename}}%
- {\chapter*{\listtablename}}%
- \@starttoc{lot}%
-}
-\newcommand{\@bidituftetoc@lof@line}[2]{%
- % #1 is the figure/table number and its caption text
- % #2 is the page number on which the figure/table appears
- \leftskip 0.0em
- \rightskip 0em
- \parfillskip 0em plus 1fil
- \parindent 0.0em
- \@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima 2.0em
- \if@RTL\advance\rightskip\@tempdima\else\advance\leftskip\@tempdima\fi
- \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {#1}\nobreak\qquad\nobreak#2%
- \par%
-}
-\renewcommand*\l@figure{\@bidituftetoc@lof@line}
-\let\l@table\l@figure
-\endinput
-%%
-%% End of file `bidituftetoc.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/boek-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/boek-xetex-bidi.def
deleted file mode 100644
index 8ec18643792..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/boek-xetex-bidi.def
+++ /dev/null
@@ -1,215 +0,0 @@
-%%
-%% This is file `boek-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,boek-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{boek-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for boek class for XeTeX engine]
-\renewenvironment{theindex}{%
- \if@twocolumn
- \@restonecolfalse
- \else
- \@restonecoltrue
- \fi
- \columnseprule \z@
- \columnsep 35\p@
- \twocolumn[\@makeschapterhead{\indexname}]%
- \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
- \thispagestyle{plain}\parindent\z@
- \parskip\z@ \@plus .3\p@\relax
- \let\item\@idxitem
- }{%
- \if@restonecol\onecolumn\else\clearpage\fi}
-\renewcommand*\head@style{%
- \interlinepenalty \@M
- \hyphenpenalty=\@M \exhyphenpenalty=\@M
- \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
-\renewcommand*\@regtocline[3]{%
- \ifnum #1>\c@tocdepth
- \else
- \vskip\z@\@plus.2\p@
- {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
- \if@RTL\rightskip\else\leftskip\fi\unitindent
- \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
- \parfillskip\z@
- \@tempdima\unitindent
- \parindent\z@
- \leavevmode
- \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
- \hskip 1em \nobreak{\slshape #3}\par
- }%
- \fi}
-\if@oldtoc
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \begingroup
- \setlength\@tempdima{3em}%
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \endgroup
- \fi}
-\else
- \renewcommand*\l@part{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus \p@}%
- \@regtocline{0}%
- \fi}
-\fi
-\if@oldtoc
-\renewcommand*\l@chapter[2]{%
- \addpenalty{-\@highpenalty}%
- \vskip 1.0em \@plus\p@
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \penalty\@highpenalty
- \endgroup}
-\else
- \renewcommand*\l@chapter{\@regtocline{0}}
-\fi
-\renewcommand*\left@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hrule\@width\unitindent
- \kern.4\baselineskip
-}
-\renewcommand*\right@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
- \kern.4\baselineskip}
-\renewenvironment{abstract}{%
- \titlepage
- \null\vfil
- \section*{\SectFont \abstractname}
- \noindent\ignorespaces}
- {\par\vfil\null\endtitlepage}
-\renewenvironment{thebibliography}[1]
- {\chapter*{\bibname}%
- \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
- \sloppy\clubpenalty4000\widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
-\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
-\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
-\renewcommand*\theequation{%
- \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
-\renewcommand*\thefigure{%
- \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
-\renewcommand*\thetable{%
- \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
-\renewcommand*\maketitle{%
- \begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \long\def\@makefntext##1{\parindent\z@
- \def\labelitemi{\textendash}\@revlabeltrue
- \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \if@compatibility\setcounter{page}{0}\fi
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- \TitleFont
- {\LARGE \def\\{\penalty -\@M}
- \if@allcaps
- \expandafter\uc@nothanks\@title\thanks\relax
- \else
- \@title
- \fi\par}%
- \vskip 3em%
- {\large
- \lineskip .75em \parindent\z@
- \begin{tabular}[t]{c}%
- \if@allcaps
- \expandafter\uc@authornothanks\@author\and\relax
- \else
- \@author
- \fi
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large
- \if@allcaps
- \uppercase\expandafter{\@date}%
- \else
- \@date
- \fi\par}%
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\endinput
-%%
-%% End of file `boek-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/boek3-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/boek3-xetex-bidi.def
deleted file mode 100644
index e85a3c7c88f..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/boek3-xetex-bidi.def
+++ /dev/null
@@ -1,215 +0,0 @@
-%%
-%% This is file `boek3-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,boek3-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{boek3-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for boek3 class for XeTeX engine]
-\renewenvironment{theindex}{%
- \if@twocolumn
- \@restonecolfalse
- \else
- \@restonecoltrue
- \fi
- \columnseprule \z@
- \columnsep 35\p@
- \twocolumn[\@makeschapterhead{\indexname}]%
- \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
- \thispagestyle{plain}\parindent\z@
- \parskip\z@ \@plus .3\p@\relax
- \let\item\@idxitem
- }{%
- \if@restonecol\onecolumn\else\clearpage\fi}
-\renewcommand*\head@style{%
- \interlinepenalty \@M
- \hyphenpenalty=\@M \exhyphenpenalty=\@M
- \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
-\renewcommand*\@regtocline[3]{%
- \ifnum #1>\c@tocdepth
- \else
- \vskip\z@\@plus.2\p@
- {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
- \if@RTL\rightskip\else\leftskip\fi\unitindent
- \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
- \parfillskip\z@
- \@tempdima\unitindent
- \parindent\z@
- \leavevmode
- \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
- \hskip 1em \nobreak{\slshape #3}\par
- }%
- \fi}
-\if@oldtoc
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \begingroup
- \setlength\@tempdima{3em}%
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \endgroup
- \fi}
-\else
- \renewcommand*\l@part{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus \p@}%
- \@regtocline{0}%
- \fi}
-\fi
-\if@oldtoc
-\renewcommand*\l@chapter[2]{%
- \addpenalty{-\@highpenalty}%
- \vskip 1.0em \@plus\p@
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \penalty\@highpenalty
- \endgroup}
-\else
- \renewcommand*\l@chapter{\@regtocline{0}}
-\fi
-\renewenvironment{abstract}{%
- \titlepage
- \null\vfil
- \section*{\SectFont \abstractname}
- \noindent\ignorespaces}
- {\par\vfil\null\endtitlepage}
-\renewenvironment{thebibliography}[1]
- {\chapter*{\bibname}%
- \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
- \sloppy\clubpenalty4000\widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\renewcommand*\left@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hrule\@width\unitindent
- \kern.4\baselineskip
-}
-\renewcommand*\right@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
- \kern.4\baselineskip}
-\renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
-\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
-\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
-\renewcommand*\theequation{%
- \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
-\renewcommand*\thefigure{%
- \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
-\renewcommand*\thetable{%
- \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
-\renewcommand*\maketitle{%
- \begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \long\def\@makefntext##1{\parindent\z@
- \def\labelitemi{\textendash}\@revlabeltrue
- \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \if@compatibility\setcounter{page}{0}\fi
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- \TitleFont
- {\LARGE \def\\{\penalty -\@M}
- \if@allcaps
- \expandafter\uc@nothanks\@title\thanks\relax
- \else
- \@title
- \fi\par}%
- \vskip 3em%
- {\large
- \lineskip .75em \parindent\z@
- \begin{tabular}[t]{c}%
- \if@allcaps
- \expandafter\uc@authornothanks\@author\and\relax
- \else
- \@author
- \fi
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large
- \if@allcaps
- \uppercase\expandafter{\@date}%
- \else
- \@date
- \fi\par}%
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\endinput
-%%
-%% End of file `boek3-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/book-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/book-xetex-bidi.def
deleted file mode 100644
index ae51ce77e06..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/book-xetex-bidi.def
+++ /dev/null
@@ -1,251 +0,0 @@
-%%
-%% This is file `book-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,book-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{book-xetex-bidi.def}[2015/11/14 v0.9 bidi adaptations for standard book class for XeTeX engine]
-\renewenvironment{theindex}
- {\if@twocolumn
- \@restonecolfalse
- \else
- \@restonecoltrue
- \fi
- \columnseprule \z@
- \columnsep 35\p@
- \twocolumn[\@makeschapterhead{\indexname}]%
- \@mkboth{\MakeUppercase\indexname}%
- {\MakeUppercase\indexname}%
- \thispagestyle{plain}\parindent\z@
- \parskip\z@ \@plus .3\p@\relax
- \let\item\@idxitem}
- {\if@restonecol\onecolumn\else\clearpage\fi}
-\@ifclassloaded{bookest}{}{%
- \if@titlepage
- \renewcommand\maketitle{\begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \let \LTRfootnote \LTRthanks
- \let \RTLfootnote \RTLthanks
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- {\LARGE \@title \par}%
- \vskip 3em%
- {\large
- \lineskip .75em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large \@date \par}% % Set date in \large size.
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\else
-\renewcommand\maketitle{\par
- \begingroup
- \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext##1{\parindent 1em\noindent
- \hb@xt@1.8em{%
- \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@ % Prevents figures from going at top of page.
- \@maketitle
- \fi
- \thispagestyle{plain}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
- \begin{center}%
- \let \footnote \thanks
- \let \LTRfootnote \LTRthanks
- \let \RTLfootnote \RTLthanks
- {\LARGE \@title \par}%
- \vskip 1.5em%
- {\large
- \lineskip .5em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1em%
- {\large \@date}%
- \end{center}%
- \par
- \vskip 1.5em}
-\fi}
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \setlength\@tempdima{3em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \endgroup
- \fi}
-\renewcommand*\l@chapter[2]{%
- \ifnum \c@tocdepth >\m@ne
- \addpenalty{-\@highpenalty}%
- \vskip 1.0em \@plus\p@
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \penalty\@highpenalty
- \endgroup
- \fi}
-\renewcommand\left@footnoterule{%
- \kern-3\p@
- \hrule\@width.4\columnwidth
- \kern2.6\p@}
-\renewcommand\right@footnoterule{%
- \kern-3\p@
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern2.6\p@}
-\renewcommand\theequation
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
-\renewcommand \thefigure
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
-\renewcommand \thetable
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
-\renewcommand \thechapter {\@arabic\c@chapter}
-\renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
-\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
-\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
-\def\@makechapterhead#1{%
- \vspace*{50\p@}%
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
- \ifnum \c@secnumdepth >\m@ne
- \if@mainmatter
- \huge\bfseries \@chapapp\space \thechapter
- \par\nobreak
- \vskip 20\p@
- \fi
- \fi
- \interlinepenalty\@M
- \Huge \bfseries #1\par\nobreak
- \vskip 40\p@
- }}
-\def\@makeschapterhead#1{%
- \vspace*{50\p@}%
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
- \normalfont
- \interlinepenalty\@M
- \Huge \bfseries #1\par\nobreak
- \vskip 40\p@
- }}
-\renewcommand\backmatter{%
- \if@openright
- \cleardoublepage
- \else
- \clearpage
- \fi
- \@mainmatterfalse}
-\renewenvironment{thebibliography}[1]
- {\chapter*{\bibname}%
- \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy
- \clubpenalty4000
- \@clubpenalty \clubpenalty
- \widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\endinput
-%%
-%% End of file `book-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bookest-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/bookest-xetex-bidi.def
deleted file mode 100644
index d6a7e6dae58..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/bookest-xetex-bidi.def
+++ /dev/null
@@ -1,72 +0,0 @@
-%%
-%% This is file `bookest-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,bookest-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{bookest-xetex-bidi.def}[2010/07/25 v0.4 bidi adaptations for bookest class for XeTeX engine]
-\def\@makechapterhead#1{%
- \vspace*{20\p@}
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
- \ifnum \c@secnumdepth >\m@ne
- \if@mainmatter
- {\colorA\huge\scshape \@chapapp\space \thechapter}
- \par\nobreak
- \vskip 10\p@
- \fi
- \fi
- \interlinepenalty\@M
- {\colorB\hrule}
- \vskip 15\p@
- \if@RTL\begin{flushleft}\else\begin{flushright}\fi
- {\colorA\Huge \bfseries #1}\par\nobreak
- \if@RTL\end{flushleft}\else\end{flushright}\fi
- \vskip 5\p@
- {\colorB\hrule}
- \vskip 30\p@
- }}
-\def\@makeschapterhead#1{%
- \vspace*{20\p@}
- {\parindent \z@ \raggedright \normalfont
- {\colorB\hrule}
- \vskip 15\p@
- \begin{center}
- {\colorA\Huge \bfseries #1}\par\nobreak
- \end{center}
- \vskip 5\p@
- {\colorB\hrule}
- \vskip 30\p@
- }}
-\endinput
-%%
-%% End of file `bookest-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/breqn-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/breqn-xetex-bidi.def
deleted file mode 100644
index a1643f5fa6d..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/breqn-xetex-bidi.def
+++ /dev/null
@@ -1,94 +0,0 @@
-%%
-%% This is file `breqn-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,breqn-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{breqn-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for breqn package for XeTeX engine]
-\def\@dmath[#1]{\if@RTL\@RTLfalse\fi%
- \everydisplay\expandafter{\the\everydisplay \display@setup}%
- \if@noskipsec \leavevmode \fi
- \if@inlabel \leavevmode \global\@inlabelfalse \fi
- \if\eq@group\else\eq@prelim\fi
- \setkeys{breqn}{#1}%
- \the\eqstyle
- \eq@setnumber
- \begingroup
- \eq@setup@a
- \eq@startup
-}
-\def\@dgroup[#1]{\if@RTL\@RTLfalse\fi%
- \let\eq@group\@True \global\let\eq@GRP@first@dmath\@True
- \global\GRP@queue\@emptytoks \global\setbox\GRP@box\box\voidb@x
- \global\let\GRP@label\@empty
- \global\grp@wdL\z@\global\grp@wdR\z@\global\grp@wdT\z@
- \global\grp@linewidth\z@\global\grp@wdNum\z@
- \global\let\grp@eqs@numbered\@False
- \global\let\grp@aligned\@True
- \global\let\grp@shiftnumber\@False
- \eq@prelim
- \setkeys{breqn}{#1}%
- \if\grp@hasNumber \grp@setnumber \fi
-}
-\def\@dseries[#1]{\if@RTL\@RTLfalse\fi%
- \let\display@setup\dseries@display@setup
- % Question: should this be the default for dseries???
- \global\eq@wdCond\z@
- \@dmath[layout={M},#1]%
- \mathsurround\z@\@@math \penalty\@Mi
- \let\endmath\ends@math
- \def\premath{%
- \ifdim\lastskip<.3em \unskip
- \else\ifnum\lastpenalty<\@M \dquad\fi\fi
-}%
- \def\postmath{\unpenalty\eq@addpunct \penalty\intermath@penalty \dquad \@ignoretrue}%
-\ignorespaces
-}
-\def\eqnumform#1{\if@Latin\else\beginR\@RTLtrue\fi(#1\@@italiccorr)\if@Latin\else\endR\fi}
-\renewenvironment{dsuspend}{%
- \global\setbox\EQ@box\vbox\bgroup\if@Latin\else\@RTLtrue\fi \@parboxrestore
- \parshape 1 \displayindent \displaywidth\relax
- \hsize=\columnwidth \noindent\ignorespaces
-}{%
- \par\egroup
- \global\setbox\GRP@box\vbox{%
- \hbox{\copy\EQ@box\vtop{\unvbox\EQ@box}}%
- \unvbox\GRP@box
- }%
- \global\GRP@queue\@xp{\the\GRP@queue
- \@elt{\let\eq@isIntertext\@True}%
- }%
-}
-\endinput
-%%
-%% End of file `breqn-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/cals-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/cals-xetex-bidi.def
deleted file mode 100644
index 9588a84e9e7..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/cals-xetex-bidi.def
+++ /dev/null
@@ -1,73 +0,0 @@
-%%
-%% This is file `cals-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,cals-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{cals-xetex-bidi.def}[2013/05/28 v0.3 bidi adaptations for cals package for XeTeX engine]
-\renewenvironment{calstable}[1][c]{%
-\if@RTL\@RTLtabtrue\cals@activate@rtl\fi
- \if l#1%
- \if@RTLtab\leftskip\fill \rightskip\z@\else\leftskip\z@ \rightskip\fill\fi
- \else\if r#1%
- \if@RTLtab\leftskip\z@ \rightskip\fill\else\leftskip\fill \rightskip\z@\fi
- \else\if c#1%
- \leftskip\fill \rightskip\fill
- \fi\fi\fi
-\let\cals@thead@tokens=\relax
-\let\cals@tfoot@tokens=\relax
-\let\cals@tbreak@tokens=\relax
-\cals@tfoot@height=0pt \relax
-\let\cals@last@context=n%
-\let\cals@current@context=b%
-\parindent=0pt %
-\cals@setpadding{Ag}\cals@setcellprevdepth{Al}\cals@set@tohsize%
-%% Alignment inside is independent on center/flushright outside
-\parfillskip=0pt plus1fil\relax
-\let\cals@borderL=\relax
-\let\cals@borderR=\relax
-\let\cals@borderT=\relax
-\let\cals@borderB=\relax
-}{% End of the table
-\cals@tfoot@tokens\lastrule\@RTLtabfalse}
-
-\renewcommand\alignL{%
-\dimen0=\cals@paddingL \if@RTLtab\cals@paddingL=\dimen0 plus 1fill\else\cals@paddingL=\dimen0\fi \relax
-\dimen0=\cals@paddingR \cals@paddingR=\dimen0 \relax}
-
-\renewcommand\alignR{%
-\dimen0=\cals@paddingL \if@RTLtab\cals@paddingL=\dimen0\else\cals@paddingL=\dimen0 plus 1fill\fi\relax
-\dimen0=\cals@paddingR \cals@paddingR=\dimen0 \relax}
-\endinput
-%%
-%% End of file `cals-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def
deleted file mode 100644
index d4b984cb139..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def
+++ /dev/null
@@ -1,41 +0,0 @@
-%%
-%% This is file `caption-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,caption-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{caption-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for caption package for XeTeX engine]
-\let\@makecaption\caption@makecaption
-\endinput
-%%
-%% End of file `caption-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/caption3-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/caption3-xetex-bidi.def
deleted file mode 100644
index 325c3faa422..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/caption3-xetex-bidi.def
+++ /dev/null
@@ -1,42 +0,0 @@
-%%
-%% This is file `caption3-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,caption3-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{caption3-xetex-bidi.def}[2013/04/01 v0.1 bidi adaptations for caption3 package for XeTeX engine]
-\renewcommand*\caption@@par{%
- \parindent\caption@parindent\hangindent\if@RTL-\fi\caption@hangindent}%
-\endinput
-%%
-%% End of file `caption3-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/color-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/color-xetex-bidi.def
deleted file mode 100644
index c87ba1ecdf9..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/color-xetex-bidi.def
+++ /dev/null
@@ -1,82 +0,0 @@
-%%
-%% This is file `color-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,color-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{color-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for color package for XeTeX engine]
-\long\def\color@b@x#1#2#3{%
- \leavevmode\ifmmode\else\if@RTL\beginL\fi\fi
- \setbox\z@\hbox{\kern\fboxsep{\set@color\if@RTL\beginR\fi#3\if@RTL\endR\fi}\kern\fboxsep}%
- \dimen@\ht\z@\advance\dimen@\fboxsep\ht\z@\dimen@
- \dimen@\dp\z@\advance\dimen@\fboxsep\dp\z@\dimen@
- {#1{#2\color@block{\wd\z@}{\ht\z@}{\dp\z@}%
- \box\z@}}\ifmmode\else\if@RTL\endL\fi\fi}
-\def\normalcolor{\let\current@color\default@color\ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\set@color\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi}
-\DeclareRobustCommand\color{%
- \ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\@ifnextchar[\@undeclaredcolor\@declaredcolor}
-\def\@declaredcolor#1{%
- \@ifundefined{\string\color @#1}%
- {\c@lor@error{`#1'}}%
- {\expandafter\let\expandafter\current@color
- \csname\string\color @#1\endcsname
- \set@color}%
- \ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi\ignorespaces}
-\def\@undeclaredcolor[#1]#2{%
- \@ifundefined{color@#1}%
- {\c@lor@error{model `#1'}}%
- {\csname color@#1\endcsname\current@color{#2}%
- \set@color}%
- \ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi\ignorespaces}
-\DeclareRobustCommand\bidicolor{%
- \@ifnextchar[\@bidiundeclaredcolor\@bidideclaredcolor}
-\def\@bidiundeclaredcolor[#1]#2{%
- \@ifundefined{color@#1}%
- {\c@lor@error{model `#1'}}%
- {\csname color@#1\endcsname\current@color{#2}%
- \set@color}%
- \ignorespaces}
-\def\@bidideclaredcolor#1{%
- \@ifundefined{\string\color @#1}%
- {\c@lor@error{`#1'}}%
- {\expandafter\let\expandafter\current@color
- \csname\string\color @#1\endcsname
- \set@color}%
- \ignorespaces}
-\def\color@box#1#2{\color@b@x\relax{\bidicolor#1{#2}}}
-\def\color@fbox#1#2#3{%
- \color@b@x{\fboxsep\z@\bidicolor#1{#2}\fbox}{\bidicolor#1{#3}}}
-\def\color@setgroup{\begingroup\ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\set@color\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi}
-\endinput
-%%
-%% End of file `color-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def
deleted file mode 100644
index 2cd379e08ad..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def
+++ /dev/null
@@ -1,77 +0,0 @@
-%%
-%% This is file `colortbl-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,colortbl-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{colortbl-xetex-bidi.def}[2012/06/10 v0.2 bidi adaptations for colortbl package for XeTeX engine]
-\def\CT@setup{%
- \@tempdimb\col@sep
- \@tempdimc\col@sep
- \def\CT@color{%
- \global\let\CT@do@color\CT@@do@color
- \bidicolor}}
-\def\@classz{\@classx
- \@tempcnta \count@
- \prepnext@tok
-\expandafter\CT@extract\the\toks\@tempcnta\columncolor!\@nil
- \@addtopreamble{\if@RTLtab\beginL\fi%
- \setbox\z@\hbox\bgroup\bgroup\if@RTLtab\beginR\fi
- \ifcase \@chnum
- \hskip\stretch{.5}\kern\z@
- \d@llarbegin
- \insert@column
- \d@llarend\hskip\stretch{.5}\or
- \d@llarbegin \insert@column \d@llarend \hfill \or
- \hfill\kern\z@ \d@llarbegin \insert@column \d@llarend \or
- $\vcenter
- \@startpbox{\@nextchar}\insert@column \@endpbox $\or
- \vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or
- \vbox \@startpbox{\@nextchar}\insert@column \@endpbox
- \fi
- \if@RTLtab\endR\fi\egroup\egroup
-\begingroup
- \CT@setup
- \CT@column@color
- \CT@row@color
- \CT@cell@color
- \CT@do@color
-\endgroup
- \@tempdima\ht\z@
- \advance\@tempdima\minrowclearance
- \vrule\@height\@tempdima\@width\z@
- \unhbox\z@\if@RTLtab\endL\fi}%
- \prepnext@tok}
-\endinput
-%%
-%% End of file `colortbl-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/combine-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/combine-xetex-bidi.def
deleted file mode 100644
index 4ad3c7d41c0..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/combine-xetex-bidi.def
+++ /dev/null
@@ -1,54 +0,0 @@
-%%
-%% This is file `combine-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,combine-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{combine-xetex-bidi.def}[2011/09/23 v0.1 bidi adaptations for combine class for XeTeX engine]
-\renewcommand{\c@ll@chapsecii}[2]{%
- \if@RTL\advance\rightskip\@tempdima\else\advance\leftskip\@tempdima\fi
- \if@RTL\hskip -\rightskip\else\hskip -\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
-}
-\renewcommand{\c@ll@chapseci}{%
- \setlength\@tempdima{0em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode
-}
-\renewenvironment{tocindent}[1]{%
- \hangindent \if@RTL-\fi#1 \hangafter -100\relax}{}
-\endinput
-%%
-%% End of file `combine-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/crop-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/crop-xetex-bidi.def
deleted file mode 100644
index 3ff34fb5402..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/crop-xetex-bidi.def
+++ /dev/null
@@ -1,135 +0,0 @@
-%%
-%% This is file `crop-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,crop-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{crop-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for crop package for XeTeX engine]
-\renewcommand*\CROP@@ulc{%
- \if@RTLmain%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(-40,0){\circle{10}}
- \put(-30,-5){\line(0,1){10}}
- \put(-35,0){\line(1,0){30}}
- \put(-10,30){\circle{10}}
- \put(-5,30){\line(1,0){10}}
- \put(0,35){\line(0,-1){30}}
- \end{picture}%
- \else%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(-30,0){\circle{10}}
- \put(-30,-5){\line(0,1){10}}
- \put(-35,0){\line(1,0){30}}
- \put(0,30){\circle{10}}
- \put(-5,30){\line(1,0){10}}
- \put(0,35){\line(0,-1){30}}
- \end{picture}%
- \fi%
-}
-\renewcommand*\CROP@@urc{%
- \if@RTLmain%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(20,0){\circle{10}}
- \put(30,-5){\line(0,1){10}}
- \put(35,0){\line(-1,0){30}}
- \put(-10,30){\circle{10}}
- \put(-5,30){\line(1,0){10}}
- \put(0,35){\line(0,-1){30}}
- \end{picture}%
- \else%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(30,0){\circle{10}}
- \put(30,-5){\line(0,1){10}}
- \put(35,0){\line(-1,0){30}}
- \put(0,30){\circle{10}}
- \put(-5,30){\line(1,0){10}}
- \put(0,35){\line(0,-1){30}}
- \end{picture}%
- \fi%
-}
-\renewcommand*\CROP@@llc{%
- \if@RTLmain%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(-40,0){\circle{10}}
- \put(-30,-5){\line(0,1){10}}
- \put(-35,0){\line(1,0){30}}
- \put(-10,-30){\circle{10}}
- \put(-5,-30){\line(1,0){10}}
- \put(0,-35){\line(0,1){30}}
- \end{picture}%
- \else%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(-30,0){\circle{10}}
- \put(-30,-5){\line(0,1){10}}
- \put(-35,0){\line(1,0){30}}
- \put(0,-30){\circle{10}}
- \put(-5,-30){\line(1,0){10}}
- \put(0,-35){\line(0,1){30}}
- \end{picture}%
- \fi%
-}
-\renewcommand*\CROP@@lrc{%
- \if@RTLmain%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(20,0){\circle{10}}
- \put(30,-5){\line(0,1){10}}
- \put(35,0){\line(-1,0){30}}
- \put(-10,-30){\circle{10}}
- \put(-5,-30){\line(1,0){10}}
- \put(0,-35){\line(0,1){30}}
- \end{picture}%
- \else%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(30,0){\circle{10}}
- \put(30,-5){\line(0,1){10}}
- \put(35,0){\line(-1,0){30}}
- \put(0,-30){\circle{10}}
- \put(-5,-30){\line(1,0){10}}
- \put(0,-35){\line(0,1){30}}
- \end{picture}%
- \fi%
-}
-\@ifpackagewith{crop}{cam}{%
-\CROP@execopt{cam}%
-}{}
-\endinput
-%%
-%% End of file `crop-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/cuted-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/cuted-xetex-bidi.def
deleted file mode 100644
index e9209f93439..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/cuted-xetex-bidi.def
+++ /dev/null
@@ -1,409 +0,0 @@
-%%
-%% This is file `cuted-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,cuted-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{cuted-xetex-bidi.def}[2013/04/10 v0.3 bidi adaptations for cuted package for XeTeX engine]
-\def\RTL@outputdblcol{%
-\if@firstcolumn \global\@firstcolumnfalse
-\global\setbox\@leftcolumn \box\@outputbox
- \else
- \global\@firstcolumntrue
-\setbox\@outputbox \vbox {\hbox to\textwidth {%
-\hskip \columnwidth
-\hfil \vrule width\columnseprule \hfil
-\hbox to\columnwidth {\box\@leftcolumn \hss}%
-\hskip -\textwidth
-\hbox to\columnwidth{\box\@outputbox \hss}%
-\hskip \columnsep
-\hskip \columnwidth }}%
- \ifvoid\hold@viper
- \else
- \setbox\@outputbox \vbox to\textheight{%
- \box\hold@viper
- \box\@outputbox
- \vss
- }%
- \fi
-\@combinedblfloats \@outputpage
-\begingroup \@dblfloatplacement \@startdblcolumn
-\@whilesw\if@fcolmade \fi
-{\@outputpage \@startdblcolumn }%
- \ifvoid\@viper
- \else
- \global\setbox\@viper\vbox{%
- \vskip-\stripsep
- \unvbox\@viper
- }%
- \@viperoutput
- \fi
-\endgroup
-\fi}
-\def\LTR@outputdblcol{%
- \if@firstcolumn
- \global \@firstcolumnfalse
- \global \setbox\@leftcolumn \box\@outputbox
- \else
- \global\@firstcolumntrue
- \setbox\@outputbox \vbox {%
- \hb@xt@\textwidth {%
- \hb@xt@\columnwidth {%
- \box\@leftcolumn \hss}%
- \hfil
- \vrule \@width\columnseprule
- \hfil
- \hb@xt@\columnwidth {%
- \box\@outputbox \hss}%
- }%
- }%
- \ifvoid\hold@viper
- \else
- \setbox\@outputbox \vbox to\textheight{%
- \box\hold@viper
- \box\@outputbox
- \vss
- }%
- \fi
- \@combinedblfloats
- \@outputpage
- \begingroup
- \@dblfloatplacement
- \@startdblcolumn
- \@whilesw\if@fcolmade \fi
- {\@outputpage
- \@startdblcolumn}%
- \ifvoid\@viper
- \else
- \global\setbox\@viper\vbox{%
- \vskip-\stripsep
- \unvbox\@viper
- }%
- \@viperoutput
- \fi
- \endgroup
- \fi
- }
-\def \@addviper {%
- \if@firstcolumn
- \@insertfalse
- \@reqcolroom .5\@pageht
- \ht@viper\@reqcolroom
- \advance \@reqcolroom \ht\@viper
- \advance \@reqcolroom \stripsep
- \ifvoid\hold@viper\@tempdima=\z@\else\@tempdima\ht\hold@viper\fi
-%%
- \@tempdimb \ht@viper
- \loop
- \setbox\v@aaa\copy\@holdpg
- \setbox\v@ccc\vbox to\@tempdimb{%
- \vsplit\v@aaa to\@tempdimb\vss\vsplit\v@aaa to\@tempdimb}%
- \wlog{Extra height:\the\ht\v@aaa\space when \the\@tempdimb}%
- \ifvoid\v@aaa \else \advance\@tempdimb 1pt \repeat
- \loop
- \setbox\v@aaa\copy\@holdpg
- \setbox\v@ccc\vbox to\@tempdimb{%
- \vsplit\v@aaa to\@tempdimb\vss}%
- \wlog{(2)Left:\the\ht\v@ccc\space Right:\the\ht\v@aaa\space Output:\the\@tempdimb}%
- \ifdim \ht\v@ccc<\ht\v@aaa \@tempdimb \the\ht\v@aaa \repeat
- \wlog{- LAST -^^JLeft:\the\ht\v@ccc^^JRight:\the\ht\v@aaa^^JOutput:\the\@tempdimb}%
- \setbox\v@ccc\vbox to\@tempdimb{%
- \vsplit\@holdpg to\@tempdimb\vss}%
-%%
- \setbox\@tempboxa \vbox {%
- \hb@xt@\textwidth {%
- \if@RTLmain%
- \hskip \columnwidth
- \hfil \vrule width\columnseprule \hfil
- \hb@xt@\columnwidth {%
- \vbox to\ht@viper{\box\v@ccc\vss} \hss}%
- \hskip -\textwidth
- \hb@xt@\columnwidth {%
- \vbox to\ht@viper{\box\@holdpg\vss} \hss}%
- \hskip \columnsep
- \hskip \columnwidth
- \else%
- \hb@xt@\columnwidth {%
- \vbox to\ht@viper{\box\v@ccc\vss} \hss}%
- \hfil
- \vrule \@width\columnseprule
- \hfil
- \hb@xt@\columnwidth {%
- \vbox to\ht@viper{\box\@holdpg\vss} \hss}%
- \fi}%
- }%
- \ifvoid\hold@viper
- \global\setbox\hold@viper \vbox {%
- \unvbox\@tempboxa
- \penalty\interlinepenalty
- \vskip\stripsep
- \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
- \outputpenalty \z@
- }%
- \else
- \global\setbox\hold@viper \vbox {%
- \unvbox\hold@viper
- \unvbox\@tempboxa
- \penalty\interlinepenalty
- \vskip\stripsep
- \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
- \outputpenalty \z@
- }%
- \fi
- \ifdim \@colroom>\@reqcolroom
- \global\setbox\hold@viper \vbox {%
- \unvbox\hold@viper
- \box\@viper
- \penalty\interlinepenalty
- \vskip\stripsep
- \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
- \outputpenalty \z@
- }%
- \@inserttrue
- \advance\@tempdima by-\ht\hold@viper
- \global \advance \@colht \@tempdima
- \ifdim \@colht<2.5\baselineskip
- \@latex@warning@no@line {Optional argument of \noexpand\twocolumn
- too tall on page \thepage (1 stulpelis)}%
- \@emptycol
- \if@firstcolumn
- \else
- \@emptycol
- \fi
- \global\@lastvipertrue
- \else
- \global \vsize \@colht
- \global \@colroom \@colht
- \check@floats
- \ifdim\@tempdima>\z@
- \global\advance\@colroom by-\@tempdima
- \fi
- \ifdim\@colroom<\z@
- \global\@colroom 1pt
- \ifdim\@tempdima>\@colht
- \@latex@warning@no@line {TOP ir/ar BOT FLOAT's
- netelpa lape \thepage (1 stulpelis)}%
- \fi
- \@emptycol
- \if@firstcolumn
- \else
- \@emptycol
- \fi
- \global\@lastvipertrue
- \fi
- \fi
- \fi
- \else
- \@insertfalse
- \@reqcolroom\@colht
- \advance\@reqcolroom \@pageht
- \ht@viper.5\@reqcolroom
- \@reqcolroom\ht@viper
- \advance \@reqcolroom \ht\@viper
- \advance \@reqcolroom \stripsep
- \if@flushend@auto@baselineskip
- \setbox\@tempboxa\vbox{\unvcopy\@leftcolumn
- \global\lastskip@d\lastskip
- \global\lastskip@b\lastskip
- \loop
- \global\lastskip@a\lastskip@b
- \unskip\unpenalty
- \global\lastskip@b\lastskip
- \global\advance\lastskip@d by\lastskip
- \ifdim\lastskip@b=-\lastskip@a
- \global\advance\lastskip@d by-\lastskip
- \else
- \repeat
- \ifdim\lastskip@b=-\lastskip@a
- \ifdim\lastskip@b=\z@
- \setbox\lastbox@a\lastbox
- \global\advance\lastskip@d by\ht\lastbox@a
- \global\advance\lastskip@d by\lastskip
- \unskip\unpenalty
- \setbox\lastbox@a\lastbox
- \global\advance\lastskip@d by\dp\lastbox@a
- \else
- \global\lastskip@d\lastskip
- \global\advance\lastskip@d by\topskip
- \fi
- \fi
- \global\advance\lastskip@d by-\topskip
- }%
- \ifdim\ht\@holdpg>\@colht
- \global\setbox\@holdpg\vbox{\unvbox\@leftcolumn\unskip\unpenalty
- \par\eject
- \vbox to \@colht{\unvbox\@holdpg\unskip}%
- }%
- \else
- \global\setbox\@holdpg\vbox{%
- \unvbox\@leftcolumn\unskip\unpenalty
- \vskip\lastskip@d
- \the\At@ViperColsBreak
- \unvbox\@holdpg
- \unskip
- }%
- \fi
- \else
- \global\setbox\@holdpg\vbox{%
- \unvbox\@leftcolumn
- \setbox\@tempboxa\lastbox
- \on@stripcols@break
- \the\At@ViperColsBreak
- \unvbox\@holdpg
- }%
- \fi
- \global\At@ViperColsBreak{}%
- \ht@viper .5\ht\@holdpg
- \ifdim \ht@viper>\@colht
- \ht@viper \@colht
- \fi
- \ifvoid\hold@viper\@tempdima=\z@\else\@tempdima\ht\hold@viper\fi
-%%
- \@tempdimb \ht@viper
- \loop
- \setbox\v@aaa\copy\@holdpg
- \setbox\v@ccc\vbox to\@tempdimb{%
- \vsplit\v@aaa to\@tempdimb
- \vss
- \vsplit\v@aaa to\@tempdimb
- }%
- \wlog{Extra height:\the\ht\v@aaa\space when \the\@tempdimb}%
- \ifvoid\v@aaa
- \else
- \advance\@tempdimb 1\p@
- \repeat
- \loop
- \setbox\v@aaa\copy\@holdpg
- \setbox\v@ccc\vbox to\@tempdimb{\vsplit\v@aaa to\@tempdimb\vss}%
- \wlog{(2)Left:\the\ht\v@ccc\space
- Right:\the\ht\v@aaa\space
- Output:\the\@tempdimb
- }%
- \ifdim\ht\v@ccc<\ht\v@aaa
- \@tempdimb \the\ht\v@aaa
- \repeat
- \wlog{- LAST -^^JLeft:\the\ht\v@ccc
- ^^JRight:\the\ht\v@aaa
- ^^JOutput:\the\@tempdimb
- }%
- \setbox\v@ccc\vbox to\@tempdimb{\vsplit\@holdpg to\@tempdimb\vss}%
- \setbox\@tempboxa\vbox{%
- \hb@xt@\textwidth {%
- \hb@xt@\columnwidth{\vbox to\ht@viper{\box\v@ccc\vss} \hss}%
- \hfil
- \vrule \@width\columnseprule
- \hfil
- \hb@xt@\columnwidth {\vbox to\ht@viper{\box\@holdpg\vss} \hss}%
- }%
- }%
- \ifvoid\hold@viper
- \global\setbox\hold@viper \vbox {%
- \unvbox\@tempboxa
- \penalty\interlinepenalty
- \vskip\stripsep
- \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
- \outputpenalty \z@
- }%
- \else
- \global\setbox\hold@viper \vbox {%
- \unvbox\hold@viper
- \unvbox\@tempboxa
- \penalty\interlinepenalty
- \vskip\stripsep
- \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
- \outputpenalty \z@
- }%
- \fi
- \ifdim \@colht>\@reqcolroom
- \global\setbox\hold@viper \vbox {%
- \unvbox\hold@viper
- \box\@viper
- \penalty\interlinepenalty
- \vskip\stripsep
- \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
- \outputpenalty \z@
- }%
- \@inserttrue
- \global\@firstcolumntrue
- \advance\@tempdima by-\ht\hold@viper
- \global \advance \@colht \@tempdima
- \ifdim \@colht<2.5\baselineskip
- \@latex@warning@no@line {Optional argument of \noexpand\twocolumn
- too tall on page \thepage (2 stulpelis)}%
- \@emptycol
- \if@firstcolumn
- \else
- \@emptycol
- \fi
- \global\@lastvipertrue
- \else
- \global \vsize \@colht
- \global \@colroom \@colht
- \check@floats
- \ifdim\@tempdima>\z@
- \global\advance\@colroom by-\@tempdima
- \fi
- \ifdim\@colroom<\z@
- \global\@colroom 1pt
- \ifdim\@tempdima>\@colht
- \@latex@warning@no@line {TOP ir/ar BOT FLOAT's
- netelpa lape \thepage (2 stulpelis)}%
- \fi
- \@emptycol
- \if@firstcolumn
- \else
- \@emptycol
- \fi
- \global\@lastvipertrue
- \fi
- \fi
- \fi
- \fi
- \if@insert
- \else
- \advance\@tempdima by-\ht\hold@viper
- \global \advance \@colht \@tempdima
- \global\setbox\hold@viper \vbox {%
- \unvbox\hold@viper
- \csname viper@top@hook\endcsname
- \vsplit\@viper to \@colht
- \vss
- }%
- \vbox{}%
- \global\@firstcolumnfalse
- \newpage
- \fi
- }
-\endinput
-%%
-%% End of file `cuted-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/cutwin-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/cutwin-xetex-bidi.def
deleted file mode 100644
index 7e4d5a1f284..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/cutwin-xetex-bidi.def
+++ /dev/null
@@ -1,77 +0,0 @@
-%%
-%% This is file `cutwin-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,cutwin-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{cutwin-xetex-bidi.def}[2011/11/12 v0.1 bidi adaptations for cutwin package for XeTeX engine]
-\renewcommand*{\c@twcompctr}[2]{%
- \def\c@twfirst{1}
- \loop\advance\c@twwinlines\m@ne
- \setbox\c@twslicea=\vsplit#1 to\baselineskip
- \setbox\c@twsliceb=\vsplit#1 to\baselineskip
- \c@twprune{\c@twslicea}{\c@twlftside}%
- \c@twprune{\c@twsliceb}{\c@twrtside}%
- \ifnum\c@twfirst=\@ne
- \setbox#2=\vbox{\unvbox#2\hbox
- to\hsize{\if@RTL\box\c@twsliceb\else\box\c@twslicea\fi\pageinwindow\hfil\if@RTL\box\c@twslicea\else\box\c@twsliceb\fi}}%
- \else
- \setbox#2=\vbox{\unvbox#2\hbox
- to\hsize{\if@RTL\box\c@twsliceb\else\box\c@twslicea\fi\hfil\if@RTL\box\c@twslicea\else\box\c@twsliceb\fi}}%
- \fi
- \def\c@twfirst{2}
- \ifnum\c@twwinlines>\z@\repeat}
-\renewcommand*{\c@twcompoddctr}[2]{%
- \def\c@twrounds{1}
- \def\c@twfirst{1}
- \@for\c@twlspec:=\c@twb\do{%
- \ifnum\c@twrounds=1
- \setbox\c@twslicea=\vsplit#1 to\baselineskip % first of pair
- \c@twprune{\c@twslicea}{\c@twlspec}%
- \def\c@twrounds{2}
- \else
- \setbox\c@twsliceb=\vsplit#1 to\baselineskip % second of pair
- \c@twprune{\c@twsliceb}{\c@twlspec}%
- \ifnum\c@twfirst=1
- \setbox#2=\vbox{\unvbox#2\hbox
- to\hsize{\if@RTL\box\c@twsliceb\else\box\c@twslicea\fi\hfil\picinwindow\hfil\if@RTL\box\c@twslicea\else\box\c@twsliceb\fi}}%
- \def\c@twfirst{2}
- \else
- \setbox#2=\vbox{\unvbox#2\hbox
- to\hsize{\if@RTL\box\c@twsliceb\else\box\c@twslicea\fi\hfil\if@RTL\box\c@twslicea\else\box\c@twsliceb\fi}}%
- \fi
- \def\c@twrounds{1}
- \fi}}
-\endinput
-%%
-%% End of file `cutwin-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/cvthemebidicasual.sty b/Master/texmf-dist/tex/xelatex/bidi/cvthemebidicasual.sty
deleted file mode 100644
index a0fbc6df120..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/cvthemebidicasual.sty
+++ /dev/null
@@ -1,137 +0,0 @@
-%%
-%% This is file `cvthemebidicasual.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,cvthemebidicasual.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{cvthemebidicasual}
-\DeclareOption{blue}{}
-\newif\if@colourorange\@colourorangefalse
-\DeclareOption{orange}{\@colourorangetrue}
-\newif\if@colourgreen\@colourgreenfalse
-\DeclareOption{green}{\@colourgreentrue}
-\newif\if@colourred\@colourredfalse
-\DeclareOption{red}{\@colourredtrue}
-\newif\if@colourgrey\@colourgreyfalse
-\DeclareOption{grey}{\@colourgreytrue}
-\DeclareOption*{
- \PackageWarning{cvthemebidicasual}{Unknown option ‘\CurrentOption’}}
-\ExecuteOptions{colour}
-\ProcessOptions\relax
-\renewcommand*{\listitemsymbol}{\textbullet}
-\definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
-\familynamecolour{808080}
-\firstnamecolour{A9A9A9}
-\quotecolour{696969}
-\addresscolour{696969}
-\definecolor{sectionrectanglecolor}{rgb}{0.25,0.50,0.75}
-\sectiontitlecolour{1E90FF}
-\subsectioncolour{4682B4}
-\definecolor{rulecolour}{gray}{0.6}
-\definecolor{footersymbolcolour}{rgb}{0.25,0.50,0.75}
-\definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
-\if@colourorange
- \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
- \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
- \sectiontitlecolour{FF8C00}
- \subsectioncolour{FF8C00}
- \definecolor{footersymbolcolour}{rgb}{0.95,0.55,0.15}
- \definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi
-\if@colourgreen
- \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
- \definecolor{sectionrectanglecolour}{rgb}{0.55,0.85,0.35}
- \sectiontitlecolour{008000}
- \subsectioncolour{008000}
- \definecolor{footersymbolcolour}{rgb}{0.30,0.65,0.15}
- \definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi
-\if@colourred
- \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
- \definecolor{sectionrectanglecolour}{rgb}{1.00,0.30,0.30}
- \sectiontitlecolour{FF0000}
- \subsectioncolour{FF0000}
- \definecolor{footersymbolcolour}{rgb}{0.95,0.20,0.20}
- \definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
-\if@colourgrey
- \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
- \definecolor{sectionrectanglecolour}{rgb}{0.75,0.75,0.75}
- \sectiontitlecolour{808080}
- \subsectioncolour{808080}
- \definecolor{footersymbolcolour}{rgb}{0.35,0.35,0.35}
- \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi
-\renewcommand*{\ttdefault}{pcr}
-\renewcommand*{\firstnamefont}{\fontsize{38}{40}\mdseries\upshape}
-\renewcommand*{\familynamefont}{\firstnamefont}
-\renewcommand*{\addressfont}{\normalsize\mdseries\slshape}
-\renewcommand*{\quotefont}{\large\slshape}
-\renewcommand*{\sectionfont}{\Large\mdseries\upshape}
-\renewcommand*{\subsectionfont}{\large\mdseries\upshape}
-\renewcommand*{\maketitle}{%
- {%
- \ifthenelse{\isundefined{\@photo}}%
- {}%
- {{\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
- \hfill%
- \bidi@raggedleft{\firstnamestyle{\@firstname}~\familynamestyle{\@familyname}}\\[-.35em]}%
- {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}%
- \ifthenelse{\isundefined{\@quote}}%
- {}%
- {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
- }%
-\newif\if@firstfooterelement\@firstfooterelementtrue
-\providecommand*{\footersymbol}{}
-\renewcommand*{\footersymbol}{%
- \if@firstfooterelement%
- \else%
- { ~~\color{footersymbolcolor}\textbullet~~~}\fi}
-\providecommand*{\makefooter}{}
-\renewcommand*{\makefooter}{%
- \fancypagestyle{plain}{%
- \fancyfoot[c]{%
- \parbox{0.8\textwidth}{%
- \centering%
- \addressfont\@addresscolour%
- \ifthenelse{\isundefined{\@address}}{}{%
- \addresssymbol~\@address\\%
- \@firstfooterelementfalse}%
- \ifthenelse{\isundefined{\@mobile}}{}{\mobilesymbol~\@mobile\@firstfooterelementfalse}%
- \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
- \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
- \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
- \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
- }%
- \pagestyle{plain}}
-\AtBeginDocument{\makefooter}
-\endinput
-%%
-%% End of file `cvthemebidicasual.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/cvthemebidiclassic.sty b/Master/texmf-dist/tex/xelatex/bidi/cvthemebidiclassic.sty
deleted file mode 100644
index 8dcec649349..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/cvthemebidiclassic.sty
+++ /dev/null
@@ -1,144 +0,0 @@
-%%
-%% This is file `cvthemebidiclassic.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,cvthemebidiclassic.sty')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{cvthemebidiclassic}
-\DeclareOption{blue}{}
-\newif\if@colourorange\@colourorangefalse
-\DeclareOption{orange}{\@colourorangetrue}
-\newif\if@colourgreen\@colourgreenfalse
-\DeclareOption{green}{\@colourgreentrue}
-\newif\if@colourred\@colourredfalse
-\DeclareOption{red}{\@colourredtrue}
-\newif\if@colourgrey\@colourgreyfalse
-\DeclareOption{grey}{\@colourgreytrue}
-\DeclareOption*{
- \PackageWarning{cvthemebidiclassic}{Unknown option ‘\CurrentOption’}}
-\ExecuteOptions{colour}
-\ProcessOptions\relax
-\renewcommand*{\listitemsymbol}{\textbullet}
-\firstnamecolour{}
-\familynamecolour{}
-\titlecolour{808080}
-\quotecolour{696969}
-\addresscolour{696969}
-\definecolor{sectionrectanglecolour}{rgb}{0.25,0.50,0.75}
-\definecolor{sectionrectanglecolor}{rgb}{0.25,0.5,0.75}
-\sectiontitlecolour{1E90FF}
-\subsectioncolour{4682B4}
-\if@colourorange
- \addresscolour{FF8C00}
- \definecolor{sectionrectanglecolour}{rgb}{1.00,0.65,0.20}
- \definecolor{sectionrectanglecolor}{rgb}{1,0.65,0.20}
- \sectiontitlecolour{FF8C00}
- \subsectioncolour{FF8C00}\fi
-\if@colourgreen
- \addresscolour{008000}
- \definecolor{sectionrectanglecolour}{rgb}{0.55,0.85,0.35}
- \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
- \sectiontitlecolour{008000}
- \subsectioncolour{008000}\fi
-\if@colourred
- \addresscolour{FF0000}
- \definecolor{sectionrectanglecolour}{rgb}{1.00,0.30,0.30}
- \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
- \sectiontitlecolour{FF0000}
- \subsectioncolour{FF0000}\fi
-\if@colourgrey
- \addresscolour{808080}
- \definecolor{sectionrectanglecolour}{rgb}{0.75,0.75,0.75}
- \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
- \sectiontitlecolour{808080}
- \subsectioncolour{808080}\fi
-\renewcommand*{\ttdefault}{pcr}
-\renewcommand*{\firstnamefont}{\fontsize{34}{36}\mdseries\upshape}
-\renewcommand*{\titlefont}{\LARGE\mdseries\slshape}
-\renewcommand*{\addressfont}{\normalsize\mdseries\slshape}
-\renewcommand*{\familynamefont}{\firstnamefont}
-\renewcommand*{\quotefont}{\large\slshape}
-\renewcommand*{\sectionfont}{\Large\mdseries\upshape}
-\renewcommand*{\subsectionfont}{\large\mdseries\upshape}
-\newlength{\maketitlenamemaxwidth}
-\setlength{\maketitlenamemaxwidth}{.525\textwidth}
-\newlength{\maketitlenamefullwidth}
-\settowidth{\maketitlenamefullwidth}{\firstnamestyle{\@firstname~}\familynamestyle{\@familyname}}
-\newlength{\maketitlenamewidth}
-\ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitlenamemaxwidth}\else\setlength{\maketitlenamewidth}{\maketitlenamefullwidth}\fi
-\newlength{\maketitlepicturewidth}
-\setlength{\maketitlepicturewidth}{\@photowidth}
-\newlength{\maketitledetailswidth}
-\renewcommand*{\recomputethemelengths}{%
- \setlength{\maketitledetailswidth}{\textwidth}%
- \addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
- \addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
- \addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}
-\recomputethemelengths
-\newif\if@firstdetailselement\@firstdetailselementtrue
-\newcommand*{\maketitledetailsnewline}{
- \if@firstdetailselement%
- \@firstdetailselementfalse%
- \else%
- \\[.2em]\fi}
-\renewcommand*{\maketitle}{%
- % name and title
- \begin{minipage}[b]{\maketitlenamewidth}%
- \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}%
- \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
- \end{minipage}%
- % optional data
- \begin{minipage}[b]{\maketitledetailswidth}%
- \bidi@raggedleft\addressfont\@addresscolour%
- \ifthenelse{\isundefined{\@address}}{}{%
- \maketitledetailsnewline%
- \addresssymbol~\\\@address}%
- \ifthenelse{\isundefined{\@mobile}}{}{\maketitledetailsnewline\mobilesymbol~\@mobile}%
- \ifthenelse{\isundefined{\@phone}}{}{\maketitledetailsnewline\phonesymbol~\@phone}%
- \ifthenelse{\isundefined{\@fax}}{}{\maketitledetailsnewline\faxsymbol~\@fax}%
- \ifthenelse{\isundefined{\@email}}{}{\maketitledetailsnewline\emailsymbol~\emaillink{\@email}}%
- \ifthenelse{\isundefined{\@extrainfo}}{}{\maketitledetailsnewline\@extrainfo}%
- \end{minipage}%
- % optional photo
- \ifthenelse{\isundefined{\@photo}}%
- {}%
- {\hspace*{\separatorcolumnwidth}\color{firstnamecolor}\framebox{\includegraphics[width=\maketitlepicturewidth]{\@photo}}}\\[3em]%
- % optional quote
- \ifthenelse{\isundefined{\@quote}}%
- {}%
- {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
- }
-\endinput
-%%
-%% End of file `cvthemebidiclassic.sty'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/dblfnote-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/dblfnote-xetex-bidi.def
deleted file mode 100644
index 2d39cf1a28a..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/dblfnote-xetex-bidi.def
+++ /dev/null
@@ -1,204 +0,0 @@
-%%
-%% This is file `dblfnote-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,dblfnote-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{dblfnote-xetex-bidi.def}[2012/12/12 v0.3 bidi adaptations for dblfnote package for XeTeX engine]
-\let\autofootnoterule\relax
-\let\rightfootnoterule\relax
-\let\leftfootnoterule\relax
-\let\textwidthfootnoterule\relax
-\let\LRfootnoterule\relax
-\def\footnoterule{\kern-3\p@
- \hrule \@width \DFNcolumnwidth \kern 2.6\p@}%
-\AtBeginDocument{\let\dfn@latex@footnotetext\@footnotetext
-\let\@footnotetext\dfn@footnotetext}
-\long\def\dfn@LTRfootnotetext#1{{\setbox\dfn@boxa\vbox{
- \let\insert\dfn@gobble
- \columnwidth\DFNcolumnwidth \hbadness\c@DFNsloppiness
- \def\@makefnmark{\smash{\dfn@makefnmark}}
- \dfn@latex@LTRfootnotetext{#1}\par \boxmaxdepth\dfn@fnmaxdp}%
- \dfn@dima\ht\dfn@boxa \advance\dfn@dima\dp\dfn@boxa
- \ifdim\dfn@dima>\z@\else
- \dfn@dima1sp\relax
- \setbox\dfn@boxa\vbox{\vbox to1sp{\unvbox\dfn@boxa\vfil}}\fi
- \global\setbox\dfn@ins\vbox{\boxmaxdepth\dfn@fnmaxdp
- \ifvoid\dfn@ins\else
- \unvbox\dfn@ins \allowbreak \nointerlineskip \fi
- \ifdfn@allowcbreak \unvbox \else \box \fi \dfn@boxa}%
- \setbox\dfn@boxa\copy\dfn@ins
- \dfn@split{.5\ht\dfn@boxa}\dfn@boxa\dfn@boxb\dfn@fnmaxdp\footnotesep
- \advance\@tempdima\@tempdimb \@tempdimb\@tempdima
- \advance\@tempdima-\dfn@fnht \global\dfn@fnht\@tempdimb
- \insert\footins{\floatingpenalty\@MM \vbox to\@tempdima{}}%
- \xdef\dfn@list{\dfn@list\@elt{\number\dfn@dima}{\number\@tempdima}}}}
-\AtBeginDocument{\let\dfn@latex@LTRfootnotetext\@LTRfootnotetext
-\let\@LTRfootnotetext\dfn@LTRfootnotetext}
-\long\def\dfn@RTLfootnotetext#1{{\setbox\dfn@boxa\vbox{
- \let\insert\dfn@gobble
- \columnwidth\DFNcolumnwidth \hbadness\c@DFNsloppiness
- \def\@makefnmark{\smash{\dfn@makefnmark}}
- \dfn@latex@RTLfootnotetext{#1}\par \boxmaxdepth\dfn@fnmaxdp}%
- \dfn@dima\ht\dfn@boxa \advance\dfn@dima\dp\dfn@boxa
- \ifdim\dfn@dima>\z@\else
- \dfn@dima1sp\relax
- \setbox\dfn@boxa\vbox{\vbox to1sp{\unvbox\dfn@boxa\vfil}}\fi
- \global\setbox\dfn@ins\vbox{\boxmaxdepth\dfn@fnmaxdp
- \ifvoid\dfn@ins\else
- \unvbox\dfn@ins \allowbreak \nointerlineskip \fi
- \ifdfn@allowcbreak \unvbox \else \box \fi \dfn@boxa}%
- \setbox\dfn@boxa\copy\dfn@ins
- \dfn@split{.5\ht\dfn@boxa}\dfn@boxa\dfn@boxb\dfn@fnmaxdp\footnotesep
- \advance\@tempdima\@tempdimb \@tempdimb\@tempdima
- \advance\@tempdima-\dfn@fnht \global\dfn@fnht\@tempdimb
- \insert\footins{\floatingpenalty\@MM \vbox to\@tempdima{}}%
- \xdef\dfn@list{\dfn@list\@elt{\number\dfn@dima}{\number\@tempdima}}}}
-\AtBeginDocument{\let\dfn@latex@RTLfootnotetext\@RTLfootnotetext
-\let\@RTLfootnotetext\dfn@RTLfootnotetext}
-\def\dfn@RTLmakecol{{\ifvoid\footins\else
- \dfn@dima\ht\footins
- \@tempcnta\z@ \dfn@countins
- \@tempdima\z@ \let\@elt\dfn@elt@getht
- \dfn@list\@nil
- \ifdim\@tempdima=\z@\else
- \dfn@split\@tempdima\dfn@ins\dfn@boxa\z@\z@
- \global\setbox\dfn@ins\box\dfn@ins
- \@tempswatrue
- \ifdfn@trysingle
- \setbox\dfn@boxb\vbox{\unvcopy\@cclv}\@tempdima\@colroom
- \advance\@tempdima-\ht\dfn@boxb \advance\@tempdima-\dp\dfn@boxb
- \advance\@tempdima-\skip\footins
- \advance\@tempdima-\ht\dfn@boxa
- \ifdim\@tempdima<\z@\else \@tempswafalse
- \global\setbox\footins\vbox{\boxmaxdepth\dfn@fnmaxdp
- \footnoterule \unvbox\dfn@boxa}\fi\fi
- \if@tempswa
- \dfn@split{\dfn@dima}\dfn@boxa\dfn@boxb\dfn@fnmaxdp\footnotesep
- \global\setbox\footins\vbox{\hbox{%
- \hskip \DFNcolumnwidth
- \hskip\DFNcolumnsep
- \hbox to\DFNcolumnwidth{\vbox to\@tempdima{\footnoterule
- \unvbox\dfn@boxb\vss}\hss}
- \hskip -\textwidth
- \hbox to\DFNcolumnwidth{\ifvoid\dfn@boxa\else
- \vbox to\@tempdima{
- \setbox\@tempboxa\vbox{\footnoterule}
- \ifdfn@ruleboth \unvbox\@tempboxa
- \else \@tempdima\ht\@tempboxa
- \advance\@tempdima\dp\@tempboxa
- \vskip\@tempdima
- \prevdepth\dp\@tempboxa \fi
- \unvbox\dfn@boxa\vss}\fi\hss}
- \hskip \DFNcolumnsep
- \hskip \DFNcolumnwidth}}\fi\fi
- \global\dfn@fnht\z@
- \ifx\dfn@list\@empty\else
- \let\@elt\dfn@elt@adjust \dfn@dima\z@ \dfn@dimb\z@
- \dfn@list \global\advance\dfn@fnht\dfn@dimb
- \let\@elt\relax
- \ifdim\dfn@dimb>\z@
- \xdef\dfn@list{\@elt{0}{\number\dfn@dimb}\dfn@list}%
- \insert\footins{\floatingpenalty\@MM
- \vbox to\dfn@dimb{}}\fi
- \ifdim\dfn@fnht>\@tempdima
- \@tempdimb\@tempdima \advance\@tempdimb-\dfn@fnht
- \global\dfn@fnht\@tempdima
- \xdef\dfn@list{\dfn@list\@elt{0}{\number\@tempdimb}}%
- \xdef\dfn@afteroutput{\insert\footins{
- \floatingpenalty\@MM
- \vbox to\number\@tempdimb sp{}}%
- \global\let\noexpand\dfn@afteroutput\relax}%
- \fi\fi
- \fi}%
- \let\footnoterule\relax \dfn@latex@makecol
- \let\footnoterule\dfn@footnoterule}
-\def\dfn@LTRmakecol{{\ifvoid\footins\else
- \dfn@dima\ht\footins
- \@tempcnta\z@ \dfn@countins
- \@tempdima\z@ \let\@elt\dfn@elt@getht
- \dfn@list\@nil
- \ifdim\@tempdima=\z@\else
- \dfn@split\@tempdima\dfn@ins\dfn@boxa\z@\z@
- \global\setbox\dfn@ins\box\dfn@ins
- \@tempswatrue
- \ifdfn@trysingle
- \setbox\dfn@boxb\vbox{\unvcopy\@cclv}\@tempdima\@colroom
- \advance\@tempdima-\ht\dfn@boxb \advance\@tempdima-\dp\dfn@boxb
- \advance\@tempdima-\skip\footins
- \advance\@tempdima-\ht\dfn@boxa
- \ifdim\@tempdima<\z@\else \@tempswafalse
- \global\setbox\footins\vbox{\boxmaxdepth\dfn@fnmaxdp
- \footnoterule \unvbox\dfn@boxa}\fi\fi
- \if@tempswa
- \dfn@split{\dfn@dima}\dfn@boxa\dfn@boxb\dfn@fnmaxdp\footnotesep
- \global\setbox\footins\vbox{\hbox{%
- \hbox to\DFNcolumnwidth{\vbox to\@tempdima{\footnoterule
- \unvbox\dfn@boxb\vss}\hss}\hskip\DFNcolumnsep
- \hbox to\DFNcolumnwidth{\ifvoid\dfn@boxa\else
- \vbox to\@tempdima{
- \setbox\@tempboxa\vbox{\footnoterule}
- \ifdfn@ruleboth \unvbox\@tempboxa
- \else \@tempdima\ht\@tempboxa
- \advance\@tempdima\dp\@tempboxa
- \vskip\@tempdima
- \prevdepth\dp\@tempboxa \fi
- \unvbox\dfn@boxa\vss}\fi\hss}}}\fi\fi
- \global\dfn@fnht\z@
- \ifx\dfn@list\@empty\else
- \let\@elt\dfn@elt@adjust \dfn@dima\z@ \dfn@dimb\z@
- \dfn@list \global\advance\dfn@fnht\dfn@dimb
- \let\@elt\relax
- \ifdim\dfn@dimb>\z@
- \xdef\dfn@list{\@elt{0}{\number\dfn@dimb}\dfn@list}%
- \insert\footins{\floatingpenalty\@MM
- \vbox to\dfn@dimb{}}\fi
- \ifdim\dfn@fnht>\@tempdima
- \@tempdimb\@tempdima \advance\@tempdimb-\dfn@fnht
- \global\dfn@fnht\@tempdima
- \xdef\dfn@list{\dfn@list\@elt{0}{\number\@tempdimb}}%
- \xdef\dfn@afteroutput{\insert\footins{
- \floatingpenalty\@MM
- \vbox to\number\@tempdimb sp{}}%
- \global\let\noexpand\dfn@afteroutput\relax}%
- \fi\fi
- \fi}%
- \let\footnoterule\relax \dfn@latex@makecol
- \let\footnoterule\dfn@footnoterule}
-\renewcommand{\dfn@makecol}{\if@RTLmain\dfn@RTLmakecol\else\dfn@LTRmakecol\fi}
-\newcommand{\RTLdfnmakecol}{\renewcommand{\dfn@makecol}{\dfn@RTLmakecol}}
-\newcommand{\LTRdfnmakecol}{\renewcommand{\dfn@makecol}{\dfn@LTRmakecol}}
-\DFNalwaysdouble
-\endinput
-%%
-%% End of file `dblfnote-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/draftwatermark-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/draftwatermark-xetex-bidi.def
deleted file mode 100644
index 44f6bbd18ed..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/draftwatermark-xetex-bidi.def
+++ /dev/null
@@ -1,42 +0,0 @@
-%%
-%% This is file `draftwatermark-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,draftwatermark-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{draftwatermark-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for draftwatermark package for XeTeX engine]
-\renewcommand\SetWatermarkText[1]{%
- \def\sc@wm@text{\if@RTLmain\beginR\fi#1\if@RTLmain\endR\fi}}
-\endinput
-%%
-%% End of file `draftwatermark-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/empheq-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/empheq-xetex-bidi.def
deleted file mode 100644
index 06c8ffd42d7..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/empheq-xetex-bidi.def
+++ /dev/null
@@ -1,201 +0,0 @@
-%%
-%% This is file `empheq-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,empheq-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{empheq-xetex-bidi.def}[2011/09/07 v0.1 bidi adaptations for empheq package for XeTeX engine]
-\MHInternalSyntaxOn
-\def\EQ_tag_plus_endmark:{%
- \iftagsleft@
- \gdef\maketag@@@##1{%
- \hfuzz\displaywidth
- \if@RTL\makebox[\widthof{##1}][r]{%
- \hbox to \displaywidth{\m@th\normalfont##1\hss
- \raisebox{-\dp\EQ_mathdisplay_box
- -\depthof{\EQ_outerbox:{}}}
- {\PotEndMark{\hss}}}}
- \else\makebox[\widthof{##1}][l]{%
- \hbox to \displaywidth{\m@th\normalfont##1\hss
- \raisebox{-\dp\EQ_mathdisplay_box
- -\depthof{\EQ_outerbox:{}}}
- {\PotEndMark{\hss}}}}\fi}%
- \else:
- \gdef\maketag@@@##1{%
- \hbox{\m@th\normalfont##1\llap{\hss\PotEndMark{%
- \settoheight{\@tempdima}{\@nameuse{\InTheoType Symbol}}%
- \MH_addtolength:dn \@tempdima
- {\g_EQ_bottomtag_depth_dim+\mintagvsep}
- \setlength{\@tempdimb}
- {\g_EQ_bottomrow_depth_dim+\depthof{\EQ_outerbox:{}}
- +\depthof{\EQ_innerbox:{}}}
- \if_dim:w \@tempdima>\@tempdimb
- \MH_setlength:dn \@tempdima{-\dp\EQ_mathdisplay_box
- -\@tempdima+\g_EQ_bottomrow_depth_dim}
- \addtolength{\@tempdima}{\depthof{\EQ_innerbox:{}}}%
- \def\EQ_next:{\raisebox{\@tempdima}}%
- \else:
- \def\EQ_next:{
- \raisebox{-\dp\EQ_mathdisplay_box
- -\depthof{\EQ_outerbox:{}}}}%
- \fi:\EQ_next:}}}}%
- \fi:}
-\def\EQ_post_process:{%
- \EQ_initialize:
- \EQ_begin_equation:
- \MH_if_boolean:nT {outer_mult}{
- \setkeys{\MT_options_name:}{
- firstline-afterskip=0pt,
- lastline-preskip=0pt,
- multlined-width=0pt,
- }
- \ifodd \l_EQ_alignmentmode_int
- \setkeys{\MT_options_name:}{multlined-pos=b}
- \else:
- \setkeys{\MT_options_name:}{multlined-pos=t}
- \fi:
- \g@addto@macro\EQ_complete_mathdisplay:{
- \begin{MTmultlined}\relax}
- }
- \g@addto@macro\EQ_complete_mathdisplay:\EQ_mathbody:
- \MH_if_boolean:nT {outer_mult}{
- \g@addto@macro\EQ_complete_mathdisplay:{\end{MTmultlined}}
- }
- \EQ_end_equation:
- \edef\EQ_hyperref_link_fint{\number\Hy@linkcounter}
- \savecounters@
- \EQ_typeset_tags:
- \edef\l_EQ_equation_fint{\number\c@equation}
- \restorecounters@
- \Hy@linkcounter=\EQ_hyperref_link_fint
- \settowidth\l_EQ_totalwidth_dim{%
- $\EQ_left_side:\EQ_innerbox:{}\EQ_right_side:$}%
- \MH_if_boolean:nTF {outer_mult}
- { \def\EQ_next:{_mult} }
- { \def\EQ_next:{} }
- \@nameuse{EQ_modify_linewidth_
- \romannumeral\l_EQ_equationtype_int\EQ_next: :}%
- \EQ_typeset_display:
- \@nameuse{find_displaywidth_
- \romannumeral\l_EQ_equationtype_int\EQ_next: :}
- \MH_addtolength:dn
- \l_EQ_totalwidth_dim{\l_EQ_displaywidth_dim}
- \savebox\EQ_mathdisplay_box[\l_EQ_totalwidth_dim][c]{%
- $\EQ_left_side:
- \EQ_innerbox:{%
- \if_case:w \l_EQ_alignmentmode_int\or:
- \makebox[\l_EQ_displaywidth_dim][c]
- {\usebox{\EQ_mathdisplay_box}}%
- \or:
- \makebox[\l_EQ_displaywidth_dim][c]
- {\usebox{\EQ_mathdisplay_box}}%
- \or:
- \if@RTL\makebox[\l_EQ_displaywidth_dim][r]{%
- \if_num:w \l_EQ_equationtype_int=5 \else:
- \if_num:w \l_EQ_equationtype_int=6 \else:
- \kern-\@mathmargin
- \fi:
- \fi:
- \usebox{\EQ_mathdisplay_box}}%
- \else\makebox[\l_EQ_displaywidth_dim][l]{%
- \if_num:w \l_EQ_equationtype_int=5 \else:
- \if_num:w \l_EQ_equationtype_int=6 \else:
- \kern-\@mathmargin
- \fi:
- \fi:
- \usebox{\EQ_mathdisplay_box}}\fi%
- \or:
- \if@RTL\makebox[\l_EQ_displaywidth_dim][r]{%
- \if_num:w \l_EQ_equationtype_int=5 \else:
- \if_num:w \l_EQ_equationtype_int=6 \else:
- \kern-\@mathmargin
- \fi:
- \fi:
- \usebox{\EQ_mathdisplay_box}}
- \else\makebox[\l_EQ_displaywidth_dim][l]{%
- \if_num:w \l_EQ_equationtype_int=5 \else:
- \if_num:w \l_EQ_equationtype_int=6 \else:
- \kern-\@mathmargin
- \fi:
- \fi:
- \usebox{\EQ_mathdisplay_box}}\fi%
- \fi:}%
- \EQ_right_side:$}%
- \begin{AmSequation*}
- \@nameuse{EQ_place_display_
- \romannumeral\l_EQ_equationtype_int\EQ_next: :}
- \if_dim:w \g_EQ_widesttag_dim>\z@
- \MH_set_boolean_T:n {show_manual_tags}
- \if_case:w \l_EQ_alignmentmode_int
- \or: \if@RTL\EQ_place_tag:N l\else\EQ_place_tag:N r\fi %#1
- \or: \if@RTL\EQ_place_tag:N r\else\EQ_place_tag:N l\fi %#2
- \or: \if@RTL\EQ_place_tag:N l\else\EQ_place_tag:N r\fi %#3
- \or: \if@RTL\EQ_place_tag:N r\else\EQ_place_tag:N l\fi %#4
- \fi:
- \fi:
- \end{AmSequation*}
- \global\c@equation=\l_EQ_equation_fint\relax
-}
-\AtBeginDocument{%
- \@ifpackageloaded{fancybox}{%
- \@ifpackageloaded{color}{\definecolor{shadowcolor}{rgb}{0,0,0}}%
- {\renewcommand*\textcolor[2]{\normalcolor{#2}}}%
- \renewcommand*\shadowbox{%
- \@ifstar{\MH_set_boolean_T:n {shadowbox_star}
- \VerbBox\EQ_shadowbox:n}
- {\MH_set_boolean_F:n {shadowbox_star}
- \VerbBox\EQ_shadowbox:n}}
- \def\EQ_shadowbox:n #1{%
- \sbox{\z@}{\fbox{#1}}%
- \MH_if_boolean:nTF {shadowbox_star}{
- \MH_setlength:dn \@tempdima{\z@}%
- }{
- \MH_setlength:dn \@tempdima{\dp\z@+\shadowsize}%
- }
- \raisebox{\@tempdima}{%
- \if@RTL\makebox[\z@][r]{%
- \kern\shadowsize \textcolor{shadowcolor}{%
- \rule[-\dp\z@-\shadowsize]{\wd\z@}{\shadowsize}}%
- }%
- \else\makebox[\z@][l]{%
- \kern\shadowsize \textcolor{shadowcolor}{%
- \rule[-\dp\z@-\shadowsize]{\wd\z@}{\shadowsize}}%
- }\fi%
- \usebox\z@\textcolor{shadowcolor}{%
- \rule[-\dp\z@-\shadowsize]{\shadowsize}{\ht\z@+\dp\z@}}}}%
- }{}%
-}
-\MHInternalSyntaxOff
-\endinput
-%%
-%% End of file `empheq-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/eso-pic-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/eso-pic-xetex-bidi.def
deleted file mode 100644
index 06482193e9f..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/eso-pic-xetex-bidi.def
+++ /dev/null
@@ -1,78 +0,0 @@
-%%
-%% This is file `eso-pic-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,eso-pic-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{eso-pic-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for eso-pic package for XeTeX engine]
-\renewcommand\AtPageLowerLeft[1]{\AtPageUpperLeft{%
- \put(\LenToUnit{\if@RTLmain\paperwidth\else0pt\fi},\LenToUnit{-\paperheight}){#1}}}
-
-\ESO@isMEMOIR{%
- \renewcommand\AtTextUpperLeft[1]{%
- \begingroup
- \ifodd\c@page
- \@tempdima=\spinemargin
- \else
- \@tempdima=\paperwidth
- \advance\@tempdima-\textwidth
- \advance\@tempdima-\spinemargin
- \fi
- \@tempdimb=-\uppermargin
- \AtPageUpperLeft{%
- \put(\LenToUnit{\if@RTLmain-\fi\@tempdima},\LenToUnit{\@tempdimb}){#1}%
- }%
- \endgroup
- }
-}{%
- \renewcommand\AtTextUpperLeft[1]{%
- \begingroup
- \@tempdima=1in\relax
- \ifodd\c@page
- \advance\@tempdima\oddsidemargin
- \else
- \advance\@tempdima\evensidemargin
- \fi
- \@tempdimb=-1in\relax
- \advance\@tempdimb-\topmargin
- \advance\@tempdimb-\headheight
- \advance\@tempdimb-\headsep
- \AtPageUpperLeft{%
- \put(\LenToUnit{\if@RTLmain-\fi\@tempdima},\LenToUnit{\@tempdimb}){#1}%
- }%
- \endgroup
- }
-}
-\endinput
-%%
-%% End of file `eso-pic-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def
deleted file mode 100644
index b717e33eb7f..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def
+++ /dev/null
@@ -1,211 +0,0 @@
-%%
-%% This is file `extarticle-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,extarticle-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{extarticle-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for extarticle class for XeTeX engine]
-\renewcommand*\l@section[2]{%
- \ifnum \c@tocdepth >\z@
- \addpenalty\@secpenalty
- \addvspace{1.0em \@plus\p@}%
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \endgroup
- \fi}
- \renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty\@secpenalty
- \addvspace{2.25em \@plus\p@}%
- \begingroup
- \setlength\@tempdima{3em}%
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \endgroup
- \fi}
- \def\@part[#1]#2{%
- \ifnum \c@secnumdepth >\m@ne
- \refstepcounter{part}%
- \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
- \else
- \addcontentsline{toc}{part}{#1}%
- \fi
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
- \interlinepenalty \@M
- \normalfont
- \ifnum \c@secnumdepth >\m@ne
- \Large\bfseries \partname~\thepart
- \par\nobreak
- \fi
- \huge \bfseries #2%
- \markboth{}{}\par}%
- \nobreak
- \vskip 3ex
- \@afterheading}
- \def\@spart#1{%
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
- \interlinepenalty \@M
- \normalfont
- \huge \bfseries #1\par}%
- \nobreak
- \vskip 3ex
- \@afterheading}
-\renewenvironment{thebibliography}[1]
- {\section*{\refname
- \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy\clubpenalty4000\widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\renewcommand\left@footnoterule{%
- \kern-3\p@
- \hrule\@width.4\columnwidth
- \kern2.6\p@}
-\renewcommand\right@footnoterule{%
- \kern-3\p@
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern2.6\p@}
- \if@titlepage
- \renewcommand\maketitle{\begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- {\LARGE \@title \par}%
- \vskip 3em%
- {\large
- \lineskip .75em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large \@date \par}% % Set date in \large size.
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\else
-\renewcommand\maketitle{\par
- \begingroup
- \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext##1{\parindent 1em\noindent
- \hb@xt@1.8em{%
- \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@ % Prevents figures from going at top of page.
- \@maketitle
- \fi
- \thispagestyle{plain}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
- \begin{center}%
- \let \footnote \thanks
- {\LARGE \@title \par}%
- \vskip 1.5em%
- {\large
- \lineskip .5em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1em%
- {\large \@date}%
- \end{center}%
- \par
- \vskip 1.5em}
-\fi
-\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
-\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}%%
-\endinput
-%%
-%% End of file `extarticle-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/extbook-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/extbook-xetex-bidi.def
deleted file mode 100644
index c0d9e2abbf2..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/extbook-xetex-bidi.def
+++ /dev/null
@@ -1,212 +0,0 @@
-%%
-%% This is file `extbook-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,extbook-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{extbook-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for extbook class for XeTeX engine]
- \if@titlepage
- \renewcommand\maketitle{\begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \let \LTRfootnote \LTRthanks
- \let \RTLfootnote \RTLthanks
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- {\LARGE \@title \par}%
- \vskip 3em%
- {\large
- \lineskip .75em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large \@date \par}% % Set date in \large size.
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\else
-\renewcommand\maketitle{\par
- \begingroup
- \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext##1{\parindent 1em\noindent
- \hb@xt@1.8em{%
- \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@ % Prevents figures from going at top of page.
- \@maketitle
- \fi
- \thispagestyle{plain}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
- \begin{center}%
- \let \footnote \thanks
- \let \LTRfootnote \LTRthanks
- \let \RTLfootnote \RTLthanks
- {\LARGE \@title \par}%
- \vskip 1.5em%
- {\large
- \lineskip .5em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1em%
- {\large \@date}%
- \end{center}%
- \par
- \vskip 1.5em}
-\fi
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \endgroup
- \fi}
-\renewcommand\theequation
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
-\renewcommand \thefigure
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
-\renewcommand \thetable
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
-\renewcommand \thechapter {\@arabic\c@chapter}
-\renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
-\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
-\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
-\def\@makechapterhead#1{%
- \vspace*{50\p@}%
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
- \ifnum \c@secnumdepth >\m@ne
- \if@mainmatter
- \huge\bfseries \@chapapp\space \thechapter
- \par\nobreak
- \vskip 20\p@
- \fi
- \fi
- \interlinepenalty\@M
- \Huge \bfseries #1\par\nobreak
- \vskip 40\p@
- }}
-
-\def\@makeschapterhead#1{%
- \vspace*{50\p@}%
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
- \normalfont
- \interlinepenalty\@M
- \Huge \bfseries #1\par\nobreak
- \vskip 40\p@
- }}
-\renewcommand\backmatter{%
- \if@openright
- \cleardoublepage
- \else
- \clearpage
- \fi
- \@mainmatterfalse}
-\renewenvironment{thebibliography}[1]
- {\chapter*{\bibname
- \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy
- \clubpenalty4000
- \@clubpenalty \clubpenalty
- \widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\endinput
-%%
-%% End of file `extbook-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/extletter-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/extletter-xetex-bidi.def
deleted file mode 100644
index 1dff2449eff..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/extletter-xetex-bidi.def
+++ /dev/null
@@ -1,72 +0,0 @@
-%%
-%% This is file `extletter-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,extletter-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{extletter-xetex-bidi.def}[2015/11/14 v0.2 bidi adaptations for extletter class for XeTeX engine]
-\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
- \thispagestyle{firstpage}%
- {\if@RTL\raggedright\else\raggedleft\fi\@date\par}%
- \else % home address
- \thispagestyle{empty}%
- {\if@RTL\raggedright\begin{tabular}{r@{}}\else\raggedleft\begin{tabular}{l@{}}\fi\ignorespaces
- \fromaddress \\*[2\parskip]%
- \@date \end{tabular}\par}%
- \fi
- \vspace{2\parskip}%
- {\if@RTL\raggedleft\else\raggedright\fi \toname \\ \toaddress \par}%
- \vspace{2\parskip}%
- #1\par\nobreak}
-\renewcommand{\closing}[1]{\par\nobreak\vspace{\parskip}%
- \stopbreaks
- \noindent
- \ifx\@empty\fromaddress\else
- \hspace*{\longindentation}\fi
- \parbox{\indentedwidth}{\if@RTL\raggedleft\else\raggedright\fi
- \ignorespaces #1\\[6\medskipamount]%
- \ifx\@empty\fromsig
- \fromname
- \else \fromsig \fi\strut}%
- \par}
-\renewcommand\left@footnoterule{%
- \kern-\p@
- \hrule \@width .4\columnwidth
- \kern .6\p@}
-\renewcommand\right@footnoterule{%
- \kern-\p@
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern .6\p@}
-\endinput
-%%
-%% End of file `extletter-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def
deleted file mode 100644
index 242303a6c3c..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def
+++ /dev/null
@@ -1,1865 +0,0 @@
-%%
-%% This is file `extrafootnotefeatures-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,extrafootnotefeatures-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{extrafootnotefeatures-xetex-bidi.def}[2015/11/23 v0.7 bidi extra footnote features for XeTeX engine]
-\let\autofootnoterule\relax
-\let\rightfootnoterule\relax
-\let\leftfootnoterule\relax
-\let\textwidthfootnoterule\relax
-\let\LRfootnoterule\relax
-\def\footnoterule{\kern-3\p@
- \hrule \@width \columnwidth \kern 2.6\p@}
-\bidi@ensure@newcommand{\setRTLparagraphfootnotes}{\@parafootRTLtrue}
-\bidi@ensure@newcommand{\setLTRparagraphfootnotes}{\@parafootRTLfalse}
-\renewcommand{\@footnotetext}[1]{%
- \insert\footins{%
- \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font
- \foottextfont
- \@preamfntext
- \hsize\columnwidth
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces{\foottextfont #1}%
- \@finalstrut\strutbox}%
- \color@endgroup}%
- \m@mmf@prepare}
-\renewcommand{\@RTLfootnotetext}[1]{%
- \insert\footins{%
- \@RTLtrue%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font
- \RTLfoottextfont
- \@preamfntext
- \hsize\columnwidth
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces{\RTLfoottextfont #1}%
- \@finalstrut\strutbox}%
- \color@endgroup}%
- \m@mmf@prepare}
-\renewcommand{\@LTRfootnotetext}[1]{%
- \insert\footins{%
- \@RTLfalse%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font
- \LTRfoottextfont
- \@preamfntext
- \hsize\columnwidth
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces{\LTRfoottextfont #1}%
- \@finalstrut\strutbox}%
- \color@endgroup}%
- \m@mmf@prepare}
-\renewcommand{\@mpfootnotetext}[1]{%
- \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \unvbox\@mpfootins
- \def\baselinestretch{\m@m@footnote@spacing}%
- \foottextfont \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \reset@font%
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces{\foottextfont #1}%
- \@finalstrut\strutbox}%
- \color@endgroup}}
-\renewcommand{\@mpLTRfootnotetext}[1]{%
- \global\setbox\@mpfootins\vbox{\@RTLfalse%
- \unvbox\@mpfootins
- \def\baselinestretch{\m@m@footnote@spacing}%
- \LTRfoottextfont \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \reset@font%
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces{\LTRfoottextfont #1}%
- \@finalstrut\strutbox}%
- \color@endgroup}}
-\renewcommand{\@mpRTLfootnotetext}[1]{%
- \global\setbox\@mpfootins\vbox{\@RTLtrue%
- \unvbox\@mpfootins
- \def\baselinestretch{\m@m@footnote@spacing}%
- \RTLfoottextfont \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \reset@font%
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces{\RTLfoottextfont #1}%
- \@finalstrut\strutbox}%
- \color@endgroup}}
-\let\m@mold@footnotetext\@footnotetext
-\let\m@mold@LTRfootnotetext\@LTRfootnotetext
-\let\m@mold@RTLfootnotetext\@RTLfootnotetext
-\let\m@mold@mpfootnotetext\@mpfootnotetext
-\let\m@mold@mpLTRfootnotetext\@mpLTRfootnotetext
-\let\m@mold@mpRTLfootnotetext\@mpRTLfootnotetext
-\bidi@ensure@newcommand{\normalfootnotes}{%
- \let\@footnotetext\m@mold@footnotetext
- \let\@LTRfootnotetext\m@mold@LTRfootnotetext
- \let\@RTLfootnotetext\m@mold@RTLfootnotetext
- \let\@mpfootnotetext\m@mold@mpfootnotetext
- \let\@mpLTRfootnotetext\m@mold@mpLTRfootnotetext
- \let\@mpRTLfootnotetext\m@mold@mpRTLfootnotetext}
-\@ifclassloaded{memoir}{\let\plainfootnotes\normalfootnotes}{}
-\bidi@ensure@newcommand*{\RTLcolumnfootnotes}{\@RTLcolumnfootnotestrue}
-\bidi@ensure@newcommand*{\LTRcolumnfootnotes}{\@RTLcolumnfootnotesfalse}
-\bidi@ensure@newcommand*{\setSingleSpace}[1]{%
- \def\m@m@singlespace{#1}%
- \def\m@m@footnote@spacing{#1}%
- \def\m@m@float@spacing{#1} %
-}
-\setSingleSpace{1}
-\newinsert\sideins
-\bidi@ensure@newcommand*{\multiplefootnotemarker}{3sp}
-\bidi@ensure@newcommand*{\m@mmf@prepare}{%
- \kern-\multiplefootnotemarker
- \kern\multiplefootnotemarker\relax}
-\bidi@ensure@newlength{\footmarkwidth}
-\bidi@ensure@newlength{\footmarksep}
-\bidi@ensure@newlength{\footparindent}
-\bidi@ensure@newcommand*{\footmarkstyle}[1]{\def\footscript##1{#1}}
-\bidi@ensure@newcommand{\footfootmark}{%
- \ifdim\footmarkwidth < \z@
- \llap{\hb@xt@ -\footmarkwidth{%
- \hss\normalfont\footscript{\@thefnmark}}%
- \hspace*{-\footmarkwidth}}%
- \else
- \ifdim\footmarkwidth = \z@
- {\normalfont\footscript{\@thefnmark}}%
- \else
- \hb@xt@\footmarkwidth{\hss\normalfont\footscript{\@thefnmark}}%
- \fi
- \fi}
-\footmarkstyle{\textsuperscript{#1}}
-\setlength{\footmarkwidth}{1.8em}
-\setlength{\footparindent}{1em}
-\bidi@ensure@newcommand{\m@mdoextrafeet}{\extrafeetins}
-\bidi@ensure@newcommand*{\extrafeetins}{%
- \setbox\@outputbox \vbox{%
- \boxmaxdepth \@maxdepth
- \unvbox\@outputbox
- \ifvoid\footinsv@r\else\@footstartv@r\@footgroupv@r\fi
- \extrafeetinshook}}
-\bidi@ensure@newcommand{\extrafeetinshook}{}
-\bidi@ensure@newcommand{\foottextfont}{\footnotesize}
-\bidi@ensure@newcommand{\LTRfoottextfont}{\footnotesize}
-\bidi@ensure@newcommand{\RTLfoottextfont}{\footnotesize}
-\bidi@ensure@newlength{\footinsdim}
- \setlength{\footinsdim}{8in} % standard for \dimen\footins
-\bidi@ensure@newcommand{\@preamfntext}{%
- \interlinepenalty\interfootnotelinepenalty
- \floatingpenalty \@MM
- \splittopskip=\footnotesep
- \splitmaxdepth=\dp\strutbox
- \@parboxrestore}
-\bidi@ensure@newcommand{\m@mdoextrafeetmini}{%
- \extrafeetminihook}
-\bidi@ensure@newcommand{\extrafeetendmini}{%
- \ifvoid\@mpfootinsv@r\else
- \vskip\skip\@mpfootins
- \normalcolor\footnoterule\mp@footgroupv@r
- \fi
- \extrafeetendminihook}
-\bidi@ensure@newcommand{\extrafeetendminihook}{}
-\bidi@ensure@newcommand{\m@mdoextrafeetendmini}{\extrafeetendmini}
-\def\endminipage{%
- \par
- \unskip
- \ifvoid\@mpfootins\else
- \vskip\skip\@mpfootins
- \normalcolor
- \footnoterule
- \unvbox\@mpfootins
- \fi
- \m@mdoextrafeetendmini
- \@minipagefalse
- \color@endgroup
- \egroup
- \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}}
-\bidi@ensure@newcommand{\m@make@footstart}[1]{%
- \@namedef{@footstart#1}{%
- \vskip\bigskipamount
- \leftskip=\z@
- \rightskip=\z@
- \footnoterule}}
-\newinsert\footinsv@r
- \skip\footinsv@r\bigskipamount
- \count\footinsv@r=1000 % no magnifcation
- \dimen\footinsv@r=\footinsdim
-\m@make@footstart{v@r}
-\bidi@ensure@newcommand{\@footgroupv@r}{}
-\newinsert\@mpfootinsv@r
-\bidi@ensure@newcommand{\mp@footgroupv@r}{}
-\newcount\m@m@k \newdimen\m@m@h
-\@ifpackageloaded{multicol}{%
-\bidi@ensure@newcommand*{\m@mrigidbalance}[3]{\setbox0=\box#1 \m@m@k=#2 \m@m@h=#3
- \hsize\textwidth
- \@@line{\if@RTLcolumnfootnotes\beginR\fi\splittopskip=\m@m@h \vbadness=\@M \hfilneg
- \valign{##\vfill\cr\m@mdosplits}\if@RTLcolumnfootnotes\endR\fi}}
-}{%
-\bidi@ensure@newcommand*{\m@mrigidbalance}[3]{\setbox0=\box#1 \m@m@k=#2 \m@m@h=#3
- \@@line{\if@RTLcolumnfootnotes\beginR\fi\splittopskip=\m@m@h \vbadness=\@M \hfilneg
- \valign{##\vfill\cr\m@mdosplits}\if@RTLcolumnfootnotes\endR\fi}}}
-\bidi@ensure@newcommand*{\m@mdosplits}{\ifnum\m@m@k>0 \noalign{\hfil}\m@msplitoff
- \global\advance\m@m@k-1\cr\m@mdosplits\fi}
-\bidi@ensure@newcommand*{\m@msplitoff}{\dimen0=\ht0
- \divide\dimen0 by\m@m@k \advance\dimen0 by\m@m@h
- \setbox2 \vsplit0 to \dimen0
- \unvbox2 }
-\bidi@ensure@newcommand{\twocolumnfootnotes}{%
- \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
- \let\@footnotetext\@twocolfootnotetext
- \let\@LTRfootnotetext\@twocolLTRfootnotetext
- \let\@RTLfootnotetext\@twocolRTLfootnotetext
- \dimen\footinsv@r=2\footinsdim
- \count\footinsv@r=500\relax
- \m@make@twocol@footgroup{v@r}%
- \let\@footgroupv@r\@twocol@footgroupv@r
- \let\@mpfootnotetext\@mptwocolfootnotetext
- \let\@mpLTRfootnotetext\@mptwocolLTRfootnotetext
- \let\@mpRTLfootnotetext\@mptwocolRTLfootnotetext
- \m@make@mptwocol@footgroup{v@r}%
- \let\mp@footgroupv@r\@mptwocol@footgroupv@r}
-\bidi@ensure@newcommand{\@twocolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@twocolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@twocolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@twocolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@twocolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@twocolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@preamtwofmt}{%
- \hsize .45\hsize
- \parindent=\z@
- \tolerance=5000\relax
- \leavevmode}
-\bidi@ensure@newcommand{\@twocolfootfmt}[1]{%
- \@preamtwofmt
- {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@twocolLTRfootfmt}[1]{%
- \@preamtwofmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@twocolRTLfootfmt}[1]{%
- \@preamtwofmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@mptwocolfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@twocolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mptwocolLTRfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \hsize\columnwidth \@parboxrestore
- \if@RTLcolumnfootnotes\beginL\fi
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@twocolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mptwocolRTLfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@twocolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\twocolumnfootstyle}[1]{%
- \m@make@twocolfootnotetext{#1}%
- \m@make@mptwocolfootnotetext{#1}%
- \m@make@twocolfootfmt{#1}%
- \m@make@twocol@footgroup{#1}%
- \m@make@mptwocol@footgroup{#1}%
- \m@make@footstart{#1}%
- \bidi@namelongdef{@footnotetext#1}##1{%
- \@nameuse{@twocolfootnotetext#1}{##1}}%
- \bidi@namelongdef{@mpfootnotetext#1}##1{%
- \@nameuse{@mptwocolfootnotetext#1}{##1}}%
- \@namedef{@footgroup#1}{\@nameuse{@twocol@footgroup#1}}%
- \@namedef{mp@footgroup#1}{\@nameuse{@mptwocol@footgroup#1}}%
- \expandafter\dimen\csname footins#1\endcsname=2\footinsdim
- \expandafter\count\csname footins#1\endcsname=500\relax}
-\bidi@ensure@newcommand{\m@make@twocolfootnotetext}[1]{%
- \bidi@namelongdef{@twocolfootnotetext#1}##1{%
- \insert\@nameuse{footins#1}{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@twocolfootfmt#1}{##1}%
- \color@endgroup}%
- \m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@mptwocolfootnotetext}[1]{%
-\bidi@namelongdef{@mptwocolfootnotetext#1}##1{%
- \global\setbox\@nameuse{@mpfootins#1}\vbox{%
- \unvbox\@nameuse{@mpfootins#1}
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@twocolfootfmt#1}{##1}%
- \color@endgroup}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@twocolfootfmt}[1]{%
- \@namedef{@twocolfootfmt#1}##1{%
- \@preamtwofmt
- {\@nameuse{footfootmark#1}\strut
- {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}}
-\bidi@ensure@newcommand{\m@make@twocol@footgroup}[1]{%
- \@namedef{@twocol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{footins#1}}{\tw@}{\splittopskip}}}}
-\bidi@ensure@newcommand{\m@make@mptwocol@footgroup}[1]{%
-\@namedef{@mptwocol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{@mpfootins#1}}{\tw@}{\splittopskip}}}}
-\bidi@ensure@newcommand{\threecolumnfootnotes}{%
- \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
- \let\@footnotetext\@threecolfootnotetext
- \let\@LTRfootnotetext\@threecolLTRfootnotetext
- \let\@RTLfootnotetext\@threecolRTLfootnotetext
- \dimen\footinsv@r=3\footinsdim
- \count\footinsv@r=333\relax
- \m@make@threecol@footgroup{v@r}%
- \let\@footgroupv@r\@threecol@footgroupv@r
- \let\@mpfootnotetext\@mpthreecolfootnotetext
- \let\@mpLTRfootnotetext\@mpthreecolLTRfootnotetext
- \let\@mpRTLfootnotetext\@mpthreecolRTLfootnotetext
- \m@make@mpthreecol@footgroup{v@r}%
- \let\mp@footgroupv@r\@mpthreecol@footgroupv@r}
-\bidi@ensure@newcommand{\@threecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@threecolfootfmt{#1}%
- \color@endgroup}\m@mmf@prepare}
-\bidi@ensure@newcommand{\@threecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@threecolLTRfootfmt{#1}%
- \color@endgroup}\m@mmf@prepare}
-\bidi@ensure@newcommand{\@threecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@threecolRTLfootfmt{#1}%
- \color@endgroup}\m@mmf@prepare}
-\bidi@ensure@newcommand{\@preamthreefmt}{%
- \hsize .3\hsize
- \parindent=\z@
- \tolerance=5000\relax
- \leavevmode}
-\bidi@ensure@newcommand{\@threecolfootfmt}[1]{%
- \@preamthreefmt
- {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@threecolLTRfootfmt}[1]{%
- \@preamthreefmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@threecolRTLfootfmt}[1]{%
- \@preamthreefmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@mpthreecolfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@threecolfootfmt{#1}%
- \color@endgroup}\m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpthreecolLTRfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \hsize\columnwidth \@parboxrestore
- \if@RTLcolumnfootnotes\beginL\fi
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@threecolLTRfootfmt{#1}%
- \color@endgroup}\m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpthreecolRTLfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@threecolRTLfootfmt{#1}%
- \color@endgroup}\m@mmf@prepare}
-\bidi@ensure@newcommand{\threecolumnfootstyle}[1]{%
- \m@make@threecolfootnotetext{#1}%
- \m@make@mpthreecolfootnotetext{#1}%
- \m@make@threecolfootfmt{#1}%
- \m@make@threecol@footgroup{#1}%
- \m@make@mpthreecol@footgroup{#1}%
- \m@make@footstart{#1}%
- \bidi@namelongdef{@footnotetext#1}##1{%
- \@nameuse{@threecolfootnotetext#1}{##1}}%
- \bidi@namelongdef{@mpfootnotetext#1}##1{%
- \@nameuse{@mpthreecolfootnotetext#1}{##1}}%
- \@namedef{@footgroup#1}{\@nameuse{@threecol@footgroup#1}}%
- \@namedef{mp@footgroup#1}{\@nameuse{@mpthreecol@footgroup#1}}%
- \expandafter\dimen\csname footins#1\endcsname=3\footinsdim
- \expandafter\count\csname footins#1\endcsname=333\relax}
-\bidi@ensure@newcommand{\m@make@threecolfootnotetext}[1]{%
-\bidi@namelongdef{@threecolfootnotetext#1}##1{%
- \insert\@nameuse{footins#1}{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@threecolfootfmt#1}{##1}%
- \color@endgroup}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@mpthreecolfootnotetext}[1]{%
-\bidi@namelongdef{@mpthreecolfootnotetext#1}##1{%
- \global\setbox\@nameuse{@mpfootins#1}\vbox{%
- \unvbox\@nameuse{@mpfootins#1}
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@threecolfootfmt#1}{##1}%
- \color@endgroup}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@threecolfootfmt}[1]{%
-\bidi@namelongdef{@threecolfootfmt#1}##1{%
- \@preamthreefmt
- {\@nameuse{footfootmark#1}\strut
- {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}}
-\bidi@ensure@newcommand{\m@make@threecol@footgroup}[1]{%
-\@namedef{@threecol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{footins#1}}{\thr@@}{\splittopskip}}}}
-\bidi@ensure@newcommand{\m@make@mpthreecol@footgroup}[1]{%
-\@namedef{@mpthreecol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{@mpfootins#1}}{\thr@@}{\splittopskip}}}}
-\bidi@ensure@newcommand{\fourcolumnfootnotes}{%
- \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
- \let\@footnotetext\@fourcolfootnotetext
- \let\@LTRfootnotetext\@fourcolLTRfootnotetext
- \let\@RTLfootnotetext\@fourcolRTLfootnotetext
- \dimen\footinsv@r=4\footinsdim
- \count\footinsv@r=250\relax
- \m@make@fourcol@footgroup{v@r}%
- \let\@footgroupv@r\@fourcol@footgroupv@r
- \let\@mpfootnotetext\@mpfourcolfootnotetext
- \let\@mpLTRfootnotetext\@mpfourcolLTRfootnotetext
- \let\@mpRTLfootnotetext\@mpfourcolRTLfootnotetext
- \m@make@mpfourcol@footgroup{v@r}%
- \let\mp@footgroupv@r\@mpfourcol@footgroupv@r}
-\bidi@ensure@newcommand{\@fourcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fourcolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@fourcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fourcolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@fourcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fourcolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@preamfourfmt}{%
- \hsize .25\hsize
- \parindent=\z@
- \tolerance=5000\relax
- \leavevmode}
-\bidi@ensure@newcommand{\@fourcolfootfmt}[1]{%
- \@preamfourfmt
- {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@fourcolLTRfootfmt}[1]{%
- \@preamfourfmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@fourcolRTLfootfmt}[1]{%
- \@preamfourfmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@mpfourcolfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fourcolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpfourcolLTRfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \hsize\columnwidth \@parboxrestore
- \if@RTLcolumnfootnotes\beginL\fi
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fourcolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpfourcolRTLfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fourcolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\fourcolumnfootstyle}[1]{%
- \m@make@fourcolfootnotetext{#1}%
- \m@make@mpfourcolfootnotetext{#1}%
- \m@make@fourcolfootfmt{#1}%
- \m@make@fourcol@footgroup{#1}%
- \m@make@mpfourcol@footgroup{#1}%
- \m@make@footstart{#1}%
- \bidi@namelongdef{@footnotetext#1}##1{%
- \@nameuse{@fourcolfootnotetext#1}{##1}}%
- \bidi@namelongdef{@mpfootnotetext#1}##1{%
- \@nameuse{@mpfourcolfootnotetext#1}{##1}}%
- \@namedef{@footgroup#1}{\@nameuse{@fourcol@footgroup#1}}%
- \@namedef{mp@footgroup#1}{\@nameuse{@mpfourcol@footgroup#1}}%
- \expandafter\dimen\csname footins#1\endcsname=2\footinsdim
- \expandafter\count\csname footins#1\endcsname=500\relax}
-\bidi@ensure@newcommand{\m@make@fourcolfootnotetext}[1]{%
- \bidi@namelongdef{@fourcolfootnotetext#1}##1{%
- \insert\@nameuse{footins#1}{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@fourcolfootfmt#1}{##1}%
- \color@endgroup}%
- \m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@mpfourcolfootnotetext}[1]{%
-\bidi@namelongdef{@mpfourcolfootnotetext#1}##1{%
- \global\setbox\@nameuse{@mpfootins#1}\vbox{%
- \unvbox\@nameuse{@mpfootins#1}
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@fourcolfootfmt#1}{##1}%
- \color@endgroup}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@fourcolfootfmt}[1]{%
- \@namedef{@fourcolfootfmt#1}##1{%
- \@preamfourfmt
- {\@nameuse{footfootmark#1}\strut
- {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}}
-\bidi@ensure@newcommand{\m@make@fourcol@footgroup}[1]{%
- \@namedef{@fourcol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{footins#1}}{4}{\splittopskip}}}}
-\bidi@ensure@newcommand{\m@make@mpfourcol@footgroup}[1]{%
-\@namedef{@mpfourcol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{@mpfootins#1}}{4}{\splittopskip}}}}
-\bidi@ensure@newcommand{\fivecolumnfootnotes}{%
- \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
- \let\@footnotetext\@fivecolfootnotetext
- \let\@LTRfootnotetext\@fivecolLTRfootnotetext
- \let\@RTLfootnotetext\@fivecolRTLfootnotetext
- \dimen\footinsv@r=5\footinsdim
- \count\footinsv@r=200\relax
- \m@make@fivecol@footgroup{v@r}%
- \let\@footgroupv@r\@fivecol@footgroupv@r
- \let\@mpfootnotetext\@mpfivecolfootnotetext
- \let\@mpLTRfootnotetext\@mpfivecolLTRfootnotetext
- \let\@mpRTLfootnotetext\@mpfivecolRTLfootnotetext
- \m@make@mpfivecol@footgroup{v@r}%
- \let\mp@footgroupv@r\@mpfivecol@footgroupv@r}
-\bidi@ensure@newcommand{\@fivecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fivecolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@fivecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fivecolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@fivecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fivecolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@preamfivefmt}{%
- \hsize .2\hsize
- \parindent=\z@
- \tolerance=5000\relax
- \leavevmode}
-\bidi@ensure@newcommand{\@fivecolfootfmt}[1]{%
- \@preamfivefmt
- {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@fivecolLTRfootfmt}[1]{%
- \@preamfivefmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@fivecolRTLfootfmt}[1]{%
- \@preamfivefmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@mpfivecolfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fivecolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpfivecolLTRfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \hsize\columnwidth \@parboxrestore
- \if@RTLcolumnfootnotes\beginL\fi
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fivecolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpfivecolRTLfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@fivecolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\fivecolumnfootstyle}[1]{%
- \m@make@fivecolfootnotetext{#1}%
- \m@make@mpfivecolfootnotetext{#1}%
- \m@make@fivecolfootfmt{#1}%
- \m@make@fivecol@footgroup{#1}%
- \m@make@mpfivecol@footgroup{#1}%
- \m@make@footstart{#1}%
- \bidi@namelongdef{@footnotetext#1}##1{%
- \@nameuse{@fivecolfootnotetext#1}{##1}}%
- \bidi@namelongdef{@mpfootnotetext#1}##1{%
- \@nameuse{@mpfivecolfootnotetext#1}{##1}}%
- \@namedef{@footgroup#1}{\@nameuse{@fivecol@footgroup#1}}%
- \@namedef{mp@footgroup#1}{\@nameuse{@mpfivecol@footgroup#1}}%
- \expandafter\dimen\csname footins#1\endcsname=2\footinsdim
- \expandafter\count\csname footins#1\endcsname=500\relax}
-\bidi@ensure@newcommand{\m@make@fivecolfootnotetext}[1]{%
- \bidi@namelongdef{@fivecolfootnotetext#1}##1{%
- \insert\@nameuse{footins#1}{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@fivecolfootfmt#1}{##1}%
- \color@endgroup}%
- \m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@mpfivecolfootnotetext}[1]{%
-\bidi@namelongdef{@mpfivecolfootnotetext#1}##1{%
- \global\setbox\@nameuse{@mpfootins#1}\vbox{%
- \unvbox\@nameuse{@mpfootins#1}
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@fivecolfootfmt#1}{##1}%
- \color@endgroup}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@fivecolfootfmt}[1]{%
- \@namedef{@fivecolfootfmt#1}##1{%
- \@preamfivefmt
- {\@nameuse{footfootmark#1}\strut
- {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}}
-\bidi@ensure@newcommand{\m@make@fivecol@footgroup}[1]{%
- \@namedef{@fivecol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{footins#1}}{5}{\splittopskip}}}}
-\bidi@ensure@newcommand{\m@make@mpfivecol@footgroup}[1]{%
-\@namedef{@mpfivecol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{@mpfootins#1}}{5}{\splittopskip}}}}
-\bidi@ensure@newcommand{\sixcolumnfootnotes}{%
- \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
- \let\@footnotetext\@sixcolfootnotetext
- \let\@LTRfootnotetext\@sixcolLTRfootnotetext
- \let\@RTLfootnotetext\@sixcolRTLfootnotetext
- \dimen\footinsv@r=6\footinsdim
- \count\footinsv@r=166\relax
- \m@make@sixcol@footgroup{v@r}%
- \let\@footgroupv@r\@sixcol@footgroupv@r
- \let\@mpfootnotetext\@mpsixcolfootnotetext
- \let\@mpLTRfootnotetext\@mpsixcolLTRfootnotetext
- \let\@mpRTLfootnotetext\@mpsixcolRTLfootnotetext
- \m@make@mpsixcol@footgroup{v@r}%
- \let\mp@footgroupv@r\@mpsixcol@footgroupv@r}
-\bidi@ensure@newcommand{\@sixcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sixcolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@sixcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sixcolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@sixcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sixcolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@preamsixfmt}{%
- \hsize .16\hsize
- \parindent=\z@
- \tolerance=5000\relax
- \leavevmode}
-\bidi@ensure@newcommand{\@sixcolfootfmt}[1]{%
- \@preamsixfmt
- {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@sixcolLTRfootfmt}[1]{%
- \@preamsixfmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@sixcolRTLfootfmt}[1]{%
- \@preamsixfmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@mpsixcolfootnotetext}[1]{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \global\setbox\@mpfootinsv@r\vbox{%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sixcolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpsixcolLTRfootnotetext}[1]{\@RTLfalse%
- \global\setbox\@mpfootinsv@r\vbox{%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \hsize\columnwidth \@parboxrestore
- \if@RTLcolumnfootnotes\beginL\fi
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sixcolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpsixcolRTLfootnotetext}[1]{\@RTLtrue%
- \global\setbox\@mpfootinsv@r\vbox{%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sixcolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\sixcolumnfootstyle}[1]{%
- \m@make@sixcolfootnotetext{#1}%
- \m@make@mpsixcolfootnotetext{#1}%
- \m@make@sixcolfootfmt{#1}%
- \m@make@sixcol@footgroup{#1}%
- \m@make@mpsixcol@footgroup{#1}%
- \m@make@footstart{#1}%
- \bidi@namelongdef{@footnotetext#1}##1{%
- \@nameuse{@sixcolfootnotetext#1}{##1}}%
- \bidi@namelongdef{@mpfootnotetext#1}##1{%
- \@nameuse{@mpsixcolfootnotetext#1}{##1}}%
- \@namedef{@footgroup#1}{\@nameuse{@sixcol@footgroup#1}}%
- \@namedef{mp@footgroup#1}{\@nameuse{@mpsixcol@footgroup#1}}%
- \expandafter\dimen\csname footins#1\endcsname=2\footinsdim
- \expandafter\count\csname footins#1\endcsname=500\relax}
-\bidi@ensure@newcommand{\m@make@sixcolfootnotetext}[1]{%
- \bidi@namelongdef{@sixcolfootnotetext#1}##1{%
- \insert\@nameuse{footins#1}{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@sixcolfootfmt#1}{##1}%
- \color@endgroup}%
- \m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@mpsixcolfootnotetext}[1]{%
-\bidi@namelongdef{@mpsixcolfootnotetext#1}##1{%
- \global\setbox\@nameuse{@mpfootins#1}\vbox{%
- \unvbox\@nameuse{@mpfootins#1}
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@sixcolfootfmt#1}{##1}%
- \color@endgroup}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@sixcolfootfmt}[1]{%
- \@namedef{@sixcolfootfmt#1}##1{%
- \@preamsixfmt
- {\@nameuse{footfootmark#1}\strut
- {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}}
-\bidi@ensure@newcommand{\m@make@sixcol@footgroup}[1]{%
- \@namedef{@sixcol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{footins#1}}{6}{\splittopskip}}}}
-\bidi@ensure@newcommand{\m@make@mpsixcol@footgroup}[1]{%
-\@namedef{@mpsixcol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{@mpfootins#1}}{6}{\splittopskip}}}}
-\bidi@ensure@newcommand{\sevencolumnfootnotes}{%
- \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
- \let\@footnotetext\@sevencolfootnotetext
- \let\@LTRfootnotetext\@sevencolLTRfootnotetext
- \let\@RTLfootnotetext\@sevencolRTLfootnotetext
- \dimen\footinsv@r=7\footinsdim
- \count\footinsv@r=142\relax
- \m@make@sevencol@footgroup{v@r}%
- \let\@footgroupv@r\@sevencol@footgroupv@r
- \let\@mpfootnotetext\@mpsevencolfootnotetext
- \let\@mpLTRfootnotetext\@mpsevencolLTRfootnotetext
- \let\@mpRTLfootnotetext\@mpsevencolRTLfootnotetext
- \m@make@mpsevencol@footgroup{v@r}%
- \let\mp@footgroupv@r\@mpsevencol@footgroupv@r}
-\bidi@ensure@newcommand{\@sevencolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sevencolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@sevencolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sevencolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@sevencolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sevencolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@preamsevenfmt}{%
- \hsize .142\hsize
- \parindent=\z@
- \tolerance=5000\relax
- \leavevmode}
-\bidi@ensure@newcommand{\@sevencolfootfmt}[1]{%
- \@preamsevenfmt
- {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@sevencolLTRfootfmt}[1]{%
- \@preamsevenfmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@sevencolRTLfootfmt}[1]{%
- \@preamsevenfmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@mpsevencolfootnotetext}[1]{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \global\setbox\@mpfootinsv@r\vbox{%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sevencolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpsevencolLTRfootnotetext}[1]{\@RTLfalse%
- \global\setbox\@mpfootinsv@r\vbox{%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \hsize\columnwidth \@parboxrestore
- \if@RTLcolumnfootnotes\beginL\fi
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sevencolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpsevencolRTLfootnotetext}[1]{\@RTLtrue%
- \global\setbox\@mpfootinsv@r\vbox{%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@sevencolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\sevencolumnfootstyle}[1]{%
- \m@make@sevencolfootnotetext{#1}%
- \m@make@mpsevencolfootnotetext{#1}%
- \m@make@sevencolfootfmt{#1}%
- \m@make@sevencol@footgroup{#1}%
- \m@make@mpsevencol@footgroup{#1}%
- \m@make@footstart{#1}%
- \bidi@namelongdef{@footnotetext#1}##1{%
- \@nameuse{@sevencolfootnotetext#1}{##1}}%
- \bidi@namelongdef{@mpfootnotetext#1}##1{%
- \@nameuse{@mpsevencolfootnotetext#1}{##1}}%
- \@namedef{@footgroup#1}{\@nameuse{@sevencol@footgroup#1}}%
- \@namedef{mp@footgroup#1}{\@nameuse{@mpsevencol@footgroup#1}}%
- \expandafter\dimen\csname footins#1\endcsname=2\footinsdim
- \expandafter\count\csname footins#1\endcsname=500\relax}
-\bidi@ensure@newcommand{\m@make@sevencolfootnotetext}[1]{%
- \bidi@namelongdef{@sevencolfootnotetext#1}##1{%
- \insert\@nameuse{footins#1}{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@sevencolfootfmt#1}{##1}%
- \color@endgroup}%
- \m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@mpsevencolfootnotetext}[1]{%
-\bidi@namelongdef{@mpsevencolfootnotetext#1}##1{%
- \global\setbox\@nameuse{@mpfootins#1}\vbox{%
- \unvbox\@nameuse{@mpfootins#1}
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@sevencolfootfmt#1}{##1}%
- \color@endgroup}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@sevencolfootfmt}[1]{%
- \@namedef{@sevencolfootfmt#1}##1{%
- \@preamsevenfmt
- {\@nameuse{footfootmark#1}\strut
- {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}}
-\bidi@ensure@newcommand{\m@make@sevencol@footgroup}[1]{%
- \@namedef{@sevencol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{footins#1}}{7}{\splittopskip}}}}
-\bidi@ensure@newcommand{\m@make@mpsevencol@footgroup}[1]{%
-\@namedef{@mpsevencol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{@mpfootins#1}}{7}{\splittopskip}}}}
-\bidi@ensure@newcommand{\eightcolumnfootnotes}{%
- \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
- \let\@footnotetext\@eightcolfootnotetext
- \let\@LTRfootnotetext\@eightcolLTRfootnotetext
- \let\@RTLfootnotetext\@eightcolRTLfootnotetext
- \dimen\footinsv@r=8\footinsdim
- \count\footinsv@r=125\relax
- \m@make@eightcol@footgroup{v@r}%
- \let\@footgroupv@r\@eightcol@footgroupv@r
- \let\@mpfootnotetext\@mpeightcolfootnotetext
- \let\@mpLTRfootnotetext\@mpeightcolLTRfootnotetext
- \let\@mpRTLfootnotetext\@mpeightcolRTLfootnotetext
- \m@make@mpeightcol@footgroup{v@r}%
- \let\mp@footgroupv@r\@mpeightcol@footgroupv@r}
-\bidi@ensure@newcommand{\@eightcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@eightcolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@eightcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@eightcolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@eightcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@eightcolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@preameightfmt}{%
- \hsize .125\hsize
- \parindent=\z@
- \tolerance=5000\relax
- \leavevmode}
-\bidi@ensure@newcommand{\@eightcolfootfmt}[1]{%
- \@preameightfmt
- {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@eightcolLTRfootfmt}[1]{%
- \@preameightfmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@eightcolRTLfootfmt}[1]{%
- \@preameightfmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@mpeightcolfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@eightcolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpeightcolLTRfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \hsize\columnwidth \@parboxrestore
- \if@RTLcolumnfootnotes\beginL\fi
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@eightcolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpeightcolRTLfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@eightcolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\eightcolumnfootstyle}[1]{%
- \m@make@eightcolfootnotetext{#1}%
- \m@make@mpeightcolfootnotetext{#1}%
- \m@make@eightcolfootfmt{#1}%
- \m@make@eightcol@footgroup{#1}%
- \m@make@mpeightcol@footgroup{#1}%
- \m@make@footstart{#1}%
- \bidi@namelongdef{@footnotetext#1}##1{%
- \@nameuse{@eightcolfootnotetext#1}{##1}}%
- \bidi@namelongdef{@mpfootnotetext#1}##1{%
- \@nameuse{@mpeightcolfootnotetext#1}{##1}}%
- \@namedef{@footgroup#1}{\@nameuse{@eightcol@footgroup#1}}%
- \@namedef{mp@footgroup#1}{\@nameuse{@mpeightcol@footgroup#1}}%
- \expandafter\dimen\csname footins#1\endcsname=2\footinsdim
- \expandafter\count\csname footins#1\endcsname=500\relax}
-\bidi@ensure@newcommand{\m@make@eightcolfootnotetext}[1]{%
- \bidi@namelongdef{@eightcolfootnotetext#1}##1{%
- \insert\@nameuse{footins#1}{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@eightcolfootfmt#1}{##1}%
- \color@endgroup}%
- \m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@mpeightcolfootnotetext}[1]{%
-\bidi@namelongdef{@mpeightcolfootnotetext#1}##1{%
- \global\setbox\@nameuse{@mpfootins#1}\vbox{%
- \unvbox\@nameuse{@mpfootins#1}
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@eightcolfootfmt#1}{##1}%
- \color@endgroup}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@eightcolfootfmt}[1]{%
- \@namedef{@eightcolfootfmt#1}##1{%
- \@preameightfmt
- {\@nameuse{footfootmark#1}\strut
- {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}}
-\bidi@ensure@newcommand{\m@make@eightcol@footgroup}[1]{%
- \@namedef{@eightcol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{footins#1}}{8}{\splittopskip}}}}
-\bidi@ensure@newcommand{\m@make@mpeightcol@footgroup}[1]{%
-\@namedef{@mpeightcol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{@mpfootins#1}}{8}{\splittopskip}}}}
-\bidi@ensure@newcommand{\ninecolumnfootnotes}{%
- \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
- \let\@footnotetext\@ninecolfootnotetext
- \let\@LTRfootnotetext\@ninecolLTRfootnotetext
- \let\@RTLfootnotetext\@ninecolRTLfootnotetext
- \dimen\footinsv@r=9\footinsdim
- \count\footinsv@r=111\relax
- \m@make@ninecol@footgroup{v@r}%
- \let\@footgroupv@r\@ninecol@footgroupv@r
- \let\@mpfootnotetext\@mpninecolfootnotetext
- \let\@mpLTRfootnotetext\@mpninecolLTRfootnotetext
- \let\@mpRTLfootnotetext\@mpninecolRTLfootnotetext
- \m@make@mpninecol@footgroup{v@r}%
- \let\mp@footgroupv@r\@mpninecol@footgroupv@r}
-\bidi@ensure@newcommand{\@ninecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@ninecolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@ninecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@ninecolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@ninecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@ninecolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@preamninefmt}{%
- \hsize .1\hsize
- \parindent=\z@
- \tolerance=5000\relax
- \leavevmode}
-\bidi@ensure@newcommand{\@ninecolfootfmt}[1]{%
- \@preamninefmt
- {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@ninecolLTRfootfmt}[1]{%
- \@preamninefmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@ninecolRTLfootfmt}[1]{%
- \@preamninefmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@mpninecolfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@ninecolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpninecolLTRfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \hsize\columnwidth \@parboxrestore
- \if@RTLcolumnfootnotes\beginL\fi
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@ninecolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpninecolRTLfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@ninecolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\ninecolumnfootstyle}[1]{%
- \m@make@ninecolfootnotetext{#1}%
- \m@make@mpninecolfootnotetext{#1}%
- \m@make@ninecolfootfmt{#1}%
- \m@make@ninecol@footgroup{#1}%
- \m@make@mpninecol@footgroup{#1}%
- \m@make@footstart{#1}%
- \bidi@namelongdef{@footnotetext#1}##1{%
- \@nameuse{@ninecolfootnotetext#1}{##1}}%
- \bidi@namelongdef{@mpfootnotetext#1}##1{%
- \@nameuse{@mpninecolfootnotetext#1}{##1}}%
- \@namedef{@footgroup#1}{\@nameuse{@ninecol@footgroup#1}}%
- \@namedef{mp@footgroup#1}{\@nameuse{@mpninecol@footgroup#1}}%
- \expandafter\dimen\csname footins#1\endcsname=2\footinsdim
- \expandafter\count\csname footins#1\endcsname=500\relax}
-\bidi@ensure@newcommand{\m@make@ninecolfootnotetext}[1]{%
- \bidi@namelongdef{@ninecolfootnotetext#1}##1{%
- \insert\@nameuse{footins#1}{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@ninecolfootfmt#1}{##1}%
- \color@endgroup}%
- \m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@mpninecolfootnotetext}[1]{%
-\bidi@namelongdef{@mpninecolfootnotetext#1}##1{%
- \global\setbox\@nameuse{@mpfootins#1}\vbox{%
- \unvbox\@nameuse{@mpfootins#1}
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@ninecolfootfmt#1}{##1}%
- \color@endgroup}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@ninecolfootfmt}[1]{%
- \@namedef{@ninecolfootfmt#1}##1{%
- \@preamninefmt
- {\@nameuse{footfootmark#1}\strut
- {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}}
-\bidi@ensure@newcommand{\m@make@ninecol@footgroup}[1]{%
- \@namedef{@ninecol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{footins#1}}{9}{\splittopskip}}}}
-\bidi@ensure@newcommand{\m@make@mpninecol@footgroup}[1]{%
-\@namedef{@mpninecol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{@mpfootins#1}}{9}{\splittopskip}}}}
-\bidi@ensure@newcommand{\tencolumnfootnotes}{%
- \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
- \let\@footnotetext\@tencolfootnotetext
- \let\@LTRfootnotetext\@tencolLTRfootnotetext
- \let\@RTLfootnotetext\@tencolRTLfootnotetext
- \dimen\footinsv@r=10\footinsdim
- \count\footinsv@r=100\relax
- \m@make@tencol@footgroup{v@r}%
- \let\@footgroupv@r\@tencol@footgroupv@r
- \let\@mpfootnotetext\@mptencolfootnotetext
- \let\@mpLTRfootnotetext\@mptencolLTRfootnotetext
- \let\@mpRTLfootnotetext\@mptencolRTLfootnotetext
- \m@make@mptencol@footgroup{v@r}%
- \let\mp@footgroupv@r\@mptencol@footgroupv@r}
-\bidi@ensure@newcommand{\@tencolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@tencolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@tencolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@tencolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@tencolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \color@begingroup
- \@tencolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@preamtenfmt}{%
- \hsize .1\hsize
- \parindent=\z@
- \tolerance=5000\relax
- \leavevmode}
-\bidi@ensure@newcommand{\@tencolfootfmt}[1]{%
- \@preamtenfmt
- {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@tencolLTRfootfmt}[1]{%
- \@preamtenfmt
- {\footfootmark\strut {\LTRfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@tencolRTLfootfmt}[1]{%
- \@preamtenfmt
- {\footfootmark\strut {\RTLfoottextfont #1}\strut\par}\allowbreak}
-\bidi@ensure@newcommand{\@mptencolfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@tencolfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mptencolLTRfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \hsize\columnwidth \@parboxrestore
- \if@RTLcolumnfootnotes\beginL\fi
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@tencolLTRfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\@mptencolRTLfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@tencolRTLfootfmt{#1}%
- \color@endgroup}%
- \m@mmf@prepare}
-\bidi@ensure@newcommand{\tencolumnfootstyle}[1]{%
- \m@make@tencolfootnotetext{#1}%
- \m@make@mptencolfootnotetext{#1}%
- \m@make@tencolfootfmt{#1}%
- \m@make@tencol@footgroup{#1}%
- \m@make@mptencol@footgroup{#1}%
- \m@make@footstart{#1}%
- \bidi@namelongdef{@footnotetext#1}##1{%
- \@nameuse{@tencolfootnotetext#1}{##1}}%
- \bidi@namelongdef{@mpfootnotetext#1}##1{%
- \@nameuse{@mptencolfootnotetext#1}{##1}}%
- \@namedef{@footgroup#1}{\@nameuse{@tencol@footgroup#1}}%
- \@namedef{mp@footgroup#1}{\@nameuse{@mptencol@footgroup#1}}%
- \expandafter\dimen\csname footins#1\endcsname=2\footinsdim
- \expandafter\count\csname footins#1\endcsname=500\relax}
-\bidi@ensure@newcommand{\m@make@tencolfootnotetext}[1]{%
- \bidi@namelongdef{@tencolfootnotetext#1}##1{%
- \insert\@nameuse{footins#1}{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@tencolfootfmt#1}{##1}%
- \color@endgroup}%
- \m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@mptencolfootnotetext}[1]{%
-\bidi@namelongdef{@mptencolfootnotetext#1}##1{%
- \global\setbox\@nameuse{@mpfootins#1}\vbox{%
- \unvbox\@nameuse{@mpfootins#1}
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}%
- \color@begingroup
- \@nameuse{@tencolfootfmt#1}{##1}%
- \color@endgroup}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@tencolfootfmt}[1]{%
- \@namedef{@tencolfootfmt#1}##1{%
- \@preamtenfmt
- {\@nameuse{footfootmark#1}\strut
- {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}}
-\bidi@ensure@newcommand{\m@make@tencol@footgroup}[1]{%
- \@namedef{@tencol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{footins#1}}{10}{\splittopskip}}}}
-\bidi@ensure@newcommand{\m@make@mptencol@footgroup}[1]{%
-\@namedef{@mptencol@footgroup#1}{{%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox
- \m@mrigidbalance{\@nameuse{@mpfootins#1}}{10}{\splittopskip}}}}
-\bidi@ensure@newcommand{\m@munvxh}[1]{%
- \setbox0=\vbox{\unvbox#1%
- \global\setbox1=\lastbox}%
- \unhbox1
- \unskip
- \unskip
- \unpenalty
- \hskip\m@mipn@skip}
-\bidi@ensure@newcommand{\m@mungebox}{%
- \setbox0=\hbox{\m@munvxh0}%
- \dp0=\z@
- \ht0=\footfudgefactor\wd0
- \box0
- \penalty0}
-\newskip\m@mipn@skip
-\bidi@ensure@newcommand*{\m@minterparanoteglue}[1]{%
- {\foottextfont\global\m@mipn@skip=#1\relax}}
-\m@minterparanoteglue{1em plus.4em minus.4em}
-\@ifpackageloaded{multicol}{%
-\bidi@ensure@newcommand*{\m@mmakehboxofhboxes}{%
- \if@parafootRTL\@RTLtrue\else\@RTLfalse\fi%
- \hsize\textwidth%
- \setbox0=\hbox{}%
- \loop
- \unpenalty
- \setbox2=\lastbox
- \ifhbox2
- \setbox0=\hbox{\box2\unhbox0}
- \repeat}
-}{%
-\bidi@ensure@newcommand*{\m@mmakehboxofhboxes}{%
- \if@parafootRTL\@RTLtrue\else\@RTLfalse\fi%
- \setbox0=\hbox{}%
- \loop
- \unpenalty
- \setbox2=\lastbox
- \ifhbox2
- \setbox0=\hbox{\box2\unhbox0}
- \repeat}}
-\bidi@ensure@newcommand*{\m@mremovehboxes}{\setbox0=\lastbox
- \ifhbox0{\m@mremovehboxes}\unhbox0 \fi}
-\bidi@ensure@newcommand*{\footfudgefiddle}{64}
-\bidi@ensure@newcommand{\paragraphfootnotes}{%
- \@namedef{foottextfontv@r}{\foottextfont}% % [RS]
- \let\@footnotetext\@parafootnotetext
- \let\@LTRfootnotetext\@paraLTRfootnotetext
- \let\@RTLfootnotetext\@paraRTLfootnotetext
- \dimen\footinsv@r=\footinsdim
- \count\footinsv@r=1000\relax
- \m@make@para@footgroup{v@r}%
- \let\@footgroupv@r\@para@footgroupv@r
- \let\@mpfootnotetext\@mpparafootnotetext
- \let\@mpLTRfootnotetext\@mpparaLTRfootnotetext
- \let\@mpRTLfootnotetext\@mpparaRTLfootnotetext
- \m@make@mppara@footgroup{v@r}%
- \let\mp@footgroupv@r\@mppara@footgroupv@r
- {\def\baselinestretch{\m@m@footnote@spacing}%
- \foottextfont
- \dimen0=\baselineskip
- \multiply\dimen0 by 1024
- \divide\dimen0 by \hsize \multiply\dimen0 by \footfudgefiddle
- \xdef\footfudgefactor{\expandafter\strip@pt\dimen0 }}}
-\bidi@ensure@newcommand{\@parafootnotetext}[1]{\insert\footinsv@r{%
- \let\bidi@RTL@everypar\@empty%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \setbox0=\vbox{\hsize=\maxdimen
- \color@begingroup
- \noindent \@parafootfmt{\if@RTL@footnote\beginR\else\beginL\fi#1\if@RTL@footnote\endR\else\endL\fi}%
- \color@endgroup}%
- \m@mungebox}\m@mmf@prepare}
-\bidi@ensure@newcommand{\@paraLTRfootnotetext}[1]{\insert\footinsv@r{%
- \let\bidi@RTL@everypar\@empty%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \setbox0=\vbox{\hsize=\maxdimen
- \color@begingroup
- \noindent \@paraLTRfootfmt{\beginL#1\endL}%
- \color@endgroup}%
- \m@mungebox}\m@mmf@prepare}
-\bidi@ensure@newcommand{\@paraRTLfootnotetext}[1]{\insert\footinsv@r{%
- \let\bidi@RTL@everypar\@empty%
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark}%
- \setbox0=\vbox{\hsize=\maxdimen
- \color@begingroup
- \noindent \@paraRTLfootfmt{\beginR#1\endR}%
- \color@endgroup}%
- \m@mungebox}\m@mmf@prepare}
-\bidi@ensure@newcommand{\@parafootfmt}[1]{%
- \parindent=\z@
- \parfillskip=0pt \@plus 1fil
- {\footfootmark\strut {\foottextfont #1}\penalty-10}}
-\bidi@ensure@newcommand{\@paraLTRfootfmt}[1]{%
- \parindent=\z@
- \parfillskip=0pt \@plus 1fil
- {\footfootmark\strut {\LTRfoottextfont #1}\penalty-10}}
-\bidi@ensure@newcommand{\@paraRTLfootfmt}[1]{%
- \parindent=\z@
- \parfillskip=0pt \@plus 1fil
- {\footfootmark\strut {\RTLfoottextfont #1}\penalty-10}}
-\bidi@ensure@newcommand{\@mpparafootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{%
- \let\bidi@RTL@everypar\@empty%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\foottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \setbox0=\vbox{\hsize=\maxdimen
- \color@begingroup
- \noindent \@parafootfmt{\if@RTL@footnote\beginR\else\beginL\fi#1\if@RTL@footnote\endR\else\endL\fi}%
- \color@endgroup}%
- \m@mungebox}\m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpparaLTRfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{%
- \let\bidi@RTL@everypar\@empty%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\LTRfoottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \setbox0=\vbox{\hsize=\maxdimen
- \color@begingroup
- \noindent \@paraLTRfootfmt{\beginL#1\endL}%
- \color@endgroup}%
- \m@mungebox}\m@mmf@prepare}
-\bidi@ensure@newcommand{\@mpparaRTLfootnotetext}[1]{%
- \global\setbox\@mpfootinsv@r\vbox{%
- \let\bidi@RTL@everypar\@empty%
- \unvbox\@mpfootinsv@r
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\RTLfoottextfont
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote\endcsname\@thefnmark}%
- \setbox0=\vbox{\hsize=\maxdimen
- \color@begingroup
- \noindent \@paraRTLfootfmt{\beginR#1\endR}%
- \color@endgroup}%
- \m@mungebox}\m@mmf@prepare}
-\bidi@ensure@newcommand{\paragraphfootstyle}[1]{%
- \m@make@parafootnotetext{#1}%
- \m@make@mpparafootnotetext{#1}%
- \m@make@parafootfmt{#1}%
- \m@make@para@footgroup{#1}%
- \m@make@mppara@footgroup{#1}%
- \m@make@para@footstart{#1}%
- \bidi@namelongdef{@footnotetext#1}##1{%
- \@nameuse{@parafootnotetext#1}{##1}}%
- \bidi@namelongdef{@mpfootnotetext#1}##1{%
- \@nameuse{@mpparafootnotetext#1}{##1}}%
- \@namedef{@footgroup#1}{\@nameuse{@para@footgroup#1}}%
- \@namedef{mp@footgroup#1}{\@nameuse{@mppara@footgroup#1}}%
- \@namedef{@footstart#1}{\@nameuse{@para@footstart#1}}%
- \expandafter\dimen\csname footins#1\endcsname=\footinsdim
- \expandafter\count\csname footins#1\endcsname=1000\relax
- {\def\baselinestretch{\m@m@footnote@spacing}%
- \@nameuse{foottextfont#1}%
- \dimen0=\baselineskip
- \multiply\dimen0 by 1024
- \divide\dimen0 by \hsize \multiply\dimen0 by 64
- \xdef\footfudgefactor{\expandafter\strip@pt\dimen0 }}}
-\bidi@ensure@newcommand{\m@make@parafootnotetext}[1]{%
-\bidi@namelongdef{@parafootnotetext#1}##1{%
- \insert\@nameuse{footins#1}{
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \@preamfntext
- \protected@edef\@currentlabel{%
- \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}%
- \setbox0=\vbox{\hsize=\maxdimen
- \color@begingroup
- \noindent \@nameuse{@parafootfmt#1}{##1}%
- \color@endgroup}%
- \m@mungebox}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@mpparafootnotetext}[1]{%
-\bidi@namelongdef{@mpparafootnotetext#1}##1{%
- \global\setbox\@nameuse{@mpfootins#1}\vbox{%
- \unvbox\@nameuse{@mpfootins#1}
- \def\baselinestretch{\m@m@footnote@spacing}%
- \reset@font\@nameuse{foottextfont#1}%
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}%
- \setbox0=\vbox{\hsize=\maxdimen
- \color@begingroup
- \noindent \@nameuse{@parafootfmt#1}{##1}%
- \color@endgroup}%
- \m@mungebox}\m@mmf@prepare}}
-\bidi@ensure@newcommand{\m@make@parafootfmt}[1]{%
-\bidi@namelongdef{@parafootfmt#1}##1{%
- \parindent=\z@
- \parfillskip=0pt \@plus 1fil
- {\@nameuse{footfootmark#1}\strut
- {\@nameuse{foottextfont#1}##1}\penalty-10}}}
-\bidi@ensure@newcommand{\m@make@para@footgroup}[1]{%
-\@namedef{@para@footgroup#1}{%
- \unvbox\@nameuse{footins#1}
- \m@mmakehboxofhboxes
- \setbox0=\hbox{\unhbox0 \m@mremovehboxes}%
- \@nameuse{foottextfont#1}%
- \noindent\unhbox0\par}}
-\bidi@ensure@newcommand{\m@make@mppara@footgroup}[1]{%
-\@namedef{@mppara@footgroup#1}{%
- \unvbox\@nameuse{@mpfootins#1}
- \m@mmakehboxofhboxes
- \setbox0=\hbox{\unhbox0 \m@mremovehboxes}%
- \@nameuse{foottextfont#1}%
- \noindent\unhbox0\par}}
-\bidi@ensure@newcommand{\m@make@para@footstart}[1]{%
-\@namedef{@para@footstart#1}{%
- \vskip\bigskipamount
- \leftskip=\z@
- \rightskip=\z@
- \parindent=\z@
- \vskip\skip\@nameuse{footins#1}%
- \footnoterule}}
-\bidi@ensure@newcommand*{\m@m@makecolfloats}{%
- \xdef\@freelist{\@freelist\@midlist}%
- \global\let\@midlist\@empty
- \@combinefloats}
-\bidi@ensure@newcommand*{\m@m@makecoltext}{%
- \ifvbox\@kludgeins
- \@makespecialcolbox
- \else
- \setbox\@outputbox \vbox to\@colht{%
- \@texttop
- \dimen@ \dp\@outputbox
- \unvbox \@outputbox
- \vskip -\dimen@
- \@textbottom}%
- \fi}
-\bidi@ensure@newcommand*{\m@m@makecolintro}{}
-\bidi@ensure@newcommand*{\m@mopfootnote}{\setbox\@outputbox \vbox{%
- \boxmaxdepth\@maxdepth
- \@tempdima\dp\@cclv
- \unvbox\@cclv
- \vskip-\@tempdima
- \vskip \skip\footins
- \color@begingroup
- \normalcolor
- \footnoterule
- \unvbox \footins
- \color@endgroup}}
-\bidi@ensure@newcommand*{\m@mopsidebar}{%
- \ifvoid\sideins\else
- \setbox\@outputbox \vbox{%
- \sidecontents
- \unvbox\@outputbox}
- \fi}
-\gdef\mem@makecol{%
- \m@m@makecolintro
- \ifvoid\footins
- \setbox\@outputbox \box\@cclv
- \else
- \m@mopfootnote
- \fi
- \m@mdoextrafeet
- \m@m@makecolfloats
- \m@mopsidebar
- \m@m@makecoltext
- \global \maxdepth \@maxdepth}
-\bidi@ensure@newcommand{\feetabovefloat}{\gdef\@makecol{\mem@makecol}}
-\feetabovefloat%
-\endinput
-%%
-%% End of file `extrafootnotefeatures-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/extreport-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/extreport-xetex-bidi.def
deleted file mode 100644
index 4dbb242a5bd..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/extreport-xetex-bidi.def
+++ /dev/null
@@ -1,214 +0,0 @@
-%%
-%% This is file `extreport-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,extreport-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{extreport-xetex-bidi.def}[2015/11/14 v0.2 bidi adaptations for extreport class for XeTeX engine]
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \begingroup
- \setlength\@tempdima{3em}%
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \endgroup
- \fi}
-\renewcommand*\l@chapter[2]{%
- \ifnum \c@tocdepth >\m@ne
- \addpenalty{-\@highpenalty}%
- \vskip 1.0em \@plus\p@
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \penalty\@highpenalty
- \endgroup
- \fi}
-\def\@makechapterhead#1{%
- \vspace*{50\p@}%
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
- \ifnum \c@secnumdepth >\m@ne
- \huge\bfseries \@chapapp\space \thechapter
- \par\nobreak
- \vskip 20\p@
- \fi
- \interlinepenalty\@M
- \Huge \bfseries #1\par\nobreak
- \vskip 40\p@
- }}
-\def\@makeschapterhead#1{%
- \vspace*{50\p@}%
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
- \normalfont
- \interlinepenalty\@M
- \Huge \bfseries #1\par\nobreak
- \vskip 40\p@
- }}
-\renewcommand\left@footnoterule{%
- \kern-3\p@
- \hrule\@width.4\columnwidth
- \kern2.6\p@}
-\renewcommand\right@footnoterule{%
- \kern-3\p@
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern2.6\p@}
-\renewenvironment{thebibliography}[1]
- {\chapter*{\bibname
- \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy\clubpenalty4000\widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
- \if@titlepage
- \renewcommand\maketitle{\begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- {\LARGE \@title \par}%
- \vskip 3em%
- {\large
- \lineskip .75em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large \@date \par}% % Set date in \large size.
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\else
-\renewcommand\maketitle{\par
- \begingroup
- \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext##1{\parindent 1em\noindent
- \hb@xt@1.8em{%
- \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@ % Prevents figures from going at top of page.
- \@maketitle
- \fi
- \thispagestyle{plain}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
- \begin{center}%
- \let \footnote \thanks
- {\LARGE \@title \par}%
- \vskip 1.5em%
- {\large
- \lineskip .5em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1em%
- {\large \@date}%
- \end{center}%
- \par
- \vskip 1.5em}
-\fi
-\renewcommand\thesection {\thechapter\@SepMark\@arabic\c@section}
-\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
-\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
-\renewcommand\theequation{%
- \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
-\renewcommand\thefigure{%
- \ifnum \c@chapter>\z@\thechapter\@SepMark\fi \@arabic\c@figure}
-\renewcommand\thetable{%
- \ifnum \c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
-\endinput
-%%
-%% End of file `extreport-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/fancybox-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/fancybox-xetex-bidi.def
deleted file mode 100644
index 7c79c42cea1..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/fancybox-xetex-bidi.def
+++ /dev/null
@@ -1,68 +0,0 @@
-%%
-%% This is file `fancybox-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,fancybox-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{fancybox-xetex-bidi.def}[2013/05/01 v0.1 bidi adaptations for fancybox package for XeTeX engine]
-\def\fancy@@oval#1#2#3{%
- \boxmaxdepth \maxdimen
- \@ovttrue \@ovbtrue \@ovltrue \@ovrtrue
- \@tfor\@tempa :=#3\do{\csname @ov\@tempa false\endcsname}%
- \@ovxx#1\relax
- \advance\@ovxx-\@wholewidth
- \@ovyy#2\relax
- \advance\@ovyy-\@wholewidth
- \@tempdimb \ifdim \@ovyy >\@ovxx \@ovxx\else \@ovyy \fi
- \advance\@tempdimb-2\p@
- \ifdim\@tempdimb>\the@cornersize\relax
- \@tempdimb=\the@cornersize
- \fi
- \@getcirc\@tempdimb
- \@ovro\ht\@tempboxa \@ovri\dp\@tempboxa
- \@ovdx\@ovxx \advance\@ovdx-\@tempdima \divide\@ovdx \tw@
- \@ovdy\@ovyy \advance\@ovdy-\@tempdima \divide\@ovdy \tw@
- \@circlefnt
- \setbox\@tempboxa\hbox{\beginL%
- \if@ovr \@ovvert32\kern -\@tempdima \fi
- \if@ovl \kern \@ovxx \@ovvert01\kern -\@tempdima \kern -\@ovxx \fi
- \if@ovt \@ovhorz \kern -\@ovxx \fi
- \if@ovb \raise \@ovyy \@ovhorz \fi\endL}%
- \advance\@ovdx\@ovro
- \advance\@ovdy\@ovro
- \advance\@ovxx\@wholewidth
- \wd\@tempboxa=\@ovxx
- \dp\@tempboxa=\z@}
-\endinput
-%%
-%% End of file `fancybox-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/fancyhdr-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/fancyhdr-xetex-bidi.def
deleted file mode 100644
index 18cd8678564..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/fancyhdr-xetex-bidi.def
+++ /dev/null
@@ -1,51 +0,0 @@
-%%
-%% This is file `fancyhdr-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,fancyhdr-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{fancyhdr-xetex-bidi.def}[2012/04/18 v0.4 bidi adaptations for fancyhdr package for XeTeX engine]
-\let\fnch@everypar\everypar%
-\def\@fancyhead#1#2#3#4#5{\if@RTLmain\beginR\else\beginL\fi#1\if@RTLmain\endR\else\endL\fi\hbox to\headwidth{\beginL\fancy@reset
- \@fancyvbox\headheight{\hbox
- {\rlap{\parbox[b]{\headwidth}{\bidi@raggedright\if@RTLmain\beginR\else\beginL\fi#2\if@RTLmain\endR\else\endL\fi}}\hfill
- \parbox[b]{\headwidth}{\centering\if@RTLmain\beginR\else\beginL\fi#3\if@RTLmain\endR\else\endL\fi}\hfill
- \llap{\parbox[b]{\headwidth}{\bidi@raggedleft\if@RTLmain\beginR\else\beginL\fi#4\if@RTLmain\endR\else\endL\fi}}}\headrule}\endL}\if@RTLmain\beginR\else\beginL\fi#5\if@RTLmain\endR\else\endL\fi}
-\def\@fancyfoot#1#2#3#4#5{\if@RTLmain\beginR\else\beginL\fi#1\if@RTLmain\endR\else\endL\fi\hbox to\headwidth{\beginL\fancy@reset
- \@fancyvbox\footskip{\footrule
- \hbox{\rlap{\parbox[t]{\headwidth}{\bidi@raggedright\if@RTLmain\beginR\else\beginL\fi#2\if@RTLmain\endR\else\endL\fi}}\hfill
- \parbox[t]{\headwidth}{\centering\if@RTLmain\beginR\else\beginL\fi#3\if@RTLmain\endR\else\endL\fi}\hfill
- \llap{\parbox[t]{\headwidth}{\bidi@raggedleft\if@RTLmain\beginR\else\beginL\fi#4\if@RTLmain\endR\else\endL\fi}}}}\endL}\if@RTLmain\beginR\else\beginL\fi#5\if@RTLmain\endR\else\endL\fi}
-\endinput
-%%
-%% End of file `fancyhdr-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def
deleted file mode 100644
index b9015c47411..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def
+++ /dev/null
@@ -1,108 +0,0 @@
-%%
-%% This is file `fix2col-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,fix2col-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{fix2col-xetex-bidi.def}[2013/04/10 v0.3 bidi adaptations for fix2col package for XeTeX engine]
-\def\RTL@outputdblcol{%
- \if@firstcolumn
- \global\@firstcolumnfalse
- \global\setbox\@leftcolumn\copy\@outputbox
- \splitmaxdepth\maxdimen
- \vbadness\maxdimen
- \setbox\@outputbox\vsplit\@outputbox to\maxdimen
- \toks@\expandafter{\topmark}%
- \xdef\@firstcoltopmark{\the\toks@}%
- \toks@\expandafter{\splitfirstmark}%
- \xdef\@firstcolfirstmark{\the\toks@}%
- \ifx\@firstcolfirstmark\@empty
- \global\let\@setmarks\relax
- \else
- \gdef\@setmarks{%
- \let\firstmark\@firstcolfirstmark
- \let\topmark\@firstcoltopmark}%
- \fi
-\else \global\@firstcolumntrue
-\setbox\@outputbox \vbox {\hbox to\textwidth {%
-\hskip \columnwidth
-\hfil \vrule width\columnseprule \hfil
-\hbox to\columnwidth {\box\@leftcolumn \hss}%
-\hskip -\textwidth
-\hbox to\columnwidth{\box\@outputbox \hss}%
-\hskip \columnsep
-\hskip \columnwidth }}%
-\@combinedblfloats \@setmarks \@outputpage
-\begingroup \@dblfloatplacement \@startdblcolumn
-\@whilesw\if@fcolmade \fi
-{\@outputpage \@startdblcolumn }\endgroup
-\fi}
-\def\LTR@outputdblcol{%
- \if@firstcolumn
- \global\@firstcolumnfalse
- \global\setbox\@leftcolumn\copy\@outputbox
- \splitmaxdepth\maxdimen
- \vbadness\maxdimen
- \setbox\@outputbox\vsplit\@outputbox to\maxdimen
- \toks@\expandafter{\topmark}%
- \xdef\@firstcoltopmark{\the\toks@}%
- \toks@\expandafter{\splitfirstmark}%
- \xdef\@firstcolfirstmark{\the\toks@}%
- \ifx\@firstcolfirstmark\@empty
- \global\let\@setmarks\relax
- \else
- \gdef\@setmarks{%
- \let\firstmark\@firstcolfirstmark
- \let\topmark\@firstcoltopmark}%
- \fi
- \else
- \global\@firstcolumntrue
- \setbox\@outputbox\vbox{%
- \hb@xt@\textwidth{%
- \hb@xt@\columnwidth{\box\@leftcolumn \hss}%
- \hfil
- \vrule \@width\columnseprule
- \hfil
- \hb@xt@\columnwidth{\box\@outputbox \hss}}}%
- \@combinedblfloats
- \@setmarks
- \@outputpage
- \begingroup
- \@dblfloatplacement
- \@startdblcolumn
- \@whilesw\if@fcolmade \fi{\@outputpage\@startdblcolumn}%
- \endgroup
- \fi}
-\endinput
-%%
-%% End of file `fix2col-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/fleqn-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/fleqn-xetex-bidi.def
deleted file mode 100644
index 76c88b4b77a..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/fleqn-xetex-bidi.def
+++ /dev/null
@@ -1,69 +0,0 @@
-%%
-%% This is file `fleqn-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,fleqn-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{fleqn-xetex-bidi.def}[2010/03/01 v0.1 bidi adaptations for fleqn tag for XeTeX engine]
-\renewcommand\[{\relax
- \ifmmode\@badmath
- \else
- \begin{trivlist}%
- \@beginparpenalty\predisplaypenalty
- \@endparpenalty\postdisplaypenalty
- \item[]\leavevmode
- \hb@xt@\linewidth\bgroup \beginL$\m@th\displaystyle %$
- \hskip\mathindent\bgroup
- \fi}
-\renewcommand\]{\relax
- \ifmmode
- \egroup $\hfil% $
- \endL\egroup
- \end{trivlist}%
- \else \@badmath
- \fi}
-\renewenvironment{equation}%
- {\@beginparpenalty\predisplaypenalty
- \@endparpenalty\postdisplaypenalty
- \refstepcounter{equation}%
- \trivlist \item[]\leavevmode
- \hb@xt@\linewidth\bgroup\beginL $\m@th% $
- \displaystyle
- \hskip\mathindent}%
- {$\hfil % $
- \displaywidth\linewidth\hbox{\@eqnnum}%
- \endL\egroup
- \endtrivlist}
-\endinput
-%%
-%% End of file `fleqn-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/float-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/float-xetex-bidi.def
deleted file mode 100644
index ec342962bc0..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/float-xetex-bidi.def
+++ /dev/null
@@ -1,48 +0,0 @@
-%%
-%% This is file `float-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,float-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{float-xetex-bidi.def}[2013/04/04 v0.2 bidi adaptations for float package for XeTeX engine]
-\renewcommand\floatc@plain[2]{\setbox\@tempboxa\hbox{{\@fs@cfont #1:} #2}%
- \ifdim\wd\@tempboxa>\hsize {\@fs@cfont #1:} #2\par
- \else\hbox to\hsize{\if@RTL\beginR\fi\hfil\box\@tempboxa\hfil\if@RTL\endR\fi}\fi}
-\def\float@newx#1[#2]{\@ifundefined{c@#1}{\newcounter{#1}[#2]%
- \expandafter\edef\csname the#1\endcsname{%
- \expandafter\noexpand\csname
- the#2\endcsname\@SepMark\noexpand\arabic{#1}}}%
- {\PackageWarning{float}{Can't redefine counter variable for #1.}}}
-\endinput
-%%
-%% End of file `float-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/floatrow-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/floatrow-xetex-bidi.def
deleted file mode 100644
index 90b9f026b55..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/floatrow-xetex-bidi.def
+++ /dev/null
@@ -1,44 +0,0 @@
-%%
-%% This is file `floatrow-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,floatrow-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{floatrow-xetex-bidi.def}[2013/04/08 v0.1 bidi adaptations for floatrow package for XeTeX engine]
-\renewcommand\flnew@within[1]{\@addtoreset{\FB@captype}{#1}%
- \expandafter\edef\csname the\FB@captype\endcsname{%
- \expandafter\noexpand\csname
- the#1\endcsname\@SepMark\noexpand\arabic{\FB@captype}}}
-\endinput
-%%
-%% End of file `floatrow-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/flowfram-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/flowfram-xetex-bidi.def
deleted file mode 100644
index b8af177a68e..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/flowfram-xetex-bidi.def
+++ /dev/null
@@ -1,172 +0,0 @@
-%%
-%% This is file `flowfram-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,flowfram-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{flowfram-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for flowfram package for XeTeX engine]
-\def\@outputdblcol{%
-\@nxtcol=\c@thisframe
-\c@curpg=\c@page
-\@g@tnextcol{\@nxtcol}%
-\if@ff@nwpg % next flow frame starts on new page
- \global\@firstcolumntrue
- \@setcolbox\c@thisframe
- \if@specialpage
- \global\@specialpagefalse
- \@nameuse{ps@\@specialstyle}\relax
- \fi
- \if@twoside
- \ifodd\count\z@
- \let\@thehead\@oddhead
- \let\@thefoot\@oddfoot
- \else
- \let\@thehead\@evenhead
- \let\@thefoot\@evenfoot
- \fi
- \else
- \let\@thehead\@oddhead
- \let\@thefoot\@oddfoot
- \fi
- \@begindvi
- \@dodynamicthehead\@dodynamicthefoot
- \vbadness=\@M
- \setbox\@outputbox\vbox{\hbox to \textwidth{\@ff@do@allframes}}%
- \@combinedblfloats
- \@outputpage
-\advance\c@curpg by -\c@page\relax
- \whiledo{\c@curpg>0}{\advance\c@curpg by -1\relax
- \setbox\@outputbox\vbox{\hbox to \textwidth{\@ff@do@allframes}}%
-\@outputpage}
- \begingroup
- \@dblfloatplacement
- \@startdblcolumn
- \@whilesw \if@fcolmade \fi
- {\@outputpage \@startdblcolumn }\endgroup
- \@resetst@tics
- \@resetdyn@mics
-\else % still on same page, save contents of box255
- \global\@firstcolumnfalse
- \@setcolbox\c@thisframe
-\fi
-\global\c@thisframe=\@nxtcol
-\@setcol{\c@thisframe}\relax
-\global\@colht\vsize
-}
-\def\@outputpage{%
-\begingroup
- \let\protect\noexpand
- \@resetactivechars
- \global\let\@@if@newlist\if@newlist
- \global\@newlistfalse\@parboxrestore
- \shipout\vbox{\set@typeset@protect
- \aftergroup
- \endgroup
- \aftergroup
- \set@typeset@protect
- \reset@font\normalsize\normalsfcodes
- \let\label\@gobble
- \let\index\@gobble
- \let\glossary\@gobble
- \baselineskip\z@skip
- \lineskip\z@skip
- \lineskiplimit\z@
- \vskip\topmargin\moveright\@themargin
- \vbox{%
- \vskip\headheight
- \vskip\headsep
- \box\@outputbox
- }}%
- \global\let\if@newlist\@@if@newlist
- \stepcounter{page}%
- \setcounter{displayedframe}{0}%
- \let\firstmark\botmark}
-
-\newcommand*\bidi@s@tfftextcol{\ifthenelse{\equal{\ff@txtcol}{}}{}{%
-\expandafter\bidicolor\ff@txtcol}}
-
-\newcommand{\bidi@ff@box}[3]{{\@ffbackground{\vbox to#2
-{\hb@xt@ #1{\hss{\bidi@s@tfftextcol #3}\hss}\vss\kern\z@}}}}
-
-\renewcommand*{\@docolbox}[1]{%
-\edef\ff@frametype{%
-\csname @ff@frametype@\romannumeral#1\endcsname}%
-\edef\ff@col{\csname @ff@col@\romannumeral#1\endcsname}%
-\edef\ff@txtcol{\csname @ff@txtcol@\romannumeral#1\endcsname}%
-\edef\ff@backcol{\csname @ff@backcol@\romannumeral#1\endcsname}%
-\@ff@setoffset{#1}%
-\rotateframe{\csname @ff@angle@\romannumeral#1\endcsname}{%
-\ifthenelse{\boolean{columnframe\romannumeral#1}}{%
-\@ff@fbox{\csname colwidth\romannumeral#1\endcsname}%
-{\csname colheight\romannumeral#1\endcsname}{%
-\expandafter\box\csname column\romannumeral#1\endcsname}{%
-\csname\ff@frametype\endcsname}%
-}{%
-\bidi@ff@box{\csname colwidth\romannumeral#1\endcsname}%
-{\csname colheight\romannumeral#1\endcsname}{%
-\expandafter\box\csname column\romannumeral#1\endcsname}%
-}}}
-\@ifclassloaded{book}{%
-\renewcommand\theequation
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
-\renewcommand \thefigure
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
-\renewcommand \thetable
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
-\renewcommand \thechapter {\@arabic\c@chapter}
-\renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
-\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
-\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}}{}
-\@ifclassloaded{report}{%
-\renewcommand\theequation
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
-\renewcommand \thefigure
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
-\renewcommand \thetable
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
-\renewcommand \thechapter {\@arabic\c@chapter}
-\renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
-\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
-\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}}{}
-\renewcommand{\rotateframe}[2]{\if@ttb@rotate
-\rotatebox{#1}{\if@RTL\beginL\fi#2\if@RTL\endL\fi}%
-\else
-#2\relax
-\fi}
-\endinput
-%%
-%% End of file `flowfram-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def
deleted file mode 100644
index 5dcedbbe5da..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def
+++ /dev/null
@@ -1,360 +0,0 @@
-%%
-%% This is file `footnote-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,footnote-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{footnote-xetex-bidi.def}[2015/11/14 v0.9 bidi footnote macros for XeTeX engine]
-\if@RTLmain\@RTL@footnotetrue\else\@RTL@footnotefalse\fi
-\newif\ifbidi@autofootnoterule
-\def\bidi@mpfootnoterule{\footnoterule}
-\newcounter{footdir@label}
-\renewcommand*{\thefootdir@label}{footdir@\the\value{footdir@label}}
-\newcommand*{\footdir@write}{%
- \stepcounter{footdir@label}%
- \zref@labelbyprops{\thefootdir@label}{abspage}%
-}
-\newif\iffootdir@debug
-\newcommand*{\debugfootnotedirection}{\footdir@debugtrue}
-\newtoks\footdir@toks
-\newcommand*{\footdir@debug}[1]{%
- \iffootdir@debug
- \typeout{[footdir] #1}%
- \fi
-}
-\@ifpackagelater{zref-abspage}{2012/10/27}{%
- \newcommand*{\footdir@LeftRightElse}{%
- \ltx@ifundefined{footdir@\the\value{zabspage}}{%
- \footdir@debug{abspage \the\value{zabspage}: else}%
- \ltx@thirdofthree
- }{%
- \if\csname footdir@\the\value{zabspage}\endcsname L%
- \footdir@debug{abspage \the\value{zabspage}: left}%
- \expandafter\ltx@firstofthree
- \else
- \footdir@debug{abspage \the\value{zabspage}: right}%
- \expandafter\ltx@secondofthree
- \fi
- }%
- }%
-}{%
- \providecommand*{\c@zabspage}{\c@abspage}%
- \newcommand*{\footdir@LeftRightElse}{%
- \footdir@write
- \zifrefundefined{\thefootdir@label}{%
- \footdir@debug{abspage ??: else}%
- \ltx@thirdofthree
- }{%
- \edef\footdir@abspage{%
- \zref@extractdefault{\thefootdir@label}{abspage}{0}%
- }%
- \ltx@ifundefined{footdir@\footdir@abspage}{%
- \footdir@debug{\footdir@abspage: else}%
- \ltx@thirdofthree
- }{%
- \if\csname footdir@\footdir@abspage\endcsname L%
- \footdir@debug{\footdir@abspage: left}%
- \expandafter\ltx@firstofthree
- \else
- \footdir@debug{\footdir@abspage: right}%
- \expandafter\ltx@secondofthree
- \fi
- }%
- }%
- }%
-}
-\newcommand*{\footdir@fntext}[1]{%
- \zifrefundefined{\thefootdir@label}{%
- }{%
- \edef\footdir@name{%
- footdir@\zref@extractdefault{\thefootdir@label}{abspage}{0}%
- }%
- \@ifundefined{\footdir@name}{%
- \expandafter\gdef\csname\footdir@name\endcsname{#1}%
- }{}%
- }%
-}
-
-\newcommand*{\footdir@temp}[3]{%
- \@ifdefinable{#1}{%
- \let#1#2%
- \renewcommand{#2}[1]{%
- \footdir@write
- \footdir@fntext{#3}%
- \stepcounter{footdir@label}%
- \footdir@fntext{#3}%
- \footdir@toks{##1}%
- \footdir@toks\expandafter{%
- \the\expandafter\footdir@toks
- \expandafter
- \zref@labelbyprops\expandafter{\thefootdir@label}{abspage}%
- }%
- \expandafter#1\expandafter{\the\footdir@toks}%
- }%
- }%
-}
-
-\def\right@footnoterule{%
- \kern-3\p@
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern2.6\p@}
-\def\left@footnoterule{\kern-3\p@
- \hrule \@width .4\columnwidth \kern 2.6\p@}
-\def\textwidth@footnoterule{\kern-3\p@
- \hrule \@width \columnwidth \kern 2.6\p@}
-\def\leftfootnoterule{%
-\bidi@autofootnoterulefalse%
-\def\footnoterule{\left@footnoterule}}
-\let\LRfootnoterule=\leftfootnoterule
-\def\rightfootnoterule{%
-\bidi@autofootnoterulefalse%
-\def\footnoterule{\right@footnoterule}}
-\def\textwidthfootnoterule{%
-\bidi@autofootnoterulefalse%
-\def\footnoterule{\textwidth@footnoterule}}
-
-\def\auto@footnoterule{%
-\footdir@LeftRightElse%
-\left@footnoterule%
-\right@footnoterule%
-\left@footnoterule%
-}
-
-\def\autofootnoterule{%
-\bidi@autofootnoteruletrue%
-\def\footnoterule{\auto@footnoterule}%
-}
-
-\newcommand*{\SplitFootnoteRule}{%
- \gdef\split@prev{0}
- \let\pagefootnoterule\footnoterule
- \let\mpfootnoterule\footnoterule
- \def\splitfootnoterule{\kern-3\p@ \hrule \kern2.6\p@}
- \def\footnoterule{\relax
- \ifx \@listdepth\@mplistdepth
- \mpfootnoterule
- \else
- \ifnum\split@prev=\z@
- \pagefootnoterule
- \else
- \splitfootnoterule
- \fi
- \xdef\split@prev{\the\insertpenalties}%
- \fi
- }%
-}
-
-\def\RTLfootnote{\@ifnextchar[\@xRTLfootnote{\stepcounter\@mpfn
- \protected@xdef\@thefnmark{\thempfn}%
- \@footnotemark\@RTLfootnotetext}}
-\def\@xRTLfootnote[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \@footnotemark\@RTLfootnotetext}
-\def\LTRfootnote{\@ifnextchar[\@xLTRfootnote{\stepcounter\@mpfn
- \protected@xdef\@thefnmark{\thempfn}%
- \@footnotemark\@LTRfootnotetext}}
-\def\@xLTRfootnote[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \@footnotemark\@LTRfootnotetext}
-
-\def\setfootnoteRL{\@RTL@footnotetrue}
-\def\unsetfootnoteRL{\@RTL@footnotefalse}
-\def\setfootnoteLR{\unsetfootnoteRL}
-
-\long\def\@footnotetext#1{\insert\footins{%
- \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \reset@font\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark
- }%
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
- \color@endgroup}}%
-
-\long\def\@RTLfootnotetext#1{\insert\footins{%
- \@RTLtrue%
- \reset@font\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark
- }%
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
- \color@endgroup}}%
-
-\long\def\@LTRfootnotetext#1{\insert\footins{%
- \@RTLfalse%
- \reset@font\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark
- }%
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
- \color@endgroup}}%
-
-\AtBeginDocument{%
-\if@RTL@footnote
- \newcommand*{\bidi@footdir@footnote}{R}
-\else
- \newcommand*{\bidi@footdir@footnote}{L}
-\fi%
-}
-
-\footdir@temp\footdir@ORG@bidi@footnotetext\@footnotetext{\bidi@footdir@footnote}%
-\footdir@temp\footdir@ORG@bidi@RTLfootnotetext\@RTLfootnotetext{R}%
-\footdir@temp\footdir@ORG@bidi@LTRfootnotetext\@LTRfootnotetext{L}%
-
-\long\def\@mpRTLfootnotetext#1{%
- \ifbidi@autofootnoterule\ifnum\c@mpfootnote=\@ne\global\let\bidi@mpfootnoterule\right@footnoterule\fi\fi%
- \global\setbox\@mpfootins\vbox{\@RTLtrue%
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
- \color@endgroup}}
-\long\def\@mpLTRfootnotetext#1{%
- \ifbidi@autofootnoterule\ifnum\c@mpfootnote=\@ne\global\let\bidi@mpfootnoterule\left@footnoterule\fi\fi%
- \global\setbox\@mpfootins\vbox{\@RTLfalse%
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
- \color@endgroup}}
-\long\def\@mpfootnotetext#1{%
- \ifbidi@autofootnoterule\ifnum\c@mpfootnote=\@ne\if@RTL@footnote\global\let\bidi@mpfootnoterule\right@footnoterule\else\global\let\bidi@mpfootnoterule\left@footnoterule\fi\fi\fi%
- \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}%
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
- \color@endgroup}}
-\def\@iiiminipage#1#2[#3]#4{%
- \leavevmode
- \@pboxswfalse
- \if@RTLtab\@bidi@list@minipage@parbox@not@nobtrue\fi
- \if@RTL\if#1t\@bidi@list@minipage@parboxtrue\else\if#1b\@bidi@list@minipage@parboxtrue\fi\fi\fi
- \setlength\@tempdima{#4}%
- \def\@mpargs{{#1}{#2}[#3]{#4}}%
- \setbox\@tempboxa\vbox\bgroup
- \color@begingroup
- \hsize\@tempdima
- \textwidth\hsize \columnwidth\hsize
- \@parboxrestore
- \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@
- \let\@footnotetext\@mpfootnotetext
- \let\@LTRfootnotetext\@mpLTRfootnotetext
- \let\@RTLfootnotetext\@mpRTLfootnotetext
- \let\@listdepth\@mplistdepth \@mplistdepth\z@
- \@minipagerestore
- \@setminipage}
-\def\endminipage{%
- \par
- \unskip
- \ifvoid\@mpfootins\else
- \vskip\skip\@mpfootins
- \normalcolor
- \bidi@mpfootnoterule
- \unvbox\@mpfootins
- \fi
- \@minipagefalse %% added 24 May 89
- \color@endgroup
- \egroup
- \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}}
-\def\LTRthanks#1{\footnotemark
- \protected@xdef\@thanks{\@thanks
- \protect\LTRfootnotetext[\the\c@footnote]{#1}}%
-}
-\def\LTRfootnotetext{%
- \@ifnextchar [\@xLTRfootnotenext
- {\protected@xdef\@thefnmark{\thempfn}%
- \@LTRfootnotetext}}
-\def\@xLTRfootnotenext[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \@LTRfootnotetext}
-\def\RTLthanks#1{\footnotemark
- \protected@xdef\@thanks{\@thanks
- \protect\RTLfootnotetext[\the\c@footnote]{#1}}%
-}
-\let\@thanks\@empty
-\def\RTLfootnotetext{%
- \@ifnextchar [\@xRTLfootnotenext
- {\protected@xdef\@thefnmark{\thempfn}%
- \@RTLfootnotetext}}
-\def\@xRTLfootnotenext[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \@RTLfootnotetext}
-\leftfootnoterule
-\endinput
-%%
-%% End of file `footnote-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/framed-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/framed-xetex-bidi.def
deleted file mode 100644
index 35bba4d7ef2..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/framed-xetex-bidi.def
+++ /dev/null
@@ -1,214 +0,0 @@
-%%
-%% This is file `framed-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,framed-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{framed-xetex-bidi.def}[2012/06/05 v0.3 bidi adaptations for framed package for XeTeX engine]
-\renewcommand\TitleBarFrame[3][]{\begingroup
- \ifx\delimiter#1\delimiter
- \let\TF@conlab\@empty
- \else
- \def\TF@conlab{% continuation label
- \nointerlineskip
- \smash{\rlap{\kern\wd\@tempboxa\kern\fboxrule\kern\fboxsep #1}}}%
- \fi
- %\let\TF@savecolor\current@color
- \textcolor{TFFrameColor}{%
- \CustomFBox
- {\TF@Title{#2}}{\TF@conlab}%
- \fboxrule\fboxrule\fboxrule\fboxrule
- %{\let\current@color\TF@savecolor\set@color #3}%
- {\normalcolor #3}%
- }\endgroup
-}
-\renewenvironment{titled-frame}[1]{%
- \def\FrameCommand{\fboxsep8pt\fboxrule2pt
- \TitleBarFrame{\textbf{#1}}}%
- \def\FirstFrameCommand{\fboxsep8pt\fboxrule2pt
- \TitleBarFrame[$\if@RTL\blacktriangleleft\else\blacktriangleright\fi$]{\textbf{#1}}}%
- \def\MidFrameCommand{\fboxsep8pt\fboxrule2pt
- \TitleBarFrame[$\if@RTL\blacktriangleleft\else\blacktriangleright\fi$]{\textbf{#1\ (cont)}}}%
- \def\LastFrameCommand{\fboxsep8pt\fboxrule2pt
- \TitleBarFrame{\textbf{#1\ (cont)}}}%
- \MakeFramed{\advance\hsize-20pt \FrameRestore}}%
- {\endMakeFramed}
-\chardef\FrameRestore=\catcode`\| % for debug
-\catcode`\|=\catcode`\% % (debug: insert space after backslash)
-\def\fb@put@frame#1#2{\relax
- \ifdim\pagegoal=\maxdimen \pagegoal\vsize \fi
-| \message{=============== Entering putframe ====================^^J
-| \pagegoal=\the\pagegoal, \pagetotal=\the\pagetotal. }%
- \ifinner
- \fb@putboxa#1%
- \fb@afterframe
- \else
- \dimen@\pagegoal \advance\dimen@-\pagetotal % natural space left on page
- \ifdim\dimen@<2\baselineskip % Too little room on page
-| \message{Page has only \the\dimen@\space room left; eject. }%
- \eject \fb@adjheight \fb@put@frame#1#2%
- \else % there's appreciable room left on the page
- \fb@sizeofframe#1%
-| \message{\string\pagetotal=\the\pagetotal,
-| \string\pagegoal=\the\pagegoal,
-| \string\pagestretch=\the\pagestretch,
-| \string\pageshrink=\the\pageshrink,
-| \string\fb@frh=\the\fb@frh. \space}
-| \message{^^JBox of size \the\ht\@tempboxa\space}%
- \begingroup % temporarily set \dimen@ to be...
- \advance\dimen@.8\pageshrink % maximum space available on page
- \advance\dimen@-\fb@frh\relax % max space available for frame's contents
-%%% LOOKS SUBTRACTED AND ADDED, SO DOUBLE ACCOUNTING!
- \expandafter\endgroup
- % expand \ifdim, then restore \dimen@ to real room left on page
- \ifdim\dimen@>\ht\@tempboxa % whole box does fit
-| \message{fits in \the\dimen@. }%
- % ToDo: Change this to use vsplit anyway to capture the marks
- % MERGE THIS WITH THE else CLAUSE!!!
- \fb@putboxa#1%
- \fb@afterframe
- \else % box must be split
-| \message{must be split to fit in \the\dimen@. }%
- % update frame measurement to use \FirstFrameCommand or \MidFrameCommand
- \fb@sizeofframe#2%
- \setbox\@tempboxa\vbox{% simulate frame and flexiblity of the page:
- \vskip \fb@frh \@plus\pagestretch \@minus.8\pageshrink
- \kern137sp\kern-137sp\penalty-30
- \unvbox\@tempboxa}%
- \edef\fb@resto@set{\boxmaxdepth\the\boxmaxdepth
- \splittopskip\the\splittopskip}%
- \boxmaxdepth\z@ \splittopskip\z@
-| \message{^^JPadded box of size \the\ht\@tempboxa\space split to \the\dimen@}%
- % Split box here
- \setbox\tw@\vsplit\@tempboxa to\dimen@
-| \toks99\expandafter{\splitfirstmark}%
-| \toks98\expandafter{\splitbotmark}%
-| \message{Marks are: \the\toks99, \the\toks98. }%
- \setbox\tw@\vbox{\unvbox\tw@}% natural-sized
-| \message{Natural height of split box is \the\ht\tw@, leaving
-| \the\ht\@tempboxa\space remainder. }%
- % If the split-to size > (\vsize-\topskip), then set box to full size.
- \begingroup
- \advance\dimen@\topskip
- \expandafter\endgroup
- \ifdim\dimen@>\pagegoal
-| \message{Frame is big -- Use up the full column. }%
- \dimen@ii\pagegoal
- \advance\dimen@ii -\topskip
- \advance\dimen@ii \FrameHeightAdjust\relax
- \else % suspect this is implemented incorrectly:
- % If the split-to size > feasible room_on_page, rebox it smaller.
- \advance\dimen@.8\pageshrink
- \ifdim\ht\tw@>\dimen@
-| \message{Box too tall; rebox it to \the\dimen@. }%
- \dimen@ii\dimen@
- \else % use natural size
- \dimen@ii\ht\tw@
- \fi
- \fi
- % Re-box contents to desired size \dimen@ii
- \advance\dimen@ii -\fb@frh
- \setbox\tw@\vbox to\dimen@ii \bgroup
- % remove simulated frame and page flexibility:
- \vskip -\fb@frh \@plus-\pagestretch \@minus-.8\pageshrink
- \unvbox\tw@ \unpenalty\unpenalty
- \ifdim\lastkern=-137sp % whole box went to next page
-| \message{box split at beginning! }%
- % need work here???
- \egroup \fb@resto@set \eject % (\vskip for frame size was discarded)
- \fb@adjheight
- \fb@put@frame#1#2% INSERTED ???
- \else % Got material split off at the head
- \egroup \fb@resto@set
- \ifvoid\@tempboxa % it all fit after all
-| \message{box split at end! }%
- \setbox\@tempboxa\box\tw@
- \fb@putboxa#1%
- \fb@afterframe
- \else % it really did split
-| \message{box split as expected. Its reboxed height is \the\ht\tw@. }%
- \ifdim\wd\tw@>\z@
- \wd\tw@\wd\@tempboxa
- \centerline{#2{\hboxL{\box\tw@}}}% ??? \centerline bad idea
- \else
-| \message{Zero width means likely blank. Don't frame it (guess)}%
- \box\tw@
- \fi
- \hrule \@height\z@ \@width\hsize
- \eject
- \fb@adjheight
- \fb@put@frame\LastFrameCommand\MidFrameCommand
- \fi\fi\fi\fi\fi
-}
-\def\fb@putboxa#1{%
- \ifvoid\@tempboxa
- \PackageWarning{framed}{Boxa is void -- discard it. }%
- \else
-| \message{Frame and place boxa. }%
-| %{\showoutput\showbox\@tempboxa}%
- \centerline{#1{\hboxL{\box\@tempboxa}}}%
- \fi
-}
-\catcode`\|=\FrameRestore
-\def\FrameRestore{%
- \let\if@nobreak\iffalse
- \let\if@noskipsec\iffalse
- \let\-\@dischyph
- \let\'\@acci\let\`\@accii\let\=\@acciii
- % \message{FrameRestore:
- % \@totalleftmargin=\the \@totalleftmargin,
- % \rightmargin=\the\rightmargin,
- % \@listdepth=\the\@listdepth. }%
- % Test if we are in a list (or list-like paragraph)
- \ifnum \ifdim\@totalleftmargin>\z@ 1\fi
- \ifdim\rightmargin>\z@ 1\fi
- \ifnum\@listdepth>\z@ 1\fi 0>\z@
- % \message{In a list: \linewidth=\the\linewidth, \@totalleftmargin=\the\@totalleftmargin,
- % \parshape=\the\parshape, \columnwidth=\the\columnwidth, \hsize=\the\hsize,
- % \labelwidth=\the\labelwidth. }%
- \@setminipage % snug fit around the item
- % Now try to propageate changes of width from \hsize to list parameters.
- % This is deficient, but a more advanced way to indicate modification to text
- % dimensions is not (yet) provided; in particular, no separate left/right
- % adjustment.
- \advance\linewidth-\columnwidth \advance\linewidth\hsize
- \parshape\@ne \@totalleftmargin \linewidth
- \else % Not in list
- \linewidth=\hsize
- %\message{No list, set \string\linewidth=\the\hsize. }%
- \fi
- \sloppy
-}
-\endinput
-%%
-%% End of file `framed-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/ftnright-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/ftnright-xetex-bidi.def
deleted file mode 100644
index cc631eada36..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/ftnright-xetex-bidi.def
+++ /dev/null
@@ -1,92 +0,0 @@
-%%
-%% This is file `ftnright-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,ftnright-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{ftnright-xetex-bidi.def}[2013/04/10 v0.3 bidi adaptations for ftnright package for XeTeX engine]
-\def\LTR@outputdblcol{\if@firstcolumn
- \global\@firstcolumnfalse
- \global\setbox\@leftcolumn\box\@outputbox
- \global\count\footins\@m
- \global\skip\footins\rcol@footinsskip
- \else \preparefootins
- \global\@firstcolumntrue
- \setbox\@outputbox\vbox{\hbox to\textwidth
- {\hbox to\columnwidth
- {\box\@leftcolumn\hss}%
- \hfil\vrule\@width\columnseprule\hfil
- \hbox to\columnwidth
- {\box\@outputbox\hss}}}%
- \@combinedblfloats\@outputpage
- \begingroup
- \@dblfloatplacement\@startdblcolumn
- \@whilesw\if@fcolmade\fi
- {\@outputpage\@startdblcolumn}%
- \endgroup
- \fi}
- \def\RTL@outputdblcol{\if@firstcolumn
- \global\@firstcolumnfalse
- \global\setbox\@leftcolumn\box\@outputbox
- \global\count\footins\@m
- \global\skip\footins\rcol@footinsskip
- \else \preparefootins
- \global\@firstcolumntrue
- \setbox\@outputbox\vbox{\hbox to\textwidth
- {\hskip \columnwidth
- \hfil \vrule width\columnseprule \hfil
- \hbox to\columnwidth
- {\box\@leftcolumn\hss}%
- \hskip -\textwidth
- \hbox to\columnwidth
- {\box\@outputbox\hss}
- \hskip \columnsep
- \hskip \columnwidth}}%
- \@combinedblfloats\@outputpage
- \begingroup
- \@dblfloatplacement\@startdblcolumn
- \@whilesw\if@fcolmade\fi
- {\@outputpage\@startdblcolumn}%
- \endgroup
- \fi}
-\let\leftfootnoterule\@empty
-\let\rightfootnoterule\@empty
-\let\textwidthfootnoterule\@empty
-\let\autofootnoterule\@empty
-\let\footnoterule\@empty
-\long\def\@makefntext#1{\parindent 1em
- \noindent\hbox to 2em{}%
- \llap{\@thefnmark\hbox{.}\,\,}#1}
-\endinput
-%%
-%% End of file `ftnright-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/geometry-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/geometry-xetex-bidi.def
deleted file mode 100644
index f799810b4ef..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/geometry-xetex-bidi.def
+++ /dev/null
@@ -1,61 +0,0 @@
-%%
-%% This is file `geometry-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,geometry-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{geometry-xetex-bidi.def}[2013/04/01 v0.1 bidi adaptations for geometry package for XeTeX engine]
-\renewcommand*{\Gm@vrules@mpi}{%
-\if@RTLmain%
- \hb@xt@\@tempdima{\hskip-\marginparwidth\hskip-\marginparsep
- \llap{\Gm@vrule}\ignorespaces
- \hskip \marginparwidth\rlap{\Gm@vrule}\hskip \marginparsep
- \llap{\Gm@vrule}\hskip\textwidth\rlap{\Gm@vrule}\hss}%
- \else%
- \hb@xt@\@tempdima{\llap{\Gm@vrule}\ignorespaces
- \hskip \textwidth\Gm@vrule\hskip \marginparsep
- \llap{\Gm@vrule}\hfil\Gm@vrule}\fi}%
-\renewcommand*{\Gm@vrules@mpii}{%
-\if@RTLmain%
- \hb@xt@\@tempdima{\llap{\Gm@vrule}\ignorespaces
- \hskip \textwidth\Gm@vrule\hskip \marginparsep
- \llap{\Gm@vrule}\hfil\Gm@vrule}%
-\else%
- \hb@xt@\@tempdima{\hskip-\marginparwidth\hskip-\marginparsep
- \llap{\Gm@vrule}\ignorespaces
- \hskip \marginparwidth\rlap{\Gm@vrule}\hskip \marginparsep
- \llap{\Gm@vrule}\hskip\textwidth\rlap{\Gm@vrule}\hss}\fi}%
-
-\endinput
-%%
-%% End of file `geometry-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def
deleted file mode 100644
index 9a471395501..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def
+++ /dev/null
@@ -1,157 +0,0 @@
-%%
-%% This is file `graphicx-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,graphicx-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{graphicx-xetex-bidi.def}[2012/01/01 v0.4 bidi adaptations for graphicx package for XeTeX engine]
-\def\Grot@box@std#1#2{\ifmmode\else\if@RTL\beginL\fi\fi%
- \Grot@setangle{#1}%
- \setbox\z@\hbox{{\ifmmode\if@RTL\beginR\fi#2\if@RTL\endR\fi\else\if@RTL\beginR\fi#2\if@RTL\endR\fi\fi}}%
- \Grot@x\z@
- \Grot@y\z@
- \Grot@box\ifmmode\else\if@RTL\endL\fi\fi}
-\long\def\Gscale@box#1[#2]#3{\ifmmode\else\if@RTL\beginL\fi\fi%
- \leavevmode
- \def\Gscale@x{#1}\def\Gscale@y{#2}%
- \setbox\z@\hbox{{#3}}%
- \setbox\tw@\hbox{\Gscale@start\rlap{\copy\z@}\Gscale@end}%
- \ifdim#2\p@<\z@
- \ht\tw@-#2\dp\z@
- \dp\tw@-#2\ht\z@
- \else
- \ht\tw@#2\ht\z@
- \dp\tw@#2\dp\z@
- \fi
- \ifdim#1\p@<\z@
- \hb@xt@-#1\wd\z@{\kern-#1\wd\z@\box\tw@\hss}%
- \else
- \wd\tw@#1\wd\z@
- \box\tw@
- \fi\ifmmode\else\if@RTL\endL\fi\fi}
-\def\Gin@iii[#1,#2][#3,#4]#5{%
- \begingroup
- \ifmmode\else\if@RTL\beginL\fi\fi
- \Gin@bboxtrue
- \Gin@defaultbp\Gin@llx{#1}%
- \Gin@defaultbp\Gin@lly{#2}%
- \Gin@defaultbp\Gin@urx{#3}%
- \Gin@defaultbp\Gin@ury{#4}%
- \Ginclude@graphics{#5}%
- \ifmmode\else\if@RTL\endL\fi\fi
- \endgroup}
-\def\Gin@ii[#1]#2{%
- \def\@tempa{[}\def\@tempb{#2}%
- \ifx\@tempa\@tempb
- \def\@tempa{\Gin@iii[#1][}%
- \expandafter\@tempa
- \else
- \begingroup
- \ifmmode\else\if@RTL\beginL\fi\fi
- \@tempswafalse
- \toks@{\Ginclude@graphics{#2}}%
- \setkeys{Gin}{#1}%
- \Gin@esetsize
- \the\toks@
- \ifmmode\else\if@RTL\endL\fi\fi
- \endgroup
- \fi}
-\def\reflectbox{\bidiGscale@box-1[1]}
-\long\def\bidiGscale@box#1[#2]#3{\ifmmode\else\if@RTL\beginL\fi\fi%
- \leavevmode
- \def\Gscale@x{#1}\def\Gscale@y{#2}%
- \setbox\z@\hbox{{\ifmmode\if@RTL\beginR\fi#3\if@RTL\endR\fi\else\if@RTL\beginR\fi#3\if@RTL\endR\fi\fi}}%
- \setbox\tw@\hbox{\Gscale@start\rlap{\copy\z@}\Gscale@end}%
- \ifdim#2\p@<\z@
- \ht\tw@-#2\dp\z@
- \dp\tw@-#2\ht\z@
- \else
- \ht\tw@#2\ht\z@
- \dp\tw@#2\dp\z@
- \fi
- \ifdim#1\p@<\z@
- \hb@xt@-#1\wd\z@{\kern-#1\wd\z@\box\tw@\hss}%
- \else
- \wd\tw@#1\wd\z@
- \box\tw@
- \fi\ifmmode\else\if@RTL\endL\fi\fi}
-\def\scalebox#1{%
- \@ifnextchar[{\bidiGscale@box{#1}}{\bidiGscale@box{#1}[#1]}}
-\def\resizebox{%
- \leavevmode
- \@ifstar{\bidiGscale@@box\totalheight}{\bidiGscale@@box\height}}
-\def\bidiGscale@@box#1#2#3{%
- \let\@tempa\Gin@exclamation
- \expandafter\def\expandafter\@tempb\expandafter{\string#2}%
- \expandafter\def\expandafter\@tempc\expandafter{\string#3}%
- \ifx\@tempb\@tempa
- \ifx\@tempc\@tempa
- \toks@{\mbox}%
- \else
- \toks@{\bidiGscale@box@dd{#3}#1}%
- \fi
- \else
- \ifx\@tempc\@tempa
- \toks@{\bidiGscale@box@dd{#2}\width}%
- \else
- \toks@{\bidiGscale@box@dddd{#2}\width{#3}#1}%
- \fi
- \fi
- \the\toks@}
-\long\def\bidiGscale@box@dd#1#2#3{%
- \@begin@tempboxa\hbox{\ifmmode\if@RTL\beginR\fi#3\if@RTL\endR\fi\else\if@RTL\beginR\fi#3\if@RTL\endR\fi\fi}%
- \setlength\@tempdima{#1}%
- \setlength\@tempdimb{#2}%
- \Gscale@div\@tempa\@tempdima\@tempdimb
- \Gscale@box\@tempa[\@tempa]{\box\@tempboxa}%
- \@end@tempboxa}
-\long\def\bidiGscale@box@dddd#1#2#3#4#5{%
- \@begin@tempboxa\hbox{\ifmmode\if@RTL\beginR\fi#5\if@RTL\endR\fi\else\if@RTL\beginR\fi#5\if@RTL\endR\fi\fi}%
- \setlength\@tempdima{#1}%
- \setlength\@tempdimb{#2}%
- \Gscale@div\@tempa\@tempdima\@tempdimb
- \setlength\@tempdima{#3}%
- \setlength\@tempdimb{#4}%
- \Gscale@div\@tempb\@tempdima\@tempdimb
- \ifGin@iso
- \ifdim\@tempa\p@>\@tempb\p@
- \let\@tempa\@tempb
- \else
- \let\@tempb\@tempa
- \fi
- \fi
- \Gscale@box\@tempa[\@tempb]{\box\@tempboxa}%
- \@end@tempboxa}
-\endinput
-%%
-%% End of file `graphicx-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/hvfloat-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/hvfloat-xetex-bidi.def
deleted file mode 100644
index cbca8faeb51..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/hvfloat-xetex-bidi.def
+++ /dev/null
@@ -1,313 +0,0 @@
-%%
-%% This is file `hvfloat-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,hvfloat-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{hvfloat-xetex-bidi.def}[2012/04/18 v0.2 bidi adaptations for hvfloat package for XeTeX engine]
-\def\do@@hvFloat[#1]#2#3{%
-\def\hv@shortCap{#1}
-\def\hv@longCap{#2}
-\def\hv@label{#3}
- \def\@tempa{90}%
- \ifx\hvSet@rotAngle\@tempa \setlength{\hvMaxCapWidth}{\textheight}
- \else \setlength{\hvMaxCapWidth}{\linewidth}
- \fi
- \ifx\hvSet@objectAngle\hv@Zero % rotate the object?
- \savebox{\hvObjectBox}{\ifhv@useOBox\usebox{\hvOBox}\else\hv@floatObject\fi}
- \else
- \savebox{\hvObjectBox}{%
- \rotatebox{\hvSet@objectAngle}{%
- \ifhv@useOBox\usebox{\hvOBox}\else\hv@floatObject\fi}}
- \fi
- \setlength{\hvObjectWidth}{\wd\hvObjectBox}
- \ifx\hvSet@capWidth\hv@Width\setlength{\hvCapWidth}{\hvObjectWidth}
- \else
- \ifx\hvSet@capWidth\hv@Height\setlength{\hvCapWidth}{\ht\hvObjectBox}
- \else
- \setlength{\hvCapWidth}{\hvObjectWidth}
- \ifx\hvSet@capPos\hv@Left\addtolength{\hvMaxCapWidth}{-\hvObjectWidth}\fi
- \ifx\hvSet@capPos\hv@Right\addtolength{\hvMaxCapWidth}{-\hvObjectWidth}\fi
- \ifdim\hvSet@capWidth\columnwidth<\hvMaxCapWidth
-\setlength{\hvCapWidth}{\hvSet@capWidth\columnwidth}
- \else
-\setlength{\hvCapWidth}{\hvMaxCapWidth}
- \fi
- \fi
- \fi
- \def\fps@figure{\hvSet@floatPos}
- \ifhv@nonFloat\begingroup% Start the nonfloat part
- \else \begin{\hv@floatType}% Start the floating environment
- \fi%
- \saveCaptionSkip% we put this space ourselve
- \ifx\hvSet@capAngle\hv@Width % need rotation?
- \sbox{\hvCaptionBox}{%
- \begin{minipage}[b]{\hvCapWidth}% minipage, to get hyphenation
- \ifhv@nonFloat%
- \ifhv@onlyText#2%
- \else%
- \ifx\hv@floatType\hv@figure
- \ifx\relax#1\relax \figcaption{#2}\else\figcaption[#1]{#2}\fi
- \else
- \ifx\relax#1\relax \tabcaption{#2}\else\tabcaption[#1]{#2}\fi%
- \fi
- \fi
-\else\ifx\relax\hv@shortCap\relax\caption{#2}\else\caption[#1]{#2}\fi%
-\fi%
-\label{#3}%
- \end{minipage}%
- }%
- \else%
- \sbox{\hvCaptionBox}{%
- \rotatebox{\hvSet@capAngle}{%
- \begin{minipage}[b]{\hvCapWidth}% minipage, to get hyphenation
-\ifhv@nonFloat%
- \ifhv@onlyText#2%
- \else%
- \ifx\hv@floatType\hv@figure
- \ifx\relax#1\relax \figcaption{#2}\else\figcaption[#1]{#2}\fi
- \else
- \ifx\relax#1\relax \tabcaption{#2}\else\tabcaption[#1]{#2}\fi%
- \fi
- \fi
-\else\ifx\relax\hv@shortCap\relax\caption{#2}\else\caption[#1]{#2}\fi%
- \fi%
- \label{#3}%
- \end{minipage}%
- }%
- }%
- \fi%
-%%
- \restoreCaptionSkip% save old values
- \ifx\hvSet@objectPos\hv@Right\bidi@raggedleft%
- \else%
- \ifx\hvSet@objectPos\hv@Center
- \ifhv@nonFloat\hspace*{\fill}\else\centering\fi%
- \fi%
- \fi%
- \savebox{\@tempboxa}{%
- \ifx\hvSet@capPos\hv@Left % caption on left side
-\if@RTL%
-\ifx\hvSet@capVPos\hv@Center%
-\ifhv@fbox
-\fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
-\else
-\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
-\fi%
-\hspace{\hvSet@floatCapSep pt}%
-\ifhv@fbox
-\fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
-\else
-\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}
-\fi%
-\else%
-\ifx\hvSet@capVPos\hv@Top
-\ifhv@fbox
-\fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
-\else
-\raisebox{-\height}{\usebox{\hvObjectBox}}%
-\fi%
-\hspace{\hvSet@floatCapSep pt}%
-\ifhv@fbox
-\fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
-\else
-\raisebox{-\height}{\usebox{\hvCaptionBox}}%
-\fi
-\else
-\ifhv@fbox
-\fbox{\usebox{\hvObjectBox}}%
-\else
-\usebox{\hvObjectBox}%
-\fi
-\hspace{\hvSet@floatCapSep pt}%
-\ifhv@fbox
-\fbox{\usebox{\hvCaptionBox}}%
-\else
-\usebox{\hvCaptionBox}%
-\fi%
-\fi%
-\fi%
-\else% not RTL
- \ifx\hvSet@capVPos\hv@Center%
- \ifhv@fbox\fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
- \else \parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}%
- \fi%
- \hspace{\hvSet@floatCapSep pt}% capfloatsep
- \ifhv@fbox\fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
- \else \parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
- \fi%
- \else%
- \ifx\hvSet@capVPos\hv@Top % caption at top
- \ifhv@fbox\fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
- \else \raisebox{-\height}{\usebox{\hvCaptionBox}}%
- \fi
- \hspace{\hvSet@floatCapSep pt}% capfloatsep
- \ifhv@fbox\fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
- \else \raisebox{-\height}{\usebox{\hvObjectBox}}%
- \fi%
- \else% caption on bottom
- \ifhv@fbox\fbox{\usebox{\hvCaptionBox}}
- \else\usebox{\hvCaptionBox}
- \fi%
- \hspace{\hvSet@floatCapSep pt}%
- \ifhv@fbox\fbox{\usebox{\hvObjectBox}}
- \else \usebox{\hvObjectBox}
- \fi%
- \fi%
-\fi% end of RTL
- \fi%
- \else
-\ifx\hvSet@capPos\hv@Top
-\ifdim\wd\hvCaptionBox>\wd\hvObjectBox
-\begin{minipage}{\wd\hvCaptionBox}
-\else
-\begin{minipage}{\wd\hvObjectBox}
-\fi
-\centering
-\ifhv@fbox
-\fbox{\usebox{\hvCaptionBox}}\\[\hvBelowCaptionSkip]
-\fbox{\usebox{\hvObjectBox}}
-\else
-\usebox{\hvCaptionBox}\\[\hvBelowCaptionSkip]
-\usebox{\hvObjectBox}
-\fi%
-\end{minipage}
-\else
-\ifx\hvSet@capPos\hv@Bottom
-\ifdim\wd\hvCaptionBox>\wd\hvObjectBox
-\begin{minipage}{\wd\hvCaptionBox}
-\else
-\begin{minipage}{\wd\hvObjectBox}
-\fi
-\centering
-\ifhv@fbox
-\fbox{\usebox{\hvObjectBox}}\\[\hvAboveCaptionSkip]
-\fbox{\usebox{\hvCaptionBox}}
-\else
-\usebox{\hvObjectBox}\\[\hvAboveCaptionSkip]
-\usebox{\hvCaptionBox}
-\fi%
-\end{minipage}
-\else% the last option: put the caption on the right
-\if@RTL%
- \ifx\hvSet@capVPos\hv@Center%
- \ifhv@fbox\fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
- \else \parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}%
- \fi%
- \hspace{\hvSet@floatCapSep pt}% capfloatsep
- \ifhv@fbox\fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
- \else \parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
- \fi%
- \else%
- \ifx\hvSet@capVPos\hv@Top % caption at top
- \ifhv@fbox\fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
- \else \raisebox{-\height}{\usebox{\hvCaptionBox}}%
- \fi
- \hspace{\hvSet@floatCapSep pt}% capfloatsep
- \ifhv@fbox\fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
- \else \raisebox{-\height}{\usebox{\hvObjectBox}}%
- \fi%
- \else% caption on bottom
- \ifhv@fbox\fbox{\usebox{\hvCaptionBox}}
- \else\usebox{\hvCaptionBox}
- \fi%
- \hspace{\hvSet@floatCapSep pt}%
- \ifhv@fbox\fbox{\usebox{\hvObjectBox}}
- \else \usebox{\hvObjectBox}
- \fi%
- \fi%
- \fi%
-\else% not RTL
-\ifx\hvSet@capVPos\hv@Center%
-\ifhv@fbox
-\fbox{\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}}
-\else
-\parbox{\wd\hvObjectBox}{\usebox{\hvObjectBox}}
-\fi%
-\hspace{\hvSet@floatCapSep pt}%
-\ifhv@fbox
-\fbox{\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}}%
-\else
-\parbox{\wd\hvCaptionBox}{\usebox{\hvCaptionBox}}
-\fi%
-\else%
-\ifx\hvSet@capVPos\hv@Top
-\ifhv@fbox
-\fbox{\raisebox{-\height}{\usebox{\hvObjectBox}}}%
-\else
-\raisebox{-\height}{\usebox{\hvObjectBox}}%
-\fi%
-\hspace{\hvSet@floatCapSep pt}%
-\ifhv@fbox
-\fbox{\raisebox{-\height}{\usebox{\hvCaptionBox}}}%
-\else
-\raisebox{-\height}{\usebox{\hvCaptionBox}}%
-\fi
-\else
-\ifhv@fbox
-\fbox{\usebox{\hvObjectBox}}%
-\else
-\usebox{\hvObjectBox}%
-\fi
-\hspace{\hvSet@floatCapSep pt}%
-\ifhv@fbox
-\fbox{\usebox{\hvCaptionBox}}%
-\else
-\usebox{\hvCaptionBox}%
-\fi%
-\fi%
-\fi
-\fi% end of RTL
-\fi
-\fi
-\fi
-}% End savebox Object and caption
-\ifx\hvSet@rotAngle\hv@Zero
-\usebox{\@tempboxa}
-\else
-\rotatebox{\hvSet@rotAngle}{\usebox{\@tempboxa}}
-\fi
-\ifhv@nonFloat
-\ifx\hvSet@objectPos\hv@Center
-\ifhv@nonFloat
-\hspace{\fill}
-\fi
-\fi
-\endgroup% End the nonfloat part
-\else
-\end{\hv@floatType}% End the floating environment
-\fi
-}
-\endinput
-%%
-%% End of file `hvfloat-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/hyperref-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/hyperref-xetex-bidi.def
deleted file mode 100644
index ebe2147ffbc..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/hyperref-xetex-bidi.def
+++ /dev/null
@@ -1,617 +0,0 @@
-%%
-%% This is file `hyperref-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,hyperref-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{hyperref-xetex-bidi.def}[2015/11/26 v0.9 bidi adaptations for hyperref package for XeTeX engine]
-\AtBeginDocument{%
-\def\contentsline#1#2#3#4{%
- \ifx\\#4\\%
- \csname l@#1\endcsname{#2}{#3}%
- \else
- \ifcase\Hy@linktoc % none
- \csname l@#1\endcsname{#2}{#3}%
- \or % section
- \csname l@#1\endcsname{%
- \hyper@linkstart{link}{#4}{\if@RTL\beginR\fi#2\if@RTL\endR\fi}\hyper@linkend
- }{#3}%
- \or % page
- \csname l@#1\endcsname{{#2}}{%
- \hyper@linkstart{link}{#4}{#3}\hyper@linkend
- }%
- \else % all
- \csname l@#1\endcsname{%
- \hyper@linkstart{link}{#4}{\if@RTL\beginR\fi#2\if@RTL\endR\fi}\hyper@linkend
- }{%
- \hyper@linkstart{link}{#4}{#3}\hyper@linkend
- }%
- \fi
- \fi
-}
-\ifHy@hyperfootnotes
- \let\H@@footnotetext\@footnotetext
- \let\HRTL@@RTLfootnotetext\@RTLfootnotetext
- \let\HLTR@@LTRfootnotetext\@LTRfootnotetext
- \def\@xfootnotenext[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \ifx\@footnotetext\@mpfootnotetext
- \expandafter\H@@mpfootnotetext
- \else
- \expandafter\H@@footnotetext
- \fi
- }%
- \def\@xRTLfootnotenext[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \ifx\@RTLfootnotetext\@mpRTLfootnotetext
- \expandafter\HRTL@@mpRTLfootnotetext
- \else
- \expandafter\HRTL@@RTLfootnotetext
- \fi
- }%
- \def\@xLTRfootnotenext[#1]{%
- \begingroup
- \csname c@\@mpfn\endcsname #1\relax
- \unrestored@protected@xdef\@thefnmark{\thempfn}%
- \endgroup
- \ifx\@LTRfootnotetext\@mpLTRfootnotetext
- \expandafter\HLTR@@mpLTRfootnotetext
- \else
- \expandafter\HLTR@@LTRfootnotetext
- \fi
- }%
- \def\@xfootnotemark[#1]{%
- \begingroup
- \c@footnote #1\relax
- \unrestored@protected@xdef\@thefnmark{\thefootnote}%
- \endgroup
- \H@@footnotemark
- }%
- \let\H@@mpfootnotetext\@mpfootnotetext
- \let\HRTL@@mpRTLfootnotetext\@mpRTLfootnotetext
- \let\HLTR@@mpLTRfootnotetext\@mpLTRfootnotetext
- \long\def\@mpfootnotetext#1{%
- \H@@mpfootnotetext{%
- \ifHy@nesting
- \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
- \else
- \Hy@raisedlink{%
- \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
- }#1%
- \fi
- }%
- }%
- \long\def\@mpRTLfootnotetext#1{%
- \HRTL@@mpRTLfootnotetext{%
- \ifHy@nesting
- \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
- \else
- \Hy@raisedlink{%
- \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
- }#1%
- \fi
- }%
- }%
- \long\def\@mpLTRfootnotetext#1{%
- \HLTR@@mpLTRfootnotetext{%
- \ifHy@nesting
- \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
- \else
- \Hy@raisedlink{%
- \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
- }#1%
- \fi
- }%
- }%
- \long\def\@footnotetext#1{%
- \H@@footnotetext{%
- \ifHy@nesting
- \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
- \else
- \Hy@raisedlink{%
- \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
- }%
- \let\@currentHlabel\Hy@footnote@currentHlabel
- \let\@currentHref\Hy@footnote@currentHref
- \let\@currentlabelname\@empty
- #1%
- \fi
- }%
- }%
- \long\def\@RTLfootnotetext#1{%
- \HRTL@@RTLfootnotetext{%
- \ifHy@nesting
- \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
- \else
- \Hy@raisedlink{%
- \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
- }%
- \let\@currentHlabel\Hy@footnote@currentHlabel
- \let\@currentHref\Hy@footnote@currentHref
- \let\@currentlabelname\@empty
- #1%
- \fi
- }%
- }%
- \long\def\@LTRfootnotetext#1{%
- \HLTR@@LTRfootnotetext{%
- \ifHy@nesting
- \hyper@@anchor{\Hy@footnote@currentHref}{#1}%
- \else
- \Hy@raisedlink{%
- \hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
- }%
- \let\@currentHlabel\Hy@footnote@currentHlabel
- \let\@currentHref\Hy@footnote@currentHref
- \let\@currentlabelname\@empty
- #1%
- \fi
- }%
- }%
- \@ifpackageloaded{tabularx}{%
- \let\HyOrg@TX@endtabularx\TX@endtabularx
- \def\Hy@tabularx@hook{%
- \let\@footnotetext\H@@footnotetext
- \let\@LTRfootnotetext\HLTR@@LTRfootnotetext
- \let\@RTLfootnotetext\HRTL@@RTLfootnotetext
- \let\@footnotemark\H@@footnotemark
- \let\@mpfootnotetext\H@@mpfootnotetext
- \let\@mpLTRfootnotetext\HLTR@@mpLTRfootnotetext
- \let\@mpRTLfootnotetext\HRTL@@mpRTLfootnotetext
- }%
- \begingroup
- \toks@\expandafter{\TX@endtabularx}%
- \xdef\Hy@gtemp{%
- \noexpand\Hy@tabularx@hook
- \the\toks@
- }%
- \endgroup
- \let\TX@endtabularx\Hy@gtemp
- }{}%
- \@ifpackageloaded{longtable}{%
- \CheckCommand*{\LT@p@LTRftntext}[1]{%
- \edef\@tempa{%
- \the\LT@p@ftn
- \noexpand\LTRfootnotetext[\the\c@footnote]%
- }%
- \global\LT@p@ftn\expandafter{\@tempa{#1}}%
- }%
- \long\def\LT@p@LTRftntext#1{%
- \edef\@tempa{%
- \the\LT@p@ftn
- \begingroup
- \noexpand\c@footnote=\the\c@footnote\relax
- \noexpand\protected@xdef\noexpand\@thefnmark{%
- \noexpand\thempfn
- }%
- \noexpand\Hy@LT@LTRfootnotetext{%
- \Hy@footnote@currentHref
- }%
- }%
- \global\LT@p@ftn\expandafter{%
- \@tempa{#1}%
- \endgroup
- }%
- }%
- \long\def\Hy@LT@LTRfootnotetext#1#2{%
- \HLTR@@LTRfootnotetext{%
- \ifHy@nesting
- \hyper@@anchor{#1}{#2}%
- \else
- \Hy@raisedlink{%
- \hyper@@anchor{#1}{\relax}%
- }%
- \def\@currentHref{#1}%
- \let\@currentlabelname\@empty
- #2%
- \fi
- }%
- }%
- \CheckCommand*{\LT@p@RTLftntext}[1]{%
- \edef\@tempa{%
- \the\LT@p@ftn
- \noexpand\RTLfootnotetext[\the\c@footnote]%
- }%
- \global\LT@p@ftn\expandafter{\@tempa{#1}}%
- }%
- \long\def\LT@p@RTLftntext#1{%
- \edef\@tempa{%
- \the\LT@p@ftn
- \begingroup
- \noexpand\c@footnote=\the\c@footnote\relax
- \noexpand\protected@xdef\noexpand\@thefnmark{%
- \noexpand\thempfn
- }%
- \noexpand\Hy@LT@RTLfootnotetext{%
- \Hy@footnote@currentHref
- }%
- }%
- \global\LT@p@ftn\expandafter{%
- \@tempa{#1}%
- \endgroup
- }%
- }%
- \long\def\Hy@LT@RTLfootnotetext#1#2{%
- \HRTL@@RTLfootnotetext{%
- \ifHy@nesting
- \hyper@@anchor{#1}{#2}%
- \else
- \Hy@raisedlink{%
- \hyper@@anchor{#1}{\relax}%
- }%
- \def\@currentHref{#1}%
- \let\@currentlabelname\@empty
- #2%
- \fi
- }%
- }%
- }{}%
- \@ifpackageloaded{bidipoem}{%
- \long\def\bidipoem@p@ftntext#1{%
- \edef\@tempx{%
- \the\bidipoem@p@ftn
- \begingroup
- \noexpand\csname c@\@mpfn\endcsname=\the\csname c@\@mpfn\endcsname\relax
- \noexpand\protected@xdef\noexpand\@thefnmark{%
- \noexpand\thempfn
- }%
- \noexpand\Hy@bidipoem@footnotetext{%
- \Hy@footnote@currentHref
- }%
- }%
- \global\bidipoem@p@ftn\expandafter{%
- \@tempx{#1}%
- \endgroup
- }%
- }%
- \long\def\Hy@bidipoem@footnotetext#1#2{%
- \H@@footnotetext{%
- \ifHy@nesting
- \hyper@@anchor{#1}{#2}%
- \else
- \Hy@raisedlink{%
- \hyper@@anchor{#1}{\relax}%
- }%
- \def\@currentHref{#1}%
- \let\@currentlabelname\@empty
- #2%
- \fi
- }%
- }%
- \long\def\bidipoem@p@LTRftntext#1{%
- \edef\@tempxi{%
- \the\bidipoem@p@ftn
- \begingroup
- \noexpand\csname c@\@mpfn\endcsname=\the\csname c@\@mpfn\endcsname\relax
- \noexpand\protected@xdef\noexpand\@thefnmark{%
- \noexpand\thempfn
- }%
- \noexpand\Hy@bidipoem@LTRfootnotetext{%
- \Hy@footnote@currentHref
- }%
- }%
- \global\bidipoem@p@ftn\expandafter{%
- \@tempxi{#1}%
- \endgroup
- }%
- }%
- \long\def\Hy@bidipoem@LTRfootnotetext#1#2{%
- \HLTR@@LTRfootnotetext{%
- \ifHy@nesting
- \hyper@@anchor{#1}{#2}%
- \else
- \Hy@raisedlink{%
- \hyper@@anchor{#1}{\relax}%
- }%
- \def\@currentHref{#1}%
- \let\@currentlabelname\@empty
- #2%
- \fi
- }%
- }%
- \long\def\bidipoem@p@RTLftntext#1{%
- \edef\@tempxii{%
- \the\bidipoem@p@ftn
- \begingroup
- \noexpand\csname c@\@mpfn\endcsname=\the\csname c@\@mpfn\endcsname\relax
- \noexpand\protected@xdef\noexpand\@thefnmark{%
- \noexpand\thempfn
- }%
- \noexpand\Hy@bidipoem@RTLfootnotetext{%
- \Hy@footnote@currentHref
- }%
- }%
- \global\bidipoem@p@ftn\expandafter{%
- \@tempxii{#1}%
- \endgroup
- }%
- }%
- \long\def\Hy@bidipoem@RTLfootnotetext#1#2{%
- \HRTL@@RTLfootnotetext{%
- \ifHy@nesting
- \hyper@@anchor{#1}{#2}%
- \else
- \Hy@raisedlink{%
- \hyper@@anchor{#1}{\relax}%
- }%
- \def\@currentHref{#1}%
- \let\@currentlabelname\@empty
- #2%
- \fi
- }%
- }%
- }{}%
- \let\HyOrg@maketitle\maketitle
- \def\maketitle{%
- \let\Hy@saved@footnotemark\@footnotemark
- \let\Hy@saved@footnotetext\@footnotetext
- \let\HyRTL@saved@RTLfootnotetext\@RTLfootnotetext
- \let\HyLTR@saved@LTRfootnotetext\@LTRfootnotetext
- \let\@footnotemark\H@@footnotemark
- \let\@footnotetext\H@@footnotetext
- \let\@RTLfootnotetext\HRTL@@RTLfootnotetext
- \let\@LTRfootnotetext\HLTR@@LTRfootnotetext
- \@ifnextchar[\Hy@maketitle@optarg{% ]
- \HyOrg@maketitle
- \Hy@maketitle@end
- }%
- }%
- \def\Hy@maketitle@optarg[#1]{%
- \HyOrg@maketitle[{#1}]%
- \Hy@maketitle@end
- }%
- \def\Hy@maketitle@end{%
- \ifx\@footnotemark\H@@footnotemark
- \let\@footnotemark\Hy@saved@footnotemark
- \fi
- \ifx\@footnotetext\H@@footnotetext
- \let\@footnotetext\Hy@saved@footnotetext
- \fi
- \ifx\@RTLfootnotetext\HRTL@@RTLfootnotetext
- \let\@RTLfootnotetext\HyRTL@saved@RTLfootnotetext
- \fi
- \ifx\@LTRfootnotetext\HLTR@@LTRfootnotetext
- \let\@LTRfootnotetext\HyLTR@saved@LTRfootnotetext
- \fi
- }%
- \def\realfootnote{%
- \@ifnextchar[\@xfootnote{%
- \stepcounter{\@mpfn}%
- \protected@xdef\@thefnmark{\thempfn}%
- \H@@footnotemark\H@@footnotetext
- }%
- }%
-\fi
-\def\Hy@BeginAnnot#1{%
- \ifmmode\else\beginL\fi%
- \stepcounter{Hy@AnnotLevel}%
- \ifnum\value{Hy@AnnotLevel}=\@ne
- #1%
- \fi
-}
-\def\Hy@EndAnnot{%
- \ifnum\value{Hy@AnnotLevel}=\@ne
- \Hy@endcolorlink
- \@pdfm@mark{eann}%
- \fi
- \addtocounter{Hy@AnnotLevel}\m@ne
- \ifmmode\else\endL\fi%
-}
-\def\hyper@link#1#2#3{%
- \hyper@linkstart{#1}{#2}\ifmmode\else\if@RTL\beginR\fi\fi#3\ifmmode\else\if@RTL\endR\fi\fi\Hy@xspace@end\hyper@linkend
-}
-\def\hyper@linkfile#1#2#3{%
- \leavevmode
- \Hy@BeginAnnot{%
- \def\Hy@pstringF{#2}%
- \Hy@CleanupFile\Hy@pstringF
- \Hy@pstringdef\Hy@pstringF\Hy@pstringF
- \Hy@pstringdef\Hy@pstringD{#3}%
- \Hy@MakeRemoteAction
- \@pdfm@mark{%
- bann<<%
- /Type/Annot%
- /Subtype/Link%
- \ifHy@pdfa /F 4\fi
- \Hy@setpdfborder
- \ifx\@filebordercolor\relax
- \else
- /C[\@filebordercolor]%
- \fi
- /A<<%
- /S/GoToR%
- /F(\Hy@pstringF)%
- /D%
- \ifx\\#3\\%
- [\Hy@href@page\@pdfremotestartview]%
- \else
- (\Hy@pstringD)%
- \fi
- \Hy@SetNewWindow
- \Hy@href@nextactionraw
- >>%
- >>%
- }%
- \Hy@colorlink\@filecolor
- }%
- \ifmmode\else\if@RTL\beginR\fi\fi#1\ifmmode\else\if@RTL\endR\fi\fi\Hy@xspace@end
- \Hy@EndAnnot
-}
-\def\@hyper@launch run:#1\\#2#3{% filename, anchor text linkname
- \leavevmode
- \Hy@BeginAnnot{%
- \Hy@pstringdef\Hy@pstringF{#1}%
- \Hy@pstringdef\Hy@pstringP{#3}%
- \@pdfm@mark{%
- bann<<%
- /Type/Annot%
- /Subtype/Link%
- \ifHy@pdfa /F 4\fi
- \Hy@setpdfborder
- \ifx\@runbordercolor\relax
- \else
- /C[\@runbordercolor]%
- \fi
- /A<<%
- /F(\Hy@pstringF)%
- /S/Launch%
- \Hy@SetNewWindow
- \ifx\\#3\\%
- \else
- /Win<</P(\Hy@pstringP)/F(\Hy@pstringF)>>%
- \fi
- \Hy@href@nextactionraw
- >>%
- >>%
- }%
- \Hy@colorlink\@runcolor
- }%
- \ifmmode\else\if@RTL\beginR\fi\fi#2\ifmmode\else\if@RTL\endR\fi\fi\Hy@xspace@end
- \Hy@EndAnnot
-}
-\def\hyper@linkurl#1#2{%
- \leavevmode
- \Hy@BeginAnnot{%
- \Hy@pstringdef\Hy@pstringURI{#2}%
- \@pdfm@mark{%
- bann<<%
- /Type/Annot%
- /Subtype/Link%
- \ifHy@pdfa /F 4\fi
- \Hy@setpdfborder
- \ifx\@urlbordercolor\relax
- \else
- /C[\@urlbordercolor]%
- \fi
- /A<<%
- /S/URI%
- /URI(\Hy@pstringURI)%
- \ifHy@href@ismap
- /IsMap true%
- \fi
- \Hy@href@nextactionraw
- >>%
- >>%
- }%
- \Hy@colorlink\@urlcolor
- }%
- \ifmmode\else\if@RTL\beginR\fi\fi#1\ifmmode\else\if@RTL\endR\fi\fi\Hy@xspace@end
- \Hy@EndAnnot
-}
-\def\Acrobatmenu#1#2{%
- \Hy@Acrobatmenu{#1}{#2}{%
- \Hy@BeginAnnot{%
- \EdefEscapeName\Hy@temp@menu{#1}%
- \@pdfm@mark{%
- bann<<%
- /Type/Annot%
- /Subtype/Link%
- \ifHy@pdfa /F 4\fi
- \Hy@setpdfborder
- \ifx\@menubordercolor\relax
- \else
- /C[\@menubordercolor]%
- \fi
- /A<<%
- /S/Named%
- /N/\Hy@temp@menu
- \Hy@href@nextactionraw
- >>%
- >>%
- }%
- \Hy@colorlink\@menucolor
- }%
- \ifmmode\else\if@RTL\beginR\fi\fi#2\ifmmode\else\if@RTL\endR\fi\fi\Hy@xspace@end
- \Hy@EndAnnot
- }%
-}
-\def\hyper@natlinkstart#1{%
- \Hy@backout{#1}%
- \hyper@linkstart{cite}{cite.#1}\if@RTL\beginR\fi%
- \def\hyper@nat@current{#1}%
-}
-\def\hyper@natlinkend{%
- \if@RTL\endR\fi\hyper@linkend
-}
-\def\hyper@natlinkbreak#1#2{%
- \if@RTL\endR\fi\hyper@linkend#1\hyper@linkstart{cite}{cite.#2}\if@RTL\beginR\fi%
-}%
-}
-\pdfstringdefDisableCommands{%
-\let\LRE\@firstofone
-\let\LR\@firstofone
-\let\RLE\@firstofone
-\let\RL\@firstofone
-\def\XeTeX{Xe\TeX}
-\def\XeLaTeX{Xe\LaTeX}
-}
-\@ifpackageloaded{longtable}{%
- \begingroup
- \def\y{\LT@array}%
- \@ifundefined{scr@LT@array}{%
- \@ifundefined{adl@LT@array}{}{\def\y{\adl@LT@array}}%
- }{\def\y{\scr@LT@array}}%
- \long\def\x\refstepcounter#1#2\@sharp#3#4\@nil{%
- \expandafter\endgroup
- \expandafter\def\y[##1]##2{%
- \H@refstepcounter{#1}%
- \hyper@makecurrent{table}%
- \let\Hy@LT@currentHref\@currentHref
- #2\@sharp#####4%
- }%
- }%
- \expandafter\expandafter\expandafter\x\y[{#1}]{#2}\@nil
- \begingroup
- \def\x#1\ifvoid\LT@foot#2\fi#3\@nil{%
- \endgroup
- \def\LT@start{%
- #1%
- \ifvoid\LT@foot#2\fi
- \let\@currentHref\Hy@LT@currentHref
- \Hy@raisedlink{%
- \hyper@anchorstart{\@currentHref}\hyper@anchorend
- }%
- #3%
- }%
- }%
- \expandafter\x\LT@start\@nil
-}{}
-\endinput
-%%
-%% End of file `hyperref-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def
deleted file mode 100644
index d09a02d2e53..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def
+++ /dev/null
@@ -1,790 +0,0 @@
-%%
-%% This is file `latex-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,latex-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{latex-xetex-bidi.def}[2015/11/14 v1.2.4 bidi adaptations for `latex.ltx' for XeTeX engine]
-\newcommand{\TeXXeTOn}{\TeXXeTstate=1 }
-\newcommand{\TeXXeTOff}{\TeXXeTstate=0 }
-\TeXXeTOn
-\def\bidi@RTL@everypar{{\setbox\z@\lastbox\if@RTL\beginR\else\beginL\fi\ifvoid\z@\else\usebox\z@\fi}}
- \let\bidi@o@everypar=\everypar
- \newtoks\bidi@n@everypar
- \bidi@n@everypar\expandafter{\the\bidi@o@everypar}
- \bidi@o@everypar{\bidi@RTL@everypar\the\bidi@n@everypar}
- \let\everypar=\bidi@n@everypar
-\def\moreLRE{\bracetext \aftergroup\endL \beginL\@RTLfalse}
-\def\moreRLE{\bracetext \aftergroup\endR \beginR\@RTLtrue}
-\protected\def\hboxR{\hbox\bgroup
- \everyhbox{%
- \aftergroup\egroup
- \everyhbox{}%
- \beginR
- \bgroup
- \aftergroup\endR
- \aftergroup\egroup
- }\hbox}
-\protected\def\hboxL{\hbox\bgroup
- \everyhbox{%
- \aftergroup\egroup
- \everyhbox{}%
- \beginL
- \bgroup
- \aftergroup\endL
- \aftergroup\egroup
- }\hbox}
-\protected\def\vboxR{\vbox\bgroup
- \everyvbox{%
- \aftergroup\egroup
- \everyvbox{}%
- \@RTLtrue
- \bgroup
- \aftergroup\egroup
- }\vbox}
-\protected\def\vboxL{\vbox\bgroup
- \everyvbox{%
- \aftergroup\egroup
- \everyvbox{}%
- \@RTLfalse
- \bgroup
- \aftergroup\egroup
- }\vbox}
-\def\LTR{\par\@RTLfalse\@RTL@footnotefalse\hsize\linewidth\parshape\z@}
-\def\endLTR{\par}
-\def\RTL{\par\@RTLtrue\@RTL@footnotetrue\hsize\linewidth\parshape\z@}
-\def\endRTL{\par}
-\def\setRTL{\@RTLtrue\@RTL@footnotetrue}
-\def\setLTR{\@RTLfalse\@RTL@footnotefalse}
-\let\unsetRTL=\setLTR
-\let\unsetLTR=\setRTL
-\let\LR=\LRE
-\let\RL=\RLE
-\def\@ensure@RTL#1{\if@RTL#1\else\RLE{#1}\fi}
-\def\@ensure@LTR#1{\if@RTL\LRE{#1}\else#1\fi}
-\let\@ensure@RL=\@ensure@RTL
-\let\@ensure@LR=\@ensure@LTR
-\def\@ensure@dir#1{\if@RTL\RLE{#1}\else{#1}\fi}
-\let\@ensure@maindir=\@ensure@dir
-\def\@@RTL{RTL}
-\def\@@LTR{LTR}
-\def\save@dir{\if@RTL\gdef\saved@@dir{RTL}\else\gdef\saved@@dir{LTR}\fi}
-\def\reset@dir{\ifx\saved@@dir\@@RTL\setRTL\else\ifx\saved@@dir\@@LTR\setLTR\else\relax\fi\fi}
-\let\@@TeX\TeX
-\def\TeX{\@ensure@LTR{\@@TeX}}
-\let\@@LaTeX\LaTeX
-\def\LaTeX{\@ensure@LTR{\@@LaTeX}}
-\let\@@LaTeXe\LaTeXe
-\def\LaTeXe{\@ensure@LTR{\@@LaTeXe}}
-\long\def\bidi@reflect@box#1{%
- \leavevmode
- \setbox\z@\hbox{{#1}}%
- \setbox\tw@\hbox{\special{x:gsave}\special{x:scale -1 1}\rlap{\copy\z@}\special{x:grestore}}%
- \hb@xt@\wd\z@{\kern\wd\z@\box\tw@\hss}%
-}
-\def\XeTeX{\LR{\leavevmode$\smash{\hbox{X\lower.5ex
- \hbox{\kern-.125em\bidi@reflect@box{E}}\kern-.1667em \TeX}}$}}
-\def\XeLaTeX{\LR{\leavevmode$\smash{\hbox{X\lower.5ex
- \hbox{\kern-.125em\bidi@reflect@box{E}}\kern-.1667em \LaTeX}}$}}
-\let\setRL=\setRTL
-\let\setLR=\setLTR
-\let\unsetRL=\setLTR
-\def\bidi@tabular@RTLcases{\let\@halignto\@empty\@bidi@tabular@RTLcases}
-\@ifpackageloaded{array}{%
-\def\@bidi@tabular@RTLcases{\@RTLtabtrue%
- \leavevmode
- \hbox \bgroup $\left.\col@sep\tabcolsep \let\d@llarbegin\begingroup
- \let\d@llarend\endgroup
- \@tabarray}
-\def\endbidi@tabular@RTLcases{\endarray \right\rbrace$\egroup\@RTLtabfalse}
-}{%
-\def\@bidi@tabular@RTLcases{\@RTLtabtrue%
- \leavevmode \hbox \bgroup
- $\left.\let\@acol\@tabacol
- \let\@classz\@tabclassz
- \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
-
-\def\endbidi@tabular@RTLcases{\crcr\egroup\if@RTLtab\egroup\endR\egroup\fi
- \egroup\right\rbrace $\egroup
- \@RTLtabfalse}
-}
-\def\RTLcases#1{\left.\vcenter{\normalbaselines\m@th
- \ialign{$##\hfil$&\quad{##}\hfil\crcr#1\crcr}}\,\right\}}
-\renewenvironment{RTLcases}{%
- \bidi@matrix@check\RTLcases\env@RTLcases
-}{%
- \endbidi@tabular@RTLcases%
-}
-\def\env@RTLcases{%
- \let\@ifnextchar\bidi@new@ifnextchar
- \def\arraystretch{1.2}%
- \bidi@tabular@RTLcases{@{}r@{\quad}r@{}}%
-}
-\def\SepMark#1{\gdef\@SepMark{\if@RTL‏\fi#1\if@RTL‏\fi}}
-\SepMark{.}
-\def\@thmcountersep{\@SepMark}
-\def\setRTLbibitems{\@RTLbibitemstrue\@LTRbibitemsfalse}
-\def\setLTRbibitems{\@LTRbibitemstrue\@RTLbibitemsfalse}
-\def\setdefaultbibitems{\@RTLbibitemsfalse\@LTRbibitemsfalse}
-\def\list#1#2{%
- \ifnum \@listdepth >5\relax
- \@toodeep
- \else
- \global\advance\@listdepth\@ne
- \fi
- \rightmargin\z@
- \listparindent\z@
- \itemindent\z@
- \csname @list\romannumeral\the\@listdepth\endcsname
- \def\@itemlabel{#1}%
- \let\makelabel\@mklab
- \@nmbrlistfalse
- #2\relax
- \@trivlist
- \parskip\parsep
- \parindent\listparindent
- \advance\linewidth -\rightmargin
- \advance\linewidth -\leftmargin
- \if@bidi@list@minipage@parbox
- \if@RTL
- \advance\@totalleftmargin \leftmargin
- \else
- \advance\@totalleftmargin \rightmargin
- \fi
- \else
- \if@RTLtab
- \if@bidi@list@minipage@parbox@not@nob
- \if@RTL
- \advance\@totalleftmargin \rightmargin
- \else
- \advance\@totalleftmargin \leftmargin
- \fi
- \else
- \if@RTL
- \advance\@totalleftmargin \leftmargin
- \else
- \advance\@totalleftmargin \rightmargin
- \fi\fi
- \else
- \if@RTL
- \advance\@totalleftmargin \rightmargin
- \else
- \advance\@totalleftmargin \leftmargin
- \fi\fi\fi
- \parshape \@ne \@totalleftmargin \linewidth
- \ignorespaces}
-\long\def\@iiiparbox#1#2[#3]#4#5{%
- \leavevmode
- \@pboxswfalse
- \if@RTLtab\@bidi@list@minipage@parbox@not@nobtrue\fi
- \if@RTL\if#1t\@bidi@list@minipage@parboxtrue\else\if#1b\@bidi@list@minipage@parboxtrue\fi\fi\fi
- \setlength\@tempdima{#4}%
- \@begin@tempboxa\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}%
- \ifx\relax#2\else
- \setlength\@tempdimb{#2}%
- \edef\@parboxto{to\the\@tempdimb}%
- \fi
- \if#1b\vbox
- \else\if #1t\vtop
- \else\ifmmode\vcenter
- \else\@pboxswtrue $\vcenter
- \fi\fi\fi
- \@parboxto{\let\hss\vss\let\unhbox\unvbox
- \csname bm@#3\endcsname}%
- \if@pboxsw \m@th$\fi
- \@end@tempboxa}
-\def\bidi@lrbox#1{%
- \edef\reserved@a{%
- \endgroup
- \setbox#1\hbox{%
- \begingroup\aftergroup}%
- \def\noexpand\@currenvir{\@currenvir}%
- \def\noexpand\@currenvline{\on@line}}%
- \reserved@a
- \@endpefalse
- \color@begingroup
- \ignorespaces}
-\def\endbidi@lrbox{\unskip\color@endgroup}
-\newenvironment{LTRitems}
- {\par\@RTLfalse
- \if@bidi@list@minipage@parbox
- \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth
- \else \if@RTLtab\if@bidi@list@minipage@parbox@not@nob
- \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\else
- \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi
- \else \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi\fi
- \ignorespaces}{\vskip\z@}
-\newenvironment{RTLitems}
- {\par\@RTLtrue
- \if@bidi@list@minipage@parbox
- \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth
- \else \if@RTLtab\if@bidi@list@minipage@parbox@not@nob
- \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\else
- \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi
- \else \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi\fi
- \ignorespaces}{\vskip\z@}
-\newenvironment{LTRbibitems}
- {\par\@RTLfalse
- \if@bidi@list@minipage@parbox
- \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth
- \else \if@RTLtab\if@bidi@list@minipage@parbox@not@nob
- \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\else
- \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi
- \else \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi\fi
- \ignorespaces}{\vskip\z@}
-\newenvironment{RTLbibitems}
- {\par\@RTLtrue
- \if@bidi@list@minipage@parbox
- \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth
- \else \if@RTLtab\if@bidi@list@minipage@parbox@not@nob
- \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\else
- \parshape \@ne \dimexpr(\@totalleftmargin+\leftmargin) \linewidth\fi
- \else \parshape \@ne \dimexpr(\@totalleftmargin-\leftmargin) \linewidth\fi\fi
- \ignorespaces}{\vskip\z@}
-\def\raggedright{%
- \let\\\@centercr\@rightskip\@flushglue \rightskip\@rightskip
- \leftskip\z@skip
- \parindent\z@\parfillskip\z@skip}
-\let\bidi@orig@raggedleft\raggedleft
-\let\bidi@orig@raggedright\raggedright
-\renewcommand\raggedleft{\if@bidi@list@minipage@parbox\bidi@orig@raggedright\else\if@RTLtab\bidi@orig@raggedright\else\bidi@orig@raggedleft\fi\fi}
-\renewcommand\raggedright{\if@bidi@list@minipage@parbox\bidi@orig@raggedleft\else\if@RTLtab\bidi@orig@raggedleft\else\bidi@orig@raggedright\fi\fi}
-\newcommand{\bidi@raggedright}{\if@RTL\raggedleft\else\raggedright\fi}
-\newcommand{\bidi@raggedleft}{\if@RTL\raggedright\else\raggedleft\fi}
-\def\centerline#1{%
-\if@RTL\@@line{\hss\beginR#1\endR\hss}
-\else\@@line{\hss#1\hss}\fi}
-\def\leftline#1{%
-\if@RTL\@@line{\beginR#1\endR\hss}
-\else\@@line{#1\hss}\fi}
-\def\rightline#1{%
-\if@RTL\@@line{\hss\beginR#1\endR}
-\else\@@line{\hss#1}\fi}
-\let\bidi@orig@leftline\leftline
-\let\bidi@orig@rightline\rightline
-\def\leftline#1{\ifhmode\if@RTL\bidi@orig@rightline{#1}\else\bidi@orig@leftline{#1}\fi\else\if@bidi@list@minipage@parbox\bidi@orig@rightline{#1}\else\if@RTLtab\bidi@orig@rightline{#1}\else\bidi@orig@leftline{#1}\fi\fi\fi}
-\def\rightline#1{\ifhmode\if@RTL\bidi@orig@leftline{#1}\else\bidi@orig@rightline{#1}\fi\else\if@bidi@list@minipage@parbox\bidi@orig@leftline{#1}\else\if@RTLtab\bidi@orig@leftline{#1}\else\bidi@orig@rightline{#1}\fi\fi\fi}
-\def\bidirlap#1{\hb@xt@\z@{\if@RTL\hss\fi#1\if@RTL\else\hss\fi}}
-\def\bidillap#1{\hb@xt@\z@{\if@RTL\else\hss\fi#1\if@RTL\hss\fi}}
-\def\@hangfrom#1{\setbox\@tempboxa\hbox{{#1}}%
- \hangindent \if@RTL-\else\fi\wd\@tempboxa\noindent\box\@tempboxa}
-\def\narrower{%
- \advance\if@RTL\rightskip\else\leftskip\fi\parindent
- \advance\if@RTL\leftskip\else\rightskip\fi\parindent}
-\def\underline#1{%
- \relax
- \ifmmode\@@underline{#1}%
- \else
-\if@RTL $\@@underline{\hbox{\beginR#1\endR}}\m@th$\relax
-\else
-$\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
-\if@compatibility
- \let\undertext=\underline
-\fi
-\global\@RTLtabfalse
-\def\@tabular{\if@RTL\@RTLtabtrue\fi
- \leavevmode \hbox \bgroup \if@RTLtab\beginR \fi
- $\let\@acol\@tabacol
- \let\@classz\@tabclassz
- \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
-\def\endtabular{\crcr\egroup\if@RTLtab\egroup\endR\egroup\fi
- \egroup $\if@RTLtab\endR\fi\egroup
- \@RTLtabfalse}
-\expandafter \let \csname endtabular*\endcsname = \endtabular
-\def\@array[#1]#2{%
- \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi
- \bgroup
- \setbox\@arstrutbox\hbox{%
- \vrule \@height\arraystretch\ht\strutbox
- \@depth\arraystretch \dp\strutbox
- \@width\z@}%
- \@mkpream{#2}%
- \edef\@preamble{%
- \ialign \noexpand\@halignto
- \bgroup \@arstrut \@preamble \tabskip\z@skip \cr}%
- \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
- \let\tabularnewline\\%
- \let\par\@empty
- \let\@sharp##%
- \set@typeset@protect
- \lineskip\z@skip\baselineskip\z@skip
- \ifhmode \@preamerr\z@ \@@par\fi
- \if@RTLtab\hbox\bgroup\beginR\if #1t\vtop \else \vbox \fi\bgroup\fi
- \@preamble}
-\def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
- \let\@classiv\@arrayclassiv
- \let\\\@arraycr\let\@halignto\@empty\@RTLtabfalse\@tabarray}
-\def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4 \else
- \ifnum \@lastchclass=3 5 \else
- \z@ \if #1c\@chnum \z@ \else
- \if \if@RTLtab#1r\else#1l\fi\@chnum \@ne \else
- \if \if@RTLtab#1l\else#1r\fi\@chnum \tw@ \else
- \@chclass \if #1|\@ne \else
- \if #1@\tw@ \else
- \if #1p3 \else \z@ \@preamerr 0\fi
- \fi \fi \fi \fi \fi \fi
-\fi}
-\def\bm@l{\if@RTL\hss\unhbox\@tempboxa\else\unhbox\@tempboxa\hss\fi}
-\def\bm@r{\if@RTL\unhbox\@tempboxa\hss\else\hss\unhbox\@tempboxa\fi}
-\def\bm@t{\unhbox\@tempboxa\hss}
-\def\bm@b{\hss\unhbox\@tempboxa}
-\def\@dottedtocline#1#2#3#4#5{%
- \ifnum #1>\c@tocdepth \else
- \vskip \z@ \@plus.2\p@
- {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent #2\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima #3\relax
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {#4}\nobreak
- \leaders\hbox{$\m@th
- \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
- mu$}\hfill
- \nobreak
- \hb@xt@\@pnumwidth{{\hfil\normalfont \normalcolor #5}}%
- \par}%
- \fi}
-\def\RTL@outputdblcol{%
-\if@firstcolumn \global\@firstcolumnfalse
-\global\setbox\@leftcolumn \box\@outputbox
-\else \global\@firstcolumntrue
-\setbox\@outputbox \vbox {\hbox to\textwidth {%
-\hskip \columnwidth
-\hfil \vrule width\columnseprule \hfil
-\hbox to\columnwidth {\box\@leftcolumn \hss}%
-\hskip -\textwidth
-\hbox to\columnwidth{\box\@outputbox \hss}%
-\hskip \columnsep
-\hskip \columnwidth }}%
-\@combinedblfloats \@outputpage
-\begingroup \@dblfloatplacement \@startdblcolumn
-\@whilesw\if@fcolmade \fi
-{\@outputpage \@startdblcolumn }\endgroup
-\fi}
-\def\LTR@outputdblcol{%
- \if@firstcolumn
- \global \@firstcolumnfalse
- \global \setbox\@leftcolumn \box\@outputbox
- \else
- \global \@firstcolumntrue
- \setbox\@outputbox \vbox {%
- \hb@xt@\textwidth {%
- \hb@xt@\columnwidth {%
- \box\@leftcolumn \hss}%
- \hfil
- {\normalcolor\vrule \@width\columnseprule}%
- \hfil
- \hb@xt@\columnwidth {%
- \box\@outputbox \hss}%
- }%
- }%
- \@combinedblfloats
- \@outputpage
- \begingroup
- \@dblfloatplacement
- \@startdblcolumn
- \@whilesw\if@fcolmade \fi
- {\@outputpage
- \@startdblcolumn}%
- \endgroup
- \fi
-}
-\renewcommand{\@outputdblcol}{\if@RTLmain\RTL@outputdblcol\else\LTR@outputdblcol\fi}
-\newcommand{\RTLdblcol}{\renewcommand{\@outputdblcol}{\RTL@outputdblcol}}
-\newcommand{\LTRdblcol}{\renewcommand{\@outputdblcol}{\LTR@outputdblcol}}
-\def\LTRmarginpar{%
- \ifhmode
- \@bsphack
- \@floatpenalty -\@Mii
- \else
- \@floatpenalty-\@Miii
- \fi
- \ifinner
- \@parmoderr
- \@floatpenalty\z@
- \else
- \@next\@currbox\@freelist{}{}%
- \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
- {\@floatpenalty\z@
- \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
- \fi
- \@ifnextchar [\@LTRxmpar\@LTRympar}
-\long\def\@LTRxmpar[#1]#2{%
- \@LTRsavemarbox\@marbox{#1}%
- \@LTRsavemarbox\@currbox{#2}%
- \@xympar}
-\long\def\@LTRympar#1{%
- \@LTRsavemarbox\@marbox{#1}%
- \global\setbox\@currbox\copy\@marbox
- \@xympar}
-\long\def \@LTRsavemarbox #1#2{%
- \global\setbox #1%
- \color@vbox
- \vtop{%
- \hsize\marginparwidth
- \@parboxrestore
- \@LTRmarginparreset
- #2%
- \@minipagefalse
- \outer@nobreak
- }%
- \color@endbox
-}
-\def \@LTRmarginparreset {%
- \reset@font
- \normalsize
- \@minipagetrue
- \everypar{\@minipagefalse\everypar{}\beginL}%
-}
-\def\RTLmarginpar{%
- \ifhmode
- \@bsphack
- \@floatpenalty -\@Mii
- \else
- \@floatpenalty-\@Miii
- \fi
- \ifinner
- \@parmoderr
- \@floatpenalty\z@
- \else
- \@next\@currbox\@freelist{}{}%
- \@next\@marbox\@freelist{\global\count\@marbox\m@ne}%
- {\@floatpenalty\z@
- \@fltovf\def\@currbox{\@tempboxa}\def\@marbox{\@tempboxa}}%
- \fi
- \@ifnextchar [\@RTLxmpar\@RTLympar}
-\long\def\@RTLxmpar[#1]#2{%
- \@RTLsavemarbox\@marbox{#1}%
- \@RTLsavemarbox\@currbox{#2}%
- \@xympar}
-\long\def\@RTLympar#1{%
- \@RTLsavemarbox\@marbox{#1}%
- \global\setbox\@currbox\copy\@marbox
- \@xympar}
-\long\def \@RTLsavemarbox #1#2{%
- \global\setbox #1%
- \color@vbox
- \vtop{%
- \hsize\marginparwidth
- \@parboxrestore
- \@RTLmarginparreset
- #2%
- \@minipagefalse
- \outer@nobreak
- }%
- \color@endbox
-}
-\def \@RTLmarginparreset {%
- \reset@font
- \normalsize
- \@minipagetrue
- \everypar{\@minipagefalse\everypar{}\beginR}%
-}
-\def\@addmarginpar{\@next\@marbox\@currlist{\@cons\@freelist\@marbox
- \@cons\@freelist\@currbox}\@latexbug\@tempcnta\@ne
- \if@twocolumn
- \if@firstcolumn \@tempcnta\m@ne \fi
- \else
- \if@mparswitch
- \ifodd\c@page \else\@tempcnta\m@ne \fi
- \fi
- \if@reversemargin \@tempcnta -\@tempcnta \fi
- \fi
- \ifnum\@tempcnta <\z@ \global\setbox\@marbox\box\@currbox \fi
- \@tempdima\@mparbottom
- \advance\@tempdima -\@pageht
- \advance\@tempdima\ht\@marbox
- \ifdim\@tempdima >\z@
- \@latex@warning@no@line {Marginpar on page \thepage\space moved}%
- \else
- \@tempdima\z@
- \fi
- \global\@mparbottom\@pageht
- \global\advance\@mparbottom\@tempdima
- \global\advance\@mparbottom\dp\@marbox
- \global\advance\@mparbottom\marginparpush
- \advance\@tempdima -\ht\@marbox
- \global\setbox \@marbox
- \vbox {\vskip \@tempdima
- \box \@marbox}%
- \global \ht\@marbox \z@
- \global \dp\@marbox \z@
- \kern -\@pagedp
- \nointerlineskip
- \hb@xt@\columnwidth
- {\if@RTL\if@LTRmarginpar\beginL\else\beginR\fi\else\if@RTLmarginpar\beginR\else\beginL\fi\fi\ifnum \@tempcnta >\z@
- \hskip\columnwidth \hskip\marginparsep
- \else
- \hskip -\marginparsep \hskip -\marginparwidth
- \fi
- \box\@marbox \hss\if@RTL\if@LTRmarginpar\endL\else\endR\fi\else\if@RTLmarginpar\endR\else\endL\fi\fi}%
- \nointerlineskip
- \hbox{\vrule \@height\z@ \@width\z@ \@depth\@pagedp}}
-\long\def\@ympar#1{%
- \@savemarbox\@marbox{\if@RTL\if@LTRmarginpar\@RTLfalse\else\@RTLtrue\fi\else\if@RTLmarginpar\@RTLtrue\else\@RTLfalse\fi\fi#1}%
- \global\setbox\@currbox\copy\@marbox
- \@xympar}
-\def\setRTLmarginpar{\@RTLmarginpartrue\@LTRmarginparfalse}
-\def\setLTRmarginpar{\@LTRmarginpartrue\@RTLmarginparfalse}
-\def\setdefaultmarginpar{\@RTLmarginparfalse\@LTRmarginparfalse}
-\def\@stopline{\unskip\@stopfield\if@rjfield \global\@rjfieldfalse
- \@tempdima\@totalleftmargin \advance\@tempdima\linewidth
-\hbox to\@tempdima{\if@RTL\beginR\fi\@itemfudge\hskip\dimen\@curtabmar
- \box\@curline\hfil\box\@curfield\if@RTL\endR\fi}\else\@addfield
- \hbox to\linewidth{\if@RTL\beginR\fi\@itemfudge
- \hskip\dimen\@curtabmar\box\@curline\hfil\if@RTL\endR\fi}%
-\fi}
-\def\@outputpage{%
-\begingroup % the \endgroup is put in by \aftergroup
- \let \protect \noexpand
- \@resetactivechars
- \global\let\@@if@newlist\if@newlist
- \global\@newlistfalse
- \@parboxrestore
- \shipout \vbox{%
- \set@typeset@protect
- \aftergroup \endgroup
- \aftergroup \set@typeset@protect
- % correct? or just restore by ending
- % the group?
- \if@specialpage
- \global\@specialpagefalse\@nameuse{ps@\@specialstyle}%
- \fi
- \if@twoside
- \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
- \let\@themargin\oddsidemargin
- \else \let\@thehead\@evenhead
- \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
- \fi
- \ifx\@thehead\@empty \let\@thehead\hfil \fi
- \ifx\@thefoot\@empty \let\@thefoot\hfil \fi
- \else %% not @twoside
- \ifx\@oddhead\@empty \let\@thehead\hfil \fi
- \ifx\@oddfoot\@empty \let\@thefoot\hfil \fi
- \fi
- \reset@font
- \normalsize
- \normalsfcodes
- \let\label\@gobble
- \let\index\@gobble
- \let\glossary\@gobble
- \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@
- \@begindvi
- \vskip \topmargin
- \moveright\@themargin \vbox {%
- \setbox\@tempboxa \vbox to\headheight{%
- \vfil
- \color@hbox
- \normalcolor
- \hb@xt@\textwidth{\if@RTLmain\@RTLtrue\beginR\else\@RTLfalse\beginL\fi\@thehead\if@RTLmain\endR\else\endL\fi}%
- \color@endbox
- }% %% 22 Feb 87
- \dp\@tempboxa \z@
- \box\@tempboxa
- \vskip \headsep
- \box\@outputbox
- \baselineskip \footskip
- \color@hbox
- \normalcolor
- \hb@xt@\textwidth{\if@RTLmain\@RTLtrue\beginR\else\@RTLfalse\beginL\fi\@thefoot\if@RTLmain\endR\else\endL\fi}%
- \color@endbox
- }%
- }%
- \global\let\if@newlist\@@if@newlist
- \global \@colht \textheight
- \stepcounter{page}%
- \let\firstmark\botmark
-}
-\long\def\@makecaption#1#2{%
- \vskip\abovecaptionskip
- \sbox\@tempboxa{#1: #2}%
- \ifdim \wd\@tempboxa >\hsize
- \if@RTL\beginR\fi#1: #2\if@RTL\endR\fi\par
- \else
- \global \@minipagefalse
- \hb@xt@\hsize{\if@RTL\beginR\fi\hfil\box\@tempboxa\hfil\if@RTL\endR\fi}%
- \fi
- \vskip\belowcaptionskip}
-\let\bidi@saved@eqno=\eqno
-\let\bidi@saved@leqno=\leqno
-\def\eqno{\ifnum\predisplaydirection<\z@ \bidi@saved@leqno \else \bidi@saved@eqno \fi}
-\def\leqno{\ifnum\predisplaydirection<\z@ \bidi@saved@eqno \else \bidi@saved@leqno \fi}
-\@ifpackageloaded{amsmath}{}{
-\def\@eqnnum{{\normalfont \normalcolor \if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi}}
-}
-\input{footnote-xetex-bidi.def}
-\if@twocolumn
- \let\autofootnoterule\relax
- \let\leftfootnoterule\relax
- \let\rightfootnoterule\relax
- \textwidthfootnoterule
-\fi
-\if@bidi@csundef{@idxitem}{}{%
-\renewcommand\@idxitem{\par\hangindent \if@RTL-\fi40\p@}%
-}
-\@ifclassloaded{article}{\@ifclassloaded{svmult}{}{\input{article-xetex-bidi.def}}}{}
-\@ifclassloaded{extarticle}{\input{extarticle-xetex-bidi.def}}{}
-\@ifclassloaded{artikel1}{\input{artikel1-xetex-bidi.def}}{}
-\@ifclassloaded{artikel2}{\input{artikel2-xetex-bidi.def}}{}
-\@ifclassloaded{artikel3}{\input{artikel3-xetex-bidi.def}}{}
-\@ifclassloaded{amsart}{\input{amsart-xetex-bidi.def}}{}
-\@ifclassloaded{letter}{\input{letter-xetex-bidi.def}}{}
-\@ifclassloaded{scrlettr}{\input{scrlettr-xetex-bidi.def}}{}
-\@ifclassloaded{extletter}{\input{extletter-xetex-bidi.def}}{}
-\@ifclassloaded{memoir}{\input{memoir-xetex-bidi.def}}{}
-\@ifclassloaded{refrep}{\input{refrep-xetex-bidi.def}}{}
-\@ifclassloaded{extreport}{\input{extreport-xetex-bidi.def}}{}
-\@ifclassloaded{report}{\@ifpackageloaded{flowfram}{}{\input{report-xetex-bidi.def}}}{}
-\@ifclassloaded{rapport1}{\input{rapport1-xetex-bidi.def}}{}
-\@ifclassloaded{rapport3}{\input{rapport3-xetex-bidi.def}}{}
-\@ifclassloaded{scrartcl}{\input{scrartcl-xetex-bidi.def}}{}
-\@ifclassloaded{scrbook}{\input{scrbook-xetex-bidi.def}}{}
-\@ifclassloaded{scrreprt}{\input{scrreprt-xetex-bidi.def}}{}
-\@ifclassloaded{amsbook}{\input{amsbook-xetex-bidi.def}}{}
-\@ifclassloaded{extbook}{\input{extbook-xetex-bidi.def}}{}
-\@ifclassloaded{boek}{\input{boek-xetex-bidi.def}}{}
-\@ifclassloaded{boek3}{\input{boek3-xetex-bidi.def}}{}
-\@ifclassloaded{book}{\@ifpackageloaded{flowfram}{}{\input{book-xetex-bidi.def}}}{}
-\@ifclassloaded{bookest}{\input{bookest-xetex-bidi.def}}{}
-\@ifclassloaded{combine}{\input{combine-xetex-bidi.def}}{}
-\@ifpackageloaded{amsmath}{}{%
-\@iftagsloaded{leqno}{\input{leqno-xetex-bidi.def}}{}
-\@iftagsloaded{fleqn}{\input{fleqn-xetex-bidi.def}}{}
-}
-\@ifpackageloaded{mathtools}{\RequirePackage{graphicx}}{}
-\@ifpackageloaded{crop}{\RequirePackage{graphicx}}{}
-\@ifpackageloaded{sidecap}{\RequirePackage{ragged2e}}{}
-\@ifpackageloaded{floatrow}{\RequirePackage{color}}{}
-\@ifpackageloaded{algorithm2e}{\input{algorithm2e-xetex-bidi.def}}{}
-\@ifpackagewith{algorithm2e}{algonl}{%
-\renewcommand{\theAlgoLine}{\expandafter\csname the\algocf@float\endcsname\@SepMark\arabic{AlgoLine}}%
-}{}
-\@ifpackagewith{algorithm2e}{algopart}{\renewcommand{\algocf@within}{part}}{}
-\@ifpackagewith{algorithm2e}{algochapter}{\renewcommand{\algocf@within}{chapter}}{}
-\@ifpackagewith{algorithm2e}{algosection}{\renewcommand{\algocf@within}{section}}{}
-\@ifpackageloaded{amsmath}{\input{amsmath-xetex-bidi.def}}{}
-\@ifpackageloaded{amstext}{\input{amstext-xetex-bidi.def}}{}
-\@ifpackageloaded{amsthm}{\input{amsthm-xetex-bidi.def}}{}
-\@ifpackageloaded{animate}{\input{animate-xetex-bidi.def}}{}
-\@ifpackageloaded{breqn}{\input{breqn-xetex-bidi.def}}{}
-\@ifpackageloaded{cals}{\input{cals-xetex-bidi.def}}{}
-\@ifpackageloaded{caption}{\input{caption-xetex-bidi.def}}{}
-\@ifpackageloaded{caption3}{\input{caption3-xetex-bidi.def}}{}
-\@ifpackageloaded{floatrow}{\input{floatrow-xetex-bidi.def}}{}
-\@ifpackageloaded{crop}{\@ifclassloaded{memoir}{}{\input{crop-xetex-bidi.def}}}{}
-\@ifpackageloaded{color}{\input{color-xetex-bidi.def}}{}
-\@ifpackageloaded{cutwin}{\input{cutwin-xetex-bidi.def}}{}
-\@ifpackageloaded{cuted}{\input{cuted-xetex-bidi.def}}{}
-\@ifpackageloaded{xcolor}{\input{xcolor-xetex-bidi.def}}{}
-\@ifpackageloaded{colortbl}{\input{colortbl-xetex-bidi.def}}{}
-\@ifpackageloaded{float}{\@ifpackageloaded{floatrow}{}{\input{float-xetex-bidi.def}}}{}
-\@ifpackageloaded{flowfram}{\input{flowfram-xetex-bidi.def}}{}
-\@ifpackageloaded{xltxtra}{\input{xltxtra-xetex-bidi.def}}{}
-\@ifpackageloaded{wrapfig}{\input{wrapfig-xetex-bidi.def}}{}
-\@ifpackageloaded{graphicx}{\input{graphicx-xetex-bidi.def}}{}
-\@ifpackageloaded{geometry}{\input{geometry-xetex-bidi.def}}{}
-\@ifpackageloaded{hvfloat}{\input{hvfloat-xetex-bidi.def}}{}
-\@ifpackageloaded{ntheorem}{\input{ntheorem-xetex-bidi.def}}{}
-\@ifpackageloaded{tabularx}{\input{tabularx-xetex-bidi.def}}{}
-\@ifpackageloaded{longtable}{\input{longtable-xetex-bidi.def}}{}
-\@ifpackageloaded{hyperref}{\input{hyperref-xetex-bidi.def}}{}
-\@ifpackageloaded{ntheorem-hyper}{\input{ntheorem-hyper-xetex-bidi.def}}{}
-\@ifpackageloaded{fancybox}{\input{fancybox-xetex-bidi.def}}{}
-\@ifpackageloaded{fancyhdr}{\input{fancyhdr-xetex-bidi.def}}{}
-\@ifpackageloaded{fix2col}{\input{fix2col-xetex-bidi.def}}{}
-\@ifpackageloaded{ftnright}{\input{ftnright-xetex-bidi.def}}{}
-\@ifpackageloaded{midfloat}{\input{midfloat-xetex-bidi.def}}{}
-\@ifpackageloaded{draftwatermark}{\input{draftwatermark-xetex-bidi.def}}{}
-\@ifpackageloaded{dblfnote}{\input{dblfnote-xetex-bidi.def}}{}
-\@ifpackageloaded{eso-pic}{\input{eso-pic-xetex-bidi.def}}{}
-\@ifpackageloaded{empheq}{\input{empheq-xetex-bidi.def}}{}
-\@ifpackageloaded{framed}{\input{framed-xetex-bidi.def}}{}
-\@ifpackageloaded{overpic}{\input{overpic-xetex-bidi.def}}{}
-\@ifpackageloaded{pdfpages}{\input{pdfpages-xetex-bidi.def}}{}
-\@ifpackageloaded{lettrine}{\input{lettrine-xetex-bidi.def}}{}
-\@ifpackageloaded{listings}{\input{listings-xetex-bidi.def}}{}
-\@ifpackageloaded{media9}{\RequirePackage{bidi-media9}}{}
-\@iftexfileloaded{pstricks}{\input{pstricks-xetex-bidi.def}}{}
-\@iftexfileloaded{pgfcorescopes.code}{\input{pgfcorescopes.code-xetex-bidi.def}}{}
-\@ifpackageloaded{titlesec}{\input{titlesec-xetex-bidi.def}}{}
-\@ifpackageloaded{titletoc}{\input{titletoc-xetex-bidi.def}}{}
-\@ifpackageloaded{array}{\input{array-xetex-bidi.def}}{}
-\@ifpackageloaded{sidecap}{\input{sidecap-xetex-bidi.def}}{}
-\@ifpackagewith{sidecap}{innercaption}{%
-\if@RTL \renewcommand*{\SC@FLOAT}[2]{%
- \isSC@ODD{{#2}\hspace{\sidecaptionsep}{#1}} {{#1}\hspace{\sidecaptionsep}{#2}}}
- \renewcommand*\SC@justify@caption{%
- \isSC@ODD{\RaggedRight}{\RaggedLeft}}\else
- \renewcommand*{\SC@FLOAT}[2]{%
- \isSC@ODD{{#1}\hspace{\sidecaptionsep}{#2}} {{#2}\hspace{\sidecaptionsep}{#1}}}
- \renewcommand*\SC@justify@caption{%
- \isSC@ODD{\RaggedLeft}{\RaggedRight}}\fi
-}{}
-\@ifpackagewith{sidecap}{rightcaption}{%
- \if@RTL\renewcommand*{\SC@FLOAT}[2]{{#1}\hspace{\sidecaptionsep}{#2}}
- \def\SC@justify@caption{\RaggedLeft}\else%
- \renewcommand*{\SC@FLOAT}[2]{{#2}\hspace{\sidecaptionsep}{#1}}
- \def\SC@justify@caption{\RaggedRight}\fi%
-}{}
-\@ifpackagewith{sidecap}{leftcaption}{%
-\if@RTL \renewcommand*{\SC@FLOAT}[2]{{#2}\hspace{\sidecaptionsep}{#1}}
- \def\SC@justify@caption{\RaggedRight}\else%
- \renewcommand*{\SC@FLOAT}[2]{{#1}\hspace{\sidecaptionsep}{#2}}
- \def\SC@justify@caption{\RaggedLeft}\fi%
-}{}
-\@ifpackageloaded{soul}{\input{soul-xetex-bidi.def}}{}
-\@ifpackageloaded{stabular}{\input{stabular-xetex-bidi.def}}{}
-\@ifpackageloaded{subfigure}{\input{subfigure-xetex-bidi.def}}{}
-\@ifpackageloaded{arydshln}{\input{arydshln-xetex-bidi.def}}{}
-\@ifpackageloaded{mdframed}{\input{mdframed-xetex-bidi.def}}{}
-\@ifpackageloaded{multicol}{\input{multicol-xetex-bidi.def}}{}
-\@ifpackageloaded{adjmulticol}{\input{adjmulticol-xetex-bidi.def}}{}
-\@ifpackageloaded{multienum}{\input{multienum-xetex-bidi.def}}{}
-\@ifpackageloaded{natbib}{\input{natbib-xetex-bidi.def}}{}
-\@ifpackageloaded{newfloat}{\input{newfloat-xetex-bidi.def}}{}
-\@ifpackageloaded{minitoc}{\input{minitoc-xetex-bidi.def}}{}
-\@ifpackageloaded{picinpar}{\input{picinpar-xetex-bidi.def}}{}
-\@ifpackageloaded{quotchap}{\input{quotchap-xetex-bidi.def}}{}
-\@ifpackageloaded{ragged2e}{\input{ragged2e-xetex-bidi.def}}{}
-\@ifpackageloaded{rotating}{\input{rotating-xetex-bidi.def}}{}
-\@ifpackageloaded{tabls}{\input{tabls-xetex-bidi.def}}{}
-\@ifpackageloaded{tabulary}{\input{tabulary-xetex-bidi.def}}{}
-\@ifpackageloaded{tocstyle}{\input{tocstyle-xetex-bidi.def}}{}
-\@ifpackageloaded{tocbibind}{\@ifclassloaded{memoir}{}{\input{tocbibind-xetex-bidi.def}}}{}
-\@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xetex-bidi.def}}}{}
-\@ifdefinitionfileloaded{tc-xetex}{\input{tc-xetex-bidi.def}}{}
-\@ifpackageloaded{todonotes}{\input{todonotes-xetex-bidi.def}}{}
-\endinput
-%%
-%% End of file `latex-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def
deleted file mode 100644
index e1c543a74af..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def
+++ /dev/null
@@ -1,43 +0,0 @@
-%%
-%% This is file `leqno-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,leqno-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{leqno-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for leqno tag for XeTeX engine]
-\renewcommand\@eqnnum{\hb@xt@.01\p@{}%
- \rlap{
- \hskip -\displaywidth{\normalfont\normalcolor\if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi}}}
-\endinput
-%%
-%% End of file `leqno-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/letter-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/letter-xetex-bidi.def
deleted file mode 100644
index f5a90635aa0..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/letter-xetex-bidi.def
+++ /dev/null
@@ -1,61 +0,0 @@
-%%
-%% This is file `letter-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,letter-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{letter-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for standard letter class for XeTeX engine]
-\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
- \thispagestyle{firstpage}%
- {\if@RTL\raggedright\else\raggedleft\fi\@date\par}%
- \else % home address
- \thispagestyle{empty}%
- {\if@RTL\raggedright\else\raggedleft\fi\if@RTL\begin{tabular}{r@{}}\else\begin{tabular}{l@{}}\fi\ignorespaces
- \fromaddress \\*[2\parskip]%
- \@date \end{tabular}\par}%
- \fi
- \vspace{2\parskip}%
- {\if@RTL\raggedleft\else\raggedright\fi \toname \\ \toaddress \par}%
- \vspace{2\parskip}%
- #1\par\nobreak}
-\renewcommand\left@footnoterule{%
- \kern-\p@
- \hrule \@width .4\columnwidth
- \kern .6\p@}
-\renewcommand\right@footnoterule{%
- \kern-\p@
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern .6\p@}
-\endinput
-%%
-%% End of file `letter-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def
deleted file mode 100644
index 7593ed9b437..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def
+++ /dev/null
@@ -1,150 +0,0 @@
-%%
-%% This is file `lettrine-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,lettrine-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{lettrine-xetex-bidi.def}[2015/02/17 v0.5 bidi adaptations for lettrine package for XeTeX engine]
-\def\@lettrine[#1]#2#3{%
- \setcounter{L@lines}{\theDefaultLines}%
- \setcounter{L@depth}{\theDefaultDepth}%
- \renewcommand*{\L@hang}{\DefaultLhang}%
- \renewcommand*{\L@oversize}{\DefaultLoversize}%
- \renewcommand*{\L@raise}{\DefaultLraise}%
- \renewcommand*{\L@ante}{}%
- \setlength{\L@Findent}{\DefaultFindent}%
- \setlength{\L@Nindent}{\DefaultNindent}%
- \setlength{\L@slope}{\DefaultSlope}%
- \setlength{\L@novskip}{\DiscardVskip}%
- \ifLettrineImage\L@imagetrue\else\L@imagefalse\fi
- \ifLettrineOnGrid\L@gridtrue\else\L@gridfalse\fi
- \if\DefaultOptionsFile\relax
- \else
- \begingroup
- \InputIfFileExists{\DefaultOptionsFile}%
- {}%
- {\PackageWarning{lettrine.sty}%
- {File \DefaultOptionsFile\space not found}%
- }%
- \def\color##1##{\l@color{##1}}%
- \let\l@color\@gobbletwo
- \def\textcolor##1##{\l@textcolor{##1}}%
- \def\l@textcolor##1##2##3{##3}%
- \expandafter\ifx\csname l@#2-keys\endcsname\relax
- \gdef\l@LOKeys{}%
- \else
- \xdef\l@LOKeys{\csname l@#2-keys\endcsname}%
- \fi
- \endgroup
- \def\KV@prefix{KV@L@}%
- \let\@tempc\relax
- \expandafter\KV@do\l@LOKeys,\relax,
- \sbox{\L@lbox}{\LettrineFont #2}%
- \setlength{\LettrineWidth}{\wd\L@lbox}%
- \def\KV@prefix{KV@L@}%
- \let\@tempc\relax
- \expandafter\KV@do\l@LOKeys,\relax,
- \fi
- \setkeys{L}{#1}%
- \ifL@image
- \sbox{\L@lbox}{\LettrineFontEPS{#2}}%
- \else
- \sbox{\L@lbox}{\LettrineFont #2}%
- \fi
- \sbox{\L@tbox}{\LettrineTextFont{#3}}%
- \@tempdima=\baselineskip
- \ifnum\theL@lines=1
- \setlength{\L@first}{\ht\L@lbox}%
- \addtolength{\L@first}{-\ht\L@tbox}%
- \setlength{\L@lraise}{\z@}%
- \else
- \setlength{\L@first}{-\theL@lines\@tempdima}%
- \addtolength{\L@first}{\@tempdima}%
- \sbox{\@tempboxa}{\LettrineTextFont x}%
- \addtolength{\L@first}{-\ht\@tempboxa}%
- \setlength{\L@lraise}{-\L@raise\L@first}%
- \addtolength{\L@first}{\L@lraise}%
- \addtolength{\L@first}{\ht\L@lbox}%
- \addtolength{\L@lraise}{-\theL@lines\@tempdima}%
- \addtolength{\L@lraise}{\@tempdima}%
- \fi
- \par
- \ifdim\L@first>\L@novskip
- \ifL@grid
- \@tempdima=\baselineskip
- \@tempdimb=\@tempdima
- \advance\@tempdimb by \L@novskip
- \@tempcnta=1
- \loop\ifdim\L@first>\@tempdimb
- \advance\@tempcnta by 1
- \advance\L@first by -\@tempdima
- \repeat
- \vskip\@tempcnta\baselineskip
- \else
- \vskip\L@first
- \fi
- \fi
- \setlength{\L@Pindent}{\wd\L@lbox}%
- \addtolength{\L@Pindent}{-\L@hang\wd\L@lbox}%
- \settowidth{\L@first}{\L@ante}%
- \addtolength{\L@Pindent}{\L@first}%
- \addtolength{\L@Pindent}{\L@Findent}%
- \setlength{\L@first}{\linewidth}%
- \addtolength{\L@first}{-\L@Pindent}%
- \addtolength{\L@Nindent}{\L@Pindent}%
- \setlength{\L@next}{\linewidth}%
- \addtolength{\L@next}{-\L@Nindent}%
- \addtolength{\L@Pindent}{\rightmargin}%
- \addtolength{\L@Nindent}{\rightmargin}%
- \setlength{\LettrineWidth}{\wd\L@lbox}%
- \setlength{\LettrineHeight}{\ht\L@lbox}%
- \setlength{\LettrineDepth}{\dp\L@lbox}%
- \addtocounter{L@lines}{1}%
- \addtocounter{L@lines}{\the\c@L@depth}%
- \if@RTL\def\L@parshape{\c@L@lines 0pt \the\L@first}\else\def\L@parshape{\c@L@lines \the\L@Pindent \the\L@first}\fi
- \@tempcnta=\tw@
- \@whilenum \@tempcnta<\c@L@lines\do{%
- \if@RTL\edef\L@parshape{\L@parshape 0pt \the\L@next}\else\edef\L@parshape{\L@parshape \the\L@Nindent \the\L@next}\fi
- \addtolength{\L@Nindent}{\L@slope}%
- \addtolength{\L@next}{-\L@slope}%
- \advance\@tempcnta\@ne}%
- \if@RTL \edef\L@parshape{\L@parshape 0pt \the\linewidth}\else\edef\L@parshape{\L@parshape \rightmargin \the\linewidth}\fi
- \noindent
- \parshape=\L@parshape\relax
- \smash{\llap{\mbox{\L@ante}\raisebox{\L@lraise}{\usebox{\L@lbox}}%
- \hskip \the\L@Findent}}%
- \usebox{\L@tbox}%
-}
-\endinput
-%%
-%% End of file `lettrine-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def
deleted file mode 100644
index 56464319358..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def
+++ /dev/null
@@ -1,110 +0,0 @@
-%%
-%% This is file `listings-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,listings-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{listings-xetex-bidi.def}[2015/08/23 v0.9 bidi adaptations for listings package for XeTeX engine]
-\lst@Key{captiondirection}{textdirection}{%
- \lstKV@SwitchCases{#1}%
- {textdirection&\\%
- RTL&\chardef\bidi@lst@caption@direction\@ne\\%
- LTR&\chardef\bidi@lst@caption@direction\z@%
- }{\PackageError{Listings}{direction #1 unknown}\@ehc}}
-\newcommand*{\bidi@lst@ensure@caption@direction}[2]{%
- \@ifundefined{bidi@lst@caption@direction}{}{%
- \ifnum\bidi@lst@caption@direction=\z@%
- #1%
- \else%
- \ifnum\bidi@lst@caption@direction=\@ne%
- #2%
- \fi%
- \fi%
-}}
-\long\def\@bidi@lst@makecaption#1#2{%
- \vskip\abovecaptionskip
- \bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLtrue}%
- \sbox\@tempboxa{%
- \bidi@lst@ensure@caption@direction{\beginL}{\beginR}%
- #1: #2%
- \bidi@lst@ensure@caption@direction{\endL}{\endR}%
- }%
- \ifdim \wd\@tempboxa >\hsize
- #1: #2\par
- \else
- \global \@minipagefalse
- \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
- \fi
- \vskip\belowcaptionskip}%
-\def\lst@makecaption{\@bidi@lst@makecaption}
-\def\lst@maketitle{\@bidi@lst@makecaption\lst@title@dropdelim}
-\bidi@patchcmd{\lst@MakeCaption}{%
- \ifx #1t%
- \ifx\lst@@caption\@empty\expandafter\lst@HRefStepCounter \else
- \expandafter\refstepcounter
- \fi {lstlisting}%
-}{%
- \ifx #1t%
- \bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLtrue}%
- \ifx\lst@@caption\@empty\expandafter\lst@HRefStepCounter \else
- \expandafter\refstepcounter
- \fi {lstlisting}%
- \bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLfalse}%
-}{}{}
-\bidi@patchcmd{\lst@MakeCaption}{%
- \addcontentsline{lol}{lstlisting}%
- {\protect\numberline{\thelstlisting}\lst@@caption}%
-}{%
-\begingroup%
- \bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLtrue}%
- \addcontentsline{lol}{lstlisting}%
- {\protect\numberline{\thelstlisting}\lst@@caption}%
-\endgroup%
-}{}{}
-\AtBeginDocument{%
-\@ifundefined{captionlabelfalse}{}{%
- \def\lst@maketitle{\captionlabelfalse\@bidi@lst@makecaption\@empty}}%
-\@ifundefined{caption@startrue}{}{%
- \def\lst@maketitle{\caption@startrue\@bidi@lst@makecaption\@empty}}%
-}
-\AtBeginDocument{
- \@ifundefined{thechapter}{\let\lst@ifnumberbychapter\iffalse}{}
- \lst@ifnumberbychapter
- \gdef\thelstlisting%
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@lstlisting}
- \else
- \gdef\thelstlisting{\@arabic\c@lstlisting}
- \fi}
-\endinput
-%%
-%% End of file `listings-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/loadingorder-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/loadingorder-xetex-bidi.def
deleted file mode 100644
index afcd3c534e5..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/loadingorder-xetex-bidi.def
+++ /dev/null
@@ -1,321 +0,0 @@
-%%
-%% This is file `loadingorder-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,loadingorder-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{loadingorder-xetex-bidi.def}[2015/10/16 v0.96 making sure that bidi is the last package loaded]
-\bidi@isloaded{amsmath}
-\bidi@isloaded{amstext}
-\bidi@isloaded{amsthm}
-\bidi@isloaded{animate}
-\bidi@isloaded{breqn}
-\bidi@isloaded{cals}
-\bidi@isloaded{caption}
-\bidi@isloaded{crop}
-\bidi@isloaded{cuted}
-\bidi@isloaded{cutwin}
-\bidi@isloaded{color}
-\bidi@isloaded{dblfnote}
-\bidi@isloaded{xcolor}
-\bidi@isloaded{colortbl}
-\bidi@isloaded{float}
-\bidi@isloaded{floatrow}
-\bidi@isloaded{flowfram}
-\bidi@isloaded{framed}
-\bidi@isloaded{ftnright}
-\bidi@isloaded{xltxtra}
-\bidi@isloaded{xunicode}
-\bidi@isloaded{wrapfig}
-\bidi@isloaded{graphicx}
-\bidi@isloaded{geometry}
-\bidi@isloaded{hvfloat}
-\bidi@isloaded{mdframed}
-\bidi@isloaded{midfloat}
-\bidi@isloaded{ntheorem}
-\bidi@isloaded{ntheorem-hyper}
-\bidi@isloaded{hyperref}
-\bidi@isloaded{fancybox}
-\bidi@isloaded{fancyhdr}
-\bidi@isloaded{fix2col}
-\bidi@isloaded{draftwatermark}
-\bidi@isloaded{empheq}
-\bidi@isloaded{overpic}
-\bidi@isloaded{pdfpages}
-\bidi@isloaded{listings}
-\bidi@isloaded{lettrine}
-\bidi@isloaded{media9}
-\bidi@isloaded{pstricks}
-\bidi@isloaded{pgf}
-\bidi@isloaded{picinpar}
-\bidi@isloaded{quotchap}
-\bidi@isloaded{tikz}
-\bidi@isloaded{titlesec}
-\bidi@isloaded{titletoc}
-\bidi@isloaded{array}
-\bidi@isloaded{soul}
-\bidi@isloaded{stabular}
-\bidi@isloaded{subfig}
-\bidi@isloaded{subfigure}
-\bidi@isloaded{supertabular}
-\bidi@isloaded{xtab}
-\bidi@isloaded{longtable}
-\bidi@isloaded{arydshln}
-\bidi@isloaded{multicol}
-\bidi@isloaded{multienum}
-\bidi@isloaded{minitoc}
-\bidi@isloaded{natbib}
-\bidi@isloaded{newfloat}
-\bidi@isloaded{ragged2e}
-\bidi@isloaded{rotating}
-\bidi@isloaded{tabls}
-\bidi@isloaded{tabulary}
-\bidi@isloaded{tocstyle}
-\bidi@isloaded{tocbibind}
-\bidi@isloaded{fontspec}
-\bidi@isloaded{arabxetex}
-\bidi@isloaded{polyglossia}
-\bidi@isloaded{fancyvrb}
-\AtBeginDocument{
- \if@bidi@amsmathloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package amsmath after bidi package. Please load package amsmath before bidi package, and then try to run xelatex on your document again}{}]{amsmath}
- \fi%
- \if@bidi@amstextloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package amstext after bidi package. Please load package amstext before bidi package, and then try to run xelatex on your document again}{}]{amstext}
- \fi%
- \if@bidi@amsthmloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package amsthm after bidi package. Please load package amsthm before bidi package, and then try to run xelatex on your document again}{}]{amsthm}
- \fi%
- \if@bidi@animateloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package animate after bidi package. Please load package animate before bidi package, and then try to run xelatex on your document again}{}]{animate}
- \fi%
- \if@bidi@breqnloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package breqn after bidi package. Please load package breqn before bidi package, and then try to run xelatex on your document again}{}]{breqn}
- \fi%
- \if@bidi@calsloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package cals after bidi package. Please load package cals before bidi package, and then try to run xelatex on your document again}{}]{cals}
- \fi%
- \if@bidi@captionloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package caption after bidi package. Please load package caption before bidi package, and then try to run xelatex on your document again}{}]{caption}
- \fi%
- \if@bidi@croploaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package crop after bidi package. Please load package crop before bidi package, and then try to run xelatex on your document again}{}]{crop}
- \fi%
- \if@bidi@colorloaded@\else
- \@ifpackageloaded{hyperref}{}{%
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package color after bidi package. Please load package color before bidi package, and then try to run xelatex on your document again}{}]{color}}
- \fi%
- \if@bidi@cutwinloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package cutwin after bidi package. Please load package cutwin before bidi package, and then try to run xelatex on your document again}{}]{cutwin}
- \fi%
- \if@bidi@cutedloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package cuted after bidi package. Please load package cuted before bidi package, and then try to run xelatex on your document again}{}]{cuted}
- \fi%
- \if@bidi@dblfnoteloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package dblfnote after bidi package. Please load package dblfnote before bidi package, and then try to run xelatex on your document again}{}]{dblfnote}
- \fi%
- \if@bidi@xcolorloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xcolor after bidi package. Please load package xcolor before bidi package, and then try to run xelatex on your document again}{}]{xcolor}
- \fi%
- \if@bidi@colortblloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package colortbl after bidi package. Please load package colortbl before bidi package, and then try to run xelatex on your document again}{}]{colortbl}
- \fi%
- \if@bidi@floatloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package float after bidi package. Please load package float before bidi package, and then try to run xelatex on your document again}{}]{float}
- \fi%
- \if@bidi@floatrowloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package floatrow after bidi package. Please load package floatrow before bidi package, and then try to run xelatex on your document again}{}]{floatrow}
- \fi%
- \if@bidi@flowframloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package flowfram after bidi package. Please load package flowfram before bidi package, and then try to run xelatex on your document again}{}]{flowfram}
- \fi%
- \if@bidi@framedloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package framed after bidi package. Please load package framed before bidi package, and then try to run xelatex on your document again}{}]{framed}
- \fi%
- \if@bidi@ftnrightloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package ftnright after bidi package. Please load package ftnright before bidi package, and then try to run xelatex on your document again}{}]{ftnright}
- \fi%
- \if@bidi@xltxtraloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xltxtra after bidi package. Please load package xltxtra before bidi package, and then try to run xelatex on your document again}{}]{xltxtra}
- \fi%
- \if@bidi@xunicodeloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xunicode after bidi package. Please load package xunicode before bidi package, and then try to run xelatex on your document again}{}]{xunicode}
- \fi%
- \if@bidi@wrapfigloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package wrapfig after bidi package. Please load package wrapfig before bidi package, and then try to run xelatex on your document again}{}]{wrapfig}
- \fi%
- \if@bidi@graphicxloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package graphicx after bidi package. Please load package graphicx before bidi package, and then try to run xelatex on your document again}{}]{graphicx}
- \fi%
- \if@bidi@geometryloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package geometry after bidi package. Please load package geometry before bidi package, and then try to run xelatex on your document again}{}]{geometry}
- \fi%
- \if@bidi@hvfloatloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package hvfloat after bidi package. Please load package hvfloat before bidi package, and then try to run xelatex on your document again}{}]{hvfloat}
- \fi%
- \if@bidi@mdframedloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package mdframed after bidi package. Please load package mdframed before bidi package, and then try to run xelatex on your document again}{}]{mdframed}
- \fi%
- \if@bidi@midfloatloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package midfloat after bidi package. Please load package midfloat before bidi package, and then try to run xelatex on your document again}{}]{midfloat}
- \fi%
- \if@bidi@ntheoremloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package ntheorem after bidi package. Please load package ntheorem before bidi package, and then try to run xelatex on your document again}{}]{ntheorem}
- \fi%
- \if@bidi@hyperrefloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package hyperref after bidi package. Please load package hyperref before bidi package, and then try to run xelatex on your document again}{}]{hyperref}
- \fi%
- \if@bidi@fancyboxloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package fancybox after bidi package. Please load package fancybox before bidi package, and then try to run xelatex on your document again}{}]{fancybox}
- \fi%
- \if@bidi@fancyhdrloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package fancyhdr after bidi package. Please load package fancyhdr before bidi package, and then try to run xelatex on your document again}{}]{fancyhdr}
- \fi%
- \if@bidi@draftwatermarkloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package draftwatermark after bidi package. Please load package draftwatermark before bidi package, and then try to run xelatex on your document again}{}]{draftwatermark}
- \fi%
- \if@bidi@empheqloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package empheq after bidi package. Please load package empheq before bidi package, and then try to run xelatex on your document again}{}]{empheq}
- \fi%
- \if@bidi@overpicloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package overpic after bidi package. Please load package overpic before bidi package, and then try to run xelatex on your document again}{}]{overpic}
- \fi%
- \if@bidi@pdfpagesloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package pdfpages after bidi package. Please load package pdfpages before bidi package, and then try to run xelatex on your document again}{}]{pdfpages}
- \fi%
- \if@bidi@lettrineloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package lettrine after bidi package. Please load package lettrine before bidi package, and then try to run xelatex on your document again}{}]{lettrine}
- \fi%
- \if@bidi@listingsloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package listings after bidi package. Please load package listings before bidi package, and then try to run xelatex on your document again}{}]{listings}
- \fi%
- \csname if@bidi@media9loaded@\endcsname\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package media9 after bidi package. Please load package media9 before bidi package, and then try to run xelatex on your document again}{}]{media9}
- \fi%
- \if@bidi@pstricksloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package pstricks after bidi package. Please load package pstricks before bidi package, and then try to run xelatex on your document again}{}]{pstricks}
- \fi%
- \if@bidi@pgfloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package pgf after bidi package. Please load package pgf before bidi package, and then try to run xelatex on your document again}{}]{pgf}
- \fi%
- \if@bidi@picinparloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package picinpar after bidi package. Please load package picinpar before bidi package, and then try to run xelatex on your document again}{}]{picinpar}
- \fi%
- \if@bidi@quotchaploaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package quotchap after bidi package. Please load package quotchap before bidi package, and then try to run xelatex on your document again}{}]{quotchap}
- \fi%
- \if@bidi@tikzloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tikz after bidi package. Please load package tikz before bidi package, and then try to run xelatex on your document again}{}]{tikz}
- \fi%
- \if@bidi@titlesecloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package titlesec after bidi package. Please load package titlesec before bidi package, and then try to run xelatex on your document again}{}]{titlesec}
- \fi%
- \if@bidi@titletocloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package titletoc after bidi package. Please load package titletoc before bidi package, and then try to run xelatex on your document again}{}]{titletoc}
- \fi%
- \if@bidi@arrayloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package array after bidi package. Please load package array before bidi package, and then try to run xelatex on your document again}{}]{array}
- \fi%
- \if@bidi@stabularloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package stabular after bidi package. Please load package stabular before bidi package, and then try to run xelatex on your document again}{}]{stabular}
- \fi%
- \if@bidi@soulloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package soul after bidi package. Please load package soul before bidi package, and then try to run xelatex on your document again}{}]{soul}
- \fi%
- \if@bidi@subfigloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package subfig after bidi package. Please load package subfig before bidi package, and then try to run xelatex on your document again}{}]{subfig}
- \fi%
- \if@bidi@subfigureloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package subfigure after bidi package. Please load package subfigure before bidi package, and then try to run xelatex on your document again}{}]{subfigure}
- \fi%
- \if@bidi@supertabularloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package supertabular after bidi package. Please load package supertabular before bidi package, and then try to run xelatex on your document again}{}]{supertabular}
- \fi%
- \if@bidi@xtabloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package xtab after bidi package. Please load package xtab before bidi package, and then try to run xelatex on your document again}{}]{xtab}
- \fi%
- \if@bidi@longtableloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package longtable after bidi package. Please load package longtable before bidi package, and then try to run xelatex on your document again}{}]{longtable}
- \fi%
- \if@bidi@arydshlnloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package arydshln after bidi package. Please load package arydshln before bidi package, and then try to run xelatex on your document again}{}]{arydshln}
- \fi%
- \if@bidi@multicolloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package multicol after bidi package. Please load package multicol before bidi package, and then try to run xelatex on your document again}{}]{multicol}
- \fi%
- \if@bidi@multienumloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package multienum after bidi package. Please load package multienum before bidi package, and then try to run xelatex on your document again}{}]{multienum}
- \fi%
- \if@bidi@minitocloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package minitoc after bidi package. Please load package minitoc before bidi package, and then try to run xelatex on your document again}{}]{minitoc}
- \fi%
- \if@bidi@natbibloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package natbib after bidi package. Please load package natbib before bidi package, and then try to run xelatex on your document again}{}]{natbib}
- \fi%
- \if@bidi@newfloatloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package newfloat after bidi package. Please load package newfloat before bidi package, and then try to run xelatex on your document again}{}]{newfloat}
- \fi%
- \csname if@bidi@ragged2eloaded@\endcsname\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package ragged2e after bidi package. Please load package ragged2e before bidi package, and then try to run xelatex on your document again}{}]{ragged2e}
- \fi%
- \if@bidi@rotatingloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package rotating after bidi package. Please load package rotating before bidi package, and then try to run xelatex on your document again}{}]{rotating}
- \fi%
- \if@bidi@tablsloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tabls after bidi package. Please load package tabls before bidi package, and then try to run xelatex on your document again}{}]{tabls}
- \fi%
- \if@bidi@tabularyloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tabulary after bidi package. Please load package tabulary before bidi package, and then try to run xelatex on your document again}{}]{tabulary}
- \fi%
- \if@bidi@tocstyleloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tocstyle after bidi package. Please load package tocstyle before bidi package, and then try to run xelatex on your document again}{}]{tocstyle}
- \fi%
- \if@bidi@tocbibindloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package tocbibind after bidi package. Please load package tocbibind before bidi package, and then try to run xelatex on your document again}{}]{tocbibind}
- \fi%
- \if@bidi@fontspecloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package fontspec after bidi package. Please load package fontspec before bidi package, and then try to run xelatex on your document again}{}]{fontspec}
- \fi%
- \if@bidi@arabxetexloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package arabxetex after bidi package. Please load package arabxetex before bidi package, and then try to run xelatex on your document again}{}]{arabxetex}
- \fi%
- \if@bidi@polyglossialoaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package polyglossia after bidi package. Please load package polyglossia before bidi package, and then try to run xelatex on your document again}{}]{polyglossia}
- \fi%
- \if@bidi@fancyvrbloaded@\else
- \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package fancyvrb after bidi package. Please load package fancyvrb before bidi package, and then try to run xelatex on your document again}{}]{fancyvrb}
- \fi%
-}
-\endinput
-%%
-%% End of file `loadingorder-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def
deleted file mode 100644
index 6188234aeda..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def
+++ /dev/null
@@ -1,117 +0,0 @@
-%%
-%% This is file `longtable-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,longtable-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{longtable-xetex-bidi.def}[2013/04/01 v0.3 bidi adaptations for longtable package for XeTeX engine]
-\def\LT@array[#1]#2{%
- \refstepcounter{table}\stepcounter{LT@tables}%
- \if l#1%
- \if@RTLtab\LTleft\fill \LTright\z@\else\LTleft\z@ \LTright\fill\fi
- \else\if r#1%
- \if@RTLtab\LTleft\z@ \LTright\fill\else\LTleft\fill \LTright\z@\fi
- \else\if c#1%
- \LTleft\fill \LTright\fill
- \fi\fi\fi
- \let\LT@mcol\multicolumn
- \let\LT@@tabarray\@tabarray
- \let\LT@@hl\hline
- \def\@tabarray{%
- \let\hline\LT@@hl
- \LT@@tabarray}%
- \let\\\LT@tabularcr\let\tabularnewline\\%
- \def\newpage{\noalign{\break}}%
- \def\pagebreak{\noalign{\ifnum`}=0\fi\@testopt{\LT@no@pgbk-}4}%
- \def\nopagebreak{\noalign{\ifnum`}=0\fi\@testopt\LT@no@pgbk4}%
- \let\hline\LT@hline \let\kill\LT@kill\let\caption\LT@caption
- \@tempdima\ht\strutbox
- \let\@endpbox\LT@endpbox
- \ifx\extrarowheight\@undefined
- \let\@acol\@tabacol
- \let\@classz\@tabclassz \let\@classiv\@tabclassiv
- \def\@startpbox{\vtop\LT@startpbox}%
- \let\@@startpbox\@startpbox
- \let\@@endpbox\@endpbox
- \let\LT@LL@FM@cr\@tabularcr
- \else
- \advance\@tempdima\extrarowheight
- \col@sep\tabcolsep
- \let\@startpbox\LT@startpbox\let\LT@LL@FM@cr\@arraycr
- \fi
- \setbox\@arstrutbox\hbox{\vrule
- \@height \arraystretch \@tempdima
- \@depth \arraystretch \dp \strutbox
- \@width \z@}%
- \let\@sharp##\let\protect\relax
- \begingroup
- \@mkpream{#2}%
- \xdef\LT@bchunk{%
- \global\advance\c@LT@chunks\@ne
- \global\LT@rows\z@\setbox\z@\vbox\bgroup
- \LT@setprevdepth
- \tabskip\LTleft \noexpand\halign to\hsize\bgroup
- \tabskip\z@ \@arstrut \@preamble \tabskip\LTright \cr}%
- \endgroup
- \expandafter\LT@nofcols\LT@bchunk&\LT@nofcols
- \LT@make@row
- \m@th\let\par\@empty
- \everycr{}\lineskip\z@\baselineskip\z@
- \LT@bchunk}
-\def\LT@makecaption#1#2#3{%
- \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{%
- \sbox\@tempboxa{\if@RTL\beginR\fi#1{#2: }#3\if@RTL\endR\fi}%
- \ifdim\wd\@tempboxa>\hsize
- #1{#2: }#3%
- \else
- \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
- \fi
- \endgraf\vskip\baselineskip}%
- \hss}}}
-\def\LT@startpbox#1{%
- \bgroup
- \let\@footnotetext\LT@p@ftntext
- \let\@LTRfootnotetext\LT@p@LTRftntext
- \let\@RTLfootnotetext\LT@p@RTLftntext
- \setlength\hsize{#1}%
- \@arrayparboxrestore
- \vrule \@height \ht\@arstrutbox \@width \z@}
-\def\LT@p@LTRftntext#1{%
- \edef\@tempa{\the\LT@p@ftn\noexpand\LTRfootnotetext[\the\c@footnote]}%
- \global\LT@p@ftn\expandafter{\@tempa{#1}}}%
-\def\LT@p@RTLftntext#1{%
- \edef\@tempa{\the\LT@p@ftn\noexpand\RTLfootnotetext[\the\c@footnote]}%
- \global\LT@p@ftn\expandafter{\@tempa{#1}}}%
-\endinput
-%%
-%% End of file `longtable-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/mdframed-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/mdframed-xetex-bidi.def
deleted file mode 100644
index 7c38295f8c1..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/mdframed-xetex-bidi.def
+++ /dev/null
@@ -1,113 +0,0 @@
-%%
-%% This is file `mdframed-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,mdframed-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{mdframed-xetex-bidi.def}[2013/09/22 v0.4 bidi adaptations for mdframed package for XeTeX engine]
-\newif\if@bidi@mdf@RTL
-\def\mdf@lrbox#1{%
- \mdf@patchamsthm%patch amsthm
- \if@RTL\@bidi@mdf@RTLtrue\fi%
- \@RTLfalse%
- \setbox#1\vbox\bgroup%
- \color@begingroup%
- \if@bidi@mdf@RTL\@RTLtrue\fi%
- \mdf@horizontalmargin@equation%
- \columnwidth=\hsize%
- \textwidth=\hsize%
- \let\if@nobreak\iffalse%
- \let\if@noskipsec\iffalse%
- \let\par\@@par%
- \let\-\@dischyph%
- \let\'\@acci\let\`\@accii\let\=\@acciii%
- \parindent\z@ \parskip\z@skip%
- \linewidth\hsize%
- \@totalleftmargin\z@%
- \leftskip\z@skip \rightskip\z@skip \@rightskip\z@skip%
- \parfillskip\@flushglue \lineskip\normallineskip%
- \baselineskip\normalbaselineskip%
-%% \sloppy%
- \let\\\@normalcr%
- \mdf@par@local%New feature to restore parskip/parindent local in save box
- \ifbool{mdf@suppressfirstparskip}{\vspace*{-\parskip}}{}%
- \@afterindentfalse%
- %\@afterheading%
-}
-\renewrobustcmd\mdfframedtitleenv[1]{%
- \mdf@lrbox{\mdf@frametitlebox}%
- \mdf@frametitlealignment%
- \leavevmode{\color{\mdf@frametitlefontcolor}%
- \normalfont\mdf@frametitlefont{#1}
- \ifbool{mdf@ignorelastdescenders}%
- {%
- \par\strut\par
- \unskip\unskip\setbox0=\lastbox
- \vspace*{\dimexpr\ht\strutbox-\baselineskip\relax}%
- }{}}%
- \par\unskip\ifvmode\nointerlineskip\hrule \@height\z@ \@width\hsize\fi%%
- \endmdf@lrbox\relax%
- \mdf@ignorevbadness%
- \setbox\mdf@frametitlebox=\vbox{\unvbox\mdf@frametitlebox}%
- \mdfframetitleboxwidth=\wd\mdf@frametitlebox\relax%
- \mdfframetitleboxheight=\ht\mdf@frametitlebox\relax%
- \mdfframetitleboxdepth=\dp\mdf@frametitlebox\relax%
- \mdfframetitleboxtotalheight=\dimexpr
- \ht\mdf@frametitlebox
- +\dp\mdf@frametitlebox%
- +\mdf@frametitleaboveskip@length
- +\mdf@frametitlebelowskip@length
- \relax%
-}
-
-\renewrobustcmd*\mdf@footnoteoutput{%
- \ifvoid\@mpfootins\else%
- \nobreak%
- \vskip\mdf@footenotedistance@length%
- \normalcolor%
- \bidi@mpfootnoterule%
- \unvbox\@mpfootins%
- \fi%
-}
-
-\renewrobustcmd*\mdf@footnoteinput{%
- \def\@mpfn{mpfootnote}%
- \def\thempfn{\thempfootnote}%
- \c@mpfootnote\z@%
- \let\@footnotetext\@mpfootnotetext%
- \let\@LTRfootnotetext\@mpLTRfootnotetext%
- \let\@RTLfootnotetext\@mpRTLfootnotetext%
-}
-\endinput
-%%
-%% End of file `mdframed-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/memoir-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/memoir-xetex-bidi.def
deleted file mode 100644
index 8e76be52a1d..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/memoir-xetex-bidi.def
+++ /dev/null
@@ -1,195 +0,0 @@
-%%
-%% This is file `memoir-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,memoir-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{memoir-xetex-bidi.def}[2010/07/25 v0.5 bidi adaptations for memoir class for XeTeX engine]
-\renewcommand{\keepthetitle}{%
- \@bsmtitlempty
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\and\relax
- \global\let\andnext\relax
- \global\let\@thanks\@empty
- \global\let\@title\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty}
-\renewcommand{\maketitle}{\par
- \begingroup
- \@bsmarkseries
- \def\@makefnmark{\@textsuperscript{%
- \normalfont\@bsthanksheadpre \tamark \@bsthanksheadpost}}%
- \long\def\@makefntext##1{\makethanksmark ##1}
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \ifdim\pagetotal>\z@
- \newpage
- \fi
- \global\@topnum\z@
- \@maketitle
- \fi
- \thispagestyle{title}\@thanks
- \endgroup
- \@bscontmark % \setcounter{footnote}{0}%
- }
-\renewcommand*{\memRTLleftskip}{\if@RTL\rightskip\else\leftskip\fi}
-\renewcommand*{\memRTLrightskip}{\if@RTL\leftskip\else\rightskip\fi}
-\renewcommand*{\memRTLvleftskip}{\if@RTL\vrightskip\else\vleftskip\fi}
-\renewcommand*{\memRTLvrightskip}{\if@RTL\vleftskip\else\vrightskip\fi}
-\renewcommand*{\memRTLraggedright}{\if@RTL\raggedleft\else\raggedright\fi}
-\renewcommand*{\memRTLraggedleft}{\if@RTL\raggedright\else\raggedleft\fi}
-\renewcommand*{\thesection}{\thechapter\@SepMark\@arabic\c@section}
-\renewcommand*{\thesubsection}{%
- \thesection\@SepMark\@arabic\c@subsection}
-\renewcommand*{\thesubsubsection}{%
- \thesubsection\@SepMark\@arabic\c@subsubsection}
-\renewcommand*{\theparagraph}{%
- \thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand*{\thesubparagraph}{%
- \theparagraph\@SepMark\@arabic\c@subparagraph}
-\renewcommand{\setthesection}{\thechapter\@SepMark\Alph{section}}
-\renewcommand{\theequation}{%
- \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
-\renewcommand{\thefigure}{\thechapter\@SepMark\@arabic\c@figure}
-\renewcommand{\thetable}{\thechapter\@SepMark\@arabic\c@table}
-\ifartopt
- \chapterstyle{article}
- \counterwithout{figure}{chapter}
- \counterwithout{table}{chapter}
- \counterwithout{footnote}{chapter}
- \counterwithout{equation}{chapter}
- \renewcommand{\chaptername}{}
- \renewcommand{\maketitlehookb}{%
- \vskip -1.5\topsep\vskip -1.5\partopsep}
- \renewcommand{\maketitlehookc}{%
- \vskip -1.5\topsep\vskip -1.5\partopsep}
-\fi
-\long\def\@makecaption#1#2{\let\@memtempa\relax
- \ifdim\prevdepth>-99\p@ \vskip\abovecaptionskip
- \else \def\@memtempa{\vbox to\topskip{}}\fi
- \let\@contfnote\footnote \renewcommand{\footnote}[2][]{}
- \let\@contfmark\footnotemark \renewcommand{\footnotemark}[1][]{}
- \sbox\@tempboxa{\@contnfont #1\@contdelim \@conttfont #2\@contfinal}
- \let\footnote\@contfnote
- \let\footnotemark\@contfmark
- \ifdim\wd\@tempboxa<\linewidth \centering \fi
- \if@contcw
- \centering
- \parbox{\@contcwidth}{%
- \ifdim\wd\@tempboxa<\@contcwidth \centering \fi
- \fi
- \ifdim\wd\@tempboxa<\linewidth
- \@contpre
- {\@contnfont #1\@contdelim}\@memtempa
- {\@contcshortstyle \@conttfont #2\@contfinal\par}
- \else
- \if@conthang
- \sbox\@tempboxa{\@contnfont #1\@contdelim}
- \@contpre%
- {\@contcstyle\hangindent=\wd\@tempboxa
- \noindent\box\@tempboxa\@memtempa \@conttfont #2\@contfinal\par}
- \else
- \if@contindent
- \@contpre%
- {\@contnfont #1\@contdelim}\@memtempa
- {\@contcstyle\hangindent=\@contindw
- \hangafter=\@ne\@conttfont #2\@contfinal\par}% <- v1.4
- \else
- \@contpre%
- {\@contnfont #1\@contdelim}\@memtempa
- {\@contcstyle \@conttfont #2\@contfinal\par}
- \fi
- \fi
- \fi
- \@contpost
- \if@contcw
- \par
- } % end of the \parbox
- \fi
- \vskip\belowcaptionskip}
-\@ifpackageloaded{caption}{%
-\AtBeginPackage{caption}{
-\ClassWarningNoLine{memoir}{%
- You are using the caption package with the memoir \MessageBreak
- class. This may cause unexpected or inconsistent \MessageBreak
- results if you use any of memoir's captioning facilities}
-
-\long\def\@makecaption##1##2{%
- \vskip\abovecaptionskip
- \sbox\@tempboxa{\if@RTL\beginR\fi##1: ##2\if@RTL\endR\fi}%
- \ifdim \wd\@tempboxa >\hsize
- \if@RTL\beginR\fi##1: ##2\if@RTL\endR\fi\par
- \else
- \global \@minipagefalse
- \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
- \fi
- \vskip\belowcaptionskip}
-
-\def\caption{%
- \ifx\@captype\@undefined
- \@latex@error{\noexpand\caption outside float}\@ehd
- \expandafter\@gobble
- \else
- \refstepcounter\@captype
- \expandafter\@firstofone
- \fi
- {\@dblarg{\@caption\@captype}}%
-}
-
-\long\def\@caption##1[##2]##3{%
- \par
- \addcontentsline{\csname ext@##1\endcsname}{##1}%
- {\protect\numberline{\csname the##1\endcsname}{\ignorespaces ##2}}%
- \begingroup
- \@parboxrestore
- \if@minipage
- \@setminipage
- \fi
- \normalsize
- \@makecaption{\csname fnum@##1\endcsname}{\ignorespaces ##3}\par
- \endgroup}
-}}{}
-\renewenvironment{thebibliography}[1]{%
- \bibsection
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \begin{bibitemlist}{#1}}{\end{bibitemlist}\postbibhook}
-\endinput
-%%
-%% End of file `memoir-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/midfloat-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/midfloat-xetex-bidi.def
deleted file mode 100644
index 0ad30a9e058..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/midfloat-xetex-bidi.def
+++ /dev/null
@@ -1,239 +0,0 @@
-%%
-%% This is file `midfloat-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,midfloat-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{midfloat-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for midfloat package for XeTeX engine]
-\def\RTL@outputdblcol{%
- \if@firstcolumn
- \global \@firstcolumnfalse
- \global \setbox\@leftcolumn \box\@outputbox
- \global\c@colht\@colht\global\c@addvipersep\z@
- \ifnum\juo@sk>0
- \remove@strip\juo@sar
- \global\@colht\the\juo@pr
- \ifdim\right@cor>\z@
- \global\advance\@colht by\right@cor
- \fi
- \global\advance\@colht by\cor@height
- \global\cor@height=0pt
- \fi
- \global \setbox\@rightcolumn \vbox{}%
- \else
- \ifdim\c@colht>\@colht
- \@tempdima\@colht
- \ifdim\@colht>\z@
- \global\setbox\@rightcolumn \vbox{%
- \unvbox\@rightcolumn
- \vbox to\@tempdima{%
- \vskip\c@addvipersep\unvbox\@outputbox}%
- \vskip\stripsep
- \vrule height\the\juo@ht width 0pt depth 0pt
- \vskip\stripsep
- }%
- \global\c@addvipersep\m@addvipersep
- \else
- \global\setbox\@rightcolumn \vbox{%
- \unvbox\@rightcolumn
- \vrule height\the\juo@ht width 0pt depth 0pt
- \vskip\stripsep
- }%
- \fi
- \ifnum\juo@sk>0
- \remove@strip\juo@sar
- \global\@colht\the\juo@pr
- \global\advance\@colht by -\ht\@rightcolumn
- \global\advance\@colht by\cor@height
- \global\cor@height=0pt
- \else
- \global\advance\c@colht by-\ht\@rightcolumn
- \global\@colht\c@colht
- \fi
- \else
- \global\@firstcolumntrue
- \global\setbox\@outputbox\vbox to\ht\@leftcolumn{%
- \unvbox\@rightcolumn
- \vskip\c@addvipersep
- \unvbox\@outputbox
- }%
- \setbox\@outputbox \vbox {%
- \hb@xt@\textwidth {%
- \hskip \columnwidth
- \hfil
- \vrule \@width\columnseprule
- \hfil
- \hb@xt@\columnwidth {%
- \box\@leftcolumn \hss}%
- \hskip-\textwidth
- \hb@xt@\columnwidth {%
- \box\@outputbox \hss}%
- \hskip\columnwidth
- \hskip\columnsep}%
- }%
- \@combinedblfloats
- \@outputpage
- \begingroup
- \@dblfloatplacement
- \@startdblcolumn
- \@whilesw\if@fcolmade \fi
- {\@outputpage
- \@startdblcolumn}%
- \endgroup
- \global\juo@sk=0\global\juo@sar={}%
- \global\cor@height\z@\global\c@addvipersep\z@
- \fi
- \fi
-}
-
-\def\LTR@outputdblcol{%
- \if@firstcolumn
- \global \@firstcolumnfalse
- \global \setbox\@leftcolumn \box\@outputbox
- \global\c@colht\@colht\global\c@addvipersep\z@
- \ifnum\juo@sk>0
- \remove@strip\juo@sar
- \global\@colht\the\juo@pr
- \ifdim\right@cor>\z@
- \global\advance\@colht by\right@cor
- \fi
- \global\advance\@colht by\cor@height
- \global\cor@height=0pt
- \fi
- \global \setbox\@rightcolumn \vbox{}%
- \else
- \ifdim\c@colht>\@colht
- \@tempdima\@colht
- \ifdim\@colht>\z@
- \global\setbox\@rightcolumn \vbox{%
- \unvbox\@rightcolumn
- \vbox to\@tempdima{%
- \vskip\c@addvipersep\unvbox\@outputbox}%
- \vskip\stripsep
- \vrule height\the\juo@ht width 0pt depth 0pt
- \vskip\stripsep
- }%
- \global\c@addvipersep\m@addvipersep
- \else
- \global\setbox\@rightcolumn \vbox{%
- \unvbox\@rightcolumn
- \vrule height\the\juo@ht width 0pt depth 0pt
- \vskip\stripsep
- }%
- \fi
- \ifnum\juo@sk>0
- \remove@strip\juo@sar
- \global\@colht\the\juo@pr
- \global\advance\@colht by -\ht\@rightcolumn
- \global\advance\@colht by\cor@height
- \global\cor@height=0pt
- \else
- \global\advance\c@colht by-\ht\@rightcolumn
- \global\@colht\c@colht
- \fi
- \else
- \global\@firstcolumntrue
- \global\setbox\@outputbox\vbox to\ht\@leftcolumn{%
- \unvbox\@rightcolumn
- \vskip\c@addvipersep
- \unvbox\@outputbox
- }%
- \setbox\@outputbox \vbox {%
- \hb@xt@\textwidth {%
- \hb@xt@\columnwidth {%
- \box\@leftcolumn \hss}%
- \hfil
- \vrule \@width\columnseprule
- \hfil
- \hb@xt@\columnwidth {%
- \box\@outputbox \hss}%
- }%
- }%
- \@combinedblfloats
- \@outputpage
- \begingroup
- \@dblfloatplacement
- \@startdblcolumn
- \@whilesw\if@fcolmade \fi
- {\@outputpage
- \@startdblcolumn}%
- \endgroup
- \global\juo@sk=0\global\juo@sar={}%
- \global\cor@height\z@\global\c@addvipersep\z@
- \fi
- \fi
-}
-
-\def\@strip[#1/#2]{\global\@tempdima=#1\global\@tempdimb=#2%
- \global \setbox\@viper\vbox\bgroup\if@RTLmain\moveleft\dimexpr(\columnwidth+\columnsep)\fi\vbox\bgroup%
- \hsize\textwidth
- \@parboxrestore
- \col@number \@ne
- \vrule height\topskip width0pt depth0pt
-}
-
-\def\endstrip{%
- \egroup\egroup
- \if@firstcolumn
- \ifdim\pagetotal>\z@
- \vskip\stripsep
- \global\ht@strip\pagegoal
- \global\advance\ht@strip by-\pagetotal
- \global\advance\ht@strip by-\stripsep
- \global\advance\ht@strip by-\ht\@viper
- \global\advance\ht@strip by-\stripsep
- \global\juo@ht=\ht\@viper
- \else
- \global\ht@strip\z@
- \fi
- \ifdim\ht@strip>\z@
- \unvbox\@viper
- \vskip\stripsep
- \add@strip{\the\pagetotal}{\the\juo@ht}{\the\@tempdima}{\the\@tempdimb}%
- \global\advance\juo@sk by1
- \else
- \@latex@error{Strip needs more place!}\@ehc
- \if@vihproof
- \framebox[\columnwidth]{??? Strip ???}%
- \fi
- \fi
- \else
- \@latex@error{Strip is used only on left column!}\@ehc
- \if@vihproof
- \framebox[\columnwidth]{??? Strip ???}%
- \fi
- \fi
-}
-\endinput
-%%
-%% End of file `midfloat-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/minitoc-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/minitoc-xetex-bidi.def
deleted file mode 100644
index cc0ab7e6b1b..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/minitoc-xetex-bidi.def
+++ /dev/null
@@ -1,77 +0,0 @@
-%%
-%% This is file `minitoc-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,minitoc-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{minitoc-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for minitoc package for XeTeX engine]
-\def\@undottedtocline#1#2#3#4#5{%
- \ifnum #1>\c@tocdepth\relax \else
- \vskip \z@ plus.2\p@
- {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent #2\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima #3\relax \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \hbox{}%
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #4\nobreak\hfill \nobreak
- \null\par}%
- \fi}
-\def\@Undottedtocline#1#2#3#4#5{%
- \ifnum #1>\c@tocdepth\relax \else
- \vskip \z@ \@plus.2\p@
- {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent #2\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima #3\relax
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\coffeefont #4}\nobreak \nobreak\null
- \par}%
- \fi}
-\def\@Undottedtoclinep#1#2#3#4#5{%
- \ifnum #1>\c@tocdepth\relax \else
- \vskip \z@ \@plus.2\p@
- {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent #2\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima #3\relax
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {#4}\nobreak \hfill \nobreak\null
- \hb@xt@\@pnumwidth{{\hfil\normalfont \normalcolor #5}}%
- \par}%
- \fi}
-\endinput
-%%
-%% End of file `minitoc-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
deleted file mode 100644
index 3bdc5c4a931..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
+++ /dev/null
@@ -1,165 +0,0 @@
-%%
-%% This is file `multicol-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,multicol-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{multicol-xetex-bidi.def}[2015/11/14 v0.7 bidi adaptations for multicol package for XeTeX engine]
-\def\page@sofar{%
- \process@cols\mult@rightbox
- {\ifvoid\count@
- \setbox\count@\hbox to\hsize{}%
- \else
- \wd\count@\hsize
- \fi}%
- \count@\col@number \advance\count@\m@ne
- \mult@info\z@
- {Column spec: \the\full@width\space = indent
- + columns + sep =\MessageBreak
- \the\multicol@leftmargin\space
- + \the\col@number\space
- x \the\hsize\space
- + \the\count@\space
- x \the\columnsep
- }%
-\ifvmode\else\errmessage{Multicol Error}\fi
- \nointerlineskip
- \setbox\z@\hbox{p}\global\dimen\tw@\dp\z@
- \moveright\multicol@leftmargin
- \hbox to\full@width{%
- \bidi@multicol@align@columns
- \rlap{\phantom p}%
- }%
- \prevdepth\z@
- \kern-\dimen\tw@
- \ifdim\dimen\tw@ > \mc@gridwarn
- \PackageWarning{multicol}%
- {Very deep columns!\MessageBreak
- Grid alignment might be broken}%
- \fi
-}
-\def\LTR@column@boxes{%
- \process@cols\mult@gfirstbox{%
- \ifdim\dp\count@>\dimen\tw@
- \global\dimen\tw@\dp\count@ \fi
- \mc@col@status@write
- \box\count@
- \hss{\columnseprulecolor\vrule
- \@width\columnseprule}\hss}%
- \ifdim\dp\mult@rightbox>\dimen\tw@
- \global\dimen\tw@\dp\mult@rightbox \fi
- \mc@lastcol@status@write
- \box\mult@rightbox
-}
-
-\def\RTL@column@boxes{%
- \process@cols\mult@gfirstbox{%
- \hskip\hsize
- \hss{\columnseprulecolor\vrule
- \@width\columnseprule}\hss
- }%
- \hskip\hsize
- \process@cols\mult@gfirstbox{%
- \ifdim\dp\count@>\dimen\tw@
- \global\dimen\tw@\dp\count@ \fi
- \hskip-\hsize
- \mc@col@status@write
- \box\count@
- \hskip-\hsize
- \hskip-\columnsep
- }%
- \ifdim\dp\mult@rightbox>\dimen\tw@
- \global\dimen\tw@\dp\mult@rightbox \fi
- \hskip-\hsize
- \mc@lastcol@status@write
- \box\mult@rightbox
- \hskip-\hsize
- \hskip\full@width
- }
-\newcommand\RTLmulticolcolumns
- {\let\bidi@multicol@align@columns
- \RTL@column@boxes}
-\newcommand\LTRmulticolcolumns
- {\let\bidi@multicol@align@columns
- \LTR@column@boxes}
-\newcommand\bidi@multicol@align@columns
- {\if@RTLmain\RTL@column@boxes\else\LTR@column@boxes\fi}
-\def\multicols#1{\col@number#1\relax
- \ifnum\col@number<\tw@
- \PackageWarning{multicol}%
- {Using `\number\col@number'
- columns doesn't seem a good idea.^^J
- I therefore use two columns instead}%
- \col@number\tw@ \fi
- \ifnum\col@number>10
- \PackageError{multicol}%
- {Too many columns}%
- {Current implementation doesn't
- support more than 10 columns.%
- \MessageBreak
- I therefore use 10 columns instead}%
- \col@number10 \fi
- \ifx\@footnotetext\mult@footnotetext\else
- \let\orig@footnotetext\@footnotetext
- \let\@footnotetext\mult@footnotetext
- \fi
- \ifx\@LTRfootnotetext\mult@LTRfootnotetext\else
- \let\orig@LTRfootnotetext\@LTRfootnotetext
- \let\@LTRfootnotetext\mult@LTRfootnotetext
- \fi
- \ifx\@RTLfootnotetext\mult@RTLfootnotetext\else
- \let\orig@RTLfootnotetext\@RTLfootnotetext
- \let\@RTLfootnotetext\mult@RTLfootnotetext
- \fi
- \@ifnextchar[\mult@cols{\mult@cols[]}}
-\long\def\mult@footnotetext#1{\begingroup
- \hsize\textwidth
- \columnwidth\textwidth
- \orig@footnotetext{#1}\endgroup}
-\long\def\mult@LTRfootnotetext#1{\begingroup
- \hsize\textwidth
- \columnwidth\textwidth
- \orig@LTRfootnotetext{#1}\endgroup}
-\long\def\mult@RTLfootnotetext#1{\begingroup
- \hsize\textwidth
- \columnwidth\textwidth
- \orig@RTLfootnotetext{#1}\endgroup}
-\def\right@footnoterule{%
- \kern-3\p@
- \hbox to \textwidth{\hskip \dimexpr\textwidth-.4\columnwidth\relax \hrulefill }
- \kern2.6\p@}
-\def\textwidth@footnoterule{\kern-3\p@
- \hrule \@width \textwidth \kern 2.6\p@}
-\endinput
-%%
-%% End of file `multicol-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/multienum-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/multienum-xetex-bidi.def
deleted file mode 100644
index 12182032f78..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/multienum-xetex-bidi.def
+++ /dev/null
@@ -1,106 +0,0 @@
-%%
-%% This is file `multienum-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,multienum-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{multienum-xetex-bidi.def}[2011/04/16 v0.1 bidi adaptations for multienum package for XeTeX engine]
-\renewcommand{\itemx}[1]{\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
-\parbox[t]{\remainx}{\bidi@raggedright #1}\par}%\smallskip
-\renewcommand{\itemxx}[2]{\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{.5\remainxx}{\bidi@raggedright #1}\hfill\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.5\remainxx}{\bidi@raggedright #2}\smallskip}
-\renewcommand{\itemxxx}[3]{\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
-\parbox[t]{.3333\remainxxx}{\bidi@raggedright #1}\hfill\parbox[t]%
-{\labelwidth}{\hfill {\labelname}}\hskip\labelsep%
-\parbox[t]{0.3333\remainxxx}{\bidi@raggedright #2}\hfill\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
-\parbox[t]{0.3333\remainxxx}{\bidi@raggedright #3}\par}%\smallskip
-\renewcommand{\itemxxxx}[4]{\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{.25\remainxxxx}{\bidi@raggedright #1}\hfill\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #2}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #3}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #4}\smallskip}
-\renewcommand{\itemxxxxx}[5]{\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #1}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #2}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #3}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #4}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #5}\smallskip}
-\renewcommand{\itemxox}[2]{\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{\remainxox}{\bidi@raggedright #1}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.3333\remainxxx}{\bidi@raggedright #2}\smallskip}
-\renewcommand{\itemxxo}[2]{\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.3333\remainxxx}{\bidi@raggedright #1}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{\remainxox}{\bidi@raggedright #2}\smallskip}
-\renewcommand{\itemxoxx}[3]{\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{\remainxoxx}{\bidi@raggedright #1}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #2}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #3}\smallskip}
-\renewcommand{\itemxxox}[3]{\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{.25\remainxxxx}{\bidi@raggedright #1}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{\remainxoxx}{\bidi@raggedright #2}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #3}\smallskip}
-\renewcommand{\itemxxxo}[3]{\parbox[t]%
-{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{.25\remainxxxx}{\bidi@raggedright #1}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{.25\remainxxxx}{\bidi@raggedright #2}\hfill%
-\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
-\parbox[t]{\remainxoxx}{\bidi@raggedright #3}\smallskip}
-\endinput
-%%
-%% End of file `multienum-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/natbib-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/natbib-xetex-bidi.def
deleted file mode 100644
index bf6bdc210ca..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/natbib-xetex-bidi.def
+++ /dev/null
@@ -1,66 +0,0 @@
-%%
-%% This is file `natbib-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,natbib-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{natbib-xetex-bidi.def}[2011/06/04 v0.1 bidi adaptations for natbib package for XeTeX engine]
-\renewenvironment{thebibliography}[1]{%
- \bibsection
- \parindent\z@
- \bibpreamble
- \bibfont
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\the\c@NAT@ctr}}{\@bibsetup{#1}\global\c@NAT@ctr\z@}%
- \ifNAT@openbib
- \renewcommand\newblock{\par}%
- \else
- \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
- \fi
- \sloppy\clubpenalty4000\widowpenalty4000
- \sfcode`\.\@m
- \let\NAT@bibitem@first@sw\@firstoftwo
- \let\citeN\cite \let\shortcite\cite
- \let\citeasnoun\cite
-}{%
- \bibitem@fin
- \bibpostamble
- \def\@noitemerr{%
- \PackageWarning{natbib}{Empty `thebibliography' environment}%
- }%
- \endlist
- \bibcleanup
-}%
-\endinput
-%%
-%% End of file `natbib-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/newfloat-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/newfloat-xetex-bidi.def
deleted file mode 100644
index 0a919ce6427..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/newfloat-xetex-bidi.def
+++ /dev/null
@@ -1,77 +0,0 @@
-%%
-%% This is file `newfloat-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,newfloat-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{newfloat-xetex-bidi.def}[2013/05/22 v0.1 bidi adaptations for newfloat package for XeTeX engine]
-\renewcommand*\newfloat@setwithin[2]{%
- \ifcsname c@chapter\endcsname
- \@removefromreset{#1}{chapter}%
- \fi
- \@removefromreset{#1}{section}%
- \edef\@tempa{#2}%
- \ifx\@tempa\@empty
- \def\@tempa{none}%
- \fi
- \def\@tempb{none}%
- \ifx\@tempa\@tempb
- \ifcsname c@chapter\endcsname
- \@chapterlistsgap@off{#1}%
- \fi
- \newfloat@@setwithin{#1}{}{}%
- \else
- \def\@tempb{chapter}%
- \ifx\@tempa\@tempb
- \@addtoreset{#1}{chapter}%
- \@chapterlistsgap@on{#1}%
- \newfloat@@setwithin{#1}{\ifnum\c@chapter>\z@ \thechapter\@SepMark\fi}{\theHchapter\@SepMark}%
- \else
- \def\@tempb{section}%
- \ifx\@tempa\@tempb
- \@addtoreset{#1}{section}%
- \ifcsname c@chapter\endcsname
- \@addtoreset{#1}{chapter}%
- \@chapterlistsgap@on{#1}%
- \newfloat@@setwithin{#1}{\thesection\@SepMark}{\theHsection\@SepMark}%
- \else
- \newfloat@@setwithin{#1}{\ifnum\c@section>\z@ \thesection\@SepMark\fi}{\theHsection\@SepMark}%
- \fi
- \else
- \newfloat@Error{Invalid value `#2' for option `within'}%
- \fi
- \fi
- \fi}
-\endinput
-%%
-%% End of file `newfloat-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/ntheorem-hyper-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/ntheorem-hyper-xetex-bidi.def
deleted file mode 100644
index 47ba92aabdb..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/ntheorem-hyper-xetex-bidi.def
+++ /dev/null
@@ -1,59 +0,0 @@
-%%
-%% This is file `ntheorem-hyper-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,ntheorem-hyper-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{ntheorem-hyper-xetex-bidi.def}[2012/05/01 v0.1 bidi adaptations for ntheorem-hyper package for XeTeX engine]
-\gdef\@thm#1#2#3{%
- \if@thmmarks
- \stepcounter{end\InTheoType ctr}%
- \fi
- \renewcommand{\InTheoType}{#1}%
- \if@thmmarks
- \stepcounter{curr#1ctr}%
- \setcounter{end#1ctr}{0}%
- \fi
- \refstepcounter{#2}%
- \thm@topsepadd \theorempostskipamount % cf. latex.ltx: \@trivlist
- \ifvmode \advance\thm@topsepadd\partopsep\fi
- \trivlist
- \@topsep \theorempreskipamount
- \@topsepadd \thm@topsepadd % used by \@endparenv
- \advance\linewidth -\theorem@indent
- \advance\@totalleftmargin \theorem@indent
- \if@RTL\parshape \@ne 0pt \linewidth\else \parshape \@ne \@totalleftmargin \linewidth\fi
- \@ifnextchar[{\@ythm{#1}{#2}{#3}}{\@xthm{#1}{#2}{#3}}}
-\endinput
-%%
-%% End of file `ntheorem-hyper-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/ntheorem-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/ntheorem-xetex-bidi.def
deleted file mode 100644
index a85e50c2083..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/ntheorem-xetex-bidi.def
+++ /dev/null
@@ -1,60 +0,0 @@
-%%
-%% This is file `ntheorem-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,ntheorem-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{ntheorem-xetex-bidi.def}[2012/05/01 v0.1 bidi adaptations for ntheorem package for XeTeX engine]
-\gdef\@thm#1#2#3{%
- \if@thmmarks
- \stepcounter{end\InTheoType ctr}%
- \fi
- \renewcommand{\InTheoType}{#1}%
- \if@thmmarks
- \stepcounter{curr#1ctr}%
- \setcounter{end#1ctr}{0}%
- \fi
- \refstepcounter{#2}%
- \theorem@prework
- \thm@topsepadd \theorempostskipamount % cf. latex.ltx: \@trivlist
- \ifvmode \advance\thm@topsepadd\partopsep\fi
- \trivlist
- \@topsep \theorempreskipamount
- \@topsepadd \thm@topsepadd % used by \@endparenv
- \advance\linewidth -\theorem@indent
- \advance\@totalleftmargin \theorem@indent
- \if@RTL\parshape \@ne 0pt \linewidth\else \parshape \@ne \@totalleftmargin \linewidth\fi
- \@ifnextchar[{\@ythm{#1}{#2}{#3}}{\@xthm{#1}{#2}{#3}}}
-\endinput
-%%
-%% End of file `ntheorem-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/overpic-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/overpic-xetex-bidi.def
deleted file mode 100644
index 8e8c317ec16..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/overpic-xetex-bidi.def
+++ /dev/null
@@ -1,71 +0,0 @@
-%%
-%% This is file `overpic-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,overpic-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{overpic-xetex-bidi.def}[2015/12/07 v0.1 bidi adaptations for overpic package for XeTeX engine]
-\renewenvironment{overpic}[2][]{%
- \sbox{\z@}{\includegraphics[#1]{#2}}%
- \settodepth{\@tempcnta}{\usebox{\z@}}%
- \settoheight{\@tempcntb}{\usebox{\z@}}%
- \advance\@tempcntb\@tempcnta%
- \settowidth{\@tempcnta}{\usebox{\z@}}%
- \setlength{\@tempdima}{\unitlength}%
- \count@=\z@\Gin@gridfalse\setkeys{Gin}{#1}%
- \OVP@calc%
- \begin{picture}(\@tempcnta,\@tempcntb)%
- \if@RTL\else\put(0,0){\makebox(0,0)[bl]{\usebox{\z@}}}%
- \ifGin@grid%
- \put(0,0){\normalfont\fontsize\@viipt\@viiipt\selectfont%
- \grid(\@tempcnta,\@tempcntb)(\count@,\count@)[0,0]}%
- \fi\fi%
- % reset the graphics parameter
- \let\Gin@outer@scalex\relax
- \let\Gin@outer@scaley\relax
- \let\Gin@angle\relax
- \let\Gin@ewidth\Gin@exclamation
- \let\Gin@eheight\Gin@ewidth
- \def\Gin@scalex{1}
- \let\Gin@scaley\Gin@exclamation
-}{%
- \if@RTL\ifGin@grid%
- \put(0,0){\normalfont\fontsize\@viipt\@viiipt\selectfont%
- \grid(\@tempcnta,\@tempcntb)(\count@,\count@)[0,0]}%
- \fi%
- \put(0,0){\makebox(0,0)[bl]{\usebox{\z@}}}\fi%
- \end{picture}%
-}%
-\endinput
-%%
-%% End of file `overpic-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def
deleted file mode 100644
index 6bed51cef82..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def
+++ /dev/null
@@ -1,87 +0,0 @@
-%%
-%% This is file `pdfpages-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,pdfpages-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{pdfpages-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for pdfpages package for XeTeX engine]
-\renewcommand*{\includepdf}[2][]{%
- \begingroup
- \@RTLfalse
- \let\AM@threadname\relax
- \AM@split@options{pdfpages}{#1}%
- \edef\AM@temp{{pdfpages}{\the\@temptokena}}%
- \expandafter\setkeys\AM@temp
- \ifthenelse{\boolean{AM@pkg@draft} \and \boolean{AM@survey}}{%
- \let\AM@currentdocname\relax
- \renewcommand\includegraphics[2][]{Survey in draft-mode}%
- \def\AM@pagecount{0}%
- }{%
- \AM@findfile{#2}%
- \if\AM@threadname\relax
- \def\AM@threadname{\AM@currentdocname}%
- \fi
- }%
- \ifAM@survey
- \def\AM@pagestemp{}%
- \@tempcnta=0
- \def\foo{%
- \@ifundefined{r@\AM@xrprefix pdfpages@page\the\@tempcnta}%
- {\let\foo\relax}
- {\expandafter\ifx\expandafter\\\AM@pagestemp\\
- \edef\AM@pagestemp{%
- \AM@pageref{\AM@xrprefix pdfpages@page\the\@tempcnta}}%
- \else
- \edef\AM@pagestemp{\AM@pagestemp,%
- \AM@pageref{\AM@xrprefix pdfpages@page\the\@tempcnta}}%
- \fi
- \advance\@tempcnta 1\relax
- }%
- \foo
- }%
- \foo
- \expandafter\ifx\expandafter\\\AM@pagestemp\\
- \def\AM@pagestemp{1}%
- \fi
- \fi
- \ifAM@output
- \expandafter\AM@readlist\expandafter{\AM@pagestemp}%
- \AM@output{#1}%
- \fi
- \AM@CheckAtEnd
- \endgroup
- \AM@ClearShipoutPicture
-}
-\endinput
-%%
-%% End of file `pdfpages-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/pgfcorescopes.code-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/pgfcorescopes.code-xetex-bidi.def
deleted file mode 100644
index 00c1527b4a5..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/pgfcorescopes.code-xetex-bidi.def
+++ /dev/null
@@ -1,103 +0,0 @@
-%%
-%% This is file `pgfcorescopes.code-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,pgfcorescopes.code-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{pgfcorescopes.code-xetex-bidi.def}[2015/11/14 v0.1 bidi adaptations for pgf package for XeTeX engine]
-\def\pgfpicture{%
- \begingroup%
- \ifmmode\else\@RTLfalse\beginL\fi%
- \pgfpicturetrue%
- \global\advance\pgf@picture@serial@count by1\relax%
- \edef\pgfpictureid{pgfid\the\pgf@picture@serial@count}%
- \let\pgf@nodecallback=\pgfutil@gobble%
- \pgf@picmaxx=-16000pt\relax%
- \pgf@picminx=16000pt\relax%
- \pgf@picmaxy=-16000pt\relax%
- \pgf@picminy=16000pt\relax%
- \pgf@relevantforpicturesizetrue%
- \pgf@resetpathsizes%
- \pgfutil@ifnextchar\bgroup\pgf@oldpicture\pgf@picture}
-\def\endpgfpicture{%
- \ifpgfrememberpicturepositiononpage%
- \hbox to0pt{\pgfsys@markposition{\pgfpictureid}}%
- \fi%
- % ok, now let's position the box
- \ifdim\pgf@picmaxx=-16000pt\relax%
- % empty picture. make size 0.
- \global\pgf@picmaxx=0pt\relax%
- \global\pgf@picminx=0pt\relax%
- \global\pgf@picmaxy=0pt\relax%
- \global\pgf@picminy=0pt\relax%
- \fi%
- % Shift baseline outside:
- \pgf@relevantforpicturesizefalse%
- \pgf@process{\pgf@baseline}%
- \xdef\pgf@shift@baseline{\the\pgf@y}%
- %
- \pgf@process{\pgf@trimleft}%
- \global\advance\pgf@x by-\pgf@picminx
- % prepare \hskip\pgf@trimleft@final.
- % note that \pgf@trimleft@final is also queried
- % by the pgf image externalization.
- \xdef\pgf@trimleft@final{-\the\pgf@x}%
- %
- \pgf@process{\pgf@trimright}%
- \global\advance\pgf@x by-\pgf@picmaxx
- % prepare \hskip\pgf@trimright@final.
- % note that \pgf@trimright@final is also queried
- % by the pgf image externalization.
- \xdef\pgf@trimright@final{\the\pgf@x}%
- %
- \pgf@remember@layerlist@globally
- \endgroup%
- \hss%
- \egroup%
- \pgf@restore@layerlist@from@global
- \pgf@insertlayers%
- \endgroup%
- \pgfsys@discardpath%
- \endgroup%
- \pgfsys@endscope%
- \pgfsys@endpicture%
- \endgroup%
- \hss
- \egroup%
- \pgfsys@typesetpicturebox\pgfpic%
- \ifmmode\else\endL\fi%
- \endgroup%
-}
-\endinput
-%%
-%% End of file `pgfcorescopes.code-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/picinpar-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/picinpar-xetex-bidi.def
deleted file mode 100644
index 9d33c2dc019..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/picinpar-xetex-bidi.def
+++ /dev/null
@@ -1,145 +0,0 @@
-%%
-%% This is file `picinpar-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,picinpar-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{picinpar-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for picinpar package for XeTeX engine]
-\long\def\@makewincaption#1#2{%
- \setbox\@tempboxa\hbox{\footnotesize{\bf #1:\enspace}{#2}}%
- \ifdim\wd\@tempboxa>\picwd
- {\footnotesize{\bf #1:\enspace}{#2\par}}
- \else
- \hbox to\picwd{\if@RTL\beginR\fi\hfil\box\@tempboxa\hfil\if@RTL\endR\fi}
- \fi}
-\def\endwindow{%
- \global\tcd=\tcdsav
- \egroup\vskip\parskip\parshape=0 % reset parshape; end \box\rawtext
- \vbadness=10000
- \splittopskip=0pt
-\ifnum\tcd>0\setbox\holder=\vsplit\rawtext to \tcd\baselineskip
-\tcn=\tcd
-\loop\advance\tcn -1
-\setbox\fslice=\vsplit\holder to\baselineskip
-\prune\fslice\linewidth
-\topheight=0pt
-\ifnum\dp\fslice>\dp\wstrutbox
- \advance\topheight-\dp\fslice
- \advance\topheight\dp\wstrutbox
- \advance\topheight\ilg\fi
-\hbox to\linewidth{\box\fslice}
-\vskip-\topheight
-\ifdim\ht\holder>0pt\repeat
-\fi
-\global\topheight=\tcl\baselineskip
-\ifnum\cumpartcl>0\global\tcl=\cumtcl
- \global\topheight=\vpic
-\fi
-\ifnum\bl>0 \ifnum\br>0 \multiply\topheight by 2\fi\fi
-\ifnum\bl>0\setbox\holder=\vsplit\rawtext to\topheight
-\else\ifnum\br>0\setbox\holder=\vsplit\rawtext to\topheight\fi\fi
-\tcn=\tcl \na=0 \nb=0
-\ifnum\bl>0 \ifnum\br>0 \multiply\tcn by 2\fi\fi
-\ifnum\bl>0\na=\tcn\ifnum\br>0\divide\na by 2\fi\fi
-\ifnum\br>0\nb=\tcn\ifnum\bl>0\divide\nb by 2\fi\fi
-\ifnum\na=0\ifnum\nb=0
- \setbox\waslice=\vbox to\vpic{\vss}
- \setbox\wbslice=\vbox to\vpic{\vss}
- \bl=1\br=1
- \vskip\ilg
-\fi\fi
-\ifnum\na>0 \ifnum\nb>0
-\loop\advance\nb -1
-\advance\na -1
-\if@RTL%
-\setbox\bslice=\vsplit\holder to\baselineskip
-\prune\bslice\rtside
-\setbox\wbslice=\vbox{\unvbox\wbslice\hbox
-to\rtside{\box\bslice\hfil}}
-\setbox\aslice=\vsplit\holder to\baselineskip
-\prune\aslice\lftside
-\setbox\waslice=\vbox{\unvbox\waslice\hbox
-to\lftside{\box\aslice\hfil}}
-\else%
-\setbox\aslice=\vsplit\holder to\baselineskip
-\prune\aslice\lftside
-\setbox\waslice=\vbox{\unvbox\waslice\hbox
-to\lftside{\box\aslice\hfil}}
-\setbox\bslice=\vsplit\holder to\baselineskip
-\prune\bslice\rtside
-\setbox\wbslice=\vbox{\unvbox\wbslice\hbox
-to\rtside{\box\bslice\hfil}}
-\fi%
-\ifnum\nb>0\repeat
-\fi\fi
-\ifnum\na>0
- \loop\advance\na -1
- \setbox\aslice=\vsplit\holder to\baselineskip
- \prune\aslice\lftside
- \setbox\waslice=\vbox{\unvbox\waslice\hbox
- to\lftside{\box\aslice\hfil}}
- \ifdim\ht\holder>0pt\repeat
-\fi
-\ifnum\nb>0
- \loop\advance\nb -1
- \setbox\bslice=\vsplit\holder to\baselineskip
- \prune\bslice\rtside
- \setbox\wbslice=\vbox{\unvbox\wbslice\hbox
- to\rtside{\box\bslice\hfil}}
- \ifdim\ht\holder>0pt\repeat
-\fi
-\ifnum\bl=0\topheight=\ht\wbslice
-\else\ifnum\br=0\topheight=\ht\waslice
- \else\ifdim\ht\waslice>\ht\wbslice\topheight=\ht\waslice
- \else\topheight=\ht\wbslice\fi\fi\fi
-\ifnum\bl>0 \ifnum\br>0 \ifdim\ht\wbslice<\topheight
-\setbox\wbslice=\vbox to\topheight{\box\wbslice\vfill}
-\fi\fi\fi
-\setbox\windowbox=\vbox{\hbox to\linewidth{%
-\ifnum\bl>0\box\waslice\hfill\fi%
-\vbox to\topheight{\hrule width\picwd height0pt depth0pt\vskip0pt%
-\vfill\unvbox\picbox%
-\ifnum\picwd>0\vfill\fi%
-\vss}\ifnum\br>0\hfill\vbox{\box\wbslice}\fi}}%
-\unvbox\windowbox%
-\loop
- \setbox\bslice=\vsplit\rawtext to\baselineskip
- \prune\bslice\linewidth
- \setbox\wbslice=\vbox{\hbox to\linewidth{\box\bslice\hfil}}
- \unvbox\wbslice
- \ifdim\ht\rawtext>0pt
-\repeat
-}% FINITO
-\endinput
-%%
-%% End of file `picinpar-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/plain-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/plain-xetex-bidi.def
deleted file mode 100644
index b673203485c..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/plain-xetex-bidi.def
+++ /dev/null
@@ -1,125 +0,0 @@
-%%
-%% This is file `plain-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,plain-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\def\TeXXeTOn{\TeXXeTstate=1 }
-\def\TeXXeTOff{\TeXXeTstate=0 }
-\TeXXeTOn
-\def\usebox#1{\leavevmode\copy #1\relax}
-\def\bidi@RTL@everypar{{\setbox\z@\lastbox\if@RTL\beginR\else\beginL\fi\ifvoid\z@\else\usebox\z@\fi}}
- \let\bidi@o@everypar=\everypar
- \newtoks\bidi@n@everypar
- \bidi@n@everypar\expandafter{\the\bidi@o@everypar}
- \bidi@o@everypar{\bidi@RTL@everypar\the\bidi@n@everypar}
- \let\everypar=\bidi@n@everypar
-\def\moreLRE{\bracetext \aftergroup\endL \beginL\@RTLfalse}
-\def\moreRLE{\bracetext \aftergroup\endR \beginR\@RTLtrue}
-\protected\def\hboxR{\hbox\bgroup
- \everyhbox{%
- \aftergroup\egroup
- \everyhbox{}%
- \beginR
- \bgroup
- \aftergroup\endR
- \aftergroup\egroup
- }\hbox}
-\protected\def\hboxL{\hbox\bgroup
- \everyhbox{%
- \aftergroup\egroup
- \everyhbox{}%
- \beginL
- \bgroup
- \aftergroup\endL
- \aftergroup\egroup
- }\hbox}
-\protected\def\vboxR{\vbox\bgroup
- \everyvbox{%
- \aftergroup\egroup
- \everyvbox{}%
- \@RTLtrue
- \bgroup
- \aftergroup\egroup
- }\vbox}
-\protected\def\vboxL{\vbox\bgroup
- \everyvbox{%
- \aftergroup\egroup
- \everyvbox{}%
- \@RTLfalse
- \bgroup
- \aftergroup\egroup
- }\vbox}
-\def\LTR{\par\@RTLfalse\@RTL@footnotefalse\hsize\linewidth\parshape\z@}
-\def\endLTR{\par}
-\def\RTL{\par\@RTLtrue\@RTL@footnotetrue\hsize\linewidth\parshape\z@}
-\def\endRTL{\par}
-\def\setRTL{\@RTLtrue\@RTL@footnotetrue}
-\def\setLTR{\@RTLfalse\@RTL@footnotefalse}
-\let\unsetRTL=\setLTR
-\let\unsetLTR=\setRTL
-\let\LR=\LRE
-\let\RL=\RLE
-\def\@ensure@RTL#1{\if@RTL#1\else\RLE{#1}\fi}
-\def\@ensure@LTR#1{\if@RTL\LRE{#1}\else#1\fi}
-\let\@ensure@RL=\@ensure@RTL
-\let\@ensure@LR=\@ensure@LTR
-\def\@ensure@dir#1{\if@RTL\RLE{#1}\else{#1}\fi}
-\let\@ensure@maindir=\@ensure@dir
-\def\@@RTL{RTL}
-\def\@@LTR{LTR}
-\def\save@dir{\if@RTL\gdef\saved@@dir{RTL}\else\gdef\saved@@dir{LTR}\fi}
-\def\reset@dir{\ifx\saved@@dir\@@RTL\setRTL\else\ifx\saved@@dir\@@LTR\setLTR\else\relax\fi\fi}
-\let\@@TeX\TeX
-\def\TeX{\@ensure@LTR{\@@TeX}}
-\long\def\bidi@reflect@box#1{%
- \leavevmode
- \setbox\z@\hbox{{#1}}%
- \setbox\tw@\hbox{\special{x:gsave}\special{x:scale -1 1}\rlap{\copy\z@}\special{x:grestore}}%
- \hbox to \wd\z@{\kern\wd\z@\box\tw@\hss}%
-}
-\def\XeTeX{\LR{\leavevmode$\smash{\hbox{X\lower.5ex
- \hbox{\kern-.125em\bidi@reflect@box{E}}\kern-.1667em \TeX}}$}}
-\let\setRL=\setRTL
-\let\setLR=\setLTR
-\let\unsetRL=\setLTR
-\let\bidi@saved@eqno=\eqno
-\let\bidi@saved@leqno=\leqno
-\def\eqno{\ifnum\predisplaydirection<\z@ \bidi@saved@leqno \else \bidi@saved@eqno \fi}
-\def\leqno{\ifnum\predisplaydirection<\z@ \bidi@saved@eqno \else \bidi@saved@leqno \fi}
-\def\centerline#1{\line{\hss\if@RTL\beginR\fi#1\if@RTL\endR\fi\hss}}
-\def\leftline#1{\line{\if@RTL\beginR\fi#1\if@RTL\endR\fi\hss}}
-\def\rightline#1{\line{\hss\if@RTL\beginR\fi#1\if@RTL\endR\fi}}
-\endinput
-%%
-%% End of file `plain-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def
deleted file mode 100644
index 62ff0549a0c..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def
+++ /dev/null
@@ -1,71 +0,0 @@
-%%
-%% This is file `pstricks-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,pstricks-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{pstricks-xetex-bidi.def}[2015/11/18 v0.5 bidi adaptations for pstricks package for XeTeX engine]
-\def\pspicture{\begingroup\ifmmode\else\@RTLfalse\beginL\fi\pst@ifstar\pst@picture}
-\def\endpspicture{%
- \ifshowgrid\ifnum\showgridp@s>0
- \psgrid[xunit=\sh@wgridXunit,yunit=\sh@wgridYunit,style=gridstyle]\fi\fi%
- \pst@killglue
- \endgroup
- \egroup
- \ifdim\wd\pst@hbox=\z@\else
- %\@pstrickserr{Extraneous space in the pspicture environment}%
- %{Type \space <return> \space to proceed.}%
- \fi
- \ht\pst@hbox=\pst@dimd
- \dp\pst@hbox=-\pst@dimb
- \setbox\pst@hbox=\hbox{%
- \kern-\pst@dima
- \ifPst@shift@star%\typeout{==pstricks== old behaviour of the shift option}% shift=*
- \advance\pst@dimd-\pst@dimb
- \pst@dimd=0.5\pst@dimd
- \else\pst@dimd-\pst@shift\fi
- \advance\pst@dimd\pst@dimb
- \lower\pst@dimd
- \box\pst@hbox
- \kern\pst@dimc}%
- \if@star\setbox\pst@hbox=\hbox{\clipbox@@\z@}\fi
- \leavevmode\ifdim\overfullrule=\z@\box\pst@hbox\else
- \fboxsep=0pt
- \fbox{\rule[-\pst@shift]{0pt}{\ht\pst@hbox}\rule{\wd\pst@hbox}{0pt}}\fi
- \ifmmode\else\endL\fi
- \endgroup%
- \psset[pstricks]{shift=0}% reset value
-}
-\endinput
-%%
-%% End of file `pstricks-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/quotchap-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/quotchap-xetex-bidi.def
deleted file mode 100644
index 78437e8bb6a..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/quotchap-xetex-bidi.def
+++ /dev/null
@@ -1,55 +0,0 @@
-%%
-%% This is file `quotchap-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,quotchap-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{quotchap-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for quotchap package for XeTeX engine]
-\renewcommand{\qauthor}[1]{%
- \par\smallskip
- {\if@RTL\raggedright\else\raggedleft\fi\upshape #1\qquad\hbox{}\par}\bigskip}
-\renewcommand{\@makechapterhead}[1]{\chapterheadstartvskip%
- {\size@chapter{\sectfont\if@RTL\raggedright\else\raggedleft\fi
- {\chapnumfont
- \ifnum \c@secnumdepth >\m@ne%
- \if@mainmatter\thechapter%
- \fi\fi
- \par\nobreak}%
- {\if@RTL\raggedright\else\raggedleft\fi\advance\if@RTL\rightmargin\else\leftmargin\fi10em\interlinepenalty\@M #1\par}}
- \nobreak\chapterheadendvskip}}
-\renewcommand*{\@iprintcites}{%
- \vbox to\z@{\leavevmode\copy\@quotebox\vss}
- \global\let\@printcites\relax}
-\endinput
-%%
-%% End of file `quotchap-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/ragged2e-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/ragged2e-xetex-bidi.def
deleted file mode 100644
index 5b84ad21112..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/ragged2e-xetex-bidi.def
+++ /dev/null
@@ -1,125 +0,0 @@
-%%
-%% This is file `ragged2e-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,ragged2e-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{ragged2e-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for ragged2e package for XeTeX engine]
-\renewcommand{\Centering}{%
- \ifx\\\@raggedtwoe@savedcr
- \let\\\@centercr
- \fi
- \let\@gnewline\@raggedtwoe@gnewline
- \if@RTL\rightskip\else\leftskip\fi\CenteringLeftskip
- \@rightskip\CenteringRightskip
- \if@RTL\leftskip\else\rightskip\fi\@rightskip
- \parfillskip\CenteringParfillskip
- \parindent\CenteringParindent
- \@raggedtwoe@spaceskiptrue
- \@raggedtwoe@everyselectfont
- }
-\renewcommand{\RaggedLeft}{%
- \ifx\\\@raggedtwoe@savedcr
- \let\\\@centercr
- \fi
- \let\@gnewline\@raggedtwoe@gnewline
- \if@RTL\rightskip\else\leftskip\fi\RaggedLeftLeftskip
- \@rightskip\RaggedLeftRightskip
- \if@RTL\leftskip\else\rightskip\fi\@rightskip
- \parfillskip\RaggedLeftParfillskip
- \parindent\RaggedLeftParindent
- \@raggedtwoe@spaceskiptrue
- \@raggedtwoe@everyselectfont
- }
-\renewcommand{\RaggedRight}{%
- \ifx\\\@raggedtwoe@savedcr
- \let\\\@centercr
- \fi
- \let\@gnewline\@raggedtwoe@gnewline
- \if@RTL\rightskip\else\leftskip\fi\RaggedRightLeftskip
- \@rightskip\RaggedRightRightskip
- \if@RTL\leftskip\else\rightskip\fi\@rightskip
- \parfillskip\RaggedRightParfillskip
- \parindent\RaggedRightParindent
- \@raggedtwoe@spaceskiptrue
- \@raggedtwoe@everyselectfont
- }
-\renewcommand{\justifying}{%
- \let\\\@raggedtwoe@savedcr
- \let\@gnewline\@raggedtwoe@saved@gnewline
- \if@RTL\rightskip\else\leftskip\fi\z@
- \@rightskip\z@
- \if@RTL\leftskip\else\rightskip\fi\@rightskip
- \parfillskip\JustifyingParfillskip
- \parindent\JustifyingParindent
- \@raggedtwoe@spaceskipfalse
- \@raggedtwoe@everyselectfont
- }
-\renewcommand*{\@raggedtwoe@raggedrightboxes@opt}{
- \CheckCommand*{\@arrayparboxrestore}{%
- \let\if@nobreak\iffalse
- \let\if@noskipsec\iffalse
- \let\par\@@par
- \let\-\@dischyph
- \let\'\@acci\let\`\@accii\let\=\@acciii
- \parindent\z@ \parskip\z@skip
- \everypar{}%
- \linewidth\hsize
- \@totalleftmargin\z@
- \if@RTL\rightskip\else\leftskip\fi\z@skip \if@RTL\leftskip\else\rightskip\fi\z@skip \@rightskip\z@skip
- \parfillskip\@flushglue \lineskip\normallineskip
- \baselineskip\normalbaselineskip
- \sloppy}%
- \renewcommand{\@arrayparboxrestore}{%
- \let\if@nobreak\iffalse
- \let\if@noskipsec\iffalse
- \let\par\@@par
- \let\-\@dischyph
- \let\'\@acci\let\`\@accii\let\=\@acciii
- \parskip\z@skip
- \everypar{}%
- \linewidth\hsize
- \@totalleftmargin\z@
- \RaggedRight
- \lineskip\normallineskip
- \baselineskip\normalbaselineskip
- \sloppy}%
- \let\@raggedtwoe@raggedrightboxes@opt\relax
- }
-\let\origin@RaggedLeft=\RaggedLeft
-\let\origin@RaggedRight=\RaggedRight
-\def\RaggedLeft{\if@RTL\origin@RaggedRight\else\origin@RaggedLeft\fi}
-\def\RaggedRight{\if@RTL\origin@RaggedLeft\else\origin@RaggedRight\fi}
-\endinput
-%%
-%% End of file `ragged2e-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/rapport1-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/rapport1-xetex-bidi.def
deleted file mode 100644
index a2e530cf1ab..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/rapport1-xetex-bidi.def
+++ /dev/null
@@ -1,293 +0,0 @@
-%%
-%% This is file `rapport1-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,rapport1-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{rapport1-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for rapport1 class for XeTeX engine]
-\renewenvironment{theindex}{%
- \if@twocolumn
- \@restonecolfalse
- \else
- \@restonecoltrue
- \fi
- \columnseprule \z@
- \columnsep 35\p@
- \twocolumn[\@makeschapterhead{\indexname}]%
- \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
- \thispagestyle{plain}\parindent\z@
- \parskip\z@ \@plus .3\p@\relax
- \let\item\@idxitem
- }{%
- \if@restonecol\onecolumn\else\clearpage\fi}
-\renewcommand*\head@style{%
- \interlinepenalty \@M
- \hyphenpenalty=\@M \exhyphenpenalty=\@M
- \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
-\if@titlepage
- \renewenvironment{abstract}{%
- \titlepage
- \null\vfil
- \section*{\SectFont\abstractname}%
- \noindent\ignorespaces}
- {\par\vfil\null\endtitlepage}
-\else
- \renewenvironment{abstract}{%
- \if@twocolumn
- \section*{\abstractname}%
- \else
- \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
- \section*{\small\SectFont\abstractname}%
- \noindent\ignorespaces
- \fi}
- {\if@twocolumn\else\par\egroup\fi}
-\fi
-\renewcommand*\@regtocline[3]{%
- \ifnum #1>\c@tocdepth
- \else
- \vskip\z@\@plus.2\p@
- {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
- \if@RTL\rightskip\else\leftskip\fi\unitindent
- \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
- \parfillskip\z@
- \@tempdima\unitindent
- \parindent\z@
- \leavevmode
- \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
- \hskip 1em \nobreak{\slshape #3}\par
- }%
- \fi}
-\if@oldtoc
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \begingroup
- \setlength\@tempdima{3em}%
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \endgroup
- \fi}
-\else
- \renewcommand*\l@part{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus \p@}%
- \@regtocline{0}%
- \fi}
-\fi
-\if@oldtoc
-\renewcommand*\l@chapter[2]{%
- \addpenalty{-\@highpenalty}%
- \vskip 1.0em \@plus\p@
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \penalty\@highpenalty
- \endgroup}
-\else
- \renewcommand*\l@chapter{\@regtocline{0}}
-\fi
-\renewcommand*\left@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hrule\@width\unitindent
- \kern.4\baselineskip
-}
-\renewcommand*\right@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
- \kern.4\baselineskip}
-\renewenvironment{thebibliography}[1]
- {\chapter*{\bibname}%
- \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
- \sloppy\clubpenalty4000\widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
-\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
-\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
-\renewcommand*\theequation{%
- \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
-\renewcommand*\thefigure{%
- \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
-\renewcommand*\thetable{%
- \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
-\if@titlepage
-\renewcommand*\TitleFont{\rmfamily}
-\renewcommand*\maketitle{%
- \begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \long\def\@makefntext##1{\parindent\z@
- \def\labelitemi{\textendash}\@revlabeltrue
- \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \if@compatibility\setcounter{page}{0}\fi
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- \TitleFont
- {\LARGE \def\\{\penalty -\@M}
- \if@allcaps
- \expandafter\uc@nothanks\@title\thanks\relax
- \else
- \@title
- \fi\par}%
- \vskip 3em%
- {\large
- \lineskip .75em \parindent\z@
- \begin{tabular}[t]{c}%
- \if@allcaps
- \expandafter\uc@authornothanks\@author\and\relax
- \else
- \@author
- \fi
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large
- \if@allcaps
- \uppercase\expandafter{\@date}%
- \else
- \@date
- \fi\par}%
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
-\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
- \futurelet\@tempa\uc@ax}
-\def\uc@ax{%
- \ifx\@tempa\relax
- \else
- \\ \andname \\ \expandafter\uc@authornothanks
- \fi}
-\def\uc@tx{\ifx\@tempa\relax
- \else \expandafter\uc@ty \fi}
-\def\uc@ty#1{\thanks{#1}\uc@nothanks}
-\else
-\renewcommand*\maketitle{\par
- \begingroup
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark{\rlap{%
- \@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext{\@xmakefntext{%
- \@textsuperscript{\normalfont\@thefnmark}}}%
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@
- \@maketitle
- \fi
- \thispagestyle{plain}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
- }
-\def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
- \begin{center}%
- \let \footnote \thanks
- {\LARGE \TitleFont \@title \par}%
- \vskip 1.5em%
- {\large \TitleFont
- \lineskip .5em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1em%
- {\large \TitleFont \@date}%
- \end{center}%
- \par
- \vskip 1.5em}
-\fi
-\endinput
-%%
-%% End of file `rapport1-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/rapport3-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/rapport3-xetex-bidi.def
deleted file mode 100644
index f7b8fea1e06..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/rapport3-xetex-bidi.def
+++ /dev/null
@@ -1,315 +0,0 @@
-%%
-%% This is file `rapport3-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,rapport3-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{rapport3-xetex-bidi.def}[2015/11/14 v0.5 bidi adaptations for rapport3 class for XeTeX engine]
-\renewenvironment{theindex}{%
- \if@twocolumn
- \@restonecolfalse
- \else
- \@restonecoltrue
- \fi
- \columnseprule \z@
- \columnsep 35\p@
- \twocolumn[\@makeschapterhead{\indexname}]%
- \@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
- \thispagestyle{plain}\parindent\z@
- \parskip\z@ \@plus .3\p@\relax
- \let\item\@idxitem
- }{%
- \if@restonecol\onecolumn\else\clearpage\fi}
-\if@titlepage
-\renewcommand*\TitleFont{\rmfamily}
-\renewcommand*\maketitle{%
- \begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \let \LTRfootnote \LTRthanks
- \let \RTLfootnote \RTLthanks
- \long\def\@makefntext##1{\parindent\z@
- \def\labelitemi{\textendash}\@revlabeltrue
- \leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \if@compatibility\setcounter{page}{0}\fi
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- \TitleFont
- {\LARGE \def\\{\penalty -\@M}
- \if@allcaps
- \expandafter\uc@nothanks\@title\thanks\relax
- \else
- \@title
- \fi\par}%
- \vskip 3em%
- {\large
- \lineskip .75em \parindent\z@
- \begin{tabular}[t]{c}%
- \if@allcaps
- \expandafter\uc@authornothanks\@author\and\relax
- \else
- \@author
- \fi
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large
- \if@allcaps
- \uppercase\expandafter{\@date}%
- \else
- \@date
- \fi\par}%
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
-\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
- \futurelet\@tempa\uc@ax}
-\def\uc@ax{%
- \ifx\@tempa\relax
- \else
- \\ \andname \\ \expandafter\uc@authornothanks
- \fi}
-\def\uc@tx{\ifx\@tempa\relax
- \else \expandafter\uc@ty \fi}
-\def\uc@ty#1{\thanks{#1}\uc@nothanks}
-\else
-\renewcommand*\maketitle{\par
- \begingroup
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark{\rlap{%
- \@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext{\@xmakefntext{%
- \@textsuperscript{\normalfont\@thefnmark}}}%
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@
- \@maketitle
- \fi
- \thispagestyle{plain}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@title\@empty
- \global\let\@date\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
- }
-\def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
-\if@titlecentered
- \begin{center}%
- \let \footnote \thanks
- \let \LTRfootnote \LTRthanks
- \let \RTLfootnote \RTLthanks
- {\LARGE \TitleFont \@title \par}%
- \vskip 1.5em%
- {\large \TitleFont
- \lineskip .5em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1em%
- {\large \TitleFont \@date}%
- \end{center}%
- \else
- {\LARGE \TitleFont \head@style \@title \par} \vskip 1.5em
- {\large \TitleFont \lineskip .5em \tabcolsep\z@
- \def\and{%%% \begin{tabular} has already started
- \end{tabular}\hskip 1em plus .17fil
- \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi}%% \end{tabular} will come
- \if@RTL\begin{tabular}[t]{r}\else\begin{tabular}[t]{l}\fi\@author\end{tabular}\par}
- \vskip 1em {\large \TitleFont \@date}
- \fi
- \par
- \vskip 1.5em}
-\fi
-\renewcommand*\@regtocline[3]{%
- \ifnum #1>\c@tocdepth
- \else
- \vskip\z@\@plus.2\p@
- {\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
- \if@RTL\rightskip\else\leftskip\fi\unitindent
- \if@RTL\leftskip\else\rightskip\fi\unitindent\@plus 1fil
- \parfillskip\z@
- \@tempdima\unitindent
- \parindent\z@
- \leavevmode
- \hbox{}\hskip -\if@RTL\rightskip\else\leftskip\fi\relax#2\nobreak
- \hskip 1em \nobreak{\slshape #3}\par
- }%
- \fi}
-\if@oldtoc
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \begingroup
- \setlength\@tempdima{3em}%
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \endgroup
- \fi}
-\else
- \renewcommand*\l@part{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus \p@}%
- \@regtocline{0}%
- \fi}
-\fi
-\if@oldtoc
-\renewcommand*\l@chapter[2]{%
- \addpenalty{-\@highpenalty}%
- \vskip 1.0em \@plus\p@
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \penalty\@highpenalty
- \endgroup}
-\else
- \renewcommand*\l@chapter{\@regtocline{0}}
-\fi
-\renewcommand*\head@style{%
- \interlinepenalty \@M
- \hyphenpenalty=\@M \exhyphenpenalty=\@M
- \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
-\if@titlepage
- \renewenvironment{abstract}{%
- \titlepage
- \null\vfil
- \section*{\SectFont\abstractname}%
- \noindent\ignorespaces}
- {\par\vfil\null\endtitlepage}
-\else
- \renewenvironment{abstract}{%
- \if@twocolumn
- \section*{\abstractname}%
- \else
- \bgroup\if@RTL\leftskip\else\rightskip\fi=\unitindent
- \section*{\small\SectFont\abstractname}%
- \noindent\ignorespaces
- \fi}
- {\if@twocolumn\else\par\egroup\fi}
-\fi
-\renewcommand*\thesection{\thechapter\@SepMark\@arabic\c@section}
-\renewcommand*\thesubsection{\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand*\thesubsubsection{\thesubsection\@SepMark\@arabic\c@subsubsection}
-\renewcommand*\theparagraph{\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand*\thesubparagraph{\theparagraph\@SepMark\@arabic\c@subparagraph}
-\renewcommand*\thefigure{%
- \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@figure}
-\renewcommand*\thetable{%
- \ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
-\renewcommand*\theequation{%
- \ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
-\renewenvironment{thebibliography}[1]
- {\chapter*{\bibname}%
- \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
- \sloppy\clubpenalty4000\widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\renewcommand*\left@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hrule\@width\unitindent
- \kern.4\baselineskip
-}
-\renewcommand*\right@footnoterule{%
- \kern-3\p@
- \kern.5\baselineskip
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\unitindent\relax \hrulefill }
- \kern.4\baselineskip}
-\renewcommand*\head@style{%
- \interlinepenalty \@M
- \hyphenpenalty=\@M \exhyphenpenalty=\@M
- \if@RTL\leftskip\else\rightskip\fi=0cm plus .7\hsize\relax}
-\endinput
-%%
-%% End of file `rapport3-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/refrep-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/refrep-xetex-bidi.def
deleted file mode 100644
index 3d9fb476fa9..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/refrep-xetex-bidi.def
+++ /dev/null
@@ -1,220 +0,0 @@
-%%
-%% This is file `refrep-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,refrep-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{refrep-xetex-bidi.def}[2015/11/14 v0.4 bidi adaptations for refrep class for XeTeX engine]
-\if@titlepage
- \renewcommand\maketitle{\begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let\footnote\thanks
- \let\LTRfootnote\LTRthanks
- \let\RTLfootnote\RTLthanks
- \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark%
- {\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext##1{%
- \@setpar{\@@par
- \@tempdima = \hsize
- \advance\@tempdima -1em
- \parshape \@ne 1em \@tempdima}%
- \par\parindent 1em \noindent
- \hb@xt@\z@{\hss\@textsuperscript{\normalfont\@thefnmark}\,}##1}
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- {\LARGE \@title \par}%
- \vskip 3em%
- {\large
- \lineskip .75em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large \@date \par}% % Set date in \large size.
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
- }
-\else
- \renewcommand\maketitle{\par
- \begingroup
- \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark%
- {\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext##1{%
- \@setpar{\@@par
- \@tempdima = \hsize
- \advance\@tempdima -1em
- \parshape \@ne 1em \@tempdima}%
- \par\parindent 1em \noindent
- \hb@xt@\z@{\hss\@textsuperscript{\normalfont\@thefnmark}\,}##1}
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@ % Prevents figures from going at top of page.
- \@maketitle
- \fi
- \thispagestyle{empty}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
- \def\@maketitle{%
- \newpage
- \null
- \longthickrule\vskip1.5em%
- \let \footnote \thanks
- \let \LTRfootnote \LTRthanks
- \let \RTLfootnote \RTLthanks
- {\secshape \parskip\z@ \parindent\z@
- \Large\bfseries \@title \par}%
- \vskip1.5em\longthickrule\vskip1.5em%
- {\normalsize
- \lineskip .5em%
- \begin{flushright}%
- {\slshape\@author\par}
- \vskip 1em%
- {\@date}%
- \end{flushright}\par}%
- \vskip 1.5em}
-\fi
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
- \nobreak
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \endgroup
- \fi}
-\renewcommand*\l@chapter[2]{%
- \ifnum \c@tocdepth >\m@ne
- \addpenalty{-\@highpenalty}%
- \vskip 1.0em \@plus\p@
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \penalty\@highpenalty
- \endgroup
- \fi}
-\renewcommand\secshape{\if@RTL\rightskip\else\leftskip\fi=-\leftmarginwidth%
- \if@RTL\leftskip\else\rightskip\fi=\@flushglue%
- \hyphenpenalty=2000}
-\renewcommand\left@footnoterule{%
- \kern-3\p@
- \hrule\@width.4\columnwidth
- \kern 2.6\p@}
-\renewcommand\right@footnoterule{%
- \kern-3\p@
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern2.6\p@}
-\renewcommand\theequation
-{\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
-\renewcommand\thefigure
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
-\renewcommand\thetable%
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
-\renewcommand\thesection {\thechapter\@SepMark\@arabic\c@section}
-\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand\thesubsubsection {\thesubsection \@SepMark\@arabic\c@subsubsection}
-\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
-\renewenvironment{thebibliography}[1]
- {\chapter*{\bibname
- \@mkboth{\bibname}{\bibname}}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy
- \clubpenalty4000
- \@clubpenalty \clubpenalty
- \widowpenalty4000%
- \sfcode`\.=\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\endinput
-%%
-%% End of file `refrep-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/report-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/report-xetex-bidi.def
deleted file mode 100644
index d9751cb84f2..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/report-xetex-bidi.def
+++ /dev/null
@@ -1,241 +0,0 @@
-%%
-%% This is file `report-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,report-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{report-xetex-bidi.def}[2015/11/14 v0.7 bidi adaptations for standard report class for XeTeX engine]
-\renewenvironment{theindex}
- {\if@twocolumn
- \@restonecolfalse
- \else
- \@restonecoltrue
- \fi
- \columnseprule \z@
- \columnsep 35\p@
- \twocolumn[\@makeschapterhead{\indexname}]%
- \@mkboth{\MakeUppercase\indexname}%
- {\MakeUppercase\indexname}%
- \thispagestyle{plain}\parindent\z@
- \parskip\z@ \@plus .3\p@\relax
- \let\item\@idxitem}
- {\if@restonecol\onecolumn\else\clearpage\fi}
- \if@titlepage
- \renewcommand\maketitle{\begin{titlepage}%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let \footnote \thanks
- \let \LTRfootnote \LTRthanks
- \let \RTLfootnote \RTLthanks
- \null\vfil
- \vskip 60\p@
- \begin{center}%
- {\LARGE \@title \par}%
- \vskip 3em%
- {\large
- \lineskip .75em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1.5em%
- {\large \@date \par}% % Set date in \large size.
- \end{center}\par
- \@thanks
- \vfil\null
- \end{titlepage}%
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\else
-\renewcommand\maketitle{\par
- \begingroup
- \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
- \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
- \long\def\@makefntext##1{\parindent 1em\noindent
- \hb@xt@1.8em{%
- \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@ % Prevents figures from going at top of page.
- \@maketitle
- \fi
- \thispagestyle{plain}\@thanks
- \endgroup
- \setcounter{footnote}{0}%
- \global\let\thanks\relax
- \global\let\LTRthanks\relax
- \global\let\RTLthanks\relax
- \global\let\maketitle\relax
- \global\let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\title\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\and\relax
-}
-\def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
- \begin{center}%
- \let \footnote \thanks
- \let \LTRfootnote \LTRthanks
- \let \RTLfootnote \RTLthanks
- {\LARGE \@title \par}%
- \vskip 1.5em%
- {\large
- \lineskip .5em%
- \begin{tabular}[t]{c}%
- \@author
- \end{tabular}\par}%
- \vskip 1em%
- {\large \@date}%
- \end{center}%
- \par
- \vskip 1.5em}
-\fi
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \setlength\@tempdima{3em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- {\leavevmode
- \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
- \nobreak
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \endgroup
- \fi}
-\renewcommand*\l@chapter[2]{%
- \ifnum \c@tocdepth >\m@ne
- \addpenalty{-\@highpenalty}%
- \vskip 1.0em \@plus\p@
- \setlength\@tempdima{1.5em}%
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode \bfseries
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
- \penalty\@highpenalty
- \endgroup
- \fi}
-\renewcommand\left@footnoterule{%
- \kern-3\p@
- \hrule\@width.4\columnwidth
- \kern2.6\p@}
-\renewcommand\right@footnoterule{%
- \kern-3\p@
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern2.6\p@}
-\renewcommand\theequation
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
-\renewcommand \thefigure
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
-\renewcommand \thetable
- {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
-\renewcommand \thechapter {\@arabic\c@chapter}
-\renewcommand \thesection {\thechapter\@SepMark\@arabic\c@section}
-\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand\thesubsubsection{\thesubsection \@SepMark\@arabic\c@subsubsection}
-\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
-\def\@makechapterhead#1{%
- \vspace*{50\p@}%
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi \normalfont
- \ifnum \c@secnumdepth >\m@ne
- \huge\bfseries \@chapapp\space \thechapter
- \par\nobreak
- \vskip 20\p@
- \fi
- \interlinepenalty\@M
- \Huge \bfseries #1\par\nobreak
- \vskip 40\p@
- }}
-\def\@makeschapterhead#1{%
- \vspace*{50\p@}%
- {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi
- \normalfont
- \interlinepenalty\@M
- \Huge \bfseries #1\par\nobreak
- \vskip 40\p@
- }}
-\renewenvironment{thebibliography}[1]
- {\chapter*{\bibname}%
- \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy
- \clubpenalty4000
- \@clubpenalty \clubpenalty
- \widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-\endinput
-%%
-%% End of file `report-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/rotating-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/rotating-xetex-bidi.def
deleted file mode 100644
index 5c4f0320d98..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/rotating-xetex-bidi.def
+++ /dev/null
@@ -1,168 +0,0 @@
-%%
-%% This is file `rotating-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,rotating-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{rotating-xetex-bidi.def}[2013/05/22 v0.2 bidi adaptations for rotating package for XeTeX engine]
-\def\end@rotfloat{%
- \end{minipage}\end{lrbox}%
- \stepcounter{r@tfl@t}%
- \rot@label{RF\ther@tfl@t}%
- \rot@pageref{RF\ther@tfl@t}{\R@@page}%
- \edef\@tempa{Adding sideways \@captype\space on page \R@@page\space}
- \rot@mess@toks\expandafter{\@tempa}
- \wd\rot@float@box\z@
- \ht\rot@float@box\z@
- \dp\rot@float@box\z@
- \vboxL to \textheight{%
- \setkeys{Grot}{units=360}%
- \if@rot@twoside
- \else
- \let\R@@page\rot@LR
- \fi
- \ifthenelse{\isodd{\R@@page}}{%
- \if@rot@twoside
- \rot@mess@toks\expandafter{\the\rot@mess@toks (right hand page)}%
- \fi
- \vfill
- \@@line{%
- \hskip\rotFPtop
- \rotatebox{90}{\box\rot@float@box}%
- \hskip\rotFPbot
- }%
- }{%
- \if@rot@twoside
- \rot@mess@toks\expandafter{\the\rot@mess@toks (left hand page)}%
- \fi
- \@@line{%
- \hskip\rotFPbot
- \rotatebox{-90}{\box\rot@float@box}%
- \hskip\rotFPtop
- }%
- \vfill
- }%
- \rot@message{\the\rot@mess@toks}
- }%
- \end@float
-}
-\let\endsidewaysfigure\end@rotfloat
-\let\endsidewaystable\end@rotfloat
-\def\end@rotdblfloat{%
- \end{minipage}\end{lrbox}%
- \stepcounter{r@tfl@t}%
- \rot@label{RF\ther@tfl@t}%
- \rot@pageref{RF\ther@tfl@t}{\R@@page}%
- \edef\@tempa{Adding sideways \@captype\space on page \R@@page\space}
- \rot@mess@toks\expandafter{\@tempa}
- \@tempdima\ht\rot@float@box
- \advance\@tempdima by \dp\rot@float@box
- \wd\rot@float@box\z@
- \ht\rot@float@box\z@
- \dp\rot@float@box\z@
- \vboxL to \textheight{%
- \setkeys{Grot}{units=360}%
- \if@rot@twoside
- \else
- \let\R@@page\rot@LR
- \fi
- \ifthenelse{\isodd{\R@@page}}{%
- \ifrot@messages
- \if@rot@twoside
- \rot@mess@toks\expandafter{\the\rot@mess@toks (right hand page)}%
-\fi
- \fi
- \vfill
- \@@line{%
- \hskip\rotFPtop
- \rotatebox{90}{\box\rot@float@box}%
- \hskip\rotFPbot
- }%
- }{%
- \ifrot@messages
- \if@rot@twoside
- \rot@mess@toks\expandafter{\the\rot@mess@toks (left hand page)}%
-\fi
- \fi%
- \@@line{%
- \hskip\rotFPbot
- \rotatebox{-90}{\box\rot@float@box}%
- \hskip\rotFPtop
- }%
- \vfill
- }%
- \rot@message{\the\rot@mess@toks}%
- }%
- \end@dblfloat
-}
-\def\turn#1{%
- \Grot@setangle{#1}%
- \setbox\z@\color@hbox\ifmmode\if@RTL\beginR\fi\else\if@RTL\beginR\fi\fi\ignorespaces}
-\def\endturn{%
- \ifmmode\if@RTL\endR\fi\else\if@RTL\endR\fi\fi
- \unskip\color@endbox
- \Grot@x\z@
- \Grot@y\z@
- \ifmmode\else\if@RTL\beginL\fi\fi\Grot@box\ifmmode\else\if@RTL\endL\fi\fi
-}
-\def\rotate#1{%
- \Grot@setangle{#1}%
- \setbox\z@\color@hbox\ifmmode\if@RTL\beginR\fi\else\if@RTL\beginR\fi\fi\ignorespaces}
-\def\endrotate{%
- \ifmmode\if@RTL\endR\fi\else\if@RTL\endR\fi\fi
- \unskip\color@endbox
- \Grot@x\z@
- \Grot@y\z@
- \wd0\z@\dp0\z@\ht0\z@
- \ifmmode\else\if@RTL\beginL\fi\fi\Grot@box\ifmmode\else\if@RTL\endL\fi\fi
-}
-\def\turnbox#1#2{%
- \Grot@setangle{#1}%
- \setbox\z@\hbox{{\ifmmode\if@RTL\beginR\fi\else\if@RTL\beginR\fi\fi#2\ifmmode\if@RTL\endR\fi\else\if@RTL\endR\fi\fi}}%
- \Grot@x\z@\Grot@y\z@
- \wd0\z@\dp0\z@\ht0\z@
- \ifmmode\else\if@RTL\beginL\fi\fi\Grot@box\ifmmode\else\if@RTL\endL\fi\fi
-}
-\def\sideways{%
- \Grot@setangle{90}%
- \setbox\z@\color@hbox\ifmmode\if@RTL\beginR\fi\else\if@RTL\beginR\fi\fi\ignorespaces}
-\def\endsideways{%
- \ifmmode\if@RTL\endR\fi\else\if@RTL\endR\fi\fi
- \unskip\color@endbox
- \Grot@x\z@
- \Grot@y\z@
- \ifmmode\else\if@RTL\beginL\fi\fi\Grot@box\ifmmode\else\if@RTL\endL\fi\fi
-}
-\endinput
-%%
-%% End of file `rotating-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/scrartcl-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/scrartcl-xetex-bidi.def
deleted file mode 100644
index 36d1f3fe1a9..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/scrartcl-xetex-bidi.def
+++ /dev/null
@@ -1,550 +0,0 @@
-%%
-%% This is file `scrartcl-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,scrartcl-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{scrartcl-xetex-bidi.def}[2015/11/14 v0.8 bidi adaptations for scrartcl class for XeTeX engine]
-\newcommand{\scr@saved@LTRfootnotetext}{}
-\newcommand{\scr@saved@RTLfootnotetext}{}
-\let\scr@saved@footnotetext\@footnotetext
-\let\scr@saved@LTRfootnotetext\@LTRfootnotetext
-\let\scr@saved@RTLfootnotetext\@RTLfootnotetext
-\renewcommand{\@footnotetext}[1]{%
- \scr@saved@footnotetext{#1}%
- \csname FN@mf@prepare\endcsname
-}
-\renewcommand{\@LTRfootnotetext}[1]{%
- \scr@saved@LTRfootnotetext{#1}%
- \csname FN@mf@prepare\endcsname
-}
-\renewcommand{\@RTLfootnotetext}[1]{%
- \scr@saved@RTLfootnotetext{#1}%
- \csname FN@mf@prepare\endcsname
-}
-\renewcommand\deffootnote[4][]{%
- \long\def\@makefntext##1{%
- \setlength{\@tempdimc}{#3}%
- \def\@tempa{#1}\ifx\@tempa\@empty
- \@setpar{\@@par
- \@tempdima = \hsize
- \addtolength{\@tempdima}{-#2}%
- \if@RTL\parshape \@ne 0pt \@tempdima\else\parshape \@ne #2 \@tempdima\fi}%
- \else
- \addtolength{\@tempdimc}{#2}%
- \addtolength{\@tempdimc}{-#1}%
- \@setpar{\@@par
- \@tempdima = \hsize
- \addtolength{\@tempdima}{-#1}%
- \@tempdimb = \hsize
- \addtolength{\@tempdimb}{-#2}%
- \if@RTL\parshape \tw@ 0pt \@tempdima 0pt \@tempdimb\else\parshape \tw@ #1 \@tempdima #2 \@tempdimb\fi
- }%
- \fi
- \par
- \parindent\@tempdimc\noindent
- \ftn@font\hbox to \z@{\hss\@@makefnmark}##1%
- }%
- \def\@@makefnmark{\hbox{\ftnm@font{#4}}}%
-}
-\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
-\renewcommand*\left@footnoterule{%
- \normalsize\ftn@rule@test@values
- \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- {\usekomafont{footnoterule}{%
- \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
- \kern 2.6\p@}
-\renewcommand*\right@footnoterule{%
- \normalsize\ftn@rule@test@values
- \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- {\usekomafont{footnoterule}{%
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\ftn@rule@width\relax \leavevmode\leaders\hrule\@height\ftn@rule@height\hfill\kern\z@}}}%
- \kern 2.6\p@}
-\renewcommand*\maketitle[1][1]{%
- \if@titlepage
- \begin{titlepage}
- \setcounter{page}{%
- #1%
- }%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let\footnote\thanks
- \let\LTRfootnote\LTRthanks
- \let\RTLfootnote\RTLthanks
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \let\@oldmakefnmark\@makefnmark
- \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
- \ifx\@extratitle\@empty \else
- \noindent\@extratitle\next@tpage\cleardoubleemptypage
- \thispagestyle{empty}%
- \fi
- \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
- \ifx\@titlehead\@empty \else
- \begin{minipage}[t]{\textwidth}%
- \@titlehead
- \end{minipage}\par
- \fi
- \null\vfill
- \begin{center}
- \ifx\@subject\@empty \else
- {\subject@font \@subject \par}%
- \vskip 3em
- \fi
- {\titlefont\huge \@title\par}%
- \vskip 1em
- {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
- \vskip 2em
- {\Large \lineskip 0.75em
- \begin{tabular}[t]{c}
- \@author
- \end{tabular}\par
- }%
- \vskip 1.5em
- {\Large \@date \par}%
- \vskip \z@ \@plus3fill
- {\Large \@publishers \par}%
- \vskip 3em
- \end{center}\par
- \@thanks
- \vfill\null
- \if@twoside\next@tpage
- \begin{minipage}[t]{\textwidth}
- \@uppertitleback
- \end{minipage}\par
- \vfill
- \begin{minipage}[b]{\textwidth}
- \@lowertitleback
- \end{minipage}
- \fi
- \ifx\@dedication\@empty \else
- \next@tpage\null\vfill
- {\centering \Large \@dedication \par}%
- \vskip \z@ \@plus3fill
- \if@twoside \next@tpage\cleardoubleemptypage \fi
- \fi
- \end{titlepage}
- \else
- \par
- \@tempcnta=%
- #1%
- \relax\ifnum\@tempcnta=1\else
- \ClassWarning{\KOMAClassName}{%
- Optional argument of \string\maketitle\space ignored
- at\MessageBreak
- notitlepage-mode%
- }%
- \fi
- \begingroup
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \let\@oldmakefnmark\@makefnmark
- \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@
- \@maketitle
- \fi
- \thispagestyle{\titlepagestyle}\@thanks
- \endgroup
- \fi
- \setcounter{footnote}{0}%
- \let\thanks\relax
- \let\LTRthanks\relax
- \let\RTLthanks\relax
- \let\maketitle\relax
- \let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\@subtitle\@empty
- \global\let\@extratitle\@empty
- \global\let\@titlehead\@empty
- \global\let\@subject\@empty
- \global\let\@publishers\@empty
- \global\let\@uppertitleback\@empty
- \global\let\@lowertitleback\@empty
- \global\let\@dedication\@empty
- \global\let\author\relax
- \global\let\title\relax
- \global\let\extratitle\relax
- \global\let\titlehead\relax
- \global\let\subject\relax
- \global\let\publishers\relax
- \global\let\uppertitleback\relax
- \global\let\lowertitleback\relax
- \global\let\dedication\relax
- \global\let\date\relax
- \global\let\and\relax
-}%
-\renewcommand*{\@maketitle}{%
- \clearpage
- \let\footnote\thanks
- \let\LTRfootnote\LTRthanks
- \let\RTLfootnote\RTLthanks
- \ifx\@extratitle\@empty \else
- \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
- \fi
- \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
- \ifx\@titlehead\@empty \else
- \begin{minipage}[t]{\textwidth}
- \@titlehead
- \end{minipage}\par
- \fi
- \null
- \vskip 2em%
- \begin{center}%
- \ifx\@subject\@empty \else
- {\subject@font \@subject \par}
- \vskip 1.5em
- \fi
- {\titlefont\huge \@title \par}%
- \vskip .5em
- {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
- \vskip 1em
- {\Large
- \lineskip .5em%
- \begin{tabular}[t]{c}
- \@author
- \end{tabular}\par
- }%
- \vskip 1em%
- {\Large \@date \par}%
- \vskip \z@ \@plus 1em
- {\Large \@publishers \par}
- \ifx\@dedication\@empty \else
- \vskip 2em
- {\Large \@dedication \par}
- \fi
- \end{center}%
- \par
- \vskip 2em
-}%
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >\m@ne\relax
- \addpenalty{\@secpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \setlength{\@tempdima}{2em}%
- \if@tocleft
- \ifx\toc@l@number\@empty\else
- \setlength\@tempdima{0\toc@l@number}%
- \fi
- \fi
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- {\usekomafont{partentry}{#1\nobreak
- \usekomafont{partentrypagenumber}{\hfil\nobreak
- \hb@xt@\@pnumwidth{\hss#2}}}}\par
- \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
- \endgroup
- \penalty20010
- \else
- \if@compatibility
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}%
- \else
- \penalty\@highpenalty
- \fi
- \endgroup
- \fi
- \fi
-}
-\renewcommand*\l@section[2]{%
- \ifnum \c@tocdepth >\z@
- \ifnum \lastpenalty<20009
- \addpenalty{\@secpenalty}%
- \fi
- \addvspace{1.0em \@plus\p@}%
- \setlength\@tempdima{1.5em}%
- \if@tocleft
- \ifx\toc@l@number\@empty\else
- \setlength\@tempdima{0\toc@l@number}%
- \fi
- \fi
- \begingroup
- \raggedsectionentry
- \parindent \z@ \advance\if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \interlinepenalty\@M
- \leavevmode
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\usekomafont{sectionentry}{#1\nobreak
- \usekomafont{sectionentrypagenumber}{%
- \hfill\nobreak
- \hb@xt@\@pnumwidth{\hss#2}}}}\par
- \endgroup
- \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
- \penalty20008
- \fi
- \fi
-}
-\def\raggedsection{\if@RTL\raggedleft\else\raggedright\fi}
-\def\raggedpart{\if@RTL\raggedleft\else\raggedright\fi}
-\renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}
-\renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand*{\thesubsubsection}{%
- \thesubsection\@SepMark\@arabic\c@subsubsection
-}
-\renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand*{\thesubparagraph}{%
- \theparagraph\@SepMark\@arabic\c@subparagraph
-}
-\renewenvironment{thebibliography}[1]{%
- \if@bib@break@
- \bib@beginhook
- \else
- \bib@heading
- \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
- \noindent\bibpreamble\par\nobreak
- \fi\fi
- \bib@beginhook
- \bib@before@hook
- \fi
- \renewcommand{\BreakBibliography}[1]{%
- \@bib@break
- \end{thebibliography}%
- \begingroup ##1\endgroup
- \begin{thebibliography}{#1}
- }%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{%
- \@biblabel{\@arabic\c@enumiv}%
- }{%
- \settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \if@bib@break@
- \edef\@tempa{%
- \noexpand\usecounter{enumiv}%
- \noexpand\setcounter{enumiv}{\the\c@enumiv}%
- }\@tempa
- \no@bib@break
- \else
- \usecounter{enumiv}%
- \fi
- \let\p@enumiv\@empty
- \renewcommand*\theenumiv{\@arabic\c@enumiv}%
- }%
- \sloppy\clubpenalty4000 \widowpenalty4000
- \sfcode`\.=\@m
-}{%
- \if@bib@break@
- \def\@noitemerr{%
- \@latex@warning{%
- \string\BreakBibliography\space at begin of `thebibliography'
- environment\MessageBreak
- or following \string\BreakBibliography}%
- }%
- \else
- \def\@noitemerr{%
- \@latex@warning{%
- Empty `thebibliography' environment or
- \string\BreakBibliography\MessageBreak
- before end of `thebibliography' environment}%
- }%
- \fi
- \endlist
- \if@bib@break@
- \else
- \bib@after@hook
- \let\bib@before@hook\@empty
- \let\bib@after@hook\@empty
- \fi
- \bib@endhook
-}
-\renewcommand*\left@footnoterule{%
- \kern-3\p@
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- \hrule\@width.4\columnwidth
- \kern 2.6\p@}
-\renewcommand*\right@footnoterule{%
- \kern-3\p@
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern2.6\p@}
-\renewcommand*{\raggeddictum}{\if@RTL\raggedright\else\raggedleft\fi}
-\renewcommand*{\raggeddictumtext}{\if@RTL\raggedleft\else\raggedright\fi}
-\renewcommand*{\raggeddictumauthor}{\if@RTL\raggedright\else\raggedleft\fi}
-\renewcommand\marginline[1]{%
- \marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
-}
-\renewcommand{\@@makecaption}[3]{%
- \cap@margin
- \ifonelinecaptions
- \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
- \let\scr@tmp@footnotetext=\@footnotetext
- \let\@footnotetext=\@gobble
- \let\scr@tmp@LTRfootnotetext=\@LTRfootnotetext
- \let\@LTRfootnotetext=\@gobble
- \let\scr@tmp@RTLfootnotetext=\@RTLfootnotetext
- \let\@RTLfootnotetext=\@gobble
- \sbox\@tempboxa{%
- {\capfont{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat}}}%
- #3\unskip\strut}}%
- }%
- \let\@footnotetext=\scr@tmp@footnotetext
- \let\scr@tmp@footnotetext=\undefined
- \let\@LTRfootnotetext=\scr@tmp@LTRfootnotetext
- \let\scr@tmp@LTRfootnotetext=\undefined
- \let\@RTLfootnotetext=\scr@tmp@RTLfootnotetext
- \let\scr@tmp@RTLfootnotetext=\undefined
- \setcounter{footnote}{\@tempcntb}%
- \setcounter{mpfootnote}{\@tempcnta}%
- \else
- \sbox\@tempboxa{\hspace*{2\cap@width}}%
- \fi
- \begingroup%
- \setlength{\@tempdima}{\cap@width}%
- \ifdim \wd\@tempboxa >\@tempdima
- \hb@xt@\hsize{%
- \setbox\@tempboxa\vbox{\hsize=\cap@width
- \ifdofullc@p
- {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat}}}}}%
- {#3\unskip\strut\par}}}%
- \else%
- \ifdim\cap@indent<\z@
- {\capfont{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat\par}}}%
- \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
- \else%
- \if@capbreak
- {\capfont{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat\par}}}%
- \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
- \else
- {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
- {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
- {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
- \fi
- \fi
- \fi
- }%
- \setlength{\@tempdima}{\ht\@tempboxa}%
- \addtolength{\@tempdima}{\dp\@tempboxa}%
- \addtolength{\@tempdima}{-\ht\strutbox}%
- \ht\@tempboxa\ht\strutbox
- \dp\@tempboxa\@tempdima
- \strut\cap@left
- \box\@tempboxa
- \cap@right\strut
- }%
- \else
- \global \@minipagefalse
- \sbox\@tempboxa{%
- {\capfont{\scr@smashdp{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat}}}}%
- #3}}%
- }%
- {\capfont{\hb@xt@\hsize{\strut\cap@left\if@RTL\beginR\fi\box\@tempboxa\if@RTL\endR\fi\cap@right\strut}}}%
- \fi
- \endgroup
-}
-\renewcommand{\@makecaption}[2]{%
- \if@captionabove
- \vskip\belowcaptionskip
- \else
- \vskip\abovecaptionskip
- \fi
- \@@makecaption\@firstofone{#1}{#2}%
- \if@captionabove
- \vskip\abovecaptionskip
- \else
- \vskip\belowcaptionskip
- \fi
-}
-\bidi@AfterFile{longtable-xetex-bidi.def}{%
- \@ifpackageloaded{caption2}{\@komalongtablefalse
- \scr@caption@before@longtable@warning{caption2}%
- }{}%
- \if@komalongtable
- \renewcommand{\LT@makecaption}[3]{%
- \noalign{%
- \if@captionabove
- \vskip\belowcaptionskip
- \else
- \vskip\abovecaptionskip
- \fi
- }%
- \LT@mcol\LT@cols c{%
- \hbox to\z@{\hss\parbox[t]\linewidth{%
- \@@makecaption{#1}{#2}{#3}%
- \endgraf
- \if@captionabove
- \vskip\abovecaptionskip
- \else
- \vskip\belowcaptionskip
- \fi
- }%
- \hss
- }%
- }%
- }%
- \renewcommand*{\scr@LT@array}{}%
- \let\scr@LT@array=\LT@array
- \renewcommand*{\LT@array}{%
- \let\scr@caption=\LT@caption
- \def\captionabove{\noalign{\global\@captionabovetrue}%
- \scr@caption}%
- \def\captionbelow{\noalign{\global\@captionabovefalse}%
- \scr@caption}%
- \if@tablecaptionabove
- \let\LT@caption=\captionabove
- \else
- \let\LT@caption=\captionbelow
- \fi
- \scr@LT@array
- }%
- \ClassInfo{\KOMAClassName}{%
- longtable captions redefined%
- }%
- \fi
-}
-\endinput
-%%
-%% End of file `scrartcl-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def
deleted file mode 100644
index e49913be519..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def
+++ /dev/null
@@ -1,606 +0,0 @@
-%%
-%% This is file `scrbook-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,scrbook-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{scrbook-xetex-bidi.def}[2015/11/14 v0.8 bidi adaptations for scrbook class for XeTeX engine]
-\newcommand{\scr@saved@LTRfootnotetext}{}
-\newcommand{\scr@saved@RTLfootnotetext}{}
-\let\scr@saved@footnotetext\@footnotetext
-\let\scr@saved@LTRfootnotetext\@LTRfootnotetext
-\let\scr@saved@RTLfootnotetext\@RTLfootnotetext
-\renewcommand{\@footnotetext}[1]{%
- \scr@saved@footnotetext{#1}%
- \csname FN@mf@prepare\endcsname
-}
-\renewcommand{\@LTRfootnotetext}[1]{%
- \scr@saved@LTRfootnotetext{#1}%
- \csname FN@mf@prepare\endcsname
-}
-\renewcommand{\@RTLfootnotetext}[1]{%
- \scr@saved@RTLfootnotetext{#1}%
- \csname FN@mf@prepare\endcsname
-}
-\renewcommand\deffootnote[4][]{%
- \long\def\@makefntext##1{%
- \setlength{\@tempdimc}{#3}%
- \def\@tempa{#1}\ifx\@tempa\@empty
- \@setpar{\@@par
- \@tempdima = \hsize
- \addtolength{\@tempdima}{-#2}%
- \if@RTL\parshape \@ne 0pt \@tempdima\else\parshape \@ne #2 \@tempdima\fi}%
- \else
- \addtolength{\@tempdimc}{#2}%
- \addtolength{\@tempdimc}{-#1}%
- \@setpar{\@@par
- \@tempdima = \hsize
- \addtolength{\@tempdima}{-#1}%
- \@tempdimb = \hsize
- \addtolength{\@tempdimb}{-#2}%
- \if@RTL\parshape \tw@ 0pt \@tempdima 0pt \@tempdimb\else\parshape \tw@ #1 \@tempdima #2 \@tempdimb\fi
- }%
- \fi
- \par
- \parindent\@tempdimc\noindent
- \ftn@font\hbox to \z@{\hss\@@makefnmark}##1%
- }%
- \def\@@makefnmark{\hbox{\ftnm@font{#4}}}%
-}
-\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
-\renewcommand*\left@footnoterule{%
- \normalsize\ftn@rule@test@values
- \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- {\usekomafont{footnoterule}{%
- \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
- \kern 2.6\p@}
-\renewcommand*\right@footnoterule{%
- \normalsize\ftn@rule@test@values
- \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- {\usekomafont{footnoterule}{%
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\ftn@rule@width\relax \leavevmode\leaders\hrule\@height\ftn@rule@height\hfill\kern\z@}}}%
- \kern 2.6\p@}
-\renewcommand*\maketitle[1][1]{%
- \if@titlepage
- \begin{titlepage}
- \setcounter{page}{%
- #1%
- }%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let\footnote\thanks
- \let\LTRfootnote\LTRthanks
- \let\RTLfootnote\RTLthanks
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \let\@oldmakefnmark\@makefnmark
- \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
- \ifx\@extratitle\@empty \else
- \noindent\@extratitle\next@tpage\cleardoubleemptypage
- \thispagestyle{empty}%
- \fi
- \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
- \ifx\@titlehead\@empty \else
- \begin{minipage}[t]{\textwidth}%
- \@titlehead
- \end{minipage}\par
- \fi
- \null\vfill
- \begin{center}
- \ifx\@subject\@empty \else
- {\subject@font \@subject \par}%
- \vskip 3em
- \fi
- {\titlefont\huge \@title\par}%
- \vskip 1em
- {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
- \vskip 2em
- {\Large \lineskip 0.75em
- \begin{tabular}[t]{c}
- \@author
- \end{tabular}\par
- }%
- \vskip 1.5em
- {\Large \@date \par}%
- \vskip \z@ \@plus3fill
- {\Large \@publishers \par}%
- \vskip 3em
- \end{center}\par
- \@thanks
- \vfill\null
- \if@twoside\next@tpage
- \begin{minipage}[t]{\textwidth}
- \@uppertitleback
- \end{minipage}\par
- \vfill
- \begin{minipage}[b]{\textwidth}
- \@lowertitleback
- \end{minipage}
- \fi
- \ifx\@dedication\@empty \else
- \next@tpage\null\vfill
- {\centering \Large \@dedication \par}%
- \vskip \z@ \@plus3fill
- \if@twoside \next@tpage\cleardoubleemptypage \fi
- \fi
- \end{titlepage}
- \else
- \par
- \@tempcnta=%
- #1%
- \relax\ifnum\@tempcnta=1\else
- \ClassWarning{\KOMAClassName}{%
- Optional argument of \string\maketitle\space ignored
- at\MessageBreak
- notitlepage-mode%
- }%
- \fi
- \begingroup
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \let\@oldmakefnmark\@makefnmark
- \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@
- \@maketitle
- \fi
- \thispagestyle{\titlepagestyle}\@thanks
- \endgroup
- \fi
- \setcounter{footnote}{0}%
- \let\thanks\relax
- \let\LTRthanks\relax
- \let\RTLthanks\relax
- \let\maketitle\relax
- \let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\@subtitle\@empty
- \global\let\@extratitle\@empty
- \global\let\@titlehead\@empty
- \global\let\@subject\@empty
- \global\let\@publishers\@empty
- \global\let\@uppertitleback\@empty
- \global\let\@lowertitleback\@empty
- \global\let\@dedication\@empty
- \global\let\author\relax
- \global\let\title\relax
- \global\let\extratitle\relax
- \global\let\titlehead\relax
- \global\let\subject\relax
- \global\let\publishers\relax
- \global\let\uppertitleback\relax
- \global\let\lowertitleback\relax
- \global\let\dedication\relax
- \global\let\date\relax
- \global\let\and\relax
-}%
-\renewcommand*{\@maketitle}{%
- \clearpage
- \let\footnote\thanks
- \let\LTRfootnote\LTRthanks
- \let\RTLfootnote\RTLthanks
- \ifx\@extratitle\@empty \else
- \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
- \fi
- \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
- \ifx\@titlehead\@empty \else
- \begin{minipage}[t]{\textwidth}
- \@titlehead
- \end{minipage}\par
- \fi
- \null
- \vskip 2em%
- \begin{center}%
- \ifx\@subject\@empty \else
- {\subject@font \@subject \par}
- \vskip 1.5em
- \fi
- {\titlefont\huge \@title \par}%
- \vskip .5em
- {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
- \vskip 1em
- {\Large
- \lineskip .5em%
- \begin{tabular}[t]{c}
- \@author
- \end{tabular}\par
- }%
- \vskip 1em%
- {\Large \@date \par}%
- \vskip \z@ \@plus 1em
- {\Large \@publishers \par}
- \ifx\@dedication\@empty \else
- \vskip 2em
- {\Large \@dedication \par}
- \fi
- \end{center}%
- \par
- \vskip 2em
-}%
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \setlength{\@tempdima}{2em}%
- \if@tocleft
- \ifx\toc@l@number\@empty\else
- \setlength\@tempdima{0\toc@l@number}%
- \fi
- \fi
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- {\usekomafont{partentry}{#1\nobreak
- \usekomafont{partentrypagenumber}{\hfil\nobreak
- \hb@xt@\@pnumwidth{\hss#2}}}}\par
- \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
- \endgroup
- \penalty20010
- \else
- \penalty\@highpenalty
- \endgroup
- \fi
- \fi
-}\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \setlength{\@tempdima}{2em}%
- \if@tocleft
- \ifx\toc@l@number\@empty\else
- \setlength\@tempdima{0\toc@l@number}%
- \fi
- \fi
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- {\usekomafont{partentry}{#1\nobreak
- \usekomafont{partentrypagenumber}{\hfil\nobreak
- \hb@xt@\@pnumwidth{\hss#2}}}}\par
- \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
- \endgroup
- \penalty20010
- \else
- \penalty\@highpenalty
- \endgroup
- \fi
- \fi
-}
-\renewcommand*\l@chapter[2]{%
- \ifnum \c@tocdepth >\m@ne
- \ifnum \lastpenalty<20010
- \addpenalty{-\@highpenalty}%
- \fi
- \vskip 1.0em \@plus\p@
- \setlength\@tempdima{1.5em}%
- \if@tocleft
- \ifx\toc@l@number\@empty\else
- \setlength\@tempdima{0\toc@l@number}%
- \fi
- \fi
- \begingroup
- \raggedchapterentry
- \parindent \z@ \advance\if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \interlinepenalty\@M
- \leavevmode
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\usekomafont{chapterentry}{#1\nobreak
- \usekomafont{chapterentrypagenumber}{%
- \hfill\nobreak
- \hb@xt@\@pnumwidth{\hss#2}}}}\par
- \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
- \endgroup
- \penalty20009
- \else
- \penalty\@highpenalty
- \endgroup
- \fi
- \fi
-}
-\def\raggedsection{\if@RTL\raggedleft\else\raggedright\fi}
-\renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}
-\renewcommand*\thesection{%
- \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
- \if@mainmatter\thechapter\@SepMark\fi
- \else
- \thechapter\@SepMark%
- \fi
- \@arabic\c@section
-}
-\renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand*{\thesubsubsection}{%
- \thesubsection\@SepMark\@arabic\c@subsubsection
-}
-\renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand*{\thesubparagraph}{%
- \theparagraph\@SepMark\@arabic\c@subparagraph
-}
-\renewcommand*\thefigure{%
- \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
- \if@mainmatter\thechapter\@SepMark\fi
- \else
- \thechapter\@SepMark%
- \fi
- \@arabic\c@figure
-}
-\renewcommand*\thetable{%
- \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
- \if@mainmatter\thechapter\@SepMark\fi
- \else
- \thechapter\@SepMark%
- \fi
- \@arabic\c@table
-}
-\renewcommand*\theequation{%
- \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
- \if@mainmatter\thechapter\@SepMark\fi
- \else
- \thechapter\@SepMark%
- \fi
- \@arabic\c@equation
-}
-\renewenvironment{thebibliography}[1]{%
- \if@bib@break@
- \bib@beginhook
- \else
- \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
- \setchapterpreamble{\bibpreamble}%
- \fi\fi
- \bib@heading
- \bib@beginhook
- \bib@before@hook
- \fi
- \renewcommand{\BreakBibliography}[1]{%
- \@bib@break
- \end{thebibliography}%
- \begingroup ##1\endgroup
- \begin{thebibliography}{#1}
- }%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{%
- \@biblabel{\@arabic\c@enumiv}%
- }{%
- \settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \if@bib@break@
- \edef\@tempa{%
- \noexpand\usecounter{enumiv}%
- \noexpand\setcounter{enumiv}{\the\c@enumiv}%
- }\@tempa
- \no@bib@break
- \else
- \usecounter{enumiv}%
- \fi
- \let\p@enumiv\@empty
- \renewcommand*\theenumiv{\@arabic\c@enumiv}%
- }%
- \sloppy\clubpenalty4000 \widowpenalty4000
- \sfcode`\.=\@m
-}{%
- \if@bib@break@
- \def\@noitemerr{%
- \@latex@warning{%
- \string\BreakBibliography\space at begin of `thebibliography'
- environment\MessageBreak
- or following \string\BreakBibliography}%
- }%
- \else
- \def\@noitemerr{%
- \@latex@warning{%
- Empty `thebibliography' environment or
- \string\BreakBibliography\MessageBreak
- before end of `thebibliography' environment}%
- }%
- \fi
- \endlist
- \if@bib@break@
- \else
- \bib@after@hook
- \let\bib@before@hook\@empty
- \let\bib@after@hook\@empty
- \fi
- \bib@endhook
-}
-\renewcommand*\left@footnoterule{%
- \kern-3\p@
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- \hrule\@width.4\columnwidth
- \kern 2.6\p@}
-\renewcommand*\right@footnoterule{%
- \kern-3\p@
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern2.6\p@}
-\renewcommand*{\raggeddictum}{\if@RTL\raggedright\else\raggedleft\fi}
-\renewcommand*{\raggeddictumtext}{\if@RTL\raggedleft\else\raggedright\fi}
-\renewcommand*{\raggeddictumauthor}{\if@RTL\raggedright\else\raggedleft\fi}
-\renewcommand\marginline[1]{%
- \marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
-}
-\renewcommand{\@@makecaption}[3]{%
- \cap@margin
- \ifonelinecaptions
- \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
- \let\scr@tmp@footnotetext=\@footnotetext
- \let\@footnotetext=\@gobble
- \let\scr@tmp@LTRfootnotetext=\@LTRfootnotetext
- \let\@LTRfootnotetext=\@gobble
- \let\scr@tmp@RTLfootnotetext=\@RTLfootnotetext
- \let\@RTLfootnotetext=\@gobble
- \sbox\@tempboxa{%
- {\capfont{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat}}}%
- #3\unskip\strut}}%
- }%
- \let\@footnotetext=\scr@tmp@footnotetext
- \let\scr@tmp@footnotetext=\undefined
- \let\@LTRfootnotetext=\scr@tmp@LTRfootnotetext
- \let\scr@tmp@LTRfootnotetext=\undefined
- \let\@RTLfootnotetext=\scr@tmp@RTLfootnotetext
- \let\scr@tmp@RTLfootnotetext=\undefined
- \setcounter{footnote}{\@tempcntb}%
- \setcounter{mpfootnote}{\@tempcnta}%
- \else
- \sbox\@tempboxa{\hspace*{2\cap@width}}%
- \fi
- \begingroup%
- \setlength{\@tempdima}{\cap@width}%
- \ifdim \wd\@tempboxa >\@tempdima
- \hb@xt@\hsize{%
- \setbox\@tempboxa\vbox{\hsize=\cap@width
- \ifdofullc@p
- {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat}}}}}%
- {#3\unskip\strut\par}}}%
- \else%
- \ifdim\cap@indent<\z@
- {\capfont{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat\par}}}%
- \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
- \else%
- \if@capbreak
- {\capfont{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat\par}}}%
- \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
- \else
- {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
- {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
- {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
- \fi
- \fi
- \fi
- }%
- \setlength{\@tempdima}{\ht\@tempboxa}%
- \addtolength{\@tempdima}{\dp\@tempboxa}%
- \addtolength{\@tempdima}{-\ht\strutbox}%
- \ht\@tempboxa\ht\strutbox
- \dp\@tempboxa\@tempdima
- \strut\cap@left
- \box\@tempboxa
- \cap@right\strut
- }%
- \else
- \global \@minipagefalse
- \sbox\@tempboxa{%
- {\capfont{\scr@smashdp{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat}}}}%
- #3}}%
- }%
- {\capfont{\hb@xt@\hsize{\strut\cap@left\if@RTL\beginR\fi\box\@tempboxa\if@RTL\endR\fi\cap@right\strut}}}%
- \fi
- \endgroup
-}
-\renewcommand{\@makecaption}[2]{%
- \if@captionabove
- \vskip\belowcaptionskip
- \else
- \vskip\abovecaptionskip
- \fi
- \@@makecaption\@firstofone{#1}{#2}%
- \if@captionabove
- \vskip\abovecaptionskip
- \else
- \vskip\belowcaptionskip
- \fi
-}
-\bidi@AfterFile{longtable-xetex-bidi.def}{%
- \@ifpackageloaded{caption2}{\@komalongtablefalse
- \scr@caption@before@longtable@warning{caption2}%
- }{}%
- \if@komalongtable
- \renewcommand{\LT@makecaption}[3]{%
- \noalign{%
- \if@captionabove
- \vskip\belowcaptionskip
- \else
- \vskip\abovecaptionskip
- \fi
- }%
- \LT@mcol\LT@cols c{%
- \hbox to\z@{\hss\parbox[t]\linewidth{%
- \@@makecaption{#1}{#2}{#3}%
- \endgraf
- \if@captionabove
- \vskip\abovecaptionskip
- \else
- \vskip\belowcaptionskip
- \fi
- }%
- \hss
- }%
- }%
- }%
- \renewcommand*{\scr@LT@array}{}%
- \let\scr@LT@array=\LT@array
- \renewcommand*{\LT@array}{%
- \let\scr@caption=\LT@caption
- \def\captionabove{\noalign{\global\@captionabovetrue}%
- \scr@caption}%
- \def\captionbelow{\noalign{\global\@captionabovefalse}%
- \scr@caption}%
- \if@tablecaptionabove
- \let\LT@caption=\captionabove
- \else
- \let\LT@caption=\captionbelow
- \fi
- \scr@LT@array
- }%
- \ClassInfo{\KOMAClassName}{%
- longtable captions redefined%
- }%
- \fi
-}
-\endinput
-%%
-%% End of file `scrbook-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/scrlettr-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/scrlettr-xetex-bidi.def
deleted file mode 100644
index 4fd4af4a03d..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/scrlettr-xetex-bidi.def
+++ /dev/null
@@ -1,147 +0,0 @@
-%%
-%% This is file `scrlettr-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,scrlettr-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{scrlettr-xetex-bidi.def}[2015/11/14 v0.3 bidi adaptations for scrlettr class for XeTeX engine]
-\renewcommand\deffootnote[4][]{%
- \long\def\@makefntext##1{%
- \edef\@tempa{#1}\ifx\@tempa\@empty
- \@setpar{\@@par
- \@tempdima = \hsize
- \addtolength{\@tempdima}{-#2}
- \if@RTL\parshape \@ne 0pt \@tempdima\else\parshape \@ne #2 \@tempdima\fi}%
- \else
- \@setpar{\@@par
- \@tempdima = \hsize
- \addtolength{\@tempdima}{-#1}
- \@tempdimb = \hsize
- \addtolength{\@tempdimb}{-#2}
- \if@RTL\parshape \tw@ 0pt \@tempdima 0pt \@tempdimb\else\parshape \tw@ #1 \@tempdima #2 \@tempdimb\fi}%
- \fi
- \par
- \parindent #3\noindent
- \hbox to \z@{\hss\@@makefnmark}##1}
- \def\@@makefnmark{\hbox{#4}}
-}
-\deffootnote[1em]{1.5em}{1em}
- {\textsuperscript{\thefootnotemark}}
-\def\left@footnoterule{\kern-1\p@
- \hrule width 0.4\columnwidth
- \kern .6\p@}
-\def\right@footnoterule{%
- \kern-1\p@
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern .6\p@}
-\def\@datefield{\@reffalse
- \ifx\varyourref\@empty \else \@reftrue \fi
- \ifx\varyourmail\@empty \else \@reftrue \fi
- \ifx\varmyref\@empty \else \@reftrue \fi
- \ifx\varcustomer\@empty \else \@reftrue \fi
- \ifx\varinvoice\@empty \else \@reftrue \fi
- \ifx\varrefitemi\@empty \else \@reftrue \fi
- \ifx\varrefitemii\@empty \else \@reftrue \fi
- \ifx\varrefitemiii\@empty \else \@reftrue \fi
- \vskip -\parskip
- \vskip \refvskip
- \if@ref
- \ifx\varyourref\@empty \else
- \settowidth{\sc@temp}{\varyourref}
- \setbox0\hbox{\scriptsize \sf \yourrefname}
- \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
- \parbox[t]{\sc@@temp}{\noindent \box0\par \varyourref}\hfill
- \fi
- \ifx\varyourmail\@empty \else
- \settowidth{\sc@temp}{\varyourmail}
- \setbox0\hbox{\scriptsize \sf \yourmailname}
- \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
- \parbox[t]{\sc@@temp}{\noindent \box0\par \varyourmail}\hfill
- \fi
- \ifx\varmyref\@empty \else
- \settowidth{\sc@temp}{\varmyref}
- \setbox0\hbox{\scriptsize \sf \myrefname}
- \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
- \parbox[t]{\sc@@temp}{\noindent \box0\par \varmyref}\hfill
- \fi
- \ifx\varcustomer\@empty \else
- \settowidth{\sc@temp}{\varcustomer}
- \setbox0\hbox{\scriptsize \sf \customername}
- \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
- \parbox[t]{\sc@@temp}{\noindent \box0\par \varcustomer}\hfill
- \fi
- \ifx\varinvoice\@empty \else
- \settowidth{\sc@temp}{\varinvoice}
- \setbox0\hbox{\scriptsize \sf \invoicename}
- \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
- \parbox[t]{\sc@@temp}{\noindent \box0\par \varinvoice}\hfill
- \fi
- \ifx\varrefitemi\@empty \else
- \settowidth{\sc@temp}{\varrefitemi}
- \setbox0\hbox{\scriptsize \sf \varrefitemnamei}
- \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
- \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemi}\hfill
- \fi
- \ifx\varrefitemii\@empty \else
- \settowidth{\sc@temp}{\varrefitemii}
- \setbox0\hbox{\scriptsize \sf \varrefitemnameii}
- \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
- \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemii}\hfill
- \fi
- \ifx\varrefitemiii\@empty \else
- \settowidth{\sc@temp}{\varrefitemiii}
- \setbox0\hbox{\scriptsize \sf \varrefitemnameiii}
- \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
- \parbox[t]{\sc@@temp}{\noindent \box0\par \varrefitemiii}\hfill
- \fi
- \ifx\@date\@empty \else
- \settowidth{\sc@temp}{\@date}
- \setbox0\hbox{\scriptsize \sf \datename}
- \ifdim \sc@temp > \wd0 \sc@@temp\sc@temp \else \sc@@temp\wd0 \fi
- \parbox[t]{\sc@@temp}{\noindent \box0\par \@date}
- \fi
- \par
- \vspace{2.5\baselineskip}
- \else
- {\ifx\@date\@empty \else \if@RTL\raggedright\else\raggedleft\fi\fromplace\ \@date\par \fi}
- \vspace{1.5\baselineskip}
- \fi}
-\long\def\closing#1{\par\nobreak\vspace{0.5\baselineskip}
- \stopbreaks \noindent \sc@temp\textwidth \advance\sc@temp by
- -\sigindent \hspace{\sigindent}%
- \parbox{\sc@temp}{\if@RTL\raggedleft\else\raggedright\fi\ignorespaces #1\mbox{}\\[\presig@skip]
- \fromsig\strut}\par
- \vspace{1.5\baselineskip}}
-\endinput
-%%
-%% End of file `scrlettr-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def
deleted file mode 100644
index 1e48f4fff90..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def
+++ /dev/null
@@ -1,563 +0,0 @@
-%%
-%% This is file `scrreprt-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,scrreprt-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{scrreprt-xetex-bidi.def}[2015/11/14 v0.8 bidi adaptations for scrreprt class for XeTeX engine]
-\newcommand{\scr@saved@LTRfootnotetext}{}
-\newcommand{\scr@saved@RTLfootnotetext}{}
-\let\scr@saved@footnotetext\@footnotetext
-\let\scr@saved@LTRfootnotetext\@LTRfootnotetext
-\let\scr@saved@RTLfootnotetext\@RTLfootnotetext
-\renewcommand{\@footnotetext}[1]{%
- \scr@saved@footnotetext{#1}%
- \csname FN@mf@prepare\endcsname
-}
-\renewcommand{\@LTRfootnotetext}[1]{%
- \scr@saved@LTRfootnotetext{#1}%
- \csname FN@mf@prepare\endcsname
-}
-\renewcommand{\@RTLfootnotetext}[1]{%
- \scr@saved@RTLfootnotetext{#1}%
- \csname FN@mf@prepare\endcsname
-}
-\renewcommand\deffootnote[4][]{%
- \long\def\@makefntext##1{%
- \setlength{\@tempdimc}{#3}%
- \def\@tempa{#1}\ifx\@tempa\@empty
- \@setpar{\@@par
- \@tempdima = \hsize
- \addtolength{\@tempdima}{-#2}%
- \if@RTL\parshape \@ne 0pt \@tempdima\else\parshape \@ne #2 \@tempdima\fi}%
- \else
- \addtolength{\@tempdimc}{#2}%
- \addtolength{\@tempdimc}{-#1}%
- \@setpar{\@@par
- \@tempdima = \hsize
- \addtolength{\@tempdima}{-#1}%
- \@tempdimb = \hsize
- \addtolength{\@tempdimb}{-#2}%
- \if@RTL\parshape \tw@ 0pt \@tempdima 0pt \@tempdimb\else\parshape \tw@ #1 \@tempdima #2 \@tempdimb\fi
- }%
- \fi
- \par
- \parindent\@tempdimc\noindent
- \ftn@font\hbox to \z@{\hss\@@makefnmark}##1%
- }%
- \def\@@makefnmark{\hbox{\ftnm@font{#4}}}%
-}
-\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
-\renewcommand*\left@footnoterule{%
- \normalsize\ftn@rule@test@values
- \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- {\usekomafont{footnoterule}{%
- \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
- \kern 2.6\p@}
-\renewcommand*\right@footnoterule{%
- \normalsize\ftn@rule@test@values
- \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- {\usekomafont{footnoterule}{%
- \hbox to \columnwidth{\hskip \dimexpr\columnwidth-\ftn@rule@width\relax \leavevmode\leaders\hrule\@height\ftn@rule@height\hfill\kern\z@}}}%
- \kern 2.6\p@}
-\renewcommand*\maketitle[1][1]{%
- \if@titlepage
- \begin{titlepage}
- \setcounter{page}{%
- #1%
- }%
- \let\footnotesize\small
- \let\right@footnoterule\relax
- \let\left@footnoterule\relax
- \let\textwidth@footnoterule\relax
- \let\footnote\thanks
- \let\LTRfootnote\LTRthanks
- \let\RTLfootnote\RTLthanks
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \let\@oldmakefnmark\@makefnmark
- \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
- \ifx\@extratitle\@empty \else
- \noindent\@extratitle\next@tpage\cleardoubleemptypage
- \thispagestyle{empty}%
- \fi
- \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
- \ifx\@titlehead\@empty \else
- \begin{minipage}[t]{\textwidth}%
- \@titlehead
- \end{minipage}\par
- \fi
- \null\vfill
- \begin{center}
- \ifx\@subject\@empty \else
- {\subject@font \@subject \par}%
- \vskip 3em
- \fi
- {\titlefont\huge \@title\par}%
- \vskip 1em
- {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
- \vskip 2em
- {\Large \lineskip 0.75em
- \begin{tabular}[t]{c}
- \@author
- \end{tabular}\par
- }%
- \vskip 1.5em
- {\Large \@date \par}%
- \vskip \z@ \@plus3fill
- {\Large \@publishers \par}%
- \vskip 3em
- \end{center}\par
- \@thanks
- \vfill\null
- \if@twoside\next@tpage
- \begin{minipage}[t]{\textwidth}
- \@uppertitleback
- \end{minipage}\par
- \vfill
- \begin{minipage}[b]{\textwidth}
- \@lowertitleback
- \end{minipage}
- \fi
- \ifx\@dedication\@empty \else
- \next@tpage\null\vfill
- {\centering \Large \@dedication \par}%
- \vskip \z@ \@plus3fill
- \if@twoside \next@tpage\cleardoubleemptypage \fi
- \fi
- \end{titlepage}
- \else
- \par
- \@tempcnta=%
- #1%
- \relax\ifnum\@tempcnta=1\else
- \ClassWarning{\KOMAClassName}{%
- Optional argument of \string\maketitle\space ignored
- at\MessageBreak
- notitlepage-mode%
- }%
- \fi
- \begingroup
- \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
- \let\@oldmakefnmark\@makefnmark
- \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}
- \if@twocolumn
- \ifnum \col@number=\@ne
- \@maketitle
- \else
- \twocolumn[\@maketitle]%
- \fi
- \else
- \newpage
- \global\@topnum\z@
- \@maketitle
- \fi
- \thispagestyle{\titlepagestyle}\@thanks
- \endgroup
- \fi
- \setcounter{footnote}{0}%
- \let\thanks\relax
- \let\LTRthanks\relax
- \let\RTLthanks\relax
- \let\maketitle\relax
- \let\@maketitle\relax
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\@subtitle\@empty
- \global\let\@extratitle\@empty
- \global\let\@titlehead\@empty
- \global\let\@subject\@empty
- \global\let\@publishers\@empty
- \global\let\@uppertitleback\@empty
- \global\let\@lowertitleback\@empty
- \global\let\@dedication\@empty
- \global\let\author\relax
- \global\let\title\relax
- \global\let\extratitle\relax
- \global\let\titlehead\relax
- \global\let\subject\relax
- \global\let\publishers\relax
- \global\let\uppertitleback\relax
- \global\let\lowertitleback\relax
- \global\let\dedication\relax
- \global\let\date\relax
- \global\let\and\relax
-}%
-\renewcommand*{\@maketitle}{%
- \clearpage
- \let\footnote\thanks
- \let\LTRfootnote\LTRthanks
- \let\RTLfootnote\RTLthanks
- \ifx\@extratitle\@empty \else
- \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
- \fi
- \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
- \ifx\@titlehead\@empty \else
- \begin{minipage}[t]{\textwidth}
- \@titlehead
- \end{minipage}\par
- \fi
- \null
- \vskip 2em%
- \begin{center}%
- \ifx\@subject\@empty \else
- {\subject@font \@subject \par}
- \vskip 1.5em
- \fi
- {\titlefont\huge \@title \par}%
- \vskip .5em
- {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
- \vskip 1em
- {\Large
- \lineskip .5em%
- \begin{tabular}[t]{c}
- \@author
- \end{tabular}\par
- }%
- \vskip 1em%
- {\Large \@date \par}%
- \vskip \z@ \@plus 1em
- {\Large \@publishers \par}
- \ifx\@dedication\@empty \else
- \vskip 2em
- {\Large \@dedication \par}
- \fi
- \end{center}%
- \par
- \vskip 2em
-}%
-\renewcommand*\l@part[2]{%
- \ifnum \c@tocdepth >-2\relax
- \addpenalty{-\@highpenalty}%
- \addvspace{2.25em \@plus\p@}%
- \setlength{\@tempdima}{2em}%
- \if@tocleft
- \ifx\toc@l@number\@empty\else
- \setlength\@tempdima{0\toc@l@number}%
- \fi
- \fi
- \begingroup
- \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \leavevmode
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- {\usekomafont{partentry}{#1\nobreak
- \usekomafont{partentrypagenumber}{\hfil\nobreak
- \hb@xt@\@pnumwidth{\hss#2}}}}\par
- \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
- \endgroup
- \penalty20010
- \else
- \penalty\@highpenalty
- \endgroup
- \fi
- \fi
-}
-\renewcommand*\l@chapter[2]{%
- \ifnum \c@tocdepth >\m@ne
- \ifnum \lastpenalty<20010
- \addpenalty{-\@highpenalty}%
- \fi
- \vskip 1.0em \@plus\p@
- \setlength\@tempdima{1.5em}%
- \if@tocleft
- \ifx\toc@l@number\@empty\else
- \setlength\@tempdima{0\toc@l@number}%
- \fi
- \fi
- \begingroup
- \raggedchapterentry
- \parindent \z@ \advance\if@RTL\leftskip\else\rightskip\fi \@pnumwidth
- \parfillskip -\@pnumwidth
- \interlinepenalty\@M
- \leavevmode
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\usekomafont{chapterentry}{#1\nobreak
- \usekomafont{chapterentrypagenumber}{%
- \hfill\nobreak
- \hb@xt@\@pnumwidth{\hss#2}}}}\par
- \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
- \endgroup
- \penalty20009
- \else
- \penalty\@highpenalty
- \endgroup
- \fi
- \fi
-}
-\def\raggedsection{\if@RTL\raggedleft\else\raggedright\fi}
-\renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi}
-\renewcommand*\thesection{%
- \thechapter\@SepMark%
- \@arabic\c@section
-}
-\renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection}
-\renewcommand*{\thesubsubsection}{%
- \thesubsection\@SepMark\@arabic\c@subsubsection
-}
-\renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph}
-\renewcommand*{\thesubparagraph}{%
- \theparagraph\@SepMark\@arabic\c@subparagraph
-}
-\renewcommand*\thefigure{%
- \thechapter\@SepMark%
- \@arabic\c@figure
-}
-\renewcommand*\thetable{%
- \thechapter\@SepMark%
- \@arabic\c@table
-}
-\renewcommand*\theequation{%
- \thechapter\@SepMark%
- \@arabic\c@equation
-}
-\renewenvironment{thebibliography}[1]{%
- \if@bib@break@
- \bib@beginhook
- \else
- \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
- \setchapterpreamble{\bibpreamble}%
- \fi\fi
- \bib@heading
- \bib@beginhook
- \bib@before@hook
- \fi
- \renewcommand{\BreakBibliography}[1]{%
- \@bib@break
- \end{thebibliography}%
- \begingroup ##1\endgroup
- \begin{thebibliography}{#1}
- }%
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{%
- \@biblabel{\@arabic\c@enumiv}%
- }{%
- \settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \if@bib@break@
- \edef\@tempa{%
- \noexpand\usecounter{enumiv}%
- \noexpand\setcounter{enumiv}{\the\c@enumiv}%
- }\@tempa
- \no@bib@break
- \else
- \usecounter{enumiv}%
- \fi
- \let\p@enumiv\@empty
- \renewcommand*\theenumiv{\@arabic\c@enumiv}%
- }%
- \sloppy\clubpenalty4000 \widowpenalty4000
- \sfcode`\.=\@m
-}{%
- \if@bib@break@
- \def\@noitemerr{%
- \@latex@warning{%
- \string\BreakBibliography\space at begin of `thebibliography'
- environment\MessageBreak
- or following \string\BreakBibliography}%
- }%
- \else
- \def\@noitemerr{%
- \@latex@warning{%
- Empty `thebibliography' environment or
- \string\BreakBibliography\MessageBreak
- before end of `thebibliography' environment}%
- }%
- \fi
- \endlist
- \if@bib@break@
- \else
- \bib@after@hook
- \let\bib@before@hook\@empty
- \let\bib@after@hook\@empty
- \fi
- \bib@endhook
-}
-\renewcommand*\left@footnoterule{%
- \kern-3\p@
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- \hrule\@width.4\columnwidth
- \kern 2.6\p@}
-\renewcommand*\right@footnoterule{%
- \kern-3\p@
- \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
- \hbox to \columnwidth{\hskip .6\columnwidth \hrulefill }
- \kern2.6\p@}
-\renewcommand*{\raggeddictum}{\if@RTL\raggedright\else\raggedleft\fi}
-\renewcommand*{\raggeddictumtext}{\if@RTL\raggedleft\else\raggedright\fi}
-\renewcommand*{\raggeddictumauthor}{\if@RTL\raggedright\else\raggedleft\fi}
-\renewcommand\marginline[1]{%
- \marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
-}
-\renewcommand{\@@makecaption}[3]{%
- \cap@margin
- \ifonelinecaptions
- \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
- \let\scr@tmp@footnotetext=\@footnotetext
- \let\@footnotetext=\@gobble
- \let\scr@tmp@LTRfootnotetext=\@LTRfootnotetext
- \let\@LTRfootnotetext=\@gobble
- \let\scr@tmp@RTLfootnotetext=\@RTLfootnotetext
- \let\@RTLfootnotetext=\@gobble
- \sbox\@tempboxa{%
- {\capfont{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat}}}%
- #3\unskip\strut}}%
- }%
- \let\@footnotetext=\scr@tmp@footnotetext
- \let\scr@tmp@footnotetext=\undefined
- \let\@LTRfootnotetext=\scr@tmp@LTRfootnotetext
- \let\scr@tmp@LTRfootnotetext=\undefined
- \let\@RTLfootnotetext=\scr@tmp@RTLfootnotetext
- \let\scr@tmp@RTLfootnotetext=\undefined
- \setcounter{footnote}{\@tempcntb}%
- \setcounter{mpfootnote}{\@tempcnta}%
- \else
- \sbox\@tempboxa{\hspace*{2\cap@width}}%
- \fi
- \begingroup%
- \setlength{\@tempdima}{\cap@width}%
- \ifdim \wd\@tempboxa >\@tempdima
- \hb@xt@\hsize{%
- \setbox\@tempboxa\vbox{\hsize=\cap@width
- \ifdofullc@p
- {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat}}}}}%
- {#3\unskip\strut\par}}}%
- \else%
- \ifdim\cap@indent<\z@
- {\capfont{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat\par}}}%
- \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
- \else%
- \if@capbreak
- {\capfont{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat\par}}}%
- \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
- \else
- {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
- {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
- {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
- \fi
- \fi
- \fi
- }%
- \setlength{\@tempdima}{\ht\@tempboxa}%
- \addtolength{\@tempdima}{\dp\@tempboxa}%
- \addtolength{\@tempdima}{-\ht\strutbox}%
- \ht\@tempboxa\ht\strutbox
- \dp\@tempboxa\@tempdima
- \strut\cap@left
- \box\@tempboxa
- \cap@right\strut
- }%
- \else
- \global \@minipagefalse
- \sbox\@tempboxa{%
- {\capfont{\scr@smashdp{\strut\ignorespaces
- #1{{\caplabelfont{#2\captionformat}}}}%
- #3}}%
- }%
- {\capfont{\hb@xt@\hsize{\strut\cap@left\if@RTL\beginR\fi\box\@tempboxa\if@RTL\endR\fi\cap@right\strut}}}%
- \fi
- \endgroup
-}
-\renewcommand{\@makecaption}[2]{%
- \if@captionabove
- \vskip\belowcaptionskip
- \else
- \vskip\abovecaptionskip
- \fi
- \@@makecaption\@firstofone{#1}{#2}%
- \if@captionabove
- \vskip\abovecaptionskip
- \else
- \vskip\belowcaptionskip
- \fi
-}
-\bidi@AfterFile{longtable-xetex-bidi.def}{%
- \@ifpackageloaded{caption2}{\@komalongtablefalse
- \scr@caption@before@longtable@warning{caption2}%
- }{}%
- \if@komalongtable
- \renewcommand{\LT@makecaption}[3]{%
- \noalign{%
- \if@captionabove
- \vskip\belowcaptionskip
- \else
- \vskip\abovecaptionskip
- \fi
- }%
- \LT@mcol\LT@cols c{%
- \hbox to\z@{\hss\parbox[t]\linewidth{%
- \@@makecaption{#1}{#2}{#3}%
- \endgraf
- \if@captionabove
- \vskip\abovecaptionskip
- \else
- \vskip\belowcaptionskip
- \fi
- }%
- \hss
- }%
- }%
- }%
- \renewcommand*{\scr@LT@array}{}%
- \let\scr@LT@array=\LT@array
- \renewcommand*{\LT@array}{%
- \let\scr@caption=\LT@caption
- \def\captionabove{\noalign{\global\@captionabovetrue}%
- \scr@caption}%
- \def\captionbelow{\noalign{\global\@captionabovefalse}%
- \scr@caption}%
- \if@tablecaptionabove
- \let\LT@caption=\captionabove
- \else
- \let\LT@caption=\captionbelow
- \fi
- \scr@LT@array
- }%
- \ClassInfo{\KOMAClassName}{%
- longtable captions redefined%
- }%
- \fi
-}
-\endinput
-%%
-%% End of file `scrreprt-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/sidecap-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/sidecap-xetex-bidi.def
deleted file mode 100644
index 983600634fe..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/sidecap-xetex-bidi.def
+++ /dev/null
@@ -1,46 +0,0 @@
-%%
-%% This is file `sidecap-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,sidecap-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{sidecap-xetex-bidi.def}[2010/08/01 v0.1 bidi adaptations for sidecap package for XeTeX engine]
-\renewcommand*{\SC@FLOAT}[2]{\if@RTL%
- \isSC@ODD{{#1}\hspace{\sidecaptionsep}{#2}} {{#2}\hspace{\sidecaptionsep}{#1}}\else%
-\isSC@ODD{{#2}\hspace{\sidecaptionsep}{#1}} {{#1}\hspace{\sidecaptionsep}{#2}}\fi}
- \renewcommand*\SC@justify@caption{\if@RTL%
-\isSC@ODD{\RaggedLeft}{\RaggedRight}\else%
- \isSC@ODD{\RaggedRight}{\RaggedLeft}\fi}
-\endinput
-%%
-%% End of file `sidecap-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/soul-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/soul-xetex-bidi.def
deleted file mode 100644
index ccce3954396..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/soul-xetex-bidi.def
+++ /dev/null
@@ -1,99 +0,0 @@
-%%
-%% This is file `soul-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,soul-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{soul-xetex-bidi.def}[2015/10/16 v0.1 bidi adaptations for soul package for XeTeX engine]
-\long\def\SOUL@start#1{{%
- \let\bidi@RTL@everypar\@empty
- \let\<\SOUL@lowerthan
- \let\>\empty
- \def\soulomit{\noexpand\soulomit}%
- \gdef\SOUL@eventuallyexhyphen##1{}%
- \let\SOUL@soeventuallyskip\relax
- \SOUL@spaceskip=\fontdimen\tw@\font\@plus\fontdimen\thr@@\font
- \@minus\fontdimen4\font
- \SOUL@ignorespacesfalse
- \leavevmode
- \SOUL@preamble
- \SOUL@lasttoken={}%
- \SOUL@word={}%
- \SOUL@minus\z@
- \SOUL@comma\z@
- \SOUL@apo\z@
- \SOUL@grave\z@
- \SOUL@do{#1}%
- \SOUL@postamble
-}}
-\def\SOUL@ulunderline#1{{%
- \setbox\z@\hbox{#1}%
- \dimen@=\wd\z@
- \dimen@i=\SOUL@uloverlap
- \advance\dimen@2\dimen@i
- \if@RTL
- \unhcopy\z@
- \llap{%
- \null
- \kern-\dimen@i
- \SOUL@ulcolor{\SOUL@ulleaders\hskip\dimen@}%
- }%
- \else
- \rlap{%
- \null
- \kern-\dimen@i
- \SOUL@ulcolor{\SOUL@ulleaders\hskip\dimen@}%
- }%
- \unhcopy\z@
- \fi
-}}
-\def\bidi@SOUL@ulleaders{%
- \leaders\hb@xt@0.1pt{\hss\SOUL@ulcolor{\vrule\@depth\SOUL@uldp\@height\SOUL@ulht}\hss}\relax
-}
-\def\SOUL@uleveryspace#1{%
- \if@RTL
- #1%
- \bidi@SOUL@ulleaders
- \hskip\spaceskip
- \else
- \SOUL@ulcolor{%
- #1%
- \SOUL@ulleaders
- \hskip\spaceskip
- }%
- \fi
- \null
-}
-\endinput
-%%
-%% End of file `soul-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/stabular-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/stabular-xetex-bidi.def
deleted file mode 100644
index dd609724754..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/stabular-xetex-bidi.def
+++ /dev/null
@@ -1,66 +0,0 @@
-%%
-%% This is file `stabular-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,stabular-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{stabular-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for stabular package for XeTeX engine]
-\def\@stabular{\if@RTL\@RTLtabtrue\fi
- \leavevmode \bgroup \if@RTLtab\beginR \fi
- \let\@acol\@tabacol
- \let\@classz\@tabclassz
- \let\@classiv\@tabclassiv \let\\\@tabularcr\@stabarray}
-\def\endstabular{\crcr\egroup\if@RTLtab\egroup\endR\egroup\fi
- \egroup \if@RTLtab\endR\fi\egroup
- \@RTLtabfalse}
-\expandafter \let \csname endstabular*\endcsname = \endstabular
-\def\@sarray[#1]#2{%
- \bgroup
- \setbox\@arstrutbox\hbox{%
- \vrule \@height\arraystretch\ht\strutbox
- \@depth\arraystretch \dp\strutbox
- \@width\z@}%
- \@mkpream{#2}%
- \edef\@preamble{%
- \ialign \noexpand\@halignto
- \bgroup \@arstrut \@preamble \tabskip\z@skip \cr}%
- \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
- \let\tabularnewline\\%
- \let\@sharp##%
- \set@typeset@protect
- \lineskip\z@skip\baselineskip\z@skip
- \if@RTLtab\hbox\bgroup\beginR\if #1t\vtop \else \vbox \fi\bgroup\fi
- \@preamble}
-\endinput
-%%
-%% End of file `stabular-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def
deleted file mode 100644
index 40e28978ab7..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def
+++ /dev/null
@@ -1,44 +0,0 @@
-%%
-%% This is file `subfigure-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,subfigure-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{subfigure-xetex-bidi.def}[2010/03/01 v0.1 bidi adaptations for subfigure package for XeTeX engine]
-\AtBeginDocument{%
-\let\p@subfigure=\thefigure
-\let\p@subtable=\thetable%
-}
-\endinput
-%%
-%% End of file `subfigure-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tabls-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/tabls-xetex-bidi.def
deleted file mode 100644
index 0dcfd5c5575..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/tabls-xetex-bidi.def
+++ /dev/null
@@ -1,74 +0,0 @@
-%%
-%% This is file `tabls-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,tabls-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{tabls-xetex-bidi.def}[2015/11/07 v0.3 bidi adaptations for tabls package for XeTeX engine]
-\def\endtabular{\endarray $\if@RTLtab\endR\fi\egroup
- \@RTLtabfalse}
-
-\expandafter\let\csname endtabular*\endcsname=\endtabular
-
-\def\endarray{\ifvmode\csname crcr\endcsname % just do \crcr if \\ given
- \else \\[\z@ \global\advance\@arstdepth-\@otarlinesep]%
- \fi\egroup\if@RTLtab\egroup\endR\egroup\fi\@unrecurse\egroup}
-
-\def\@array[#1]#2{% remember global variables to allow recursion:
- \edef\@unrecurse{\global\@skip@bove\the\@skip@bove
- \global\@arstheight\the\@arstheight\global\@arstdepth\the\@arstdepth}%
- \let\@otarlinesep\@tarlinesep \global\@skip@bove-\@otarlinesep
- \ifx\@classz\@arrayclassz \let\@tarlinesep\arraylinesep
- \else \let\@tarlinesep\tablinesep \fi
- \divide\@tarlinesep\tw@ % half sep is applied to height & depth
- \let\@seesize\relax \let\@rememsize\relax \@mkpream{#2}%
- \@tempdima\arraystretch\ht\strutbox \@tempdimb\arraystretch\dp\strutbox
- \ifdim\@tarlinesep>\z@ % (need \protect for \multicolumn)
- \def\@rememsize{\protect\@r@m@msize}\let\@seesize\@s@@size
- \advance\@tempdima-\@tarlinesep \advance\@tempdimb-\@tarlinesep
- \fi \setbox\@arstrutbox\hbox{% set up smaller strut
- \vrule \@height\@tempdima \@depth\@tempdimb \@width\z@}%
- \let\protect\noexpand
- \edef\@preamble{\ialign \noexpand\@halignto \bgroup
- \unhcopy\@arstrutbox \@preamble \tabskip\z@skip &\@sharp \cr}%
- \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
- \if#1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi
- \bgroup \let\par\@empty
- \global\@arstheight\ht\@arstrutbox \global\@arstdepth\dp\@arstrutbox
- \advance\extrarulesep.5\arrayrulewidth
- \let\@sharp##\let\protect\relax \lineskip\z@skip \baselineskip\z@skip
- \if@RTLtab\hbox\bgroup\beginR\if#1t\vtop \else \vbox \fi\bgroup\fi
- \@preamble}
-\endinput
-%%
-%% End of file `tabls-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tabularx-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/tabularx-xetex-bidi.def
deleted file mode 100644
index c32eada6c03..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/tabularx-xetex-bidi.def
+++ /dev/null
@@ -1,114 +0,0 @@
-%%
-%% This is file `tabularx-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,tabularx-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{tabularx-xetex-bidi.def}[2014/11/08 v0.1 bidi adaptations for tabularx package for XeTeX engine]
-\def\TX@endtabularx{%
- \expandafter\expandafter\expandafter
- \TX@find@endtabularxa\csname end\TX@\endcsname
- \endtabularx\TX@\endtabularx\TX@find@endtabularxa
- \expandafter\TX@newcol\expandafter{\tabularxcolumn{\TX@col@width}}%
- \let\verb\TX@verb
- \def\@elt##1{\global\value{##1}\the\value{##1}\relax}%
- \edef\TX@ckpt{\cl@@ckpt}%
- \let\@elt\relax
- \TX@old@table\maxdimen
- \TX@col@width\TX@target
- \global\TX@cols\@ne
- \TX@typeout@
- {\@spaces Table Width\@spaces Column Width\@spaces X Columns}%
- \TX@trial{\def\NC@rewrite@X{%
- \global\advance\TX@cols\@ne\NC@find p{\TX@col@width}}}%
- \loop
- \TX@arith
- \ifTX@
- \TX@trial{}%
- \repeat
- {\let\@footnotetext\TX@ftntext\let\@xfootnotenext\TX@xftntext
- \let\@LTRfootnotetext\TX@LTRftntext\let\@xLTRfootnotenext\TX@xLTRftntext
- \let\@RTLfootnotetext\TX@RTLftntext\let\@xRTLfootnotenext\TX@xRTLftntext
- \csname tabular*\expandafter\endcsname\expandafter\TX@target
- \the\toks@
- \csname endtabular*\endcsname}%
- \global\TX@ftn\expandafter{\expandafter}\the\TX@ftn
- \ifnum0=`{\fi}%
- \expandafter\expandafter\expandafter
- \TX@find@endtabularxbb
- \expandafter\end\expandafter{\TX@}%
- \endtabularx\TX@\endtabularx\TX@find@endtabularxb
-}
-
-\def\TX@trial#1{%
- \setbox\@tempboxa\hbox{%
- #1\relax
- \let\@footnotetext\TX@trial@ftn
- \let\@LTRfootnotetext\TX@trial@ftn
- \let\@RTLfootnotetext\TX@trial@ftn
- \let\TX@vwarn\@empty
- \expandafter\let\expandafter\tabularx\csname tabular*\endcsname
- \expandafter\let\expandafter\endtabularx\csname endtabular*\endcsname
- \def\write{\begingroup
- \def\let{\afterassignment\endgroup\toks@}%
- \afterassignment\let\count@}%
- \hbadness\@M
- \hfuzz\maxdimen
- \let\hbadness\@tempcnta
- \let\hfuzz\@tempdima
- \expandafter\tabular\the\toks@
- \endtabular}%
- \TX@ckpt
- \TX@typeout@{\@spaces
- \expandafter\TX@align
- \the\wd\@tempboxa\space\space\space\space\space\@@
- \expandafter\TX@align
- \the\TX@col@width\space\space\space\space\space\@@
- \@spaces\the\TX@cols}}
-
-\long\def\TX@LTRftntext#1{%
- \edef\@tempa{\the\TX@ftn\noexpand\LTRfootnotetext
- [\the\csname c@\@mpfn\endcsname]}%
- \global\TX@ftn\expandafter{\@tempa{#1}}}%
-\long\def\TX@xLTRftntext[#1]#2{%
- \global\TX@ftn\expandafter{\the\TX@ftn\LTRfootnotetext[#1]{#2}}}
-
-\long\def\TX@RTLftntext#1{%
- \edef\@tempa{\the\TX@ftn\noexpand\RTLfootnotetext
- [\the\csname c@\@mpfn\endcsname]}%
- \global\TX@ftn\expandafter{\@tempa{#1}}}%
-\long\def\TX@xRTLftntext[#1]#2{%
- \global\TX@ftn\expandafter{\the\TX@ftn\RTLfootnotetext[#1]{#2}}}
-\endinput
-%%
-%% End of file `tabularx-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tabulary-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/tabulary-xetex-bidi.def
deleted file mode 100644
index aa3c294ac64..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/tabulary-xetex-bidi.def
+++ /dev/null
@@ -1,69 +0,0 @@
-%%
-%% This is file `tabulary-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,tabulary-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{tabulary-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for tabulary package for XeTeX engine]
-\def\@testpach{\@chclass
- \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
- \ifnum \@lastchclass=7 5 \else
- \ifnum \@lastchclass=8 \tw@ \else
- \ifnum \@lastchclass=9 \thr@@
- \else \z@
- \ifnum \@lastchclass = 10 \else
- \edef\@nextchar{\expandafter\string\@nextchar}%
- \@chnum
- \if \@nextchar c\z@ \else
- \if \@nextchar \if@RTLtab r\else l\fi\@ne \else
- \if \@nextchar \if@RTLtab l\else r\fi\tw@ \else
- \if \@nextchar C7 \else
- \if \@nextchar L8 \else
- \if \@nextchar R9 \else
- \if \@nextchar J10 \else
- \z@ \@chclass
- \if\@nextchar |\@ne \else
- \if \@nextchar !6 \else
- \if \@nextchar @7 \else
- \if \@nextchar <8 \else
- \if \@nextchar >9 \else
- 10
- \@chnum
- \if \@nextchar m\thr@@\else
- \if \@nextchar p4 \else
- \if \@nextchar b5 \else
- \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi\fi \fi \fi\fi \fi
- \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
-\endinput
-%%
-%% End of file `tabulary-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tc-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/tc-xetex-bidi.def
deleted file mode 100644
index d8a0e2e9b5b..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/tc-xetex-bidi.def
+++ /dev/null
@@ -1,58 +0,0 @@
-%%
-%% This is file `tc-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,tc-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{tc-xetex-bidi.def}[2014/07/08 v0.1 bidi adaptations for Clipping driver for XeTeX engine]
-\def\@cliptoboxdim#1{%
- \setbox#1=\hbox{%
- \Gin@defaultbp\WIDTH{\wd#1}%
- \Gin@defaultbp\DEPTH{\dp#1}%
- \@tempdima\ht#1%
- \advance\@tempdima\dp#1%
- \Gin@defaultbp\TOTALHEIGHT{\@tempdima}%
- \beginL\special{pdf:bcontent }%
- \special{%
- pdf:literal direct
- 0 -\DEPTH\space \WIDTH\space \TOTALHEIGHT\space re
- }%
- \special{pdf:literal direct W }%
- \special{pdf:literal direct n }%
- \if@RTL\beginR\fi\box#1\if@RTL\endR\fi%
- \special{pdf:econtent }\endL%
- }%
-}
-\endinput
-%%
-%% End of file `tc-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/titlesec-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/titlesec-xetex-bidi.def
deleted file mode 100644
index 73732ea6e4b..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/titlesec-xetex-bidi.def
+++ /dev/null
@@ -1,68 +0,0 @@
-%%
-%% This is file `titlesec-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,titlesec-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{titlesec-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for titlesec package for XeTeX engine]
-\renewcommand\filright{%
- \gdef\ttl@filleft##1{\hskip##1}%
- \gdef\ttl@filright##1{\hfill}%
- \let\\\@centercr
- \advance\rightskip\z@ \@plus 1fil
-\parfillskip\z@}
-\def\ttlh@hang#1#2#3#4#5#6#7#8{%
- \gdef\ttl@makeline##1{\ttl@calc\hspace{#6}##1\ttl@calc\hspace{#7}}%
- \setlength\leftskip{#6}%
- \setlength\rightskip{#7}%
- \interlinepenalty\@M
- \ttl@changecentercr
- \ttl@beginlongest
- #1{\ifhmode\ttl@hmode@error\fi
- \ttl@glcmds
- \parindent\z@
- \leavevmode
- \begingroup
- \ifttl@label
- \sbox\z@{#2\strut\ttl@calc\hspace{#3}}%
- \if@RTL\advance\rightskip\wd\z@\else\advance\leftskip\wd\z@\fi
- \llap{\box\z@}%
- \fi
- #4{#8}%
- \kern\z@\strut\@@par
- \endgroup
- \nobreak\ttl@midlongest#5\@@par}%
- \ttl@endlongest}
-\endinput
-%%
-%% End of file `titlesec-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/titletoc-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/titletoc-xetex-bidi.def
deleted file mode 100644
index c87f791edbf..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/titletoc-xetex-bidi.def
+++ /dev/null
@@ -1,88 +0,0 @@
-%%
-%% This is file `titletoc-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,titletoc-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{titletoc-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for titletoc package for XeTeX engine]
-\renewcommand\filright{%
- \gdef\ttl@filleft##1{\hskip##1}%
- \gdef\ttl@filright##1{\hfill}%
- \let\\\@centercr
- \advance\rightskip\z@ \@plus 1fil
-\parfillskip\z@}
-\renewcommand\contentspush[1]{%
- \sbox\z@{#1}%
- \xdef\ttl@b{\advance\if@RTL\rightskip\else\leftskip\fi\the\wd\z@}%
- \aftergroup\ttl@b
- \leavevmode\llap{\box\z@}}
-\def\ttl@outnoblock#1#2#3{%
- \begingroup
- \ifnum\ttl@b>\ttl@a
- \nobreak
- \else\ifnum\ttl@b<\ttl@a
- \addpenalty{\@secpenalty}%
- \else
- \addpenalty{\z@}%
- \fi\fi
- \ttl@contentsstretch
- \nobreak
- \ifcase#1\relax\else\interlinepenalty\@M\fi
- \parindent\z@
- \ifx\@nil#2%
- \PackageError{titletoc}{Unimplemented}%
- {The optional argument is currently mandatory}%
- \else
- \if@RTL\setlength\rightskip{#2}\else
- \setlength\leftskip{#2}\fi%
- \fi
- \if@RTL\setlength\leftskip{\@pnumwidth}\else\setlength\rightskip{\@pnumwidth}\fi%
- \let\contentsmargin\ttl@margin
- \def\ttl@makeline##1{##1}%
- #3%
- \addtolength{\parfillskip}{-\ttl@corr}%
- \if@RTL\addtolength{\leftskip}{\ttl@corr}\else\addtolength{\rightskip}{\ttl@corr}\fi%
- \let\ttl@leaders\leaders}
-\renewcommand\ttl@margin[2][\z@]{%
- \def\ttl@corr{#1}%
- \advance\if@RTL\leftskip\else\rightskip\fi-\@pnumwidth\relax
- \advance\if@RTL\leftskip\else\rightskip\fi#2\relax
- \def\@pnumwidth{#2}}
-\let\ttl@savel@part\l@part
-\def\l@part{\ttl@lselect{part}}
-
-\let\ttl@savel@chapter\l@chapter
-\def\l@chapter{\ttl@lselect{chapter}}
-\endinput
-%%
-%% End of file `titletoc-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def
deleted file mode 100644
index bef5b35509b..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def
+++ /dev/null
@@ -1,119 +0,0 @@
-%%
-%% This is file `tocbibind-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,tocbibind-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{tocbibind-xetex-bidi.def}[2012/12/12 v0.3 bidi adaptations for tocbibind package for XeTeX engine]
-\if@dotocbib
- \@ifpackageloaded{natbib}{}{% natbib not loaded
- \renewcommand{\bibsection}{\t@cb@bchapsec}
- \renewenvironment{thebibliography}[1]{%
- \bibsection
- \begin{thebibitemlist}{#1}}{\end{thebibitemlist}}}
- \renewenvironment{thebibitemlist}[1]{
- \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
- \list{\@biblabel{\@arabic\c@enumiv}}%
- {\settowidth\labelwidth{\@biblabel{#1}}%
- \leftmargin\labelwidth
- \advance\leftmargin\labelsep
- \@openbib@code
- \usecounter{enumiv}%
- \let\p@enumiv\@empty
- \renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy
- \clubpenalty4000
- \@clubpenalty \clubpenalty
- \widowpenalty4000%
- \sfcode`\.\@m}
- {\def\@noitemerr
- {\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
-
- \@ifpackagewith{chapterbib}{sectionbib}%
- {\renewcommand{\sectionbib}[2]{}}%
- {}
-
-\fi
-\if@inltxdoc\else
- \renewenvironment{theindex}%
- {\if@twocolumn
- \@restonecolfalse
- \else
- \@restonecoltrue
- \fi
- \if@bibchapter
- \if@donumindex
- \refstepcounter{chapter}
- \twocolumn[\vspace*{2\topskip}%
- \@makechapterhead{\indexname}]%
- \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}\indexname}
- \chaptermark{\indexname}
- \else
- \if@dotocind
- \twocolumn[\vspace*{2\topskip}%
- \@makeschapterhead{\indexname}]%
- \prw@mkboth{\indexname}
- \addcontentsline{toc}{chapter}{\indexname}
- \else
- \twocolumn[\vspace*{2\topskip}%
- \@makeschapterhead{\indexname}]%
- \prw@mkboth{\indexname}
- \fi
- \fi
- \else
- \if@donumindex
- \twocolumn[\vspace*{-1.5\topskip}%
- \@nameuse{\@tocextra}{\indexname}]%
- \csname \@tocextra mark\endcsname{\indexname}
- \else
- \if@dotocind
- \twocolumn[\vspace*{-1.5\topskip}%
- \toc@headstar{\@tocextra}{\indexname}]%
- \prw@mkboth{\indexname}
- \addcontentsline{toc}{\@tocextra}{\indexname}
- \else
- \twocolumn[\vspace*{-1.5\topskip}%
- \toc@headstar{\@tocextra}{\indexname}]%
- \prw@mkboth{\indexname}
- \fi
- \fi
- \fi
- \thispagestyle{plain}\parindent\z@
- \parskip\z@ \@plus .3\p@\relax
- \let\item\@idxitem}
- {\if@restonecol\onecolumn\else\clearpage\fi}
-\fi
-\endinput
-%%
-%% End of file `tocbibind-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tocloft-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/tocloft-xetex-bidi.def
deleted file mode 100644
index 1eb82a09217..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/tocloft-xetex-bidi.def
+++ /dev/null
@@ -1,347 +0,0 @@
-%%
-%% This is file `tocloft-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,tocloft-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{tocloft-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for tocloft package for XeTeX engine]
-\let\cftdot\@SepMark
-\if@cfthaspart
-\renewcommand*{\l@part}[2]{
- \@cftdopartfalse
- \ifnum \c@tocdepth >-2\relax
- \if@cfthaschapter
- \@cftdoparttrue
- \fi
- \ifnum \c@tocdepth >\m@ne
- \if@cfthaschapter\else
- \@cftdoparttrue
- \fi
- \fi
- \fi
- \if@cftdopart
- \if@cfthaschapter
- \addpenalty{-\@highpenalty}
- \else
- \addpenalty\@secpenalty
- \fi
- \addvspace{\cftbeforepartskip}
- \begingroup
- {\if@RTL\rightskip\else\leftskip\fi \cftpartindent\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \cftpartindent\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \cftpartnumwidth\relax
- \let\@cftbsnum \cftpartpresnum
- \let\@cftasnum \cftpartaftersnum
- \let\@cftasnumb \cftpartaftersnumb
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\cftpartfont \cftpartpresnum #1}
- \cftpartfillnum{#2}}
- \nobreak
- \if@cfthaschapter
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}
- \else
- \if@compatibility
- \global\@nobreaktrue
- \everypar{\global\@nobreakfalse\everypar{}}
- \fi
- \fi
- \endgroup
- \fi}
-\fi
-\if@cfthaschapter
-\renewcommand*{\l@chapter}[2]{
- \ifnum \c@tocdepth >\m@ne
- \addpenalty{-\@highpenalty}
- \vskip \cftbeforechapskip
- {\if@RTL\rightskip\else\leftskip\fi \cftchapindent\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \cftchapindent\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \cftchapnumwidth\relax
- \let\@cftbsnum \cftchappresnum
- \let\@cftasnum \cftchapaftersnum
- \let\@cftasnumb \cftchapaftersnumb
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\cftchapfont #1}\nobreak
- \cftchapfillnum{#2}}
- \fi}
-\fi
-\renewcommand*{\l@section}[2]{%
- \ifnum \c@tocdepth >\z@
- \if@cfthaschapter
- \vskip \cftbeforesecskip
- \else
- \addpenalty\@secpenalty
- \addvspace{\cftbeforesecskip}
- \fi
- {\if@RTL\rightskip\else\leftskip\fi \cftsecindent\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \cftsecindent\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \cftsecnumwidth\relax
- \let\@cftbsnum \cftsecpresnum
- \let\@cftasnum \cftsecaftersnum
- \let\@cftasnumb \cftsecaftersnumb
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\cftsecfont #1}\nobreak
- \cftsecfillnum{#2}}
- \fi}
-\renewcommand*{\l@subsection}[2]{%
- \ifnum \c@tocdepth >\@ne
- \vskip \cftbeforesubsecskip
- {\if@RTL\rightskip\else\leftskip\fi \cftsubsecindent\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \cftsubsecindent\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \cftsubsecnumwidth\relax
- \let\@cftbsnum \cftsubsecpresnum
- \let\@cftasnum \cftsubsecaftersnum
- \let\@cftasnumb \cftsubsecaftersnumb
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\cftsubsecfont #1}\nobreak
- \cftsubsecfillnum{#2}}
- \fi}
-\renewcommand*{\l@subsubsection}[2]{%
- \ifnum \c@tocdepth >\tw@
- \vskip \cftbeforesubsubsecskip
- {\if@RTL\rightskip\else\leftskip\fi \cftsubsubsecindent\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \cftsubsubsecindent\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \cftsubsubsecnumwidth\relax
- \let\@cftbsnum \cftsubsubsecpresnum
- \let\@cftasnum \cftsubsubsecaftersnum
- \let\@cftasnumb \cftsubsubsecaftersnumb
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\cftsubsubsecfont #1}\nobreak
- \cftsubsubsecfillnum{#2}}
- \fi}
-\renewcommand*{\l@paragraph}[2]{%
- \ifnum \c@tocdepth >3\relax
- \vskip \cftbeforeparaskip
- {\if@RTL\rightskip\else\leftskip\fi \cftparaindent\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \cftparaindent\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \cftparanumwidth\relax
- \let\@cftbsnum \cftparapresnum
- \let\@cftasnum \cftparaaftersnum
- \let\@cftasnumb \cftparaaftersnumb
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\cftparafont #1}\nobreak
- \cftparafillnum{#2}}
- \fi}
-\renewcommand*{\l@subparagraph}[2]{%
- \ifnum \c@tocdepth >4\relax
- \vskip \cftbeforesubparaskip
- {\if@RTL\rightskip\else\leftskip\fi \cftsubparaindent\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \cftsubparaindent\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \cftsubparanumwidth\relax
- \let\@cftbsnum \cftsubparapresnum
- \let\@cftasnum \cftsubparaaftersnum
- \let\@cftasnumb \cftsubparaaftersnumb
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\cftsubparafont #1}\nobreak
- \cftsubparafillnum{#2}}
- \fi}
-\renewcommand*{\l@figure}[2]{%
- \ifnum \c@lofdepth >\z@
- \vskip \cftbeforefigskip
- {\if@RTL\rightskip\else\leftskip\fi \cftfigindent\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \cftfigindent\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \cftfignumwidth\relax
- \let\@cftbsnum \cftfigpresnum
- \let\@cftasnum \cftfigaftersnum
- \let\@cftasnumb \cftfigaftersnumb
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\cftfigfont #1}\nobreak
- \cftfigfillnum{#2}}
- \fi
- }
-\renewcommand*{\l@table}[2]{%
- \ifnum\c@lotdepth >\z@
- \vskip \cftbeforetabskip
- {\if@RTL\rightskip\else\leftskip\fi \cfttabindent\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \cfttabindent\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \cfttabnumwidth\relax
- \let\@cftbsnum \cfttabpresnum
- \let\@cftasnum \cfttabaftersnum
- \let\@cftasnumb \cfttabaftersnumb
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\cfttabfont #1}\nobreak
- \cfttabfillnum{#2}}
- \fi
- }
-\renewcommand{\@cftl@subfig}{
-\renewcommand*{\l@subfigure}[2]{%
- \ifnum \c@lofdepth > \toclevel@subfigure
- \vskip \cftbeforesubfigskip
- {\if@RTL\rightskip\else\leftskip\fi \cftsubfigindent\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \cftsubfigindent\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \cftsubfignumwidth\relax
- \let\@cftbsnum \cftsubfigpresnum
- \let\@cftasnum \cftsubfigaftersnum
- \let\@cftasnumb \cftsubfigaftersnumb
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\cftsubfigfont ##1}\nobreak
- \cftsubfigfillnum{##2}}
- \fi
- }
-}
-\renewcommand{\@cftl@subtab}{
-\renewcommand*{\l@subtable}[2]{%
- \ifnum \c@lotdepth > \toclevel@subtable
- \vskip \cftbeforesubtabskip
- {\if@RTL\rightskip\else\leftskip\fi \cftsubtabindent\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \cftsubtabindent\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \cftsubtabnumwidth\relax
- \let\@cftbsnum \cftsubtabpresnum
- \let\@cftasnum \cftsubtabaftersnum
- \let\@cftasnumb \cftsubtabaftersnumb
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\cftsubtabfont ##1}\nobreak
- \cftsubtabfillnum{##2}}
- \fi
- }
-}
-\renewcommand{\newlistentry}[4][\@empty]{%
- \@ifundefined{c@#2}{% check & set the counter
- \ifx \@empty#1\relax
- \newcounter{#2}
- \else
- \@ifundefined{c@#1}{\PackageWarning{tocloft}%
- {#1 has no counter for use as a `within'}
- \newcounter{#2}}%
- {\newcounter{#2}[#1]%
- \expandafter\edef\csname the#2\endcsname{%
- \expandafter\noexpand\csname the#1\endcsname\@SepMark\noexpand\arabic{#2}}}
- \fi
- \setcounter{#2}{0}
- }
- {\PackageError{tocloft}{#2 has been previously defined}{\@eha}}
-
- \@namedef{l@#2}##1##2{%
- \ifnum \@nameuse{c@#3depth} > #4\relax
- \vskip \@nameuse{cftbefore#2skip}
- {\if@RTL\rightskip\else\leftskip\fi \@nameuse{cft#2indent}\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent \@nameuse{cft#2indent}\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima \@nameuse{cft#2numwidth}\relax
- \expandafter\let\expandafter\@cftbsnum\csname cft#2presnum\endcsname
- \expandafter\let\expandafter\@cftasnum\csname cft#2aftersnum\endcsname
- \expandafter\let\expandafter\@cftasnumb\csname cft#2aftersnumb\endcsname
- \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {\@nameuse{cft#2font}##1}\nobreak
- \@nameuse{cft#2fillnum}{##2}}
- \fi
- } % end of \l@#2
-
- \expandafter\newlength\csname cftbefore#2skip\endcsname
- \setlength{\@nameuse{cftbefore#2skip}}{\z@ \@plus .2\p@}
- \expandafter\newlength\csname cft#2indent\endcsname
- \expandafter\newlength\csname cft#2numwidth\endcsname
- \ifcase #4\relax % 0
- \setlength{\@nameuse{cft#2indent}}{0em}
- \setlength{\@nameuse{cft#2numwidth}}{1.5em}
- \or % 1
- \setlength{\@nameuse{cft#2indent}}{1.5em}
- \setlength{\@nameuse{cft#2numwidth}}{2.3em}
- \or % 2
- \setlength{\@nameuse{cft#2indent}}{3.8em}
- \setlength{\@nameuse{cft#2numwidth}}{3.2em}
- \or % 3
- \setlength{\@nameuse{cft#2indent}}{7.0em}
- \setlength{\@nameuse{cft#2numwidth}}{4.1em}
- \else % anything else
- \setlength{\@nameuse{cft#2indent}}{10.0em}
- \setlength{\@nameuse{cft#2numwidth}}{5.0em}
- \fi
- \@namedef{cft#2font}{\normalfont}
- \@namedef{cft#2presnum}{}
- \@namedef{cft#2aftersnum}{}
- \@namedef{cft#2aftersnumb}{}
- \@namedef{cft#2dotsep}{\cftdotsep}
- \@namedef{cft#2leader}{\normalfont\cftdotfill{\@nameuse{cft#2dotsep}}}
- \@namedef{cft#2pagefont}{\normalfont}
- \@namedef{cft#2afterpnum}{}
- \@namedef{toclevel@#2}{#4}
- \@namedef{cft#2fillnum}##1{%
- {\@nameuse{cft#2leader}}\nobreak
- \hb@xt@\@pnumwidth{\hfil\@nameuse{cft#2pagefont}##1}\@nameuse{cft#2afterpnum}\par}
-} % end \newlistentry
-\renewcommand{\cftchapterprecistoc}[1]{\addtocontents{toc}{%
- {\if@RTL\rightskip\else\leftskip\fi \cftchapindent\relax
- \advance\if@RTL\righskip\else\leftskip\fi \cftchapnumwidth\relax
- \if@RTL\leftskip\else\rightskip\fi \@tocrmarg\relax
- \textit{#1}\protect\par}}}
-\endinput
-%%
-%% End of file `tocloft-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tocstyle-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/tocstyle-xetex-bidi.def
deleted file mode 100644
index 9c984368a9a..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/tocstyle-xetex-bidi.def
+++ /dev/null
@@ -1,285 +0,0 @@
-%%
-%% This is file `tocstyle-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,tocstyle-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{tocstyle-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for tocstyle package for XeTeX engine]
-\renewcommand*{\tocstyle@dottedtocline}[5]{%
- \let\numberline\tocstyle@numberline
- \ifnum #1>\c@tocdepth \else
- \if@tocstyle@penalties
- \begingroup
- \@tempcnta 20010
- \advance \@tempcnta by -#1
- \ifnum \@tempcnta>\lastpenalty
- \aftergroup\penalty\aftergroup\@lowpenalty
- \fi
- \endgroup
- \fi
- \edef\tocstyledepth{#1}%
- \tocstyle@activate@features
- \ifx\tocstyle@feature@entryvskip\relax
- \vskip \z@ \@plus.2\p@
- \else
- \addvspace{\tocstyle@feature@entryvskip}%
- \fi
- {%
- \parskip \z@ \parindent \z@ \if@RTL\rightskip\else\leftskip\fi \z@ \if@RTL\leftskip\else\rightskip\fi \z@
- \tocstyle@feature@raggedhook
- \@tempdima #3\relax
- \@tempdimb #2\relax
- \typeout{m (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
- \ifnum #1>\z@\relax
- \@tempcnta #1\relax \advance\@tempcnta \m@ne
- \ifcsname tocstyle@skipwidth@\tocstyleTOC @\the\@tempcnta\endcsname
- \ifcsname tocstyle@numwidth@\tocstyleTOC @\the\@tempcnta\endcsname
- \@tempdimb
- \csname tocstyle@skipwidth@\tocstyleTOC @\the\@tempcnta\endcsname
- \advance\@tempdimb
- \csname tocstyle@numwidth@\tocstyleTOC @\the\@tempcnta\endcsname
- \fi
- \fi
- \fi
- \typeout{C (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
- \ifcsname tocstyle@skipwidth@\tocstyleTOC @#1\endcsname
- \ifdim \@tempdimb>
- \csname tocstyle@skipwidth@\tocstyleTOC @#1\endcsname\relax
- \expandafter\xdef\csname tocstyle@skipwidth@\tocstyleTOC
- @#1\endcsname{\the\@tempdimb}%
- \fi
- \else
- \expandafter\xdef\csname tocstyle@skipwidth@\tocstyleTOC
- @#1\endcsname{\the\@tempdimb}%
- \fi
- \iftocstyle@autolength
- \ifcsname tocstyle@maxskipwidth@\tocstyleTOC @#1\endcsname
- \@tempdimb \csname tocstyle@maxskipwidth@\tocstyleTOC @#1\endcsname
- \relax
- \fi
- \ifcsname tocstyle@maxnumwidth@\tocstyleTOC @#1\endcsname
- \@tempdima \csname tocstyle@maxnumwidth@\tocstyleTOC @#1\endcsname
- \relax
- \fi
- \typeout{a (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
- \typeout{A (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
- \else
- \@tempdimb #2\relax
- \typeout{M (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
- \fi
- \ifcsname tocstyle@unumwidth@\tocstyleTOC @\endcsname
- \ifdim \@tempdima>
- \csname tocstyle@unumwidth@\tocstyleTOC @\endcsname\relax
- \expandafter\xdef\csname tocstyle@unumwidth@\tocstyleTOC
- @\endcsname{\the\@tempdima}%
- \fi
- \else
- \expandafter\xdef\csname tocstyle@unumwidth@\tocstyleTOC
- @\endcsname{\the\@tempdima}%
- \fi
- \ifcase\tocstyle@indentstyle\relax\else
- \@tempdimb \z@
- \ifcsname tocstyle@maxunumwidth@\tocstyleTOC @\endcsname
- \@tempdima \csname tocstyle@maxunumwidth@\tocstyleTOC @\endcsname
- \relax
- \fi
- \typeout{s (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
- \typeout{S (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
- \fi
- \advance\parindent \@tempdimb\@afterindenttrue
- \advance\if@RTL\rightskip\else\leftskip\fi \parindent
- \advance\if@RTL\leftskip\else\rightskip\fi \@tocrmarg
- \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \ifx\tocstyle@feature@parfillskip\relax\else
- \advance\parfillskip \tocstyle@feature@parfillskip\relax
- \fi
- \interlinepenalty\@M
- \leavevmode
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima
- \null\nobreak
- \iftocstyle@indentnotnumbered\else
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- \fi
- \tocstyle@feature@entryhook
- {#4}\nobreak
- \ifx\tocstyle@feature@leaders\relax
- \leaders\hbox{$\m@th
- \mkern \@dotsep mu\hbox{\tocstyle@feature@dothook .}%
- \mkern \@dotsep mu$}\hfill
- \else
- \tocstyle@feature@leaders
- \fi
- \nobreak
- \ifx\tocstyle@feature@pagenumberbox\relax
- \hb@xt@\@pnumwidth{\hfil\tocstyle@feature@pagenumberhook #5}%
- \else
- \tocstyle@feature@pagenumberbox{\tocstyle@feature@pagenumberhook #5}%
- \fi
- \par
- }%
- \if@tocstyle@penalties
- \bgroup
- \@tempcnta 20009
- \advance\@tempcnta by -#1
- \edef\reserved@a{\egroup\penalty\the\@tempcnta\relax}%
- \reserved@a
- \fi
- \fi}
-\renewcommand*{\tocstyle@numberline}[1]{%
- \begingroup
- \ifx\tocstyle@feature@spaceafternumber\relax
- \settowidth\@tempdima{\tocstyle@@numberline{#1}\enskip}%
- \else
- \settowidth\@tempdima{\tocstyle@@numberline{#1}}%
- \advance \@tempdima \tocstyle@feature@spaceafternumber\relax
- \fi
- \ifcsname tocstyle@numwidth@\tocstyleTOC @\tocstyledepth\endcsname
- \ifdim \@tempdima >
- \csname tocstyle@numwidth@\tocstyleTOC @\tocstyledepth\endcsname\relax
- \expandafter\xdef\csname tocstyle@numwidth@\tocstyleTOC
- @\tocstyledepth\endcsname{\the\@tempdima}%
- \fi
- \else
- \expandafter\xdef\csname tocstyle@numwidth@\tocstyleTOC
- @\tocstyledepth\endcsname{\the\@tempdima}%
- \fi
- \endgroup
- \iftocstyle@indentnotnumbered
- \hskip -\if@RTL\rightskip\else\leftskip\fi
- \fi
- \ifcase \tocstyle@indentstyle
- \hb@xt@\@tempdima{\tocstyle@@numberline{#1}\hfil}%
- \or
- \hb@xt@\@tempdima{\tocstyle@@numberline{#1}\hfil}%
- \else
- \ifx\tocstyle@feature@spaceafternumber\relax
- \hbox{\tocstyle@@numberline{#1}\enskip}%
- \else
- \hbox{\tocstyle@@numberline{#1}\hskip
- \tocstyle@feature@spaceafternumber\relax}%
- \fi
- \fi
-}
-\AtBeginDocument{%
- \ifcsname l@part\endcsname
- \ifcsname l@chapter\endcsname
- \setbox\@tempboxa\vbox{\hsize\maxdimen
- \l@part{\tocstyle@l@define{part}{-1}}{}}%
- \else
- \setbox\@tempboxa\vbox{\hsize\maxdimen
- \l@part{\tocstyle@l@define{part}{0}}{}}%
- \fi
- \fi
- \ifcsname l@chapter\endcsname
- \setbox\@tempboxa\vbox{\hsize\maxdimen
- \l@chapter{\tocstyle@l@define{chapter}{0}}{}}%
- \fi
- \ifcsname l@section\endcsname
- \setbox\@tempboxa\vbox{\hsize\maxdimen
- \l@section{\tocstyle@l@define{section}{1}}{}}%
- \fi
- \ifcsname l@subsection\endcsname
- \setbox\@tempboxa\vbox{\hsize\maxdimen
- \l@subsection{\tocstyle@l@define{subsection}{2}}{}}%
- \fi
- \ifcsname l@subsubsection\endcsname
- \setbox\@tempboxa\vbox{\hsize\maxdimen
- \l@subsubsection{\tocstyle@l@define{subsubsection}{3}}{}}%
- \fi
- \ifcsname l@paragraph\endcsname
- \setbox\@tempboxa\vbox{\hsize\maxdimen
- \l@paragraph{\tocstyle@l@define{paragraph}{4}}{}}%
- \fi
- \ifcsname l@subparagraph\endcsname
- \setbox\@tempboxa\vbox{\hsize\maxdimen
- \l@subparagraph{\tocstyle@l@define{subparagraph}{5}}{}}%
- \fi
- \ifcsname l@table\endcsname
- \setbox\@tempboxa\vbox{\hsize\maxdimen
- \l@table{\tocstyle@l@define{table}{1}}{}}%
- \fi
- \ifcsname l@figure\endcsname
- \setbox\@tempboxa\vbox{\hsize\maxdimen
- \l@figure{\tocstyle@l@define{figure}{1}}{}}%
- \fi
- \def\@tempa#1#2#3#4#5{%
- \ifnum #1>\c@tocdepth \else
- \vskip \z@ \@plus.2\p@
- {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
- \parindent #2\relax\@afterindenttrue
- \interlinepenalty\@M
- \leavevmode
- \@tempdima #3\relax
- \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
- {#4}\nobreak
- \leaders\hbox{$\m@th
- \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
- mu$}\hfill
- \nobreak
- \hb@xt@\@pnumwidth{{\hfil \normalfont \normalcolor #5}}%
- \par}%
- \fi}%
- \ifx\@dottedtocline\@tempa\else
- \tocstyle@macrochangewarning\@dottedtocline
- \fi
- \let\tocstyle@saved@dottedtocline\@dottedtocline
- \def\@tempa#1{\hb@xt@\@tempdima{#1\autodot\hfil}}%
- \ifx\numberline\@tempa\else
- \def\@tempa#1{\hb@xt@\@tempdima{#1\hfil}}%
- \ifx\numberline@tempa\else
- \tocstyle@macrochangewarning\numberline
- \fi
- \fi
- \let\tocstyle@saved@numberline\numberline
-}
-\renewcommand*{\tocstyle@l@define}[2]{%
- \advance\if@RTL\rightskip\else\leftskip\fi-\@tempdima
- \edef\@tempa{%
- \noexpand\global\noexpand\let
- \expandafter\noexpand\csname tocstyle@saved@l@#1\endcsname
- \expandafter\noexpand\csname l@#1\endcsname
- \noexpand\gdef
- \expandafter\noexpand\csname tocstyle@l@#1\endcsname{%
- \noexpand\@dottedtocline{#2}{\the\if@RTL\rightskip\else\leftskip\fi}{\the\@tempdima}}%
- \noexpand\g@addto@macro\noexpand\tocstyle@activate@all@l{%
- \noexpand\let\expandafter\noexpand\csname l@#1\endcsname
- \expandafter\noexpand\csname tocstyle@l@#1\endcsname
- }%
- }%
- \PackageInfo{tocstyle}{prepare \expandafter\string
- \csname l@#1\endcsname\space for redefinition}%
- \@tempa
-}
-\endinput
-%%
-%% End of file `tocstyle-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def
deleted file mode 100644
index 60c88d021a4..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def
+++ /dev/null
@@ -1,168 +0,0 @@
-%%
-%% This is file `todonotes-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,todonotes-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{todonotes-xetex-bidi.def}[2015/06/17 v0.3 bidi adaptations for todonotes package for XeTeX engine]
-\newif\if@bidi@todonotes@textdirection@RTL
-\newif\if@bidi@todonotes@figposition@right
-\newcommand{\@bidi@todonotes@align}{}%
-\define@key{todonotes}{align}{\renewcommand{\@bidi@todonotes@align}{#1}}%
-\newcommand{\@bidi@todonotes@textdirection}{}%
-\define@choicekey{todonotes}{textdirection}[\bidi@todonotes@tempa\bidi@todonotes@tempb]{righttoleft,lefttoright}{%
- \ifcase\bidi@todonotes@tempb\relax
- \@bidi@todonotes@textdirection@RTLtrue
- \let\@bidi@todonotes@textdirection\RLE
- \or
- \@bidi@todonotes@textdirection@RTLfalse
- \let\@bidi@todonotes@textdirection\LRE
- \fi}
-\define@choicekey{todonotes}{figposition}[\bidi@todonotes@tempa\bidi@todonotes@tempb]{right,left}{%
- \ifcase\bidi@todonotes@tempb\relax
- \@bidi@todonotes@figposition@righttrue
- \or
- \@bidi@todonotes@figposition@rightfalse
- \fi}
-\if@todonotes@disabled%
-\else % \if@todonotes@disabled
-\renewcommand{\@todonotes@drawInlineNote}{%
- \if@todonotes@dviStyle%
- {\par\noindent\begin{tikzpicture}[remember picture]%
- \draw node[inlinenotestyle] {};\end{tikzpicture}\par}%
- \if@todonotes@authorgiven%
- {\noindent \@todonotes@sizecommand \@todonotes@author:\,\@todonotes@text}%
- \else%
- {\noindent \@todonotes@sizecommand \@todonotes@text}%
- \fi
- {\par\noindent\begin{tikzpicture}[remember picture]%
- \draw node[inlinenotestyle] {};\end{tikzpicture}\par}%
- \else%
- {\par\noindent\begin{tikzpicture}[remember picture]%
- \if@bidi@todonotes@textdirection@RTL\else\setLTR\fi%
- \draw node[inlinenotestyle,font=\@todonotes@sizecommand,align=\@bidi@todonotes@align]{%
- \if@todonotes@authorgiven%
- {\noindent \@todonotes@sizecommand \@todonotes@author:\,\@todonotes@text}%
- \else%
- {\noindent \@todonotes@sizecommand \@todonotes@text}%
- \fi};%
- \end{tikzpicture}\par}%
- \fi}%
-\renewcommand{\@todonotes@drawMarginNoteWithLine}{%
-\begin{tikzpicture}[remember picture, overlay, baseline=-0.75ex]%
- \node [coordinate] (inText) {};%
-\end{tikzpicture}%
-\marginpar[{% Draw note in left margin
- \@todonotes@drawMarginNote%
- \if@RTL\@todonotes@drawLineToRightMargin\else\@todonotes@drawLineToLeftMargin\fi%
-}]{% Draw note in right margin
- \@todonotes@drawMarginNote%
- \if@RTL\@todonotes@drawLineToLeftMargin\else\@todonotes@drawLineToRightMargin\fi%
-}%
-}%
-\renewcommand{\@todonotes@drawMarginNote}{%
-\if@todonotes@dviStyle%
- \begin{tikzpicture}[remember picture]%
- \draw node[notestyle] {};%
- \end{tikzpicture}\\%
- \begin{minipage}{\@todonotes@textwidth}%
- \if@todonotes@authorgiven%
- \@todonotes@sizecommand \@todonotes@author \@todonotes@text%
- \else%
- \@todonotes@sizecommand \@todonotes@text%
- \fi%
- \end{minipage}\\%
- \begin{tikzpicture}[remember picture]%
- \draw node[notestyle] (inNote) {};%
- \end{tikzpicture}%
-\else%
- \let\originalHbadness\hbadness%
- \hbadness 100000%
- \begin{tikzpicture}[remember picture,baseline=(X.base)]%
- \if@bidi@todonotes@textdirection@RTL\setRTL\fi%
- \node(X){\vphantom{X}};%
- \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todonotes@align] (inNote) at (X.north)%
- {\@todonotes@text};%
- \if@todonotes@authorgiven%
- \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todonotes@align] (inNote) at (X.north)%
- {\@todonotes@sizecommand\@todonotes@author};%
- \node(Y)[below=of X]{};%
- \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todonotes@align] (inNote) at (X.south)%
- {\@todonotes@text};%
- \else%
- \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todonotes@align] (inNote) at (X.north)%
- {\@todonotes@text};%
- \fi%
- \end{tikzpicture}%
- \hbadness \originalHbadness%
-\fi}%
-\renewcommand{\missingfigure}[2][]{%
-\setkeys{todonotes}{#1}%
-\addcontentsline{tdo}{todo}{\@todonotes@MissingFigureText: #2}%
-\par
-\noindent
-\begin{tikzpicture}
-\draw[fill=\@todonotes@currentfigcolor, draw = black!40, line width=2pt]
- (-2, -2.5) rectangle +(\@todonotes@currentfigwidth, \@todonotes@currentfigheight);
-\if@bidi@todonotes@figposition@right%
-\begin{scope}[xshift=\@todonotes@currentfigwidth-4cm]
-\fi%
-\draw[red, fill=white, rounded corners = 5pt, line width=10pt]
- (30:2cm) -- (150:2cm) -- (270:2cm) -- cycle;
-\if@bidi@todonotes@figposition@right%
-\end{scope}
-\begin{scope}[xshift=-3.8cm]
-\fi%
-\if@bidi@todonotes@textdirection@RTL\setRTL\fi%
-\draw (2, -0.3) node[right, text
- width=\@todonotes@currentfigwidth-4.5cm,align=\@bidi@todonotes@align] {#2};
-\if@bidi@todonotes@figposition@right%
-\end{scope}
-\begin{scope}[xshift=\@todonotes@currentfigwidth-4cm]
-\fi%
-\draw (0, 0.3) node[align=\@bidi@todonotes@align] {\@bidi@todonotes@textdirection{\@todonotes@MissingFigureUp}};
-\draw (0, -0.3) node[align=\@bidi@todonotes@align] {\@bidi@todonotes@textdirection{\@todonotes@MissingFigureDown}};
-\if@bidi@todonotes@figposition@right%
-\end{scope}
-\fi%
-\end{tikzpicture}\hfill
-}% Ending \missingfigure command
-\fi % Ending \@todonotes@ifdisabled
-\presetkeys%
- {todonotes}%
- {align=left,%
- textdirection=lefttoright,%
- figposition=left}{}%
-\endinput
-%%
-%% End of file `todonotes-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/wrapfig-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/wrapfig-xetex-bidi.def
deleted file mode 100644
index 96341983f7f..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/wrapfig-xetex-bidi.def
+++ /dev/null
@@ -1,115 +0,0 @@
-%%
-%% This is file `wrapfig-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,wrapfig-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{wrapfig-xetex-bidi.def}[2014/04/23 v0.3 bidi adaptations for wrapfig package for XeTeX engine]
-\let\WF@@everypar\bidi@n@everypar
-\def\WF@putfigmaybe{%
-\ifinner
- \vskip-\parskip \global\WF@floatfalse
- \let\pagetotal\maxdimen % kludge flag for "not top of page"
-\else % outer page
- \@tempdima\pagedepth % save page depth
- {\advance\parskip\@tempdima\if@RTL\advance\parskip\baselineskip\fi\vskip-\parskip}% back up to baseline
- \penalty\interlinepenalty % update pg. parameters
- \@tempdimb\pagegoal \advance\@tempdimb-\pagetotal % room left on page
- \ifdim\@tempdimb<\z@ % \WF@info{Page overfull already;}%
- \global\WF@floatfalse
- \ifdim-\@tempdimb>\pageshrink \else \pagebreak \fi
- \else
- \ifdim\WF@size>\@tempdimb
- \ifWF@float \dimen@.5\baselineskip \else \dimen@ 2\baselineskip\fi
- \ifdim\pagestretch>\dimen@ \dimen@\pagestretch \fi
- \ifdim\pagefilstretch>\z@ \dimen@\@tempdimb \fi
- \ifdim\pagefillstretch>\z@ \dimen@\@tempdimb \fi
- \advance\dimen@.5\baselineskip
- \ifdim\dimen@>\@tempdimb % \WF@info{Page nearly full; can stretch}%
- \global\WF@floatfalse \pagebreak
- \fi
- \else % \WF@info{Fits in \the\@tempdimb;}%
- \global\WF@floatfalse
- \fi\fi
- \vskip\@tempdima\relax % (return erased page depth)
-\fi
-\noindent
-\ifWF@float
- \WF@fltmes
-\else % putting here;
- \WF@info{Put \WF@wfname here:}%
- {\ifodd\if@twoside\c@page\else\@ne\fi % assign l/r to i/o placement
- \lccode`i`l\lccode`o`r\else \lccode`i`r\lccode`o`l\fi
- \xdef\WF@place{\the\lccode\lccode\WF@place}}% twice to get only l or r
- \hbox to\z@{% llap or rlap depending on {l} or {r}; calc effective width
- \@tempdima\wd\WF@box \@tempdimb\WF@ovh
- \advance\@tempdima-\@tempdimb \advance\@tempdima\columnsep
- \@tempdimb\hsize \advance\@tempdimb-\@tempdima
- \xdef\WF@adjlw{\the\@tempdima}%
- \ifnum `l=\WF@place % fig on left
- \if@RTL%
- \kern\@tempdimb \kern\columnsep
- \def\@tempa{\hss}% position to left of the gap
- \else%
- \hss % figure overlaps space to the left
- \def\@tempa{\kern\columnsep}% position to left of the gap
- \fi%
- \else % fig on right
- \if@RTL%
- \hss
- \@tempdima\z@
- \def\@tempa{\kern\columnsep}
- \else%
- \@tempdima\z@ % no left indentation
- \kern\@tempdimb \kern\columnsep
- \def\@tempa{\hss}% figure overlaps space to the right
- \fi%
- \fi
- \ifdim\@tempdimb<\hsize
- \xdef\WF@wrapil{\the\@tempdima \the\@tempdimb}% indentation and length
- \xdef\WF@adjtlm{\the\@tempdima}%
- \else
- \xdef\WF@wrapil{\z@ \the\hsize}%
- \xdef\WF@adjlw{\z@}\xdef\WF@adjtlm{\z@}%
- \fi
- \ifdim\pagetotal=\z@ % \WF@info{Put \WF@wfname at top of p.\thepage}%
- \global\advance\WF@size-\intextsep
- \else % \WF@info{Putting \WF@wfname in middle of page}%
- \setbox\WF@box\hbox{\lower\intextsep\box\WF@box}%
- \fi \dp\WF@box\z@ \box\WF@box \@tempa
- }% end \hbox to 0pt
- \aftergroup\WF@startwrapping % after the \endgroup which immediately follows
-\fi}
-\endinput
-%%
-%% End of file `wrapfig-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def
deleted file mode 100644
index 204fab0c1e7..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def
+++ /dev/null
@@ -1,143 +0,0 @@
-%%
-%% This is file `xcolor-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,xcolor-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{xcolor-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for xcolor package for XeTeX engine]
-\long\def\color@b@x#1#2#3%
- {\leavevmode\ifmmode\else\if@RTL\beginL\fi\fi
- \setbox\z@\hbox{\kern\fboxsep{\set@color\if@RTL\beginR\fi#3\if@RTL\endR\fi}\kern\fboxsep}%
- \dimen@\ht\z@\advance\dimen@\fboxsep\ht\z@\dimen@
- \dimen@\dp\z@\advance\dimen@\fboxsep\dp\z@\dimen@
- {#1{#2\color@block{\wd\z@}{\ht\z@}{\dp\z@}\box\z@}}\ifmmode\else\if@RTL\endL\fi\fi}
-\def\normalcolor{\let\current@color\default@color\ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\set@color\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi}
-\DeclareRobustCommand\color
- {\ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\@ifnextchar[\@undeclaredcolor\@declaredcolor}
-\def\@undeclaredcolor[#1]#2%
- {\begingroup
- \let\@@cls\@empty
- \XC@getmodclr12{#1}{#2}{}%
- {\ifblendcolors
- \ifx\colorblend\@empty\else
- \edef\@@mix{\expandafter\@gobble\colorblend}\@tempswafalse
- \XC@coremodel\@@mod\@@clr\@xcolor@{}{}\@@mod\@@clr
- \fi
- \fi
- \ifconvertcolorsU
- \edef\@@tmp{\XC@tgt@mod{\@@mod}}%
- \convertcolorspec\@@mod\@@clr\@@tmp\@@clr \let\@@mod\@@tmp
- \fi
- \ifmaskcolors
- \convertcolorspec\@@mod\@@clr\XC@mmod\@@clr
- \let\@@mod\XC@mmod
- \XC@inflate\@@mod\XC@mclr\@@clr\@@tmp
- \expandafter\XC@mul\@@tmp,\@@clr
- \fi
- \edef\@@tmp{\noexpand\XC@undeclaredcolor{\@@mod}{\@@clr}}%
- \expandafter\endgroup\@@tmp}}
-\def\@declaredcolor#1%
- {\XC@edef\XC@@tmp{#1}\XC@@tstfalse
- \ifcase\XC@type\XC@@tmp\relax \XC@@tsttrue\or \relax\else
- \ifblendcolors\XC@@tsttrue\fi \ifmaskcolors\XC@@tsttrue\fi
- \ifconvertcolorsU\XC@@tsttrue\fi
- \fi
- \ifXC@@tst
- \expandafter\XC@declaredcolor\else
- \expandafter\XC@declaredc@lor\fi}
-\def\XC@undeclaredcolor#1#2%
- {\@ifundefinedmodel{#1}%
- {\c@lor@error{model `#1'}}%
- {\@nameuse{color@#1}\current@color{#2}%
- \edef\XC@current@color{\noexpand\xcolor@{}{\current@color}{#1}{#2}}%
- \XC@display}\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi\ignorespaces}
-\def\XC@declaredc@lor
- {\XC@let@Nc\XC@current@color{\string\color@\XC@@tmp}%
- \edef\current@color{\XC@current@color}%
- \XC@display\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi\ignorespaces}
-\DeclareRobustCommand\bidicolor
- {\@ifnextchar[\@bidiundeclaredcolor\@bidideclaredcolor}
-\def\@bidiundeclaredcolor[#1]#2%
- {\begingroup
- \let\@@cls\@empty
- \XC@getmodclr12{#1}{#2}{}%
- {\ifblendcolors
- \ifx\colorblend\@empty\else
- \edef\@@mix{\expandafter\@gobble\colorblend}\@tempswafalse
- \XC@coremodel\@@mod\@@clr\@xcolor@{}{}\@@mod\@@clr
- \fi
- \fi
- \ifconvertcolorsU
- \edef\@@tmp{\XC@tgt@mod{\@@mod}}%
- \convertcolorspec\@@mod\@@clr\@@tmp\@@clr \let\@@mod\@@tmp
- \fi
- \ifmaskcolors
- \convertcolorspec\@@mod\@@clr\XC@mmod\@@clr
- \let\@@mod\XC@mmod
- \XC@inflate\@@mod\XC@mclr\@@clr\@@tmp
- \expandafter\XC@mul\@@tmp,\@@clr
- \fi
- \edef\@@tmp{\noexpand\XC@bidiundeclaredcolor{\@@mod}{\@@clr}}%
- \expandafter\endgroup\@@tmp}}
-\def\XC@bidiundeclaredcolor#1#2%
- {\@ifundefinedmodel{#1}%
- {\c@lor@error{model `#1'}}%
- {\@nameuse{color@#1}\current@color{#2}%
- \edef\XC@current@color{\noexpand\xcolor@{}{\current@color}{#1}{#2}}%
- \XC@display}}
-\def\@bidideclaredcolor#1%
- {\XC@edef\XC@@tmp{#1}\XC@@tstfalse
- \ifcase\XC@type\XC@@tmp\relax \XC@@tsttrue\or \relax\else
- \ifblendcolors\XC@@tsttrue\fi \ifmaskcolors\XC@@tsttrue\fi
- \ifconvertcolorsU\XC@@tsttrue\fi
- \fi
- \ifXC@@tst
- \expandafter\XC@bidideclaredcolor\else
- \expandafter\XC@bidideclaredc@lor\fi}
-\def\XC@bidideclaredcolor
- {\XC@split\XC@@tmp
- \edef\@@tmp{\noexpand\@bidiundeclaredcolor[\@@mod]{\@@clr}}%
- \expandafter\endgroup\@@tmp}
-\def\XC@bidideclaredc@lor
- {\XC@let@Nc\XC@current@color{\string\color@\XC@@tmp}%
- \edef\current@color{\XC@current@color}%
- \XC@display}
-\def\color@box#1#2{\color@b@x\relax{\bidicolor#1{#2}}}
-\def\color@fbox#1#2#3#{\protect\color@fb@x{#1}{#2}{#3}}
-\def\color@fb@x#1#2#3#4%
- {\color@b@x{\fboxsep\z@\bidicolor#1{#2}\XC@fbox}%
- {\@ifxempty{#3}{\bidicolor#1}{\bidicolor#3}{#4}}}
-\def\color@setgroup{\begingroup\ifhmode\if@RTL\beginL\aftergroup\endR\fi\fi\set@color\ifhmode\if@RTL\beginR\aftergroup\endL\fi\fi}
-\endinput
-%%
-%% End of file `xcolor-xetex-bidi.def'.
diff --git a/Master/texmf-dist/tex/xelatex/bidi/xltxtra-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/xltxtra-xetex-bidi.def
deleted file mode 100644
index 9f44c0c1311..00000000000
--- a/Master/texmf-dist/tex/xelatex/bidi/xltxtra-xetex-bidi.def
+++ /dev/null
@@ -1,44 +0,0 @@
-%%
-%% This is file `xltxtra-xetex-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `table,xltxtra-xetex-bidi.def')
-%%
-%% __________________________________________________
-%% Copyright (c) 2009--2015 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%% \CheckSum{46182}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\ProvidesFile{xltxtra-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for xltxtra package for XeTeX engine]
-\let\@@XeTeX\XeTeX
-\def\XeTeX{\@ensure@LTR{\@@XeTeX}}
-\let\@@XeLaTeX\XeLaTeX
-\def\XeLaTeX{\@ensure@LTR{\@@XeLaTeX}}
-\endinput
-%%
-%% End of file `xltxtra-xetex-bidi.def'.