diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def | 48 |
1 files changed, 41 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def index 32131c975fe..c6b0f984cb3 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def +++ b/Master/texmf-dist/tex/xelatex/bidi/extrafootnotefeatures-xetex-bidi.def @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{50014} +%% \CheckSum{50128} %% \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 @@ -34,7 +34,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} %% -\ProvidesFile{extrafootnotefeatures-xetex-bidi.def}[2018/09/23 v1.2 bidi extra footnote features for XeTeX engine] +\ProvidesFile{extrafootnotefeatures-xetex-bidi.def}[2018/09/26 v1.3 bidi extra footnote features for XeTeX engine] \newcommand*{\@bidi@before@Hy@hyperfootnotes}{% \if@bidi@csundef{ifHy@hyperfootnotes}{}{% \if@bidi@csundef{HLTR@@LTRfootnotetext}{}{% @@ -299,9 +299,9 @@ \rightskip=\z@ \footnoterule}} \newinsert\footinsv@r - \skip\footinsv@r\bigskipamount - \count\footinsv@r=1000 % no magnifcation - \dimen\footinsv@r=\footinsdim +\skip\footinsv@r\bigskipamount +\count\footinsv@r=1000 % no magnifcation +\dimen\footinsv@r=\footinsdim \m@make@footstart{v@r} \bidi@ensure@newcommand{\@footgroupv@r}{} \newinsert\@mpfootinsv@r @@ -1715,7 +1715,17 @@ \repeat}} \bidi@ensure@newcommand*{\m@mremovehboxes}{\setbox0=\lastbox \ifhbox0{\m@mremovehboxes}\unhbox0 \fi} -\bidi@ensure@newcommand*{\footfudgefiddle}{64} +\newcommand*\AddExtraParaSkip[1]{% + \if@bidi@csdef{footfudgefactor}{% + \PackageError{bidi}{% + The control sequence `\string\AddExtraParaSkip` + must be used before the control sequence + `\string\paragraphfootnotes' in the preamble% + }\@ehc + }{% + \def\bidi@xparaskip{\advance\@tempdima#1\relax}% + }% +} \bidi@ensure@newcommand{\paragraphfootnotes}{% \@namedef{foottextfontv@r}{\foottextfont}% % [RS] \@bidi@before@Hy@hyperfootnotes @@ -1725,7 +1735,9 @@ \dimen\footinsv@r=\footinsdim \count\footinsv@r=1000\relax \m@make@para@footgroup{v@r}% + \m@make@para@footstart{v@r}% \let\@footgroupv@r\@para@footgroupv@r + \let\@footstartv@r\@para@footstartv@r \let\@mpfootnotetext\@mpparafootnotetext \let\@mpLTRfootnotetext\@mpparaLTRfootnotetext \let\@mpRTLfootnotetext\@mpparaRTLfootnotetext @@ -1735,6 +1747,16 @@ \begingroup \def\baselinestretch{\m@m@footnote@spacing}% \foottextfont + \@tempdima\footnotesep + \advance\@tempdima -\ht\strutbox + \ifdim\@tempdima<\z@ \@tempdima\z@ \fi + \advance\@tempdima.5\normalbaselineskip + \bidi@xparaskip + \xdef\bidi@paraskip{\the\@tempdima\relax}% + \ifdim\skip\footinsv@r>\bigskipamount + \else + \global\advance\skip\footinsv@r\bidi@paraskip + \fi \@tempdima\normalbaselineskip \multiply \@tempdima \@cclvi \@tempdimb \columnwidth @@ -1743,6 +1765,8 @@ \xdef\footfudgefactor{\strip@pt\@tempdima}% \endgroup } +\let\bidi@xparaskip\relax +\@onlypreamble\AddExtraParaSkip \bidi@ensure@newcommand{\@parafootnotetext}[1]{\insert\footinsv@r{% \let\bidi@RTL@everypar\@empty% \def\baselinestretch{\m@m@footnote@spacing}% @@ -1852,6 +1876,16 @@ \begingroup \def\baselinestretch{\m@m@footnote@spacing}% \@nameuse{foottextfont#1}% + \@tempdima\footnotesep + \advance\@tempdima -\ht\strutbox + \ifdim\@tempdima<\z@ \@tempdima\z@ \fi + \advance\@tempdima.5\normalbaselineskip + \bidi@xparaskip + \xdef\bidi@paraskip{\the\@tempdima\relax}% + \ifdim\skip\@nameuse{footins#1}>\bigskipamount + \else + \global\advance\skip\@nameuse{footins#1}\bidi@paraskip + \fi \@tempdima\normalbaselineskip \multiply \@tempdima \@cclvi \@tempdimb \columnwidth @@ -1916,7 +1950,7 @@ \leftskip=\z@ \rightskip=\z@ \parindent=\z@ - \vskip\skip\@nameuse{footins#1}% + \vskip\skip\footins \footnoterule}} \bidi@ensure@newcommand*{\m@m@makecolfloats}{% \xdef\@freelist{\@freelist\@midlist}% |