diff options
Diffstat (limited to 'macros/xetex')
19 files changed, 126 insertions, 193 deletions
diff --git a/macros/xetex/latex/bidi-atbegshi/README b/macros/xetex/latex/bidi-atbegshi/README index cda7c69bf7..c9d6ed754e 100644 --- a/macros/xetex/latex/bidi-atbegshi/README +++ b/macros/xetex/latex/bidi-atbegshi/README @@ -1,27 +1,24 @@ _____________________ The bidi-atbegshi package -v0.1 +v0.2 Bidi-aware shipout macros -The package adds few commands to `atbegshi' package +The package adds few commands to `atbegshi-ltx' package for proper placement of <background material> in the left and right corners of the output page, in both LTR and RTL modes. -The package only works with `xelatex' format and should be -loaded before `bidi' package. - For more information, please see the documentation. -Current version release date: 2014/09/11 +Current version release date: 2022/02/14 ___________________ Vafa Khalighi -tex.ctan@gmail.com +tex-persian@vafa.ac -Copyright © 2014 +Copyright © 2014--2022 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 diff --git a/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi-doc.pdf b/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi-doc.pdf Binary files differindex 5e68bec300..fbb353f73c 100644 --- a/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi-doc.pdf +++ b/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi-doc.pdf diff --git a/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi-doc.tex b/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi-doc.tex index 9d9276048c..43635b19ea 100644 --- a/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi-doc.tex +++ b/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi-doc.tex @@ -2,9 +2,9 @@ \usepackage{holtxdoc} \begin{document} \title{The \xpackage{bidi-atbegshi} Package} -\author{Vafa Khalighi\\\xemail{tex.ctan@gmail.com}} +\author{Vafa Khalighi\\\xemail{tex-persian@vafa.ac}} \maketitle -The \xpackage{bidi-atbegshi} adds bidi support to package \xpackage{atbegshi}; it modifies the \cs{AtBeginShipoutUpperLeft}, and \cs{AtBeginShipoutUpperLeftForeground} so that they properly both in LTR and RTL modes. In addition, it also defines the following commands: +The \xpackage{bidi-atbegshi} adds bidi support to package \xpackage{atbegshi-ltx}; it defines the following commands: \begin{declcs}{AtBeginShipoutUpperRight} \M{background material} \end{declcs} @@ -52,8 +52,4 @@ Similar to the \cs{AtBeginShipoutUpperRight} command but \end{declcs} See \cs{AtBeginShipoutLowerRight}. The difference is that the material is put in the foreground. - - \begin{declcs}{LengthToUnit} \M{length with units} - \end{declcs} - For instance, \cs{LengthToUnit}\texttt{\{12pt\}} converts 12pt to 12 (stripping the unit). \end{document}
\ No newline at end of file diff --git a/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi.sty b/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi.sty index 77b4fdd6d6..21f389d0e2 100644 --- a/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi.sty +++ b/macros/xetex/latex/bidi-atbegshi/bidi-atbegshi.sty @@ -2,7 +2,7 @@ %% This is file `bidi-atbegshi.sty'. %% %% ___________________________________________ -%% Copyright © 2014 Vafa Khalighi <vafak@me.com> +%% Copyright © 2014--2022 Vafa Khalighi <tex-persian@vafa.ac> %% %% It may be distributed and/or modified under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -13,122 +13,82 @@ %% %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{bidi-atbegshi}[2014/09/11 v0.1 bidi-aware shipout macros] -\RequirePackage{atbegshi} -\newcommand*\LengthToUnit[1]{#1\@gobble} -\newcommand*{\AtBegShi@bidi@horigin@left}{% - \if@RTL% - \dimexpr-\textwidth-\AtBegShi@horigin\relax - \else% - -\AtBegShi@horigin% - \fi% +\ProvidesPackage{bidi-atbegshi}[2022/02/14 v0.2 bidi-aware shipout macros] +\RequirePackage{atbegshi-ltx} +\ExplSyntaxOn +\cs_new:Npn \__shipout_picture_overlay_lower_left:n #1 { + \__shipout_init_page_origins: + \kern -\c__shipout_horigin_tl \scan_stop: + \vbox_to_zero:n { + \kern \__dim_eval:w \paperheight - \c__shipout_vorigin_tl \scan_stop: + \unitlength 1pt \scan_stop: + \hbox_set_to_wd:Nnn \l__shipout_tmp_box \c_zero_dim + { \ignorespaces #1 \hss } + \box_set_ht:Nn \l__shipout_tmp_box \c_zero_dim + \box_set_dp:Nn \l__shipout_tmp_box \c_zero_dim + \box_use:N \l__shipout_tmp_box + \tex_vss:D + } } -\newcommand*{\AtBegShi@bidi@horigin@right}{% - \if@RTL% - \dimexpr\paperwidth-\textwidth-\AtBegShi@horigin\relax - \else% - \dimexpr\paperwidth-\AtBegShi@horigin\relax - \fi% +\cs_new:Npn \__shipout_picture_overlay_upper_right:n #1 { + \__shipout_init_page_origins: + \kern \__dim_eval:w \c__shipout_horigin_tl + \oddsidemargin + \evensidemargin + \textwidth \scan_stop: + \vbox_to_zero:n { + \kern -\c__shipout_vorigin_tl \scan_stop: + \unitlength 1pt \scan_stop: + \hbox_set_to_wd:Nnn \l__shipout_tmp_box \c_zero_dim + { \ignorespaces #1 \hss } + \box_set_ht:Nn \l__shipout_tmp_box \c_zero_dim + \box_set_dp:Nn \l__shipout_tmp_box \c_zero_dim + \box_use:N \l__shipout_tmp_box + \tex_vss:D + } } -\newcommand*{\AtBegShi@bidi@vorigin@bottom}[1]{% - \dimexpr\paperheight-\AtBegShi@vorigin\relax +\cs_new:Npn \__shipout_picture_overlay_lower_right:n #1 { + \__shipout_init_page_origins: + \kern \__dim_eval:w \c__shipout_horigin_tl + \oddsidemargin + \evensidemargin + \textwidth \scan_stop: + \vbox_to_zero:n { + \kern \__dim_eval:w \paperheight - \c__shipout_vorigin_tl \scan_stop: + \unitlength 1pt \scan_stop: + \hbox_set_to_wd:Nnn \l__shipout_tmp_box \c_zero_dim + { \ignorespaces #1 \hss } + \box_set_ht:Nn \l__shipout_tmp_box \c_zero_dim + \box_set_dp:Nn \l__shipout_tmp_box \c_zero_dim + \box_use:N \l__shipout_tmp_box + \tex_vss:D + } } -\renewcommand*{\AtBeginShipoutUpperLeft}[1]{% - \AtBeginShipoutAddToBox{% - \kern\AtBegShi@bidi@horigin@left\relax - \vbox to 0pt{% - \kern-\AtBegShi@vorigin\relax - \AtBegShi@BeginPicture - #1% - \AtBegShi@EndPicture - \vss - }% - }% +\cs_new:Npn \__shipout_add_background_picture_lower_left:n #1 { + \__shipout_add_background_box:n { \__shipout_picture_overlay_lower_left:n {#1} } } -\renewcommand*{\AtBeginShipoutUpperLeftForeground}[1]{% - \AtBeginShipoutAddToBoxForeground{% - \kern\AtBegShi@bidi@horigin@left\relax - \vbox to 0pt{% - \kern-\AtBegShi@vorigin\relax - \AtBegShi@BeginPicture - #1% - \AtBegShi@EndPicture - \vss - }% - }% +\cs_new:Npn \__shipout_add_foreground_picture_lower_left:n #1 { + \__shipout_add_foreground_box:n { \__shipout_picture_overlay_lower_left:n {#1} } } -\newcommand*{\AtBeginShipoutUpperRight}[1]{% - \AtBeginShipoutAddToBox{% - \kern\AtBegShi@bidi@horigin@right\relax - \vbox to 0pt{% - \kern-\AtBegShi@vorigin\relax - \AtBegShi@BeginPicture - #1% - \AtBegShi@EndPicture - \vss - }% - }% +\cs_new:Npn \__shipout_add_background_picture_upper_right:n #1 { + \__shipout_add_background_box:n { \__shipout_picture_overlay_upper_right:n {#1} } } -\newcommand*{\AtBeginShipoutUpperRightForeground}[1]{% - \AtBeginShipoutAddToBoxForeground{% - \kern\AtBegShi@bidi@horigin@right\relax - \vbox to 0pt{% - \kern-\AtBegShi@vorigin\relax - \AtBegShi@BeginPicture - #1% - \AtBegShi@EndPicture - \vss - }% - }% +\cs_new:Npn \__shipout_add_foreground_picture_upper_right:n #1 { + \__shipout_add_foreground_box:n { \__shipout_picture_overlay_upper_right:n {#1} } } -\newcommand*{\AtBeginShipoutLowerLeft}[1]{% - \AtBeginShipoutAddToBox{% - \kern\AtBegShi@bidi@horigin@left\relax - \vbox to 0pt{% - \kern\AtBegShi@bidi@vorigin@bottom\relax - \AtBegShi@BeginPicture - #1% - \AtBegShi@EndPicture - \vss - }% - }% +\cs_new:Npn \__shipout_add_background_picture_lower_right:n #1 { + \__shipout_add_background_box:n { \__shipout_picture_overlay_lower_right:n {#1} } } -\newcommand*{\AtBeginShipoutLowerLeftForeground}[1]{% - \AtBeginShipoutAddToBoxForeground{% - \kern\AtBegShi@bidi@horigin@left\relax - \vbox to 0pt{% - \kern\AtBegShi@bidi@vorigin@bottom\relax - \AtBegShi@BeginPicture - #1% - \AtBegShi@EndPicture - \vss - }% - }% -} -\newcommand*{\AtBeginShipoutLowerRight}[1]{% - \AtBeginShipoutAddToBox{% - \kern\AtBegShi@bidi@horigin@right\relax - \vbox to 0pt{% - \kern\AtBegShi@bidi@vorigin@bottom\relax - \AtBegShi@BeginPicture - #1% - \AtBegShi@EndPicture - \vss - }% - }% -} -\newcommand*{\AtBeginShipoutLowerRightForeground}[1]{% - \AtBeginShipoutAddToBoxForeground{% - \kern\AtBegShi@bidi@horigin@right\relax - \vbox to 0pt{% - \kern\AtBegShi@bidi@vorigin@bottom\relax - \AtBegShi@BeginPicture - #1% - \AtBegShi@EndPicture - \vss - }% - }% +\cs_new:Npn \__shipout_add_foreground_picture_lower_right:n #1 { + \__shipout_add_foreground_box:n { \__shipout_picture_overlay_lower_right:n {#1} } } +\cs_set_eq:NN \AtBeginShipoutLowerLeft + \__shipout_add_background_picture_lower_left:n +\cs_set_eq:NN \AtBeginShipoutLowerLeftForeground + \__shipout_add_foreground_picture_lower_left:n +\cs_set_eq:NN \AtBeginShipoutUpperRight + \__shipout_add_background_picture_upper_right:n +\cs_set_eq:NN \AtBeginShipoutUpperRightForeground + \__shipout_add_foreground_picture_upper_right:n +\cs_set_eq:NN \AtBeginShipoutLowerRight + \__shipout_add_background_picture_lower_right:n +\cs_set_eq:NN \AtBeginShipoutLowerRightForeground + \__shipout_add_foreground_picture_lower_right:n +\ExplSyntaxOff \endinput %% %% End of file `bidi-atbegshi.sty'.
\ No newline at end of file diff --git a/macros/xetex/latex/bidi-atbegshi/test-LTR.pdf b/macros/xetex/latex/bidi-atbegshi/test-LTR.pdf Binary files differindex 90db634619..697ab72b0d 100644 --- a/macros/xetex/latex/bidi-atbegshi/test-LTR.pdf +++ b/macros/xetex/latex/bidi-atbegshi/test-LTR.pdf diff --git a/macros/xetex/latex/bidi-atbegshi/test-LTR.tex b/macros/xetex/latex/bidi-atbegshi/test-LTR.tex index e64e601587..04c773f6e5 100644 --- a/macros/xetex/latex/bidi-atbegshi/test-LTR.tex +++ b/macros/xetex/latex/bidi-atbegshi/test-LTR.tex @@ -8,16 +8,16 @@ \setbox3\hbox{\Huge\textbf{Lower Right}} \AtBeginShipout{% \AtBeginShipoutUpperLeft{% -\put(0,\LengthToUnit{-\ht0}){\usebox0} +\put(0,-\ht0){\usebox0} } \AtBeginShipoutUpperRight{% -\put(\LengthToUnit{-\wd1},\LengthToUnit{-\ht1}){\usebox1} +\put(-\wd1,-\ht1){\usebox1} } \AtBeginShipoutLowerLeft{% -\put(0,\LengthToUnit{\dp2}){\usebox2} +\put(0,\dp2){\usebox2} } \AtBeginShipoutLowerRight{% -\put(\LengthToUnit{-\wd3},\LengthToUnit{\dp3}){\usebox3} +\put(-\wd3,\dp3){\usebox3} } } \begin{document} diff --git a/macros/xetex/latex/bidi-atbegshi/test-RTL.pdf b/macros/xetex/latex/bidi-atbegshi/test-RTL.pdf Binary files differindex 90f2ac5d18..b9212f9704 100644 --- a/macros/xetex/latex/bidi-atbegshi/test-RTL.pdf +++ b/macros/xetex/latex/bidi-atbegshi/test-RTL.pdf diff --git a/macros/xetex/latex/bidi-atbegshi/test-RTL.tex b/macros/xetex/latex/bidi-atbegshi/test-RTL.tex index a4d416176b..5ce8c975b9 100644 --- a/macros/xetex/latex/bidi-atbegshi/test-RTL.tex +++ b/macros/xetex/latex/bidi-atbegshi/test-RTL.tex @@ -1,25 +1,26 @@ \documentclass{article} -\usepackage{lipsum} \usepackage{bidi-atbegshi} -\usepackage[RTLdocument]{bidi} -\setbox0\hbox{\Huge\textbf{Upper Left}} -\setbox1\hbox{\Huge\textbf{Upper Right}} -\setbox2\hbox{\Huge\textbf{Lower Left}} -\setbox3\hbox{\Huge\textbf{Lower Right}} +\usepackage{ptext} +\usepackage{xepersian} +\settextfont{IRXLotus} +\setbox0\hboxR{\Huge\textbf{چپ بالا}} +\setbox1\hboxR{\Huge\textbf{راست بالا}} +\setbox2\hboxR{\Huge\textbf{چپ پایین}} +\setbox3\hboxR{\Huge\textbf{راست پایین}} \AtBeginShipout{% \AtBeginShipoutUpperRight{% -\put(0,\LengthToUnit{-\ht1}){\usebox1} +\put(-\wd1,-\ht1){\usebox1} }% \AtBeginShipoutUpperLeft{% -\put(\LengthToUnit{-\wd0},\LengthToUnit{-\ht0}){\usebox0} +\put(0,-\ht0){\usebox0} }% \AtBeginShipoutLowerRight{% -\put(0,\LengthToUnit{\dp3}){\usebox3} +\put(-\wd3,\dp3){\usebox3} }% \AtBeginShipoutLowerLeft{% -\put(\LengthToUnit{-\wd2},\LengthToUnit{\dp2}){\usebox2} +\put(0,\dp2){\usebox2} }% } \begin{document} -\lipsum +\ptext \end{document}
\ No newline at end of file diff --git a/macros/xetex/latex/bidi-atbegshi/test-foreground-LTR.pdf b/macros/xetex/latex/bidi-atbegshi/test-foreground-LTR.pdf Binary files differindex 6aa0cb81cd..1a4717adaf 100644 --- a/macros/xetex/latex/bidi-atbegshi/test-foreground-LTR.pdf +++ b/macros/xetex/latex/bidi-atbegshi/test-foreground-LTR.pdf diff --git a/macros/xetex/latex/bidi-atbegshi/test-foreground-LTR.tex b/macros/xetex/latex/bidi-atbegshi/test-foreground-LTR.tex index 5b4953b2f5..9f28a62934 100644 --- a/macros/xetex/latex/bidi-atbegshi/test-foreground-LTR.tex +++ b/macros/xetex/latex/bidi-atbegshi/test-foreground-LTR.tex @@ -8,16 +8,16 @@ \setbox3\hbox{\Huge\textbf{Lower Right}} \AtBeginShipout{% \AtBeginShipoutUpperLeftForeground{% -\put(0,\LengthToUnit{-\ht0}){\usebox0} +\put(0,-\ht0){\usebox0} } \AtBeginShipoutUpperRightForeground{% -\put(\LengthToUnit{-\wd1},\LengthToUnit{-\ht1}){\usebox1} +\put(-\wd1,-\ht1){\usebox1} } \AtBeginShipoutLowerLeftForeground{% -\put(0,\LengthToUnit{\dp2}){\usebox2} +\put(0,\dp2){\usebox2} } \AtBeginShipoutLowerRightForeground{% -\put(\LengthToUnit{-\wd3},\LengthToUnit{\dp3}){\usebox3} +\put(-\wd3,\dp3){\usebox3} } } \begin{document} diff --git a/macros/xetex/latex/bidi-atbegshi/test-foreground-RTL.pdf b/macros/xetex/latex/bidi-atbegshi/test-foreground-RTL.pdf Binary files differindex 59ac82e420..8b7d0b596a 100644 --- a/macros/xetex/latex/bidi-atbegshi/test-foreground-RTL.pdf +++ b/macros/xetex/latex/bidi-atbegshi/test-foreground-RTL.pdf diff --git a/macros/xetex/latex/bidi-atbegshi/test-foreground-RTL.tex b/macros/xetex/latex/bidi-atbegshi/test-foreground-RTL.tex index 4a8d9d3597..985a7eb4c6 100644 --- a/macros/xetex/latex/bidi-atbegshi/test-foreground-RTL.tex +++ b/macros/xetex/latex/bidi-atbegshi/test-foreground-RTL.tex @@ -1,25 +1,26 @@ \documentclass{article} -\usepackage{lipsum} \usepackage{bidi-atbegshi} -\usepackage[RTLdocument]{bidi} -\setbox0\hbox{\Huge\textbf{Upper Left}} -\setbox1\hbox{\Huge\textbf{Upper Right}} -\setbox2\hbox{\Huge\textbf{Lower Left}} -\setbox3\hbox{\Huge\textbf{Lower Right}} +\usepackage{ptext} +\usepackage{xepersian} +\settextfont{IRXLotus} +\setbox0\hboxR{\Huge\textbf{چپ بالا}} +\setbox1\hboxR{\Huge\textbf{راست بالا}} +\setbox2\hboxR{\Huge\textbf{چپ پایین}} +\setbox3\hboxR{\Huge\textbf{راست پایین}} \AtBeginShipout{% \AtBeginShipoutUpperRightForeground{% -\put(0,\LengthToUnit{-\ht1}){\usebox1} +\put(-\wd1,-\ht1){\box1} }% \AtBeginShipoutUpperLeftForeground{% -\put(\LengthToUnit{-\wd0},\LengthToUnit{-\ht0}){\usebox0} +\put(0,-\ht0){\usebox0} }% \AtBeginShipoutLowerRightForeground{% -\put(0,\LengthToUnit{\dp3}){\usebox3} +\put(-\wd3,\dp3){\usebox3} }% \AtBeginShipoutLowerLeftForeground{% -\put(\LengthToUnit{-\wd2},\LengthToUnit{\dp2}){\usebox2} +\put(0,\dp2){\usebox2} }% } \begin{document} -\lipsum +\ptext \end{document}
\ No newline at end of file diff --git a/macros/xetex/latex/bidi/README b/macros/xetex/latex/bidi/README index 38cfe408c6..bbb079dd7a 100644 --- a/macros/xetex/latex/bidi/README +++ b/macros/xetex/latex/bidi/README @@ -1,6 +1,6 @@ ___________________ The bidi package -v36.5 +v36.6 This package provides a convenient interface for typesetting bidirectional texts in Plain TeX and LaTeX, using XeTeX engine. @@ -25,7 +25,7 @@ The announcements for the new releases of the package will also appear in the Discussions space under the Announcements category. -Current version release date: 2022/02/04 +Current version release date: 2022/02/13 ___________________________________________ Vafa Khalighi diff --git a/macros/xetex/latex/bidi/bidi-doc-intro.ltx b/macros/xetex/latex/bidi/bidi-doc-intro.ltx index 3f62d203da..d17d1863bd 100644 --- a/macros/xetex/latex/bidi/bidi-doc-intro.ltx +++ b/macros/xetex/latex/bidi/bidi-doc-intro.ltx @@ -20,7 +20,7 @@ If you use \textsf{bidi} package to write any input \TeX\ document, and then run * Copyright (c) 2007--2022 Vafa Khalighi * Copyright (c) 2018--2020 bidi-tex GitHub Organization * -* v36.5, 2022/02/04 +* v36.6, 2022/02/13 * * License: LaTeX Project Public License, version * 1.3c or higher (your choice) diff --git a/macros/xetex/latex/bidi/bidi-doc-title.ltx b/macros/xetex/latex/bidi/bidi-doc-title.ltx index 33f5ed8838..338ea2196d 100644 --- a/macros/xetex/latex/bidi/bidi-doc-title.ltx +++ b/macros/xetex/latex/bidi/bidi-doc-title.ltx @@ -3,7 +3,7 @@ \begin{document} \title{\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}\\ \LARGE Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine\\[5pt] -\large User documentation for \textcolor{blue!65!black}{version 36.5}} +\large User documentation for \textcolor{blue!65!black}{version 36.6}} \author{Vafa Khalighi\thanks{Thanks to the bidi-tex GitHub organization consisted of David Carlisle and other members of the {\LaTeX} team to maintain the package in the period 2018--2020.}\\ \url{tex-persian@vafa.ac}} \setcounter{page}{0} @@ -14,7 +14,7 @@ \textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}} \Large -User documentation for \textcolor{blue!65!black}{version 36.5}} +User documentation for \textcolor{blue!65!black}{version 36.6}} \vskip 0pt plus 3fill \textit{\large to my Master, \textbf{Ferdowsi The Great}} diff --git a/macros/xetex/latex/bidi/bidi-doc.ltx b/macros/xetex/latex/bidi/bidi-doc.ltx index b6dbf1ac38..cf129fa119 100644 --- a/macros/xetex/latex/bidi/bidi-doc.ltx +++ b/macros/xetex/latex/bidi/bidi-doc.ltx @@ -1,7 +1,7 @@ \documentclass{ltxdoc} \input{bidi-doc-preamble.ltx} \hypersetup{% - pdftitle={User documentation for version 36.5 of the bidi + pdftitle={User documentation for version 36.6 of the bidi package}% } \begin{document} diff --git a/macros/xetex/latex/bidi/bidi-doc.pdf b/macros/xetex/latex/bidi/bidi-doc.pdf Binary files differindex 4cdcfc9a99..2bb9819a39 100644 --- a/macros/xetex/latex/bidi/bidi-doc.pdf +++ b/macros/xetex/latex/bidi/bidi-doc.pdf diff --git a/macros/xetex/latex/bidi/bidi.dtx b/macros/xetex/latex/bidi/bidi.dtx index 65bc0833cf..5e13b4e12b 100644 --- a/macros/xetex/latex/bidi/bidi.dtx +++ b/macros/xetex/latex/bidi/bidi.dtx @@ -5,7 +5,7 @@ %<*readme> ___________________ The bidi package -v36.5 +v36.6 This package provides a convenient interface for typesetting bidirectional texts in Plain TeX and LaTeX, using XeTeX engine. @@ -30,7 +30,7 @@ The announcements for the new releases of the package will also appear in the Discussions space under the Announcements category. -Current version release date: 2022/02/04 +Current version release date: 2022/02/13 ___________________________________________ Vafa Khalighi @@ -234,7 +234,7 @@ by Vafa Khalighi. \documentclass{ltxdoc} \input{bidi-doc-preamble.ltx} \hypersetup{% - pdftitle={Source documentation for version 36.5 of the bidi + pdftitle={Source documentation for version 36.6 of the bidi package}% } \EnableCrossrefs @@ -253,7 +253,7 @@ by Vafa Khalighi. % \GetFileInfo{\jobname.dtx} % \title{\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}\\ %\LARGE Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine\\[5pt] -%\large Source documentation for \textcolor{blue!65!black}{version 36.5}} +%\large Source documentation for \textcolor{blue!65!black}{version 36.6}} % \author{Vafa Khalighi\thanks{Thanks to the bidi-tex GitHub organization consisted of David Carlisle and other members of the {\LaTeX} team to maintain the package in the period 2018--2020.}\\ % \url{tex-persian@vafa.ac}} %\setcounter{page}{0} @@ -264,7 +264,7 @@ by Vafa Khalighi. %\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}} % %\Large -%Source documentation for \textcolor{blue!65!black}{version 36.5}} +%Source documentation for \textcolor{blue!65!black}{version 36.6}} % %\vskip 0pt plus 3fill %\textit{\large to my Master, \textbf{Ferdowsi The Great}} @@ -313,7 +313,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{50477} +%% \CheckSum{50439} %% \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 @@ -1933,8 +1933,8 @@ by Vafa Khalighi. % \section{File \texttt{bidi.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\bididate{2022/02/04} -\def\bidi@version{36.5} +\def\bididate{2022/02/13} +\def\bidi@version{36.6} \ProvidesPackage{bidi}[\bididate\space v\bidi@version\space Bidirectional typesetting in plain TeX and LaTeX] \edef\@bidi@info{****************************************************^^J% @@ -2024,7 +2024,7 @@ Bidirectional typesetting in plain TeX and LaTeX] } \newcommand*{\@bidi@pdfcustomproperties}{% This is the bidi package, Version \bidi@version, - Released February 27, 2022. + Released February 13, 2022. } \@RTLmainfalse \AtBeginDocument{% @@ -2267,9 +2267,9 @@ Bidirectional typesetting in plain TeX and LaTeX] %\fi % \section{File \texttt{bidi.tex}} % \begin{macrocode} -\def\bididate{2022/02/04} +\def\bididate{2022/02/13} \catcode`@=11 -\def\bidi@version{36.5} +\def\bidi@version{36.6} \let \protect \relax \newlinechar`\^^J \edef\@bidi@info{****************************************************^^J% @@ -2373,7 +2373,7 @@ Bidirectional typesetting in plain TeX and LaTeX] } \def\@bidi@pdfcustomproperties{% This is the bidi package, Version \bidi@version, - Released February 27, 2022. + Released February 13, 2022. } \def\bidi@pdfm@mark{% \special{pdf:% @@ -22079,7 +22079,7 @@ to\rtside{\box\bslice\hfil}} %\fi % \section{File \texttt{latex-xetex-bidi.def}} % \begin{macrocode} -\ProvidesFile{latex-xetex-bidi.def}[2022/02/01 v1.3.8 bidi adaptations for `latex.ltx' for XeTeX engine] +\ProvidesFile{latex-xetex-bidi.def}[2022/02/13 v1.3.9 bidi adaptations for `latex.ltx' for XeTeX engine] \newcommand{\TeXXeTOn}{\TeXXeTstate\@ne} \newcommand{\TeXXeTOff}{\TeXXeTstate\z@} \TeXXeTOn @@ -22772,28 +22772,6 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi} \hskip\dimen\@curtabmar\box\@curline\hfil\if@RTL\endR\fi}% \fi} -\ExplSyntaxOn -\cs_undefine:N \__shipout_picture_overlay:n -\cs_new:Npn \__shipout_picture_overlay:n #1 { - \__shipout_init_page_origins: - \if@RTL - \kern \__dim_eval:w \textwidth-\c__shipout_horigin_tl \scan_stop: - \else - \kern -\c__shipout_horigin_tl \scan_stop: - \fi - \vbox_to_zero:n { - \kern -\c__shipout_vorigin_tl \scan_stop: - \unitlength 1pt \scan_stop: - \hbox_set_to_wd:Nnn \l__shipout_tmp_box \c_zero_dim - { \ignorespaces #1 \hss } - \box_set_ht:Nn \l__shipout_tmp_box \c_zero_dim - \box_set_dp:Nn \l__shipout_tmp_box \c_zero_dim - \box_use:N \l__shipout_tmp_box - \tex_vss:D - } -} -\ExplSyntaxOff - \newcommand*{\bidi@font@@outputpage}{} \def\@outputpage{% diff --git a/macros/xetex/latex/bidi/bidi.pdf b/macros/xetex/latex/bidi/bidi.pdf Binary files differindex 308ea1c86c..b027ae8cee 100644 --- a/macros/xetex/latex/bidi/bidi.pdf +++ b/macros/xetex/latex/bidi/bidi.pdf |