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 | 14 |
1 files changed, 9 insertions, 5 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 0a3b31aea8d..cc0bb43b75a 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def +++ b/Master/texmf-dist/tex/xelatex/bidi/lettrine-xetex-bidi.def @@ -7,7 +7,7 @@ %% bidi.dtx (with options: `table,lettrine-xetex-bidi.def') %% %% __________________________________________________ -%% Copyright © 2009–2014 Vafa Khalighi <vafak@me.com> +%% Copyright © 2009–2014 Vafa Khalighi <tex.ctan@gmail.com> %% %% It may be distributed and/or modified under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{42006} +%% \CheckSum{42018} %% \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}[2013/04/10 v0.2 bidi adaptations for lettrine package for XeTeX engine] +\ProvidesFile{lettrine-xetex-bidi.def}[2014/09/14 v0.3 bidi adaptations for lettrine package for XeTeX engine] \def\@lettrine[#1]#2#3{% \setcounter{L@lines}{\theDefaultLines}% \renewcommand*{\L@hang}{\DefaultLhang}% @@ -67,7 +67,7 @@ \let\@tempc\relax \expandafter\KV@do\l@LOKeys,\relax, \sbox{\L@lbox}{\LettrineFont #2}% - \settowidth{\LettrineWidth}{\usebox{\L@lbox}}% + \setlength{\LettrineWidth}{\wd\L@lbox}% \def\KV@prefix{KV@L@}% \let\@tempc\relax \expandafter\KV@do\l@LOKeys,\relax, @@ -109,6 +109,9 @@ \addtolength{\L@next}{-\L@Nindent}% \addtolength{\L@Pindent}{\rightmargin}% \addtolength{\L@Nindent}{\rightmargin}% + \setlength{\LettrineWidth}{\wd\L@lbox}% + \setlength{\LettrineHeight}{\ht\L@lbox}% + \setlength{\LettrineDepth}{\dp\L@lbox}% \addtocounter{L@lines}{1}% \if@RTL\def\L@parshape{\c@L@lines 0pt \the\L@first}\else\def\L@parshape{\c@L@lines \the\L@Pindent \the\L@first}\fi \@tempcnta=\tw@ @@ -122,7 +125,8 @@ \parshape=\L@parshape\relax \smash{\llap{\mbox{\L@ante}\raisebox{\L@lraise}{\usebox{\L@lbox}}% \hskip \the\L@Findent}}% - \usebox{\L@tbox}} + \usebox{\L@tbox}% +} \endinput %% %% End of file `lettrine-xetex-bidi.def'. |