diff options
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/lettrine/lettrine.dtx | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/lettrine/lettrine.dtx b/Master/texmf-dist/source/latex/lettrine/lettrine.dtx index 13b9b7990e0..dc110251129 100644 --- a/Master/texmf-dist/source/latex/lettrine/lettrine.dtx +++ b/Master/texmf-dist/source/latex/lettrine/lettrine.dtx @@ -1,5 +1,5 @@ % -% \CheckSum{596} +% \CheckSum{598} % % \iffalse meta-comment % @@ -27,7 +27,7 @@ \ProvidesFile{lettrine.dtx} %</dtx> %<*!cfg> - [2018/07/21 v2.0 (Daniel Flipo)] + [2018/07/31 v2.01 (Daniel Flipo)] %</!cfg> % % Lettrine package for LaTeX version 2e @@ -498,26 +498,32 @@ % \changes{v2.0}{2018/07/21}{Store targeted dimensions of the % dropped capital (ht, dp, tht) for further use.} % +% \changes{v2.01}{2018/07/31}{Faulty code \cs{global}\cs{setlength} +% removed. Thanks to Ulrike Fischer for providing the patch.} +% % \begin{macrocode} \def\Lettrine@height{% \ifvoid\L@tbox \sbox{\L@tbox}{\LettrineTextFont{\LettrineSecondString}}% \fi - \global\setlength{\L@target@ht}{\ht\L@tbox}% + \setlength{\L@target@ht}{\ht\L@tbox}% % \end{macrocode} % As |\baselineskip| might be a rubber length, let’s convert it % into a `dimen' using |\@tempdima|. % \begin{macrocode} \@tempdima=\baselineskip - \global\setlength{\L@target@dp}{\value{L@lines}\@tempdima}% + \setlength{\L@target@dp}{\value{L@lines}\@tempdima}% \ifnum\value{L@lines}>1 - \global\addtolength{\L@target@dp}{-\@tempdima}% + \addtolength{\L@target@dp}{-\@tempdima}% \else - \global\addtolength{\L@target@ht}{\L@target@dp}% - \global\setlength{\L@target@dp}{0pt}% + \addtolength{\L@target@ht}{\L@target@dp}% + \setlength{\L@target@dp}{0pt}% \fi - \global\setlength{\L@target@tht}{\L@target@ht}% - \global\addtolength{\L@target@tht}{\L@target@dp}% + \setlength{\L@target@tht}{\L@target@ht}% + \addtolength{\L@target@tht}{\L@target@dp}% + \global\L@target@ht=\L@target@ht + \global\L@target@dp=\L@target@dp + \global\L@target@tht=\L@target@tht \setlength{\L@height}{\L@target@tht}% \addtolength{\L@height}{\L@oversize\L@target@tht}% } |