diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/bidi.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/bidi.sty | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty index 9802f398205..f926b95bfd8 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty +++ b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{49370} +%% \CheckSum{49514} %% \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 @@ -35,8 +35,8 @@ %% Right brace \} Tilde \~} %% \NeedsTeXFormat{LaTeX2e} -\def\bididate{2018/01/17} -\def\bidi@version{32.2} +\def\bididate{2018/01/21} +\def\bidi@version{32.3} \ProvidesPackage{bidi}[\bididate\space v\bidi@version\space Bidirectional typesetting in plain TeX and LaTeX] \edef\@bidi@info{****************************************************^^J% @@ -66,7 +66,7 @@ Bidirectional typesetting in plain TeX and LaTeX] \typeout{\@bidi@info} \edef\bidi@everyjob{\the\everyjob} \everyjob{\bidi@everyjob\typeout{\@bidi@info}} -\newcommand*{\bidiversion}{$\bidi@version$} +\newcommand*{\bidiversion}{\ensuremath\bidi@version} \newcommand*{\IfbidiPackageVersionLater}[1]{% \ifdim\bidi@version pt > #1 pt % \expandafter\@firstoftwo @@ -126,6 +126,19 @@ Bidirectional typesetting in plain TeX and LaTeX] \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} +\newinsert\@bidi@copyins@ +\skip\@bidi@copyins@=12\p@ +\dimen\@bidi@copyins@=40pc +\count\@bidi@copyins@=1000 +\newcommand*{\@bidi@inslogo@}{\insert\@bidi@copyins@{\@bidi@logo@}} +\newcommand*{\@bidi@logo@hb@xt@}{% + \if@RTLmain + \hboxR to + \else + \hboxL to + \fi +} +\newcommand*{\@bidi@logo@}{\@bidi@logo@hb@xt@\textwidth{\hss\LRE{\bfseries Typeset by the \textsf{bidi} package}}} \input{latex-xetex-bidi.def} \input{loadingorder-xetex-bidi.def} \define@choicekey{bidi.sty}{RTLdocument}[\bidi@tempa\bidi@tempb]{on,off}[on]{% @@ -203,8 +216,16 @@ Bidirectional typesetting in plain TeX and LaTeX] \let\bidi@lastcolumn@status@write\relax \fi} +\define@choicekey{bidi.sty}{logo}[\bidi@tempa\bidi@tempb]{on,off}[on]{% + \ifcase\bidi@tempb\relax + \AtBeginDocument{\@bidi@inslogo@}% + \or + \let\@bidi@logo@\@empty \let\@bidi@inslogo@\@empty + \fi} + \ExecuteOptionsX{% - DetectColumn=off + DetectColumn=off,% + logo=on% } \ProcessOptionsX |