summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/zebra-goodies/README.md6
-rw-r--r--Master/texmf-dist/doc/latex/zebra-goodies/zebra-goodies.pdfbin112889 -> 114596 bytes
-rw-r--r--Master/texmf-dist/source/latex/zebra-goodies/zebra-goodies.dtx34
-rw-r--r--Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty6
4 files changed, 27 insertions, 19 deletions
diff --git a/Master/texmf-dist/doc/latex/zebra-goodies/README.md b/Master/texmf-dist/doc/latex/zebra-goodies/README.md
index 4ddd4c2a9cc..66e844e3afa 100644
--- a/Master/texmf-dist/doc/latex/zebra-goodies/README.md
+++ b/Master/texmf-dist/doc/latex/zebra-goodies/README.md
@@ -43,9 +43,11 @@ full version as follows:
```latex
% \zebranewnote{<note name>}{<xcolor color>}
-\zebranewnote{question}{red!80}
-\question{what's this?}
+\colorlet{mycyan}{cyan}
+\zebranewnote{question}{mycyan}
+
+\question[who]{what's this?}
```
## Use Colors
diff --git a/Master/texmf-dist/doc/latex/zebra-goodies/zebra-goodies.pdf b/Master/texmf-dist/doc/latex/zebra-goodies/zebra-goodies.pdf
index dae723b5fbc..61c9ebaadfd 100644
--- a/Master/texmf-dist/doc/latex/zebra-goodies/zebra-goodies.pdf
+++ b/Master/texmf-dist/doc/latex/zebra-goodies/zebra-goodies.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/zebra-goodies/zebra-goodies.dtx b/Master/texmf-dist/source/latex/zebra-goodies/zebra-goodies.dtx
index dedcc483eb0..0484b671d31 100644
--- a/Master/texmf-dist/source/latex/zebra-goodies/zebra-goodies.dtx
+++ b/Master/texmf-dist/source/latex/zebra-goodies/zebra-goodies.dtx
@@ -67,6 +67,7 @@ This work consists of the file zebra-goodies.dtx
\usepackage[scaled=0.93]{helvet}
\usepackage[final]{listings}
\usepackage{zebra-goodies}
+\colorlet{mycyan}{cyan}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
@@ -99,7 +100,7 @@ This work consists of the file zebra-goodies.dtx
%\newcommand*\LaTeXdemo@common{^^A
% \setkeys{lst}{
% basicstyle = \small\ttfamily,
-% %basewidth = 0.51em,
+% %basewidth = 0.51em,
% frame = l,
% backgroundcolor = \color{gray!5},
% gobble = 3,
@@ -111,12 +112,14 @@ This work consists of the file zebra-goodies.dtx
% comment ,
% fixed ,
% placeholder ,
+% question ,
% zebratodo ,
% zebranote ,
% zebracomment ,
% zebrafixed ,
% zebraplaceholder,
-% zebranewnote
+% zebranewnote ,
+% colorlet
% }
% }^^A
%}
@@ -363,17 +366,19 @@ This work consists of the file zebra-goodies.dtx
%
%\begin{function}{\zebranewnote}
% \begin{syntax}
-% \cs{zebranewnote}\marg{note name}\marg{xcolor color spec}
+% \cs{zebranewnote}\marg{note name}\marg{xcolor_name}
% \end{syntax}
% You will eventually need a new note type for whatever reasons.
% \cs{zebranewnote} needs two arguments to create a new note type. \meta{note
-% name} will be used as the note's macro as \cs{todo}, while the \meta{xcolor
-% color spec} defines in what color the new note show be. The color is defined
-% with \pkg{xcolor}.
+% name} will be used as the note's macro as \cs{todo}, while the \meta{xcolor_name}
+% defines in what color the new note show be, which should be a \texttt{name} instead
+% of \pkg{xcolor} spec. So, it is necessary to define the color with \cs{definecolor}
+% or \cs{colorlet} in advance as in the following example.
+% \changes{v0.8.0}{2019/07/04}{Fix new note demo}
% \begin{LaTeXdemo}
-% % \zebranewnote{question}{red!80}
-%
-% When it moves to the next step, we should be fine. %\question[who]{what's this?}
+% \colorlet{mycyan}{cyan}
+% \zebranewnote{question}{mycyan}
+% When it moves to the next step, we should be fine. \question[who]{what's this?}
% \end{LaTeXdemo}
%\end{function}
%
@@ -420,8 +425,8 @@ This work consists of the file zebra-goodies.dtx
% Version data to start with.
% \begin{macrocode}
\ProvidesPackage{zebra-goodies}
-[2019/07/01 0.7.0 Easy Notes Taking]
-%\ProvidesExplPackage{zebra-goodies}{2019/07/01}{0.7.0}{Easy Notes Taking}
+[2019/07/04 0.8.0 Easy Notes Taking]
+%\ProvidesExplPackage{zebra-goodies}{2019/07/04}{0.8.0}{Easy Notes Taking}
% \end{macrocode}
%
%\subsection{Package options}
@@ -492,12 +497,13 @@ This work consists of the file zebra-goodies.dtx
%
% \begin{macro}{\zebranewnote}
% All note types are created with \cs{zebranewnote}.
+% \changes{v0.8.0}{2019/07/04}{Fix on \cs{global} for examples}
% \begin{macrocode}
-\global\def\zebr@noteslist{}
+\def\zebr@noteslist{}
\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\gdef\csname zebr@color@#1\endcsname{#2}
\expandafter\newcommand\csname zebra#1\endcsname[2][]{%
\zebr@note{#1}{#2}{\zebr@prepend{@}{##1}}{##2}}
\@ifundefined{#1}{%
@@ -564,7 +570,7 @@ This work consists of the file zebra-goodies.dtx
%
%\subsection{Personal Colors}
%\label{sec:colors}
-% For colors are defined for plots.
+% Several colors are defined for plots.
% \begin{macrocode}
\definecolor{zebrablue}{HTML}{4F81BD}
\definecolor{zebrared}{HTML}{C0504D}
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 cc73bb12415..8c4f4d24236 100644
--- a/Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty
+++ b/Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty
@@ -16,7 +16,7 @@
\ProvidesPackage{zebra-goodies}
-[2019/07/01 0.7.0 Easy Notes Taking]
+[2019/07/04 0.8.0 Easy Notes Taking]
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
family=zebra,
@@ -58,11 +58,11 @@
{\expandafter\csname thezebr@num@#1\endcsname}\texttt{#3}:}} #4]}}
\newcommand{\zebr@prepend}[2]{%
\ifx\relax#2\relax\relax\else#1#2\fi}
-\global\def\zebr@noteslist{}
+\def\zebr@noteslist{}
\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\gdef\csname zebr@color@#1\endcsname{#2}
\expandafter\newcommand\csname zebra#1\endcsname[2][]{%
\zebr@note{#1}{#2}{\zebr@prepend{@}{##1}}{##2}}
\@ifundefined{#1}{%