summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lettrine/lettrine.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-09-18 22:56:50 +0000
committerKarl Berry <karl@freefriends.org>2014-09-18 22:56:50 +0000
commite3f11b759307a317e9fcb5b45a8510354424a48e (patch)
treeb46671c302df54aa8dfba62b519908f1f1deb1ab /Master/texmf-dist/tex/latex/lettrine/lettrine.sty
parent882c8b0c4af74429ab57ea5aa2c620c76db1bce4 (diff)
lettrine (18sep14)
git-svn-id: svn://tug.org/texlive/trunk@35195 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lettrine/lettrine.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lettrine/lettrine.sty7
1 files changed, 6 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/lettrine/lettrine.sty b/Master/texmf-dist/tex/latex/lettrine/lettrine.sty
index 11e7ca24b80..224b56f0fd3 100644
--- a/Master/texmf-dist/tex/latex/lettrine/lettrine.sty
+++ b/Master/texmf-dist/tex/latex/lettrine/lettrine.sty
@@ -22,11 +22,12 @@
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesFile{lettrine.sty}
- [2014/09/04 v1.65 (Daniel Flipo)]
+ [2014/09/16 v1.70 (Daniel Flipo)]
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\RequirePackage{keyval}
\newcounter{DefaultLines}
\setcounter{DefaultLines}{2}
+\newcounter{DefaultDepth}
\newcommand*{\DefaultOptionsFile}{\relax}
\newcommand*{\DefaultLoversize}{0}
\newcommand*{\DefaultLraise}{0}
@@ -41,6 +42,7 @@
\newsavebox{\L@lbox}
\newsavebox{\L@tbox}
\newcounter{L@lines}
+\newcounter{L@depth}
\newdimen\L@Pindent
\newdimen\L@Findent
\newdimen\L@Nindent
@@ -90,6 +92,7 @@
\Lettrine@height\LettrineFontHook
\includegraphics[height=\L@height]}
\define@key{L}{lines}{\setcounter{L@lines}{#1}}
+\define@key{L}{depth}{\setcounter{L@depth}{#1}}
\define@key{L}{lhang}{\renewcommand*{\L@hang}{#1}}
\define@key{L}{loversize}{\renewcommand*{\L@oversize}{#1}}
\define@key{L}{lraise}{\renewcommand*{\L@raise}{#1}}
@@ -105,6 +108,7 @@
\def\lettrine{\@ifnextchar[\@lettrine{\@lettrine[]}}
\def\@lettrine[#1]#2#3{%
\setcounter{L@lines}{\theDefaultLines}%
+ \setcounter{L@depth}{\theDefaultDepth}%
\renewcommand*{\L@hang}{\DefaultLhang}%
\renewcommand*{\L@oversize}{\DefaultLoversize}%
\renewcommand*{\L@raise}{\DefaultLraise}%
@@ -181,6 +185,7 @@
\setlength{\LettrineHeight}{\ht\L@lbox}%
\setlength{\LettrineDepth}{\dp\L@lbox}%
\addtocounter{L@lines}{1}%
+ \addtocounter{L@lines}{\the\c@L@depth}%
\def\L@parshape{\c@L@lines \the\L@Pindent \the\L@first}%
\@tempcnta=\tw@
\@whilenum \@tempcnta<\c@L@lines\do{%