diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/bidi-perpagefootnote.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/bidi-perpagefootnote.sty | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi-perpagefootnote.sty b/Master/texmf-dist/tex/xelatex/bidi/bidi-perpagefootnote.sty index 4072222fc07..c5eb36045ce 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/bidi-perpagefootnote.sty +++ b/Master/texmf-dist/tex/xelatex/bidi/bidi-perpagefootnote.sty @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \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 @@ -35,7 +35,8 @@ %% Right brace \} Tilde \~} %% \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 @@ -97,7 +98,9 @@ \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 @@ -111,6 +114,14 @@ \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 +} \endinput %% %% End of file `bidi-perpagefootnote.sty'. |