From 18b35455490b1234ec3fc8b4efd54c674990fc70 Mon Sep 17 00:00:00 2001 From: Manuel Pégourié-Gonnard Date: Wed, 30 Jun 2010 12:00:21 +0000 Subject: idxlyaout update Version 0.4c (2010/06/26) git-svn-id: svn://tug.org/texlive/trunk@19194 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/idxlayout/idxlayout.sty | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/latex/idxlayout') 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} -- cgit v1.2.3