summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-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%