diff options
author | Karl Berry <karl@freefriends.org> | 2010-12-30 23:40:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-12-30 23:40:57 +0000 |
commit | 465138e07db1c80868bf80c3347004e12daedbc6 (patch) | |
tree | 7a3730efd4afaea6097808f27cce573a3d74f7e4 /Master/texmf-dist/tex | |
parent | 3c812852f81923bfff2263ca1147f8ff28ab1269 (diff) |
enumitem-zref (30dec10)
git-svn-id: svn://tug.org/texlive/trunk@20884 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/enumitem-zref/enumitem-zref.sty | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/enumitem-zref/enumitem-zref.sty b/Master/texmf-dist/tex/latex/enumitem-zref/enumitem-zref.sty index d937d9b63c9..2cf176ea714 100644 --- a/Master/texmf-dist/tex/latex/enumitem-zref/enumitem-zref.sty +++ b/Master/texmf-dist/tex/latex/enumitem-zref/enumitem-zref.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% enumitem-zref : 2010/12/17 v1.5 - Extended references to items for enumitem package and hyperref +%% enumitem-zref : 2010/12/30 v1.75 - Extended references to items for enumitem package and hyperref %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -25,7 +25,7 @@ %% Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] -\ProvidesPackage{enumitem-zref}[2010/12/17 v1.5 - Extended references for enumitem pkg] +\ProvidesPackage{enumitem-zref}[2010/12/30 v1.75 - Extended references for enumitem pkg] \RequirePackage{ltxcmds,etoolbox,kvoptions,gettitlestring,enumitem} \RequirePackage{zref}[2010/05/01] \RequirePackage{zref-user,zref-counter} @@ -104,7 +104,7 @@ \fi \def\zen@ifrefundefined#1{\ltx@IfUndefined{r@#1}} \def\zen@box{\hfuzz\maxdimen \vfuzz\hfuzz \hbadness\@M \vbadness\hbadness - \tracinglostchars\z@ \setbox\z@=\vbox} + \tracinglostchars\z@ \everypar{}\setbox\z@=\vbox} \zref@newlist{zen@list} \def\zen@{zen>\the\c@zenItem} \zref@newprop{zen@}[]\zen@ @@ -151,8 +151,10 @@ \expandafter\zen@trailingspaces \GetTitleStringResult{\@nnil}\@nnil \fi \edef\x{\endgroup - \def\noexpand#2{\detokenize\expandafter{\GetTitleStringResult}}% - \def\noexpand\zen@temp {\detokenize\expandafter{\the\toks@}}% + \def\noexpand#2{\expandafter\zen@zap@doublespaces + \detokenize\expandafter{\GetTitleStringResult} \@empty}% + \def\noexpand\zen@temp {\expandafter\zen@zap@doublespaces + \detokenize\expandafter{\the\toks@} \@empty}% }\x }% \zen@Normalize \def\zen@trailingspaces#1#{\toks@{#1}\expandafter\zen@trailingsp@ces} @@ -172,6 +174,11 @@ \let\relax \@empty \csname @safe@activestrue\endcsname }% \zen@NormalizeCommands +\def\zen@zap@doublespaces#1 #2{% + #1% + \ifx#2\@empty\else\space\expandafter\zen@zap@doublespaces\fi + #2% +}% \zen@zap@doublespaces \define@key{enumitem}{name}[]{\zen@namelist{#1}} \define@key{enumitem}{name*}[]{\zen@starnamelist{#1}} Ë \AtBeginDocument{\gappto\enit@@list{,name}}% ignore if [external] @@ -505,7 +512,7 @@ \def\zen@refitemExternal[#1]#2{% \toks@{#1}\zen@Normalize\zen@lowercase\zen@@label {#2}% \edef\zen@ref@{\endgroup - \noexpand\hyperref{\the\toks@}{refitem}{\zen@@label}% + \noexpand\hyperref{\the\toks@}{refitem}{\zen@temp}% }\zen@ref@ }% \zen@Hy@external \def\zen@MultipleLabels{% @@ -558,7 +565,7 @@ \fi\fi\fi\fi\fi\fi }% \zen@whichinfo \def\zen@item@comma{% - \begingroup \c@zenidx \@ne + \begingroup \c@zenidx \@ne %%\loggingall \@whilesw \ifcsname Z@R@zen>\the\c@zenidx\endcsname\fi {\advance\c@zenidx \@ne}% \@whilenum \c@zenidx>\@ne |