diff options
author | Karl Berry <karl@freefriends.org> | 2017-12-06 23:56:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-12-06 23:56:22 +0000 |
commit | c6ba83a91ec48c7986e2445f0795b1c006927d4c (patch) | |
tree | dcc841118a8098916d9303e6e17b3b95e7a67b6e /Master/texmf-dist/tex/latex | |
parent | cc862e582aa0dd7c0dee16bb5475394338a07641 (diff) |
zebra-goodies (7dec17)
git-svn-id: svn://tug.org/texlive/trunk@46004 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty b/Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty index 95ebb604484..91de80c6e94 100644 --- a/Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty +++ b/Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty @@ -9,7 +9,7 @@ %% %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008/05/04 or later. -\ProvidesPackage{zebra-goodies}[2017/11/26 0.2.0 LaTeX goodies for paper writing.] +\ProvidesPackage{zebra-goodies}[2017/12/6 0.3.0 LaTeX goodies for paper writing.] \RequirePackage{kvoptions} \SetupKeyvalOptions{ @@ -66,16 +66,15 @@ \newcommand{\zebr@prepend}[2]{% \ifx\relax#2\relax\relax\else#1#2\fi} -\def\zebranewnote#1#2{% - \@ifundefined{#1}{\zebr@newnote{#1}{#2}}{% - \PackageWarning{zebra}{zebra already defines note: '#1'}}} \global\def\zebr@noteslist{} -\def\zebr@newnote#1#2{% +\def\zebranewnote#1#2{% \g@addto@macro\zebr@noteslist{,#1}% \expandafter\newcounter\expandafter{zebr@num@#1} \expandafter\newcommand\csname zebr@color@#1\endcsname{#2} - \expandafter\newcommand\csname #1\endcsname[2][]{% - \zebr@note{#1}{#2}{\zebr@prepend{@}{##1}}{##2}}} + \expandafter\newcommand\csname zebra#1\endcsname[2][]{% we suppose it is not defined yet + \zebr@note{#1}{#2}{\zebr@prepend{@}{##1}}{##2}} + \@ifundefined{#1}{\expandafter\def\csname #1\endcsname{\csname zebra#1\endcsname}}{% + \PackageWarning{zebra}{'\textbackslash{#1}' has been taken. Use '\textbackslash{zebra#1}' instead.}}} \def\zebr@listnotes{% \ifzebr@draft\zebr@listnotes@\fi} @@ -86,7 +85,7 @@ \@for\temp@b:=\temp@noteslist\do{% \expandafter\ifnum\expandafter\value\expandafter{zebr@num@\temp@b} > 0% \def\temp@c{\expandafter\csname thezebr@num@\temp@b\endcsname} - \edef\temp@d{\noexpand\textcolor{\expandafter\csname zebr@color@\temp@b\endcsname}{\temp@b} \noexpand & \temp@c \noexpand\\} + \edef\temp@d{\noexpand\textcolor{\expandafter\csname zebr@color@\temp@b\endcsname}{\temp@b} \noexpand & \temp@c\noexpand\\} \expandafter\g@addto@macro\expandafter\temp@a\expandafter{\temp@d}% \fi} \ifx\temp@a\@empty\else% |