summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-12-06 23:56:22 +0000
committerKarl Berry <karl@freefriends.org>2017-12-06 23:56:22 +0000
commitc6ba83a91ec48c7986e2445f0795b1c006927d4c (patch)
treedcc841118a8098916d9303e6e17b3b95e7a67b6e /Master/texmf-dist
parentcc862e582aa0dd7c0dee16bb5475394338a07641 (diff)
zebra-goodies (7dec17)
git-svn-id: svn://tug.org/texlive/trunk@46004 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/zebra-goodies/README.md14
-rw-r--r--Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty15
2 files changed, 19 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/zebra-goodies/README.md b/Master/texmf-dist/doc/latex/zebra-goodies/README.md
index db6c3bec3ce..21fc9d7f890 100644
--- a/Master/texmf-dist/doc/latex/zebra-goodies/README.md
+++ b/Master/texmf-dist/doc/latex/zebra-goodies/README.md
@@ -17,7 +17,7 @@ This is not intended for general cases. Use it at your own risk.
## Take Notes
-Add comments, todos, anything you like during revise in a colorful way. The package also summarizes the revise notes at the end of the document. Predefined commands are as follows:
+Add comments, todos, notes anything you like during revise in a colorful way. The package also summarizes the revise notes at the end of the document. Predefined commands are as follows:
```latex
\todo[<who>]{bla bla}
@@ -27,7 +27,17 @@ Add comments, todos, anything you like during revise in a colorful way. The pack
\placeholder[<who>]{bla bla}
```
-To define new note commands:
+If any of them does not work, it is probaboly it has been defined by other packages. We will not override the definition, so you have to turn to its full version as follows:
+
+```latex
+\zebratodo[<who>]{bla bla}
+\zebrafixed[<who>]{bla bla}
+\zebracomment[<who>]{bla bla}
+\zebranote[<who>]{bla bla}
+\zebraplaceholder[<who>]{bla bla}
+```
+
+## Define new Notes
```latex
% \zebranewnote{<note name>}{<xcolor color>}
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%