summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-01-12 21:40:19 +0000
committerKarl Berry <karl@freefriends.org>2020-01-12 21:40:19 +0000
commitab8cc8d27680e68accc6c8975c5f66dfbd1f5300 (patch)
tree6cad2ca5c24249208de2bf382cabae16576a5d6e
parentf25280c072d3756c0ff3c440b463b03ec80c71e1 (diff)
circledsteps (12jan20)
git-svn-id: svn://tug.org/texlive/trunk@53382 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.pdfbin404870 -> 404880 bytes
-rw-r--r--Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.tex7
-rw-r--r--Master/texmf-dist/tex/latex/circledsteps/circledsteps.sty19
3 files changed, 16 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.pdf b/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.pdf
index e7b54234b39..f428edaea54 100644
--- a/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.pdf
+++ b/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.tex b/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.tex
index 4867907abfa..d1599bb95cb 100644
--- a/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.tex
+++ b/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.tex
@@ -40,6 +40,7 @@ The package loads (if not already loaded) the packages \texttt{pict2e}, \texttt{
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 @@ If you want to change colors it's easy:
\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 @@ You can have also quite nice math mode effects, thanks to suggestion from \textt
\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 @@ The definition of \verb|CircledTexT| is simply the following one; you can get id
\begin{lstlisting}
\newcommand{\CircledText}[2][]{%
- \csteps@CircledParamOpts{inner color=none, outer color=none, #1}{1}{#2}%
+ \CircledParamOpts{inner color=none, outer color=none, #1}{1}{#2}%
}
\end{lstlisting}
diff --git a/Master/texmf-dist/tex/latex/circledsteps/circledsteps.sty b/Master/texmf-dist/tex/latex/circledsteps/circledsteps.sty
index db49c69cbc7..8b5d69cfc8c 100644
--- a/Master/texmf-dist/tex/latex/circledsteps/circledsteps.sty
+++ b/Master/texmf-dist/tex/latex/circledsteps/circledsteps.sty
@@ -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@strokeGraph}
{\ifcstepsfilledovals\pIIe@fillGraph\else\pIIe@strokeGraph\fi}
- {}{}
+ {}{%
+ \PackageWarningNoLine{circledsteps}{%
+ Failed to patch either picture.sty or pict2e.sty:\MessageBreak
+ \space\space oval shapes will not be filled.
+ }
+ }
\newsavebox\csteps@CBox
@@ -56,8 +61,8 @@
\makebox[\csteps@XLength]{% X bigger than Y
\makebox(0,\csteps@YLength){%
\ifx\csteps@fillcolor\csteps@none\else
- \color{\csteps@fillcolor}%
- {\cstepsfilledovalstrue\put(0,0){\oval(\csteps@XLength,\csteps@YLength)}}%
+ {\color{\csteps@fillcolor}%
+ \cstepsfilledovalstrue\put(0,0){\oval(\csteps@XLength,\csteps@YLength)}}%
\fi
\ifx\csteps@outercolor\csteps@none\else
\color{\csteps@outercolor}%
@@ -77,8 +82,8 @@
\makebox[\csteps@YLength]{%
\makebox(0,\csteps@YLength){%
\ifx\csteps@fillcolor\csteps@none\else
- \color{\csteps@fillcolor}%
- \put(0,0){\circle*{\csteps@YLength}}%
+ {\color{\csteps@fillcolor}%
+ \put(0,0){\circle*{\csteps@YLength}}}%
\fi
\ifx\csteps@outercolor\csteps@none\else
\color{\csteps@outercolor}%