texlive[51554] Master/texmf-dist: zebra-goodies (4jul19)

commits+karl at tug.org commits+karl at tug.org
Thu Jul 4 23:14:35 CEST 2019


Revision: 51554
          http://tug.org/svn/texlive?view=revision&revision=51554
Author:   karl
Date:     2019-07-04 23:14:35 +0200 (Thu, 04 Jul 2019)
Log Message:
-----------
zebra-goodies (4jul19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/zebra-goodies/README.md
    trunk/Master/texmf-dist/doc/latex/zebra-goodies/zebra-goodies.pdf
    trunk/Master/texmf-dist/source/latex/zebra-goodies/zebra-goodies.dtx
    trunk/Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty

Modified: trunk/Master/texmf-dist/doc/latex/zebra-goodies/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/zebra-goodies/README.md	2019-07-04 21:14:09 UTC (rev 51553)
+++ trunk/Master/texmf-dist/doc/latex/zebra-goodies/README.md	2019-07-04 21:14:35 UTC (rev 51554)
@@ -43,9 +43,11 @@
 
 ```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 

Modified: trunk/Master/texmf-dist/doc/latex/zebra-goodies/zebra-goodies.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/zebra-goodies/zebra-goodies.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/zebra-goodies/zebra-goodies.dtx	2019-07-04 21:14:09 UTC (rev 51553)
+++ trunk/Master/texmf-dist/source/latex/zebra-goodies/zebra-goodies.dtx	2019-07-04 21:14:35 UTC (rev 51554)
@@ -67,6 +67,7 @@
 \usepackage[scaled=0.93]{helvet}
 \usepackage[final]{listings}
 \usepackage{zebra-goodies}
+\colorlet{mycyan}{cyan}
 \EnableCrossrefs
 \CodelineIndex
 \RecordChanges
@@ -99,7 +100,7 @@
 %\newcommand*\LaTeXdemo at 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 @@
 %      comment         ,
 %      fixed           ,
 %      placeholder     ,
+%      question        ,
 %      zebratodo       ,
 %      zebranote       ,
 %      zebracomment    ,
 %      zebrafixed      ,
 %      zebraplaceholder,
-%      zebranewnote
+%      zebranewnote    ,
+%      colorlet
 %    }
 %  }^^A
 %}
@@ -363,17 +366,19 @@
 %
 %\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 @@
 % 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 @@
 %
 % \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 at noteslist{}
+\def\zebr at noteslist{}
 \def\zebranewnote#1#2{%
   \g at addto@macro\zebr at noteslist{,#1}%
   \expandafter\newcounter\expandafter{zebr at num@#1}
-  \expandafter\newcommand\csname zebr at color@#1\endcsname{#2}
+  \expandafter\gdef\csname zebr at color@#1\endcsname{#2}
   \expandafter\newcommand\csname zebra#1\endcsname[2][]{%
     \zebr at note{#1}{#2}{\zebr at prepend{@}{##1}}{##2}}
   \@ifundefined{#1}{%
@@ -564,7 +570,7 @@
 %
 %\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}

Modified: trunk/Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty	2019-07-04 21:14:09 UTC (rev 51553)
+++ trunk/Master/texmf-dist/tex/latex/zebra-goodies/zebra-goodies.sty	2019-07-04 21:14:35 UTC (rev 51554)
@@ -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 at num@#1\endcsname}\texttt{#3}:}} #4]}}
 \newcommand{\zebr at prepend}[2]{%
   \ifx\relax#2\relax\relax\else#1#2\fi}
-\global\def\zebr at noteslist{}
+\def\zebr at noteslist{}
 \def\zebranewnote#1#2{%
   \g at addto@macro\zebr at noteslist{,#1}%
   \expandafter\newcounter\expandafter{zebr at num@#1}
-  \expandafter\newcommand\csname zebr at color@#1\endcsname{#2}
+  \expandafter\gdef\csname zebr at color@#1\endcsname{#2}
   \expandafter\newcommand\csname zebra#1\endcsname[2][]{%
     \zebr at note{#1}{#2}{\zebr at prepend{@}{##1}}{##2}}
   \@ifundefined{#1}{%



More information about the tex-live-commits mailing list