diff options
author | Karl Berry <karl@freefriends.org> | 2018-07-31 20:54:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-07-31 20:54:22 +0000 |
commit | e9c87a20f359b9d7842854d3d737058acbe0a0fd (patch) | |
tree | 98bda5c3d8be9ca1b0c85475242094febf7014d0 /Master/texmf-dist/source | |
parent | 22aaabfaa8342d36886efc120442e53c947bc296 (diff) |
lettrine (31jul18)
git-svn-id: svn://tug.org/texlive/trunk@48321 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-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}% } |