From ab8cc8d27680e68accc6c8975c5f66dfbd1f5300 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 12 Jan 2020 21:40:19 +0000 Subject: circledsteps (12jan20) git-svn-id: svn://tug.org/texlive/trunk@53382 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/circledsteps/circledsteps-manual.pdf | Bin 404870 -> 404880 bytes .../doc/latex/circledsteps/circledsteps-manual.tex | 7 ++++--- .../tex/latex/circledsteps/circledsteps.sty | 19 ++++++++++++------- 3 files changed, 16 insertions(+), 10 deletions(-) (limited to 'Master/texmf-dist') 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 Binary files a/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.pdf and b/Master/texmf-dist/doc/latex/circledsteps/circledsteps-manual.pdf 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}% -- cgit v1.2.3