From ccd0f62241fae9302f2a28a14ade77c3c3d873f8 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 3 Oct 2018 22:47:47 +0000 Subject: bidi (3oct18) git-svn-id: svn://tug.org/texlive/trunk@48826 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/xelatex/bidi/bidi-doc-intro.ltx | 2 +- .../source/xelatex/bidi/bidi-doc-title.ltx | 4 +- Master/texmf-dist/source/xelatex/bidi/bidi-doc.ltx | 2 +- Master/texmf-dist/source/xelatex/bidi/bidi.dtx | 46 ++++++++++++++++------ 4 files changed, 38 insertions(+), 16 deletions(-) (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-intro.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-intro.ltx index 296051495b6..8d348e84c9a 100644 --- a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-intro.ltx +++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-intro.ltx @@ -19,7 +19,7 @@ If you use \textsf{bidi} package to write any input \TeX\ document, and then run * * Copyright (c) 2009--2018 Vafa Khalighi * -* v34.1, 2018/10/01 +* v34.2, 2018/10/03 * * License: LaTeX Project Public License, version * 1.3c or higher (your choice) diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-title.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc-title.ltx index 4d6dbd91dc0..b0dac2143b1 100644 --- a/Master/texmf-dist/source/xelatex/bidi/bidi-doc-title.ltx +++ b/Master/texmf-dist/source/xelatex/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 34.1}} +\large User documentation for \textcolor{blue!65!black}{version 34.2}} \author{Vafa Khalighi\\ \url{persian-tex@tug.org}} \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 34.1}} +User documentation for \textcolor{blue!65!black}{version 34.2}} \vskip 0pt plus 3fill \textit{\large to my Master, \textbf{Ferdowsi The Great}} diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi-doc.ltx b/Master/texmf-dist/source/xelatex/bidi/bidi-doc.ltx index f5ba4b8a66b..5212f57c436 100644 --- a/Master/texmf-dist/source/xelatex/bidi/bidi-doc.ltx +++ b/Master/texmf-dist/source/xelatex/bidi/bidi-doc.ltx @@ -1,7 +1,7 @@ \documentclass{ltxdoc} \input{bidi-doc-preamble.ltx} \hypersetup{% - pdftitle={User documentation for version 34.1 of the bidi + pdftitle={User documentation for version 34.2 of the bidi package}% } \begin{document} diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx index d01f5455df7..33b5734e3cd 100644 --- a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx +++ b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx @@ -5,7 +5,7 @@ %<*readme> ___________________ The bidi package -v34.1 +v34.2 This package provides a convenient interface for typesetting bidirectional texts in Plain TeX and LaTeX, using XeTeX engine. @@ -44,7 +44,7 @@ mailing list whenever I have time. You can subscribe to the mailing list at -Current version release date: 2018/10/01 +Current version release date: 2018/10/03 ___________________ Vafa Khalighi @@ -242,7 +242,7 @@ by Vafa Khalighi. \documentclass{ltxdoc} \input{bidi-doc-preamble.ltx} \hypersetup{% - pdftitle={Source documentation for version 34.1 of the bidi + pdftitle={Source documentation for version 34.2 of the bidi package}% } \EnableCrossrefs @@ -261,7 +261,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 34.1}} +%\large Source documentation for \textcolor{blue!65!black}{version 34.2}} % \author{Vafa Khalighi\\ % \url{persian-tex@tug.org}} %\setcounter{page}{0} @@ -272,7 +272,7 @@ by Vafa Khalighi. %\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}} % %\Large -%Source documentation for \textcolor{blue!65!black}{version 34.1}} +%Source documentation for \textcolor{blue!65!black}{version 34.2}} % %\vskip 0pt plus 3fill %\textit{\large to my Master, \textbf{Ferdowsi The Great}} @@ -338,7 +338,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{50625} +%% \CheckSum{50654} %% \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 @@ -1951,8 +1951,8 @@ by Vafa Khalighi. % \section{File \texttt{bidi.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\bididate{2018/10/01} -\def\bidi@version{34.1} +\def\bididate{2018/10/03} +\def\bidi@version{34.2} \ProvidesPackage{bidi}[\bididate\space v\bidi@version\space Bidirectional typesetting in plain TeX and LaTeX] \edef\@bidi@info{****************************************************^^J% @@ -2264,9 +2264,9 @@ Bidirectional typesetting in plain TeX and LaTeX] %\fi % \section{File \texttt{bidi.tex}} % \begin{macrocode} -\def\bididate{2018/10/01} +\def\bididate{2018/10/03} \catcode`@=11 -\def\bidi@version{34.1} +\def\bidi@version{34.2} \let \protect \relax \newlinechar`\^^J \edef\@bidi@info{****************************************************^^J% @@ -3051,7 +3051,8 @@ Bidirectional typesetting in plain TeX and LaTeX] % \section{File \texttt{bidi-perpagefootnote.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{bidi-perpagefootnote}[2018/10/01 v0.1 Reset bidi footnotes counter on each page] +\ProvidesPackage{bidi-perpagefootnote}[2018/10/03 v0.2 Reset bidi footnotes counter on each page] +\newif\if@bidi@reset@footnote@rerun \newcount\bidi@footnote@count \bidi@footnote@count\z@ \newcount\bidi@page@count @@ -3113,7 +3114,9 @@ Bidirectional typesetting in plain TeX and LaTeX] \expandafter\ifx\csname bidi@footnote@@\number \bidi@footnote@count\endcsname\relax \global\c@footnote\z@ + \global\@bidi@reset@footnote@reruntrue \else + \global\@bidi@reset@footnote@rerunfalse \expandafter\@tempcnta\csname bidi@footnote@@\number \bidi@footnote@count\endcsname\relax \ifnum\@tempcnta=\bidi@previous@page@count @@ -3127,6 +3130,14 @@ Bidirectional typesetting in plain TeX and LaTeX] \bidi@AtEndOutputPage{% \global\advance\bidi@page@count\@ne } +\bidi@AfterEndDocumentCheckLabelsRerun{% + \if@bidi@reset@footnote@rerun + \PackageWarningNoLine{bidi-perpagefootnote}{% + Footnote(s) number(s) may be wrong. + Rerun to get footnote(s) number(s) right% + }% + \fi +} % \end{macrocode} % \iffalse % @@ -3135,7 +3146,7 @@ Bidirectional typesetting in plain TeX and LaTeX] % \section{File \texttt{biditools.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{biditools}[2018/02/22 v1.4 Programming tools for bidi package] +\ProvidesPackage{biditools}[2018/10/03 v1.5 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% @@ -3814,6 +3825,17 @@ ill-advised in the old versions of bidi package.% \protected\def\bidi@AfterEndPreamble{\@notprerr\@gobble}% \bidi@undef\bidi@afterendpreamblehook \ignorespaces} + +\bidi@newrobustcmd*{\bidi@AfterEndDocumentCheckLabelsRerun}{\bidi@gappto\bidi@afterenddocumentchecklabelsrerunhook} +\newcommand*{\bidi@afterenddocumentchecklabelsrerunhook}{} + +\bidi@patchcmd\enddocument + {\fi\endgroup} + {\let\bidi@AfterEndDocumentCheckLabelsRerun\@firstofone + \bidi@afterenddocumentchecklabelsrerunhook + \fi\endgroup} + {} + {\PackageWarning{biditools}{Patching `\string\enddocument' failed}} \AtEndDocument{\let\bidi@AfterEndPreamble\@gobble} -- cgit v1.2.3