diff options
author | Karl Berry <karl@freefriends.org> | 2010-01-25 00:22:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-01-25 00:22:04 +0000 |
commit | 2c82ae3369984eafc23b0efad01e947b2c9b8f33 (patch) | |
tree | d98b6eef82a4113dfc5773224ecec9de2660ad48 /Master/texmf-dist/tex/latex/idxlayout/idxlayout.sty | |
parent | ab073776361d2b6996983cb61f95410432ef7b66 (diff) |
idxlayout update (24jan10)
git-svn-id: svn://tug.org/texlive/trunk@16812 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/idxlayout/idxlayout.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/idxlayout/idxlayout.sty | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/idxlayout/idxlayout.sty b/Master/texmf-dist/tex/latex/idxlayout/idxlayout.sty index 6584fece56c..db68e56fe02 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/01/10 v0.4 Configurable index layout] +\ProvidesPackage{idxlayout}[2010/01/24 v0.4a Configurable index layout] \RequirePackage{etoolbox,kvoptions,multicol} \SetupKeyvalOptions{family=ila,prefix=ila@} \newcommand*{\ila@defradiokey}[3][]{% @@ -47,6 +47,7 @@ } \define@key{ila}{columnsep}{\setlength{\indexcolsep}{#1}} \define@key{ila}{rule}{\setlength{\indexrule}{#1}} +\DeclareBoolOption{unbalanced} \newlength{\ila@indentunit} \define@key{ila}{indentunit}{\setlength{\ila@indentunit}{#1}} \setkeys{ila}{indentunit=20\p@} @@ -206,8 +207,13 @@ \ifnumcomp{\theidxcols}{<}{\tw@}{% \ila@prologue\indexfont\ila@prenote }{% - \begin{multicols}{\theidxcols}% - [\ila@prologue\indexfont\ila@prenote][\ila@minspace]% + \ifbool{ila@unbalanced}{% + \begin{multicols*}{\theidxcols}% + [\ila@prologue\indexfont\ila@prenote][\ila@minspace]% + }{% + \begin{multicols}{\theidxcols}% + [\ila@prologue\indexfont\ila@prenote][\ila@minspace]% + }% }% \setlength{\parskip}{\z@ \@plus 0.3\p@}% \indexjustific @@ -215,7 +221,11 @@ }{% \ifnumcomp{\theidxcols}{<}{\tw@}{% }{% - \end{multicols}% + \ifbool{ila@unbalanced}{% + \end{multicols*}% + }{% + \end{multicols}% + }% }% \ifbool{@restonecol}{% }{% |