diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def index d7ed0aebb0b..2836ec0cf09 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def +++ b/Master/texmf-dist/tex/xelatex/bidi/extarticle-xetex-bidi.def @@ -20,7 +20,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{58641} +%% \CheckSum{57298} %% \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 @@ -37,7 +37,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} %% -\ProvidesFile{extarticle-xetex-bidi.def}[2017/06/09 v0.4 bidi adaptations for extarticle class for XeTeX engine] +\ProvidesFile{extarticle-xetex-bidi.def}[2025/01/05 v0.5 bidi adaptations for extarticle class for XeTeX engine] \renewcommand*\l@section[2]{% \ifnum \c@tocdepth >\z@ \addpenalty\@secpenalty @@ -84,14 +84,15 @@ \nobreak \vskip 3ex \@afterheading} - \def\@spart#1{% - {\parindent \z@ \if@RTL\raggedleft\else\raggedright\fi - \interlinepenalty \@M - \normalfont - \huge \bfseries #1\par}% - \nobreak - \vskip 3ex - \@afterheading} +\ApplyPatchIfPackageLoaded{nameref}{% + \bidi@patchcmd\NR@spart\raggedright{% + \if@RTL\raggedleft\else\raggedright\fi + }{}{\bidi@warningnoline{Oops! patching `\string\NR@spart' failed}}% +}{% + \bidi@patchcmd\@spart\raggedright{% + \if@RTL\raggedleft\else\raggedright\fi + }{}{\bidi@warningnoline{Oops! patching `\string\@spart' failed}}% +} \renewenvironment{thebibliography}[1] {\section*{\refname \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}% |