diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def index 168d3dae79f..11ef1d94c6c 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def +++ b/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{50080} +%% \CheckSum{50084} %% \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{lettrine-xetex-bidi.def}[2018/10/01 v0.6 bidi adaptations for lettrine package for XeTeX engine] +\ProvidesFile{lettrine-xetex-bidi.def}[2019/05/01 v0.7 bidi adaptations for lettrine package for XeTeX engine] \def\@lettrine[#1]#2#3{% \def\l@initial{#2}\let\l@refstring\l@initial \setcounter{L@lines}{\value{DefaultLines}}% @@ -140,8 +140,8 @@ \addtolength{\L@Nindent}{\L@Pindent}% \setlength{\L@next}{\linewidth}% \addtolength{\L@next}{-\L@Nindent}% - \addtolength{\L@Pindent}{\rightmargin}% - \addtolength{\L@Nindent}{\rightmargin}% + \addtolength{\L@Pindent}{\@totalleftmargin}% + \addtolength{\L@Nindent}{\@totalleftmargin}% \addtocounter{L@lines}{1}% \addtocounter{L@lines}{\value{L@depth}}% \if@RTL @@ -151,9 +151,9 @@ \fi \@tempcnta=\tw@ \@whilenum \@tempcnta<\c@L@lines\do{% - \if@RTL - \edef\L@parshape{\L@parshape \z@ \the\L@next}% - \else + \if@RTL + \edef\L@parshape{\L@parshape \z@ \the\L@next}% + \else \edef\L@parshape{\L@parshape \the\L@Nindent \the\L@next}% \fi \addtolength{\L@Nindent}{\L@slope}% @@ -162,13 +162,14 @@ \if@RTL \edef\L@parshape{\L@parshape \z@ \the\linewidth}% \else - \edef\L@parshape{\L@parshape \rightmargin \the\linewidth}% + \edef\L@parshape{\L@parshape \@totalleftmargin \the\linewidth}% \fi \noindent \parshape=\L@parshape\relax \smash{\llap{\mbox{\L@ante}\raisebox{\L@lraise}{\usebox{\L@lbox}}% \hskip \the\L@Findent}}% \usebox{\L@tbox}% + \ifnum\@listdepth>0 \Lreset@listparshape \fi } \endinput %% |