diff options
author | Karl Berry <karl@freefriends.org> | 2024-01-20 21:08:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-01-20 21:08:05 +0000 |
commit | a8c780c3a68a007f347bab71ff7f0d22a59e9fee (patch) | |
tree | b6706ae7ddc3a9c43470d77d1289d509963b2908 /Master/texmf-dist/tex/latex/lettrine | |
parent | 5d17095d877f91c1b9365e78e280fb9ba368b035 (diff) |
lettrine (20jan24)
git-svn-id: svn://tug.org/texlive/trunk@69508 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lettrine')
-rw-r--r-- | Master/texmf-dist/tex/latex/lettrine/lettrine.cfg | 5 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/lettrine/lettrine.sty | 29 |
2 files changed, 28 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/lettrine/lettrine.cfg b/Master/texmf-dist/tex/latex/lettrine/lettrine.cfg index 51b073dd39d..b14efc71182 100644 --- a/Master/texmf-dist/tex/latex/lettrine/lettrine.cfg +++ b/Master/texmf-dist/tex/latex/lettrine/lettrine.cfg @@ -1,3 +1,4 @@ + %% lettrine.cfg: configuration file for lettrine.sty %% %% If you want to customize lettrine, please *do not* hack into the @@ -26,6 +27,10 @@ %%\LettrineOnGridfalse %%\LettrineRealHeightfalse %% +%% This is a *command*, define it as \relax if you dont want the second +%% mandatory argument of \lettrine[]{}{} to be typset in small caps. +%%\renewcommand*{\LettrineTextFont}{\scshape}| +%% %% Theses are *commands* (value=string, only height matters): %%\renewcommand*{\LettrineTestString}{EFTZ} %%\renewcommand*{\LettrineSecondString}{x} diff --git a/Master/texmf-dist/tex/latex/lettrine/lettrine.sty b/Master/texmf-dist/tex/latex/lettrine/lettrine.sty index 8cc81e30bab..b508a930299 100644 --- a/Master/texmf-dist/tex/latex/lettrine/lettrine.sty +++ b/Master/texmf-dist/tex/latex/lettrine/lettrine.sty @@ -7,17 +7,18 @@ %% lettrine.dtx (with options: `sty') %% %% IMPORTANT NOTICE: -%% For the copyright see the source file `lua-typo.dtx’. +%% For the copyright see the source file `lettrine.dtx’. %% \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesFile{lettrine.sty} - [2023-08-14 v2.52 (Daniel Flipo)] + [2024-01-20 v2.60 (Daniel Flipo)] + \DeclareRelease{v1.6}{1999-03-03}{lettrine-2006-03-17.sty} \DeclareRelease{v1.9}{2012-07-20}{lettrine-2015-08-31.sty} \DeclareRelease{v2.0}{2018-07-21}{lettrine-2018-08-18.sty} \DeclareRelease{v2.3}{2022-09-25}{lettrine-2022-09-25.sty} \DeclareRelease{v2.4}{2023-04-18}{lettrine-2023-04-18.sty} -\DeclareCurrentRelease{}{2023-07-02} +\DeclareCurrentRelease{}{2023-01-20} \RequirePackage{xfp} \newcounter{DefaultLines} \setcounter{DefaultLines}{2} @@ -66,6 +67,7 @@ \newif\ifL@image \newif\ifL@grid \newif\ifL@realh +\let\ifL@RTL\iffalse \newcommand*{\L@viewport}{} \newcommand*{\LettrineTestString}{EFTZ} \InputIfFileExists{lettrine.cfg} @@ -269,14 +271,26 @@ \addtolength{\L@Nindent}{\@totalleftmargin}% \addtocounter{L@lines}{1}% \addtocounter{L@lines}{\value{L@depth}}% - \def\L@parshape{\c@L@lines \the\L@Pindent \the\L@first}% + \ifL@RTL + \def\L@parshape{\c@L@lines \z@ \the\L@first}% + \else + \def\L@parshape{\c@L@lines \the\L@Pindent \the\L@first}% + \fi \@tempcnta=\tw@ \@whilenum \@tempcnta<\c@L@lines\do{% - \edef\L@parshape{\L@parshape \the\L@Nindent \the\L@next}% + \ifL@RTL + \edef\L@parshape{\L@parshape \z@ \the\L@next}% + \else + \edef\L@parshape{\L@parshape \the\L@Nindent \the\L@next}% + \fi \addtolength{\L@Nindent}{\L@slope}% \addtolength{\L@next}{-\L@slope}% \advance\@tempcnta\@ne}% - \edef\L@parshape{\L@parshape \@totalleftmargin \the\linewidth}% + \ifL@RTL + \edef\L@parshape{\L@parshape \z@ \the\linewidth}% + \else + \edef\L@parshape{\L@parshape \@totalleftmargin \the\linewidth}% + \fi \noindent \parshape=\L@parshape\relax \llap{\mbox{\L@ante}\smash{\raisebox{\L@lraise}{\usebox{\L@lbox}}}% @@ -294,6 +308,9 @@ \let\everypar\Llist@everypar }% } +\AtBeginDocument{% + \IfPackageLoadedTF{bidi}{\eqnewif{\ifL@RTL}{\if@RTL}}{}% +} %% %% %% End of file `lettrine.sty'. |