diff options
Diffstat (limited to 'Master/texmf-dist/tex')
4 files changed, 80 insertions, 66 deletions
diff --git a/Master/texmf-dist/tex/latex/lettrine/lettrine-2006-03-17.sty b/Master/texmf-dist/tex/latex/lettrine/lettrine-2006-03-17.sty index c149b5fffe4..aa7c9af1c6a 100644 --- a/Master/texmf-dist/tex/latex/lettrine/lettrine-2006-03-17.sty +++ b/Master/texmf-dist/tex/latex/lettrine/lettrine-2006-03-17.sty @@ -5,16 +5,20 @@ %% %% For the copyright see the source file `lettrine.dtx'. %% -%% Any modified versions of this file must be renamed -%% with new filenames distinct from lettrine.sty. +%% This file can be distributed and/or modified under the terms +%% of the LaTeX Project Public License either version 1.3c of this +%% license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. %% -%% For distribution of the original source see the terms -%% for copying and modification in the file lettrine.dtx. +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Daniel Flipo. +%% +%% Please report errors to: <daniel (dot) flipo (at) free (dot) fr> %% -%% This generated file may be distributed as long as the -%% original source files, as listed above, are part of the -%% same distribution. (The sources need not necessarily be -%% in the same archive or directory.) \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesFile{lettrine.sty} [2006/03/17 v1.6 (Daniel Flipo)] diff --git a/Master/texmf-dist/tex/latex/lettrine/lettrine-2015-08-31.sty b/Master/texmf-dist/tex/latex/lettrine/lettrine-2015-08-31.sty index fac9d05d80a..99d02b81056 100644 --- a/Master/texmf-dist/tex/latex/lettrine/lettrine-2015-08-31.sty +++ b/Master/texmf-dist/tex/latex/lettrine/lettrine-2015-08-31.sty @@ -5,16 +5,20 @@ %% %% For the copyright see the source file `lettrine.dtx'. %% -%% Any modified versions of this file must be renamed -%% with new filenames distinct from lettrine.sty. +%% This file can be distributed and/or modified under the terms +%% of the LaTeX Project Public License either version 1.3c of this +%% license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. %% -%% For distribution of the original source see the terms -%% for copying and modification in the file lettrine.dtx. +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Daniel Flipo. +%% +%% Please report errors to: <daniel (dot) flipo (at) free (dot) fr> %% -%% This generated file may be distributed as long as the -%% original source files, as listed above, are part of the -%% same distribution. (The sources need not necessarily be -%% in the same archive or directory.) \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesFile{lettrine.sty} [2015/08/31 v1.9 (Daniel Flipo)] diff --git a/Master/texmf-dist/tex/latex/lettrine/lettrine-2018-08-18.sty b/Master/texmf-dist/tex/latex/lettrine/lettrine-2018-08-18.sty index 1d2d6e74dd1..c302ce38d4f 100644 --- a/Master/texmf-dist/tex/latex/lettrine/lettrine-2018-08-18.sty +++ b/Master/texmf-dist/tex/latex/lettrine/lettrine-2018-08-18.sty @@ -5,16 +5,20 @@ %% %% For the copyright see the source file `lettrine.dtx'. %% -%% Any modified versions of this file must be renamed -%% with new filenames distinct from lettrine.sty. +%% This file can be distributed and/or modified under the terms +%% of the LaTeX Project Public License either version 1.3c of this +%% license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. %% -%% For distribution of the original source see the terms -%% for copying and modification in the file lettrine.dtx. +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Daniel Flipo. +%% +%% Please report errors to: <daniel (dot) flipo (at) free (dot) fr> %% -%% This generated file may be distributed as long as the -%% original source files, as listed above, are part of the -%% same distribution. (The sources need not necessarily be -%% in the same archive or directory.) \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesFile{lettrine.sty} [2018/08/18 v2.1 (Daniel Flipo)] diff --git a/Master/texmf-dist/tex/latex/lettrine/lettrine.sty b/Master/texmf-dist/tex/latex/lettrine/lettrine.sty index 36588a71988..d9060306c3f 100644 --- a/Master/texmf-dist/tex/latex/lettrine/lettrine.sty +++ b/Master/texmf-dist/tex/latex/lettrine/lettrine.sty @@ -9,7 +9,7 @@ %% This file is a generated file part of the lettrine package. %% ----------------------------------------------------------- %% -%% For the copyright see the source file lettine.dtx. +%% For the copyright see the source file `lettine.dtx'. %% %% This file can be distributed and/or modified under the terms %% of the LaTeX Project Public License either version 1.3c of this @@ -27,7 +27,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2018-04-01] \ProvidesFile{lettrine.sty} - [2018-08-25 v2.2 (Daniel Flipo)] + [2018-08-28 v2.21 (Daniel Flipo)] \ifdefined\DeclareRelease \DeclareRelease{v1.6}{1999-03-03}{lettrine-2006-03-17.sty} \DeclareRelease{v1.9}{2012-07-20}{lettrine-2015-08-31.sty} @@ -89,46 +89,54 @@ \newif\ifL@realh \newif\ifL@selfref \newcommand*{\LettrineTextFont}{\scshape} -\newcommand*{\LettrineTestString}{EFTZ} \newcommand*{\LettrineSecondString}{x} -\def\Lettrine@height{% - \setlength{\L@target@ht}{\ht\L@tbox}% - \@tempdima=\baselineskip - \setlength{\L@target@dp}{\value{L@lines}\@tempdima}% - \ifnum\value{L@lines}>1 - \addtolength{\L@target@dp}{-\@tempdima}% - \else - \addtolength{\L@target@ht}{\L@target@dp}% - \setlength{\L@target@dp}{0pt}% - \fi - \setlength{\L@target@tht}{\L@target@ht}% - \addtolength{\L@target@tht}{\L@target@dp}% - \setlength{\L@height}{\L@target@tht}% - \addtolength{\L@height}{\L@oversize\L@target@tht}% - \ifL@image - \else - \ifL@selfref - \def\Lettrine@RefString{\l@refstring}% - \else - \def\Lettrine@RefString{\LettrineTestString}% - \fi - \sbox{\@tempboxa}{\LettrineFontHook - \fontsize{\L@height}{\L@height}\selectfont - \Lettrine@RefString}% - \@tempcnta=\ht\@tempboxa - \@tempcntb=\L@height - \MFPdiv{\the\@tempcntb}{\the\@tempcnta}\L@factor - \fi -} \newcommand*{\LettrineFontHook}{} +\def\computeL@height{% + \setlength{\L@target@ht}{\ht\L@tbox}% + \@tempdima=\baselineskip + \setlength{\L@target@dp}{\value{L@lines}\@tempdima}% + \ifnum\value{L@lines}>1 + \addtolength{\L@target@dp}{-\@tempdima}% + \else + \addtolength{\L@target@ht}{\L@target@dp}% + \setlength{\L@target@dp}{0pt}% + \fi + \setlength{\L@target@tht}{\L@target@ht}% + \addtolength{\L@target@tht}{\L@target@dp}% + \setlength{\L@height}{\L@target@tht}% + \addtolength{\L@height}{\L@oversize\L@target@tht}% +} +\newcommand*{\LettrineTestString}{EFTZ} +\def\compute@fontsize{% + \ifL@selfref + \def\Lettrine@RefString{\l@refstring}% + \else + \def\Lettrine@RefString{\LettrineTestString}% + \fi + \sbox{\@tempboxa}{\LettrineFontHook + \fontsize{\L@height}{\L@height}\selectfont + \Lettrine@RefString}% + \@tempcnta=\ht\@tempboxa + \@tempcntb=\L@height + \MFPdiv{\the\@tempcntb}{\the\@tempcnta}\L@factor +} \newcommand*{\LettrineFont}{% \LettrineFontHook \fontsize{\L@factor\L@height}{\L@factor\L@height}% \selectfont } -\newcommand*{\LettrineFontEPS}{% +\newcommand*{\LettrineImage}{% \LettrineFontHook\includegraphics[height=\L@height]% } +\def\setupL@lbox{% + \computeL@height + \ifL@image + \sbox{\L@lbox}{\LettrineImage{\l@initial}}% + \else + \compute@fontsize + \sbox{\L@lbox}{\LettrineFont \l@initial}% + \fi +} \define@key{L}{lines}{\setcounter{L@lines}{#1}} \define@key{L}{depth}{\setcounter{L@depth}{#1}} \define@key{L}{lhang}{\renewcommand*{\L@hang}{#1}} @@ -165,7 +173,7 @@ \setkeys{L}{#1}% \sbox{\L@tbox}{\LettrineTextFont{\LettrineSecondString}}% \ifL@realh - \def\@tempa{#3} + \def\@tempa{#3}% \ifx\@tempa\@empty \PackageWarning{lettrine.sty}% {Empty second argument,\MessageBreak @@ -195,20 +203,14 @@ \def\KV@prefix{KV@L@}% \let\@tempc\relax \expandafter\KV@do\l@LOKeys,\relax, - \Lettrine@height - \sbox{\L@lbox}{\LettrineFont #2}% + \setupL@lbox \setlength{\LettrineWidth}{\wd\L@lbox}% \def\KV@prefix{KV@L@}% \let\@tempc\relax \expandafter\KV@do\l@LOKeys,\relax, \setkeys{L}{#1}% \fi - \Lettrine@height - \ifL@image - \sbox{\L@lbox}{\LettrineFontEPS{#2}}% - \else - \sbox{\L@lbox}{\LettrineFont #2}% - \fi + \setupL@lbox \setlength{\LettrineWidth}{\wd\L@lbox}% \setlength{\LettrineHeight}{\ht\L@lbox}% \setlength{\LettrineDepth}{\dp\L@lbox}% |