diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/bidi.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/bidi.sty | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty index 0d13d366802..c8b4e3cd29c 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty +++ b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty @@ -20,7 +20,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{58578} +%% \CheckSum{57328} %% \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 @@ -38,9 +38,9 @@ %% Right brace \} Tilde \~} %% \NeedsTeXFormat{LaTeX2e} -\def\bididate{2024/12/28} -\def\bidi@version{40.7} -\def\bidi@releasename{William Paul Thurston} +\def\bididate{2025/01/16} +\def\bidi@version{41.6} +\def\bidi@releasename{Maryam Mirzakhani} \newcommand*{\bidireleasename}{\bidi@releasename} \ProvidesPackage{bidi}[\bididate\space v\bidi@version\space (Release \bidi@releasename)\space Bidirectional typesetting in plain TeX and LaTeX] @@ -52,6 +52,16 @@ Bidirectional typesetting in plain TeX and LaTeX] \newif\if@bidi@pdfm@mark \newif\if@bidi@perpage@footnote \ExplSyntaxOn +\msg_new:nnn {bidi} {cannot-use-engine} + { + Oops!~can~not~use~\c_sys_engine_str.\\\\ + The~bidi~package~requires~XeTeX. + } + \sys_if_engine_xetex:F + { + \msg_fatal:nn {bidi} {cannot-use-engine} + } + \keys_define:nn { bidi } { banner .choice: , @@ -225,8 +235,6 @@ Bidirectional typesetting in plain TeX and LaTeX] \else \expandafter\@secondoftwo \fi} -\RequirePackage{iftex} -\RequireXeTeX \RequirePackage{biditools} \RequirePackage{zref-abspage} \RequirePackage{auxhook} @@ -255,7 +263,7 @@ Bidirectional typesetting in plain TeX and LaTeX] } \newcommand*{\@bidi@pdfcustomproperties}{% This is the bidi package, Version \bidi@version\space (Release \bidi@releasename), - Released December 28, 2024. + Released January 16, 2025. } \newcommand*{\bidi@beamer@ragged}{} \@RTLmainfalse @@ -309,9 +317,19 @@ Bidirectional typesetting in plain TeX and LaTeX] }% \the\toks@ } +\newcount\bidi@typesethour +\newcount\bidi@typesetminute +\bidi@typesethour=\time +\divide\bidi@typesethour 60 +\bidi@typesetminute=-\bidi@typesethour +\multiply\bidi@typesetminute 60 +\advance\bidi@typesetminute \time +\newcommand*{\TypesetHour}{\two@digits\bidi@typesethour} +\newcommand*{\TypesetMinute}{\two@digits\bidi@typesetminute} +\newcommand*{\TypesetTime}{\TypesetHour:\TypesetMinute} \newcommand*{\@bidi@logo@}{% \@bidi@logo@hb@xt@columnwidth - {\hss\LRE{\bfseries Typeset by the \textsf{bidi} + {\hss\LRE{\bfseries Typeset {\today} at {\TypesetTime} by the \textsf{bidi} package\quad\@bidi@logo{bidi-logo.pdf}}}} \ExplSyntaxOn \keys_define:nn { bidi / pdfencrypt } @@ -338,7 +356,6 @@ Bidirectional typesetting in plain TeX and LaTeX] \ExplSyntaxOff \@onlypreamble\pdfencryptsetup \input{latex-xetex-bidi.def} -\input{loadingorder-xetex-bidi.def} \pdfencryptsetup{% userpassword,% |