diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/bidi.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/bidi.sty | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty index f926b95bfd8..cac61e3fe02 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{49514} +%% \CheckSum{49572} %% \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/21} -\def\bidi@version{32.3} +\def\bididate{2018/01/23} +\def\bidi@version{32.4} \ProvidesPackage{bidi}[\bididate\space v\bidi@version\space Bidirectional typesetting in plain TeX and LaTeX] \edef\@bidi@info{****************************************************^^J% @@ -101,6 +101,7 @@ Bidirectional typesetting in plain TeX and LaTeX] \newif\if@hboxRconstruct \newcommand*{\setRTLtable}{\@RTLtabtrue} \newcommand*{\setLTRtable}{\@RTLtabfalse} +\newif\if@bidi@pdfm@mark \newif\if@RTLmarginpar \newif\if@LTRmarginpar \newif\if@LTRbibitems @@ -111,6 +112,12 @@ Bidirectional typesetting in plain TeX and LaTeX] \eqnewif{\if@RTL@footnote}{\if@rl@footnote} \newif\if@bidi@list@minipage@parbox \newif\if@bidi@list@minipage@parbox@not@nob +\newcommand*{\@bidi@pdfcreator}{% + The bidi package, v\bidi@version, \bididate +} +\newcommand*{\@bidi@pdfproducer}{% + The bidi package, v\bidi@version, \bididate +} \@RTLmainfalse \AtBeginDocument{% \if@RTLmain\else @@ -223,9 +230,17 @@ Bidirectional typesetting in plain TeX and LaTeX] \let\@bidi@logo@\@empty \let\@bidi@inslogo@\@empty \fi} +\define@choicekey{bidi.sty}{pdfinfo}[\bidi@tempa\bidi@tempb]{on,off}[on]{% + \ifcase\bidi@tempb\relax + \@bidi@pdfm@marktrue + \or + \@bidi@pdfm@markfalse + \fi} + \ExecuteOptionsX{% DetectColumn=off,% - logo=on% + logo=on,% + pdfinfo=on% } \ProcessOptionsX @@ -243,6 +258,16 @@ Bidirectional typesetting in plain TeX and LaTeX] \bidi@digits=`\۰ \loop \XeTeXcharclass \bidi@digits \bidi@digits@charclass \ifnum\bidi@digits<`\۹ \advance\bidi@digits \@ne \repeat \XeTeXinterchartoks \bidi@sepmark@charclass \bidi@digits@charclass = {\DigitsDotDashInterCharToks} \newcommand*{\DigitsDotDashInterCharToks}{\if@nonlatin\char"200F \fi} +\AtEndDocument{% + \if@bidi@pdfm@mark + \special{pdf:% + docinfo<<% + /Creator(\@bidi@pdfcreator)% + /Producer(\@bidi@pdfproducer)% + >>% + }% + \fi +} \endinput %% %% End of file `bidi.sty'. |