diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/idxlayout/idxlayout.sty | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/idxlayout/idxlayout.sty b/Master/texmf-dist/tex/latex/idxlayout/idxlayout.sty index f84eca3d018..01667bf8b28 100644 --- a/Master/texmf-dist/tex/latex/idxlayout/idxlayout.sty +++ b/Master/texmf-dist/tex/latex/idxlayout/idxlayout.sty @@ -17,7 +17,7 @@ %% README and the derived files idxlayout.pdf and idxlayout.sty. %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{idxlayout}[2010/03/01 v0.4b Configurable index layout] +\ProvidesPackage{idxlayout}[2010/06/26 v0.4c Configurable index layout] \RequirePackage{etoolbox,kvoptions,multicol} \SetupKeyvalOptions{family=ila,prefix=ila@} \newcommand*{\ila@defradiokey}[3][]{% @@ -107,15 +107,21 @@ }% } \def\ila@ju@raggedright{\renewcommand*{\indexjustific}{\raggedright}} +\newcommand*{\ila@RaggedRight}{} \def\ila@ju@RaggedRight{% - \ifundef{\RaggedRight}{% + \renewcommand*{\indexjustific}{\ila@RaggedRight}% +} +\AtBeginDocument{% + \IfFileExists{ragged2e.sty}{% + \RequirePackage{ragged2e}% + \renewcommand*{\ila@RaggedRight}{\RaggedRight}% + }{% \PackageWarning{idxlayout}{% - Command RaggedRight not defined!\MessageBreak - I'm using raggedright instead}% + Package ragged2e not available, therefore\MessageBreak + substituting command raggedright for RaggedRight\MessageBreak }% - \renewcommand*{\indexjustific}{\raggedright}% - }{% - \renewcommand*{\indexjustific}{\RaggedRight}% + \renewcommand*{\ila@RaggedRight}{\raggedright}% + }% } \ila@defradiokey{justific}{ju} \setkeys{ila}{justific=standard} |