texlive[53382] Master/texmf-dist: circledsteps (12jan20)
commits+karl at tug.org
commits+karl at tug.org
Sun Jan 12 22:40:19 CET 2020
Revision: 53382
http://tug.org/svn/texlive?view=revision&revision=53382
Author: karl
Date: 2020-01-12 22:40:19 +0100 (Sun, 12 Jan 2020)
Log Message:
-----------
circledsteps (12jan20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.pdf
trunk/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.tex
trunk/Master/texmf-dist/tex/latex/circledsteps/circledsteps.sty
Modified: trunk/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.tex 2020-01-12 21:40:09 UTC (rev 53381)
+++ trunk/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.tex 2020-01-12 21:40:19 UTC (rev 53382)
@@ -40,6 +40,7 @@
The manual is for version~\cstepsversion. The main changes between version are listed below.
\begin{description}
+ \item[v1.3] Minor fixes to the manual; added a warning in case the patching of \texttt{picture.sty} fails.
\item[v1.2] Added optional argument to the commands and make them sensitive to math mode (thanks to \texttt{@tallmarmot} for the suggestion and example code); fixed several bugs.
Added \texttt{fill color} for the circles background.
@@ -126,7 +127,7 @@
\end{LTXexample}
\begin{LTXexample}
-\pgfkeys{/csteps/inner color=white}
+\pgfkeys{/csteps/inner color=yellow}
\pgfkeys{/csteps/outer color=red}
\pgfkeys{/csteps/fill color=black}
And you can have filled circles and ovals:
@@ -154,7 +155,7 @@
\section{Automatically generated numbers}
-The command \verb|\cstep| will generate a circled number, starting from \texttt{1}, that can be referenced with the normal \verb|\label|/\verb|\ref| mechanism.\footnote{Notice that in the example the numbers in the references one the right are blue to to \texttt{hyperref} configuration!} You can reset the numbering with
+The command \verb|\cstep| will generate a circled number, starting from \texttt{1}, that can be referenced with the normal \verb|\label|/\verb|\ref| mechanism.\footnote{Notice that in the example the numbers in the references on the right are blue due to \texttt{hyperref} configuration!} You can reset the numbering with
\verb|\startcstep|. For example:
\input{ctikzexample.tex}
@@ -170,7 +171,7 @@
\begin{lstlisting}
\newcommand{\CircledText}[2][]{%
- \csteps at CircledParamOpts{inner color=none, outer color=none, #1}{1}{#2}%
+ \CircledParamOpts{inner color=none, outer color=none, #1}{1}{#2}%
}
\end{lstlisting}
Modified: trunk/Master/texmf-dist/tex/latex/circledsteps/circledsteps.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/circledsteps/circledsteps.sty 2020-01-12 21:40:09 UTC (rev 53381)
+++ trunk/Master/texmf-dist/tex/latex/circledsteps/circledsteps.sty 2020-01-12 21:40:19 UTC (rev 53382)
@@ -1,7 +1,7 @@
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1996/06/01]
-\ProvidesPackage{circledsteps}[2020/01/08 v1.2 Circled steps that you can reference]
-\def\cstepsversion{v1.2}
+\ProvidesPackage{circledsteps}[2020/01/12 v1.3 Circled steps that you can reference]
+\def\cstepsversion{v1.3}
% \end{macrocode}
%
% Copyright (c) 2019 Romano Giannetti
@@ -35,7 +35,12 @@
\@ifpackageloaded{picture}{\patchcmd\PcOrg@@oval}{\patchcmd\@oval}
{\pIIe at strokeGraph}
{\ifcstepsfilledovals\pIIe at fillGraph\else\pIIe at strokeGraph\fi}
- {}{}
+ {}{%
+ \PackageWarningNoLine{circledsteps}{%
+ Failed to patch either picture.sty or pict2e.sty:\MessageBreak
+ \space\space oval shapes will not be filled.
+ }
+ }
\newsavebox\csteps at CBox
@@ -56,8 +61,8 @@
\makebox[\csteps at XLength]{% X bigger than Y
\makebox(0,\csteps at YLength){%
\ifx\csteps at fillcolor\csteps at none\else
- \color{\csteps at fillcolor}%
- {\cstepsfilledovalstrue\put(0,0){\oval(\csteps at XLength,\csteps at YLength)}}%
+ {\color{\csteps at fillcolor}%
+ \cstepsfilledovalstrue\put(0,0){\oval(\csteps at XLength,\csteps at YLength)}}%
\fi
\ifx\csteps at outercolor\csteps at none\else
\color{\csteps at outercolor}%
@@ -77,8 +82,8 @@
\makebox[\csteps at YLength]{%
\makebox(0,\csteps at YLength){%
\ifx\csteps at fillcolor\csteps at none\else
- \color{\csteps at fillcolor}%
- \put(0,0){\circle*{\csteps at YLength}}%
+ {\color{\csteps at fillcolor}%
+ \put(0,0){\circle*{\csteps at YLength}}}%
\fi
\ifx\csteps at outercolor\csteps at none\else
\color{\csteps at outercolor}%
More information about the tex-live-commits
mailing list