diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/enumitem-zref/enumitem-zexample.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/enumitem-zref/enumitem-zref.pdf | bin | 939840 -> 959000 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.drv | 12 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.dtx | 110 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.ins | 6 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/enumitem-zref/enumitem-zref.sty | 21 |
6 files changed, 109 insertions, 42 deletions
diff --git a/Master/texmf-dist/doc/latex/enumitem-zref/enumitem-zexample.tex b/Master/texmf-dist/doc/latex/enumitem-zref/enumitem-zexample.tex index d65b59674e2..d244c6857bd 100644 --- a/Master/texmf-dist/doc/latex/enumitem-zref/enumitem-zexample.tex +++ b/Master/texmf-dist/doc/latex/enumitem-zref/enumitem-zexample.tex @@ -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 diff --git a/Master/texmf-dist/doc/latex/enumitem-zref/enumitem-zref.pdf b/Master/texmf-dist/doc/latex/enumitem-zref/enumitem-zref.pdf Binary files differindex 07bff09a127..67a467b649d 100644 --- a/Master/texmf-dist/doc/latex/enumitem-zref/enumitem-zref.pdf +++ b/Master/texmf-dist/doc/latex/enumitem-zref/enumitem-zref.pdf diff --git a/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.drv b/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.drv index 89d7bbfb90f..c02f9931c42 100644 --- a/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.drv +++ b/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.drv @@ -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 @@ -26,8 +26,8 @@ %% \edef\thisfile{\jobname} \def\thisinfo{Extended references to items for enumitem package} -\def\thisdate{2010/12/17} -\def\thisversion{1.5} +\def\thisdate{2010/12/30} +\def\thisversion{1.75} \PassOptionsToPackage{svgnames,dvipsnames}{xcolor} \PassOptionsToPackage{hyperfootnotes,verbose}{hyperref} \def\CTANbaseurl{http://www.ctan.org/tex-archive/} @@ -39,10 +39,10 @@ \usepackage[latin1]{inputenc} \usepackage[american]{babel} \usepackage[T1]{fontenc} -\usepackage{etoolbox,geometry,lastpage,graphicx,xspace,fancyhdr,xcolor,bbding,lmodern,amsmath,relsize,manfnt} +\usepackage{etoolbox,geometry,lastpage,graphicx,xspace,fancyhdr,xcolor,bbding,pifont,lmodern,amsmath,relsize,moresize,manfnt} \usepackage{tocloft,titlesec,embedfile,framed,multirow,makecell,enumitem,atveryend,catchfile} \usepackage[expansion=all,protrusion=all,shrink=30]{microtype} -\usepackage{interfaces}[2010/12/07] +\usepackage{interfaces}[2010/12/27] \usetikz{basic,chains} \usepackage{engrec,calc,marginnote,wasysym} \usepackage{holtxdoc,bookmark,hypbmsec} @@ -51,7 +51,7 @@ \csname endofdump\endcsname \CodelineNumbered \usepackage[greek]{enumitem-zref} -\usepackage[delarray]{tabu}[2010/12/07]\tracingtabu +\usepackage[delarray]{tabu}[2010/12/28]\tracingtabu=2 \usepackage{fancyvrb}\fvset{gobble=1,listparameters={\topsep=0pt}} \lastlinefit999 \geometry{top=0pt,includeheadfoot,headheight=.6cm,headsep=.6cm,bottom=.6cm,footskip=.5cm,left=3cm,right=1.2cm} diff --git a/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.dtx b/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.dtx index aec26a660cc..11164aa6a68 100644 --- a/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.dtx +++ b/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.dtx @@ -1,5 +1,5 @@ % \iffalse meta-comment -% enumitem-zref : 2010/12/17 v1.5 - Extended references for enumitem pkg] +% enumitem-zref : 2010/12/30 v1.75 - Extended references for enumitem pkg] % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -38,7 +38,7 @@ \tracingonline=0 \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: 2010/12/17 v1.5 - Extended references to items for enumitem package and hyperref} +\Msg{* Package: 2010/12/30 v1.75 - Extended references to items for enumitem package and hyperref} \Msg{************************************************************************} \keepsilent @@ -49,7 +49,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 @@ -102,8 +102,8 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> %<*driver> \edef\thisfile{\jobname} \def\thisinfo{Extended references to items for enumitem package} -\def\thisdate{2010/12/17} -\def\thisversion{1.5} +\def\thisdate{2010/12/30} +\def\thisversion{1.75} \PassOptionsToPackage{svgnames,dvipsnames}{xcolor} \PassOptionsToPackage{hyperfootnotes,verbose}{hyperref} \def\CTANbaseurl{http://www.ctan.org/tex-archive/} @@ -115,10 +115,10 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> \usepackage[latin1]{inputenc} \usepackage[american]{babel} \usepackage[T1]{fontenc} -\usepackage{etoolbox,geometry,lastpage,graphicx,xspace,fancyhdr,xcolor,bbding,lmodern,amsmath,relsize,manfnt} +\usepackage{etoolbox,geometry,lastpage,graphicx,xspace,fancyhdr,xcolor,bbding,pifont,lmodern,amsmath,relsize,moresize,manfnt} \usepackage{tocloft,titlesec,embedfile,framed,multirow,makecell,enumitem,atveryend,catchfile} \usepackage[expansion=all,protrusion=all,shrink=30]{microtype} -\usepackage{interfaces}[2010/12/07] +\usepackage{interfaces}[2010/12/27] \usetikz{basic,chains} \usepackage{engrec,calc,marginnote,wasysym} \usepackage{holtxdoc,bookmark,hypbmsec} @@ -127,9 +127,9 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> \csname endofdump\endcsname \CodelineNumbered \usepackage[greek]{enumitem-zref} -\usepackage[delarray]{tabu}[2010/12/07]\tracingtabu +\usepackage[delarray]{tabu}[2010/12/28]\tracingtabu=2 \usepackage{fancyvrb}\fvset{gobble=1,listparameters={\topsep=0pt}} -\lastlinefit999 +\lastlinefit999 \geometry{top=0pt,includeheadfoot,headheight=.6cm,headsep=.6cm,bottom=.6cm,footskip=.5cm,left=3cm,right=1.2cm} \hypersetup{% pdftitle={The enumitem-zref package}, @@ -146,7 +146,7 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> %</driver> % \fi % -% \CheckSum{1700} +% \CheckSum{1718} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -262,7 +262,7 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> % \begin{tabular}{|l|}^^A % \hline % \expandafter\SpecialUsageIndex\csname #2\endcsname -% \raisedhyperdef[8pt]{declcs}{#2}{\cs[{#1}]{#2}}^^A +% \raisedhyperdef[12pt]{declcs}{#2}{\cs[{#1}]{#2}}^^A % }^^A % \renewcommand\enddeclcs{% % \crcr \hline @@ -327,7 +327,7 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> % top=.5\smallskipamount, % bottom=.5\smallskipamount, % left=-1cm, -% bookmark=italic, +% bookmark={color=RoyalBlue}, % } % % \newrobustcmd*\M{\@ifstar{\M@i\@firstofone}{\M@i\meta}} @@ -362,14 +362,14 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> % % \makeatother % -% \title{\vspace*{-28pt}\bfseries\thispackage\textsuperscript\textasteriskcentered} +% \title{\vspace*{-32pt}\bfseries\href{http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/enumitem-zref.html}{\HUGE\thispackage}\vspace*{8pt}} % \date{} -% \author{\small\thisdate~--~version \thisversion} -% \subtitle{\LARGE \thisinfo\endgraf {\small\FC}} +% \author{\small\thisdate~--~\hyperref[v\thisversion]{version \thisversion}} +% \subtitle{\begin{tabu}{c}\LARGE \thisinfo\\[.3ex]\large The \csref{refitem} command \\[.5ex] \small\FC\end{tabu}\vspace*{-18pt}} % \maketitle % % \deffootnote{1em}{0pt}{\rlap{\thefootnotemark.}\kern1em} -% {\vspace*{-1cm}\let\quotation\relax\let\endquotation\relax +% {\vspace*{-1.3cm}\let\quotation\relax\let\endquotation\relax % \begin{abstract}\parskip\medskipamount\parindent0pt\lastlinefit0\leftskip.5cm\rightskip\leftskip % % \thispackage, as a companion package for \Xpackage{enumitem}, extends the references mechanism @@ -965,6 +965,50 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> % \end{tabu} % % With no argument, \cs{zeninfo} prints all these informations. +% \bigskip +% +% Example with the \xpackage{pifont} package: +% +% \begin{Verb*} +% \newcommand\@Ding[1]{\ding{\number\numexpr#1 + 171}} +% \newcommand\Ding[1]{\@Ding{\value{#1}}} +% \AddEnumerateCounter \Ding \@Ding {} +% +% \begin{enumerate}[label=\Ding*,name=dingList] +% \item One +% \item Two +% \item Three ($rred(\zeninfo)) +% \end{enumerate} +% \end{Verb*} +% +% {\makeatletter +% \newcommand\@Ding[1]{\ding{\number\numexpr#1+171}} +% \newcommand\Ding[1]{\@Ding{\value{#1}}} +% \AddEnumerateCounter\Ding\@Ding{} +% +% \begin{enumerate}[label=\Ding*,name=dingList] +% \item One +% \item Two +% \item Three \textcolor{ForestGreen}\zeninfo +% \end{enumerate} +% +% Now: +% +% {\centering +% \begin{tabu}{X[-1r]X[-1c]X[-1]} +% \cs[\rred]{refitem}\M*{dingList\M*{\cs{@Ding}\M*{3}}} & produces & \refitem{dingList{\@Ding{3}}} +% \end{tabu}\par} +% +% Note that for this purpose: +% \begin{itemize} +% \item \cs{@Ding} could be named differently (without \textt @). +% \item the \hyperref[commarefscheme]{\emph{commaref}} scheme is easier: \cs{refitem}\M*{dingList,3} gives \refitem{dingList,3}. +% \end{itemize} +% +% This example shows the output of \textcolor{ForestGreen}{\cs{zeninfo}}. +% +% } +% % % % @@ -1072,7 +1116,7 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> % \begin{macrocode} %<*package> \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} @@ -1242,7 +1286,7 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> % % \begin{macrocode} \def\zen@box{\hfuzz\maxdimen \vfuzz\hfuzz \hbadness\@M \vbadness\hbadness - \tracinglostchars\z@ \setbox\z@=\vbox} + \tracinglostchars\z@ \everypar{}\setbox\z@=\vbox} % \end{macrocode} % \end{macro} % @@ -1307,8 +1351,10 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> \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} @@ -1328,6 +1374,11 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> \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 % \end{macrocode} % \end{macro} % @@ -1912,7 +1963,7 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> \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 % \end{macrocode} @@ -2008,7 +2059,7 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> % % \begin{macrocode} \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 @@ -2102,7 +2153,16 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> % \setitemize{leftmargin=2em} % \begin{History} % -% \begin{Version}{2010/12/17 v1.5} +% \begin{Version}{2010/12/30 v1.75}\HistLabel{v1.75} +% \item Bug fixed with empty items and nested lists. +% \end{Version} +% +% \begin{Version}{2010/12/27 v1.7}\HistLabel{v1.7} +% \item Documentation improvement. +% \item No modification in the package file. +% \end{Version} +% +% \begin{Version}{2010/12/17 v1.5}\HistLabel{v1.5} % \item \thispackage now works with the keys: \textt{start=},\, \textt{resume},\, and\, \textt{resume\stf}\, % of \xpackage{enumitem} package. % \item Package option: \refitem{package options{greekctr}}[\textt{greekctr}] added as an alternative to the @@ -2113,12 +2173,12 @@ Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr> % are automatically loaded \cs{AtBeginDocument} if the \xpackage{engrec} / \xpackage{greekctr} packages are detected. % \end{Version} % -% \begin{Version}{2010/12/10 v1.2} +% \begin{Version}{2010/12/10 v1.2}\HistLabel{v1.2} % \item Bug encountered in \cs{zen@anchors@}: \\ % \cs{ifx}\#1\cs{@nnil} is not the same as \cs{ifx}\cs{@nnil}\#1\quad !! % \end{Version} % -% \begin{Version}{2010/12/02 v1.1} +% \begin{Version}{2010/12/02 v1.1}\HistLabel{v1.1} % \item The first version. % \end{Version} % diff --git a/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.ins b/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.ins index 9781459aaf4..bc73741341a 100644 --- a/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.ins +++ b/Master/texmf-dist/source/latex/enumitem-zref/enumitem-zref.ins @@ -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 @@ -28,7 +28,7 @@ \tracingonline=0 \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: 2010/12/17 v1.5 - Extended references to items for enumitem package and hyperref} +\Msg{* Package: 2010/12/30 v1.75 - Extended references to items for enumitem package and hyperref} \Msg{************************************************************************} \keepsilent @@ -39,7 +39,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 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 |