texlive[61874] Master/texmf-dist: sankey (4feb22)

commits+karl at tug.org commits+karl at tug.org
Fri Feb 4 23:19:22 CET 2022


Revision: 61874
          http://tug.org/svn/texlive?view=revision&revision=61874
Author:   karl
Date:     2022-02-04 23:19:22 +0100 (Fri, 04 Feb 2022)
Log Message:
-----------
sankey (4feb22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/sankey/sankey-example-energy.tex
    trunk/Master/texmf-dist/doc/latex/sankey/sankey.pdf
    trunk/Master/texmf-dist/source/latex/sankey/sankey.dtx
    trunk/Master/texmf-dist/tex/latex/sankey/sankey-doc-preamble.sty
    trunk/Master/texmf-dist/tex/latex/sankey/sankey.sty
    trunk/Master/texmf-dist/tex/latex/sankey/tikzlibrarydubins.code.tex

Modified: trunk/Master/texmf-dist/doc/latex/sankey/sankey-example-energy.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/sankey/sankey-example-energy.tex	2022-02-04 22:19:01 UTC (rev 61873)
+++ trunk/Master/texmf-dist/doc/latex/sankey/sankey-example-energy.tex	2022-02-04 22:19:22 UTC (rev 61874)
@@ -5,7 +5,7 @@
     round-mode=places,
     round-precision=1,
     add-decimal-zero,
-    round-integer-to-decimal,
+    round-pad=true,
   }
   \begin{sankeydiagram}
     \colorlet{energy}{blue!30!cyan!80!black}

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

Modified: trunk/Master/texmf-dist/source/latex/sankey/sankey.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/sankey/sankey.dtx	2022-02-04 22:19:01 UTC (rev 61873)
+++ trunk/Master/texmf-dist/source/latex/sankey/sankey.dtx	2022-02-04 22:19:22 UTC (rev 61874)
@@ -70,7 +70,7 @@
 % \DoNotIndex{\NewDocumentCommand,\NewDocumentEnvironment,\IfBooleanTF}
 % \DoNotIndex{\NeedsTeXFormat,\ProvidesPackage,\RequirePackage,\PackageError,\PackageWarning}
 % \DoNotIndex{\newtoggle,\toggletrue,\togglefalse,\iftoggle,\ifdefempty,\ifundef,\ifdefstrequal}
-% \DoNotIndex{\ifbool,\ifdef,\ifnumequal,\ifpgfmathcond,\colorlet,\fpeval,\inteval,\newbool}
+% \DoNotIndex{\ifbool,\ifdef,\ifnumequal,\colorlet,\fpeval,\inteval,\newbool}
 % \DoNotIndex{\pgfmathsetmacro,\pgfdeclarelayer,\pgfdeclareshape,\pgfkeys,\pgfset,\usetikzlibrary}
 % \DoNotIndex{\the,\pgf at x,\pgf at y,\tikz at scan@one at point,\pgfutil at firstofone}
 % \DoNotIndex{\pgfsetlayers,\inheritsavedanchors,\inheritanchor,\inheritanchorborder,\anchor,\pgf at process,\northeast,\southwest}
@@ -316,10 +316,10 @@
 %     path} and its \VAR{draw path}.
 % \end{sankeyoption}
 %
-% \emph{Fill} and \emph{draw} paths are build in a TikZ scope where the
-% origin is the center of the current Sankey node (its name is accessible
-% via \code{\name}) and the coordinate system is rotated by its
-% orientation.
+% The \VAR{fill path} and the \VAR{draw path} are build in a TikZ scope
+% where the origin is the center of the current Sankey node (its name is
+% accessible via \code{\name}) and the coordinate system is rotated by
+% its orientation.
 %
 %^^A % ------------------------------------------------------------
 % \subsection{The \emph{debug} key}
@@ -1598,7 +1598,7 @@
     round-mode=places,
     round-precision=1,
     add-decimal-zero,
-    round-integer-to-decimal,
+    round-pad=true,
   }
   \begin{sankeydiagram}
     \colorlet{energy}{blue!30!cyan!80!black}
@@ -2575,7 +2575,7 @@
 %
 % \manualparts
 %
-% \part{Implementation}
+% \part{Installation \& Implementation}
 % \label{implementation}
 %^^A % ------------------------------------------------------------
 %
@@ -2584,7 +2584,40 @@
 %   \localtableofcontents
 % }
 %
+%
+% \changes{v3.0.1}{2022/02/04}{fix options used by the new version of siunitx}
+%
 %^^A % ------------------------------------------------------------
+% \section{Compiling \texttt{sankey}}
+%^^A % ------------------------------------------------------------
+%
+% \changes{v3.0.1}{2022/02/04}{instructions for compiling and installing the
+% package}
+%
+% To produce the \code{sankey} package:
+%
+% \begin{lstlisting}[style=bashsmall]
+% pdflatex sankey.ins # or 'latex sankey.ins'
+% \end{lstlisting}
+%
+% To finish the installation you have to move the
+% \code{tikzlibrarydubins.code.tex} and
+% \code{sankey.sty} files into a directory searched by \LaTeX.
+% 
+% To compile the \code{sankey} documentation (the
+% \code{sankey.pdf} file):
+%
+% \begin{lstlisting}[style=bashsmall]
+% pdflatex sankey.dtx
+% makeindex -s gind.ist -o sankey.ind sankey.idx
+% pdflatex sankey.dtx
+% makeindex -s gind.ist -o sankey.ind sankey.idx
+% pdflatex sankey.dtx
+% pdflatex sankey.dtx
+% \end{lstlisting}
+%
+%
+%^^A % ------------------------------------------------------------
 % \section{The \texttt{sankey.sty} file}
 %^^A % ------------------------------------------------------------
 %
@@ -2591,7 +2624,7 @@
 % Poorly commented source code...
 %
 % \changes{v1.0}{2016/03/06}{first version}
-% \changes{v2.0}{2021/01/27}{first public version (on CTAN)}
+% \changes{v2.0}{2021/01/27}{first public version (on \CTAN)}
 % \changes{v3.0}{2021/03/14}{better naming rule}
 % \changes{v3.0}{2021/03/14}{use .ins and .dtx files}
 %
@@ -2603,7 +2636,7 @@
 %
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}[2015/10/01]
-\ProvidesPackage{sankey}[2021/03/14 v3.0 to draw Sankey diagrams]
+\ProvidesPackage{sankey}[2022/02/04 v3.0.1 to draw Sankey diagrams]
 %    \end{macrocode}
 %
 % All required packages and TikZ libraries:
@@ -2806,7 +2839,7 @@
 %
 % The \code{\sankeyset} macro processes
 % its parameter as a list of comma separated pairs of the form
-% \emph{key=value} with the default path set to \texttt{/sankey}.
+% \emph{key=value} with \texttt{/sankey} as default path.
 %
 %    \begin{macrocode}
 \pgfkeys{/sankey/.is family}
@@ -3977,7 +4010,7 @@
 %
 % The \code{\sankeyqtytolen} macro converts quantity
 % to length using \code{\fpeval} and the ratio determined
-% by \code{\snk at totalqty} and \code{sankeytotallen}.
+% by \code{\snk at totalqty} and \code{\snk at totallen}.
 %
 %    \begin{macrocode}
   \def\sankeyqtytolen##1{\fpeval{(##1)/\snk at totalqty*\snk at totallen}}
@@ -4072,34 +4105,54 @@
 % \iffalse
 %<*tikzlibrarydubins.code.tex>
 % \fi
+% \begin{macro}{\tikzlibrarydubins at version}
+% \begin{macro}{\tikzlibrarydubins at date}
 %    \begin{macrocode}
-\def\tikzlibrarydubins at version{v3.0}
-\def\tikzlibrarydubins at date{2021/03/14}
-
+\def\tikzlibrarydubins at version{v3.0.1}
+\def\tikzlibrarydubins at date{2022/02/04}
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% 
+%    \begin{macrocode}
 \usetikzlibrary{calc}
 \RequirePackage{etoolbox}
 \RequirePackage{xfp}
 
 \newbool{dubinspathreverse}
-
+%    \end{macrocode}
+%
+% \begin{macro}{\ifpgfmathcond}
+%    \begin{macrocode}
 \def\ifpgfmathcond#1{%
   \pgfmathparse{(#1)?1:0}%
   \ifnumequal{\pgfmathresult}{1}%
 }
-
-
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at getxy}
+%    \begin{macrocode}
 \def\dbp at getxy#1#2#3{%
   \tikz at scan@one at point\pgfutil at firstofone(#3)\relax%
   \edef#1{\the\pgf at x}%
   \edef#2{\the\pgf at y}%
 }
-
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at anglebetween}
+%    \begin{macrocode}
 \def\dbp at anglebetween#1#2#3{%macro, s, t
   \dbp at getxy\dbp at ax\dbp at ay{#2}
   \dbp at getxy\dbp at bx\dbp at by{#3}
   \pgfmathsetmacro#1{atan2(\dbp at by-\dbp at ay,\dbp at bx-\dbp at ax)}
 }
-
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at distancebetween}
+%    \begin{macrocode}
 \def\dbp at distancebetween#1#2#3{%macro, s, t
   \dbp at getxy\dbp at ax\dbp at ay{#2}
   \dbp at getxy\dbp at bx\dbp at by{#3}
@@ -4108,7 +4161,10 @@
       +(\dbp at by-\dbp at ay)*(\dbp at by-\dbp at ay)%
       )}}%
 }
-
+%    \end{macrocode}
+% \end{macro}
+% \begin{macro}{\dbp at rsr}
+%    \begin{macrocode}
 \newcommand\dbp at rsr{% s, sa, t, ta, as, len, at, r
   let
   \p{tr}=([shift={(\dbp at angb-90:\dbp at radius pt)}]\dbp at b),
@@ -4120,7 +4176,11 @@
   -- ([shift={(\p{tr})}]\n3:\dbp at rradius pt)
   arc(\n3:\n2:\dbp at rradius pt)
 }
-
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at lsl}
+%    \begin{macrocode}
 \newcommand\dbp at lsl{% s, sa, t, ta, as, len, at, r
   let
   \p{tl}=([shift={(\dbp at angb+90:\dbp at radius pt)}]\dbp at b),
@@ -4131,7 +4191,11 @@
   -- ([shift={(\p{tl})}]\n4:\dbp at lradius pt)
   arc(\n4:\n3:\dbp at lradius pt)
 }
-
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at rsl}
+%    \begin{macrocode}
 \newcommand\dbp at rsl{% s, sa, t, ta, as, len, at, r
   let
   \p{tl}=([shift={(\dbp at angb+90:\dbp at radius pt)}]\dbp at b),
@@ -4142,7 +4206,11 @@
   -- ([shift={(\p{tl})}]\n4:\dbp at lradius pt)
   arc(\n4:\n3:\dbp at lradius pt)
 }
-
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at lsr}
+%    \begin{macrocode}
 \newcommand\dbp at lsr{% s, sa, t, ta, as, len, at, r
   let
   \p{tr}=([shift={(\dbp at angb-90:\dbp at radius pt)}]\dbp at b),
@@ -4153,7 +4221,11 @@
   -- ([shift={(\p{tr})}]\n4:\dbp at rradius pt)
   arc(\n4:\n3:\dbp at rradius pt)
 }
-
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at lrl}
+%    \begin{macrocode}
 \newcommand\dbp at lrl{% s, sa, t, ta, as, ai, at, r
   let
   \n1={\dbp at anga-90},\n2={\n1+\dbp at firstangle},
@@ -4163,7 +4235,11 @@
   arc(\n2+180:\n2+180-\dbp at midparam:\dbp at rradius pt)
   arc(\n4:\n3:\dbp at lradius pt)
 }
-
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at rlr}
+%    \begin{macrocode}
 \newcommand\dbp at rlr{% s, sa, t, ta, as, ai, at, r
   let
   \n1={\dbp at anga+90},\n2={\n1-\dbp at firstangle},
@@ -4173,14 +4249,47 @@
   arc(\n2+180:\n2+180+\dbp at midparam:\dbp at lradius pt)
   arc(\n4:\n3:\dbp at rradius pt)
 }
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at rev@lsl}
+%    \begin{macrocode}
 \newcommand\dbp at rev@lsl{\dbp at rsr}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at rev@rsr}
+%    \begin{macrocode}
 \newcommand\dbp at rev@rsr{\dbp at lsl}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at rev@lsr}
+%    \begin{macrocode}
 \newcommand\dbp at rev@lsr{\dbp at lsr}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at rev@rsl}
+%    \begin{macrocode}
 \newcommand\dbp at rev@rsl{\dbp at rsl}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at rev@lrl}
+%    \begin{macrocode}
 \newcommand\dbp at rev@lrl{\dbp at rlr}
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at rev@rlr}
+%    \begin{macrocode}
 \newcommand\dbp at rev@rlr{\dbp at lrl}
-
-
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dubinspath}
+%    \begin{macrocode}
 \newcommand\dubinspath[1]{%
   \pgfextra{
     \dubinspathset{#1}
@@ -4208,10 +4317,12 @@
   }
   \csname dbp@\dbp at method\endcsname%
 }
-
-
-%% solution
-
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\dbp at store}
+% \begin{macro}{\dbp at get}
+%    \begin{macrocode}
 \def\dbp at store#1#2{%
   \expandafter\xdef\csname dbp at store@#1@#2\endcsname%
   {\csname dbp@#2\endcsname}%
@@ -4219,7 +4330,11 @@
 \def\dbp at get#1#2{%
   \csname dbp at store@#1@#2\endcsname%
 }
-
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \begin{macro}{\dbp at setparams}
+%    \begin{macrocode}
 \def\dbp at setparams#1#2#3#4#5{%
   % method, length, fisrt angle, middle param, last angle
   \edef\dbp at method{#1}
@@ -4233,13 +4348,19 @@
     }
   }{}
 }
-
+%    \end{macrocode}
+% \end{macro}
+% \begin{macro}{\dbp at updateparams}
+%    \begin{macrocode}
 \def\dbp at updateparams#1#2#3#4#5{
   \ifpgfmathcond{#2<\dbp at length}{
     \dbp at setparams{#1}{#2}{#3}{#4}{#5}
   }{}
 }
-
+%    \end{macrocode}
+% \end{macro}
+%
+%    \begin{macrocode}
 \tikzset{
   dubins path/.is family,
   dubins path,
@@ -4270,9 +4391,17 @@
   middle param/.store in=\dbp at midparam,
   reverse/.is if=dubinspathreverse,
 }
-
+%    \end{macrocode}
+%
+% \begin{macro}{\dubinspathset}
+%    \begin{macrocode}
 \newcommand\dubinspathset[1]{\tikzset{dubins path,#1}}
-
+%    \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\dubinspathcalc}
+%    \begin{macrocode}
 \newcommand\dubinspathcalc[1]{%
   \begingroup
   \dubinspathset{#1}
@@ -4428,6 +4557,7 @@
   \endgroup
 }
 %    \end{macrocode}
+% \end{macro}
 % \iffalse
 %</tikzlibrarydubins.code.tex>
 % \fi
@@ -4441,7 +4571,7 @@
 %
 % \iffalse
 %<*sankeydocpreamble>
-\usepackage[paper=a4paper,vmargin=1.5cm,left=4.5cm,right=3.5cm]{geometry}
+\usepackage[paper=a4paper,vmargin=1.5cm,left=4.5cm,right=3.5cm,marginparwidth=3.5cm]{geometry}
 \usepackage[utf8]{inputenc}
 \usepackage{cmap}
 \usepackage[T1]{fontenc}
@@ -4449,6 +4579,7 @@
 \usepackage[final,protrusion=true,expansion=true]{microtype}
 \usepackage{xcolor}
 \PassOptionsToPackage{final,colorlinks,linkcolor=red!60!orange!85!black}{hyperref}
+\usepackage{dtxdescribe}
 \usepackage[numbered]{hypdoc}
 \usepackage{fancyvrb}
 \usepackage[final]{listings}
@@ -4467,7 +4598,7 @@
 \embedfile[mimetype=text/plain]{sankey.ins}
 \usepackage{sankey}
 
-\colorlet{bgcode}{yellow!50!gray!5}
+\colorlet{bgcode}{yellow!50!gray!10}
 \colorlet{keyword}{blue!50!cyan!50!black}
 \colorlet{comment}{red!75!black}
 
@@ -4524,6 +4655,14 @@
 \lstdefinestyle{textscriptsize}{basicstyle=\color{black}\scriptsize\mdseries\ttfamily}
 \lstdefinestyle{texttiny}{basicstyle=\color{black}\tiny\mdseries\ttfamily}
 
+\lstdefinestyle{bash}{
+  language=bash,
+  backgroundcolor=\color{gray!10},
+}
+\lstdefinestyle{bashsmall}{style=bash,style=textsmall}
+\lstdefinestyle{bashfootnotesize}{style=bash,style=footnotesize}
+\lstdefinestyle{bashscriptsize}{style=bash,style=scriptsize}
+
 \lstdefinestyle{LaTeX}{
   language=[LaTeX]TeX,
   moretexcs={
@@ -4595,6 +4734,7 @@
   \begingroup
   % 
   \def\keypath{#1}%
+  \ifdefempty{\keypath}{\def\keypath{\sankeykeysprefix}}{}%
   \def\key{#2}%
   \def\val{#3}%
   \def\default{#4}%
@@ -4603,9 +4743,10 @@
   % \vspace{.25\baselineskip plus .25\baselineskip minus 0mm}
   \parfillskip 0pt plus 1fil%
   \leavevmode%
+  \DescribeKey{\key}%
   \ttfamily%
-  \hspace*{-1cm}%
-  \textcolor{red!75!black}{\texttt{\docprefix{\ifdefempty{\keypath}{\sankeykeysprefix/}{\keypath/}}\key}}%
+  %\hspace*{-1cm}%
+  \textcolor{red!75!black}{\texttt{\docprefix{\keypath/}\key}}%
   \ifdefempty{\val}{}{=\val}%
   \hfill%
   \ifdefempty{\default}{\null}{(default:\,\constant{\default})}%
@@ -4619,7 +4760,7 @@
   \enditemize%
 }
 
-\newcommand\MACRO{\hspace*{-1cm}}
+\newcommand\MACRO{\hspace*{0cm}}
 
 \newlist{sankeyconstantsdesc}{description}{1}
 \setlist[sankeyconstantsdesc]{align=right,labelindent=1.5em,labelsep=.5em,leftmargin=!,font=\normalfont}
@@ -4664,9 +4805,40 @@
   \fontencoding\encodingdefault
   \fontfamily\ttdefault
   \fontseries\mddefault
-  \fontshape\shapedefault
-  \footnotesize%
+  \fontshape\updefault
+  \footnotesize
 }
+
+\renewcommand*{\DescribeMacro}[2][]{%
+  \@bsphack%
+  \@ifundefined{@captype}{% not float?
+    \leavevmode%
+    \marginpar{%
+      \hbadness=10000%
+      \hfuzz=5em%
+      \raggedleft%
+      \ifblank{#1}{}{{\scriptsize\textsf{[#1]}} }% class
+      \MacroFont\cmd{#2}% name
+    }% marginpar
+  }{}% not float?
+  \begingroup%
+  \DTXD at origwrindex{%
+    \DTXD at macroname{#2}\actualchar\DTXD at verbatimcmd{#2}% name
+    \ifblank{#1}{}{\levelchar[#1]}% class
+    \encapchar usage}%
+  \ifblank{#1}%
+  {}% no class
+  {% class given
+    \begingroup%
+    \DTXD at origwrindex{%
+      #1\actualchar[#1]:\levelchar%
+      \DTXD at macroname{#2}\actualchar\DTXD at verbatimcmd{#2}%
+      \encapchar usage}%
+  }% class given
+  \@esphack%
+  \ignorespaces%
+}
+
 %</sankeydocpreamble>
 % \fi
 \endinput

Modified: trunk/Master/texmf-dist/tex/latex/sankey/sankey-doc-preamble.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/sankey/sankey-doc-preamble.sty	2022-02-04 22:19:01 UTC (rev 61873)
+++ trunk/Master/texmf-dist/tex/latex/sankey/sankey-doc-preamble.sty	2022-02-04 22:19:22 UTC (rev 61874)
@@ -1,4 +1,4 @@
-\usepackage[paper=a4paper,vmargin=1.5cm,left=4.5cm,right=3.5cm]{geometry}
+\usepackage[paper=a4paper,vmargin=1.5cm,left=4.5cm,right=3.5cm,marginparwidth=3.5cm]{geometry}
 \usepackage[utf8]{inputenc}
 \usepackage{cmap}
 \usepackage[T1]{fontenc}
@@ -6,6 +6,7 @@
 \usepackage[final,protrusion=true,expansion=true]{microtype}
 \usepackage{xcolor}
 \PassOptionsToPackage{final,colorlinks,linkcolor=red!60!orange!85!black}{hyperref}
+\usepackage{dtxdescribe}
 \usepackage[numbered]{hypdoc}
 \usepackage{fancyvrb}
 \usepackage[final]{listings}
@@ -24,7 +25,7 @@
 \embedfile[mimetype=text/plain]{sankey.ins}
 \usepackage{sankey}
 
-\colorlet{bgcode}{yellow!50!gray!5}
+\colorlet{bgcode}{yellow!50!gray!10}
 \colorlet{keyword}{blue!50!cyan!50!black}
 \colorlet{comment}{red!75!black}
 
@@ -81,6 +82,14 @@
 \lstdefinestyle{textscriptsize}{basicstyle=\color{black}\scriptsize\mdseries\ttfamily}
 \lstdefinestyle{texttiny}{basicstyle=\color{black}\tiny\mdseries\ttfamily}
 
+\lstdefinestyle{bash}{
+  language=bash,
+  backgroundcolor=\color{gray!10},
+}
+\lstdefinestyle{bashsmall}{style=bash,style=textsmall}
+\lstdefinestyle{bashfootnotesize}{style=bash,style=footnotesize}
+\lstdefinestyle{bashscriptsize}{style=bash,style=scriptsize}
+
 \lstdefinestyle{LaTeX}{
   language=[LaTeX]TeX,
   moretexcs={
@@ -152,6 +161,7 @@
   \begingroup
   %
   \def\keypath{#1}%
+  \ifdefempty{\keypath}{\def\keypath{\sankeykeysprefix}}{}%
   \def\key{#2}%
   \def\val{#3}%
   \def\default{#4}%
@@ -160,9 +170,10 @@
   % \vspace{.25\baselineskip plus .25\baselineskip minus 0mm}
   \parfillskip 0pt plus 1fil%
   \leavevmode%
+  \DescribeKey{\key}%
   \ttfamily%
-  \hspace*{-1cm}%
-  \textcolor{red!75!black}{\texttt{\docprefix{\ifdefempty{\keypath}{\sankeykeysprefix/}{\keypath/}}\key}}%
+  %\hspace*{-1cm}%
+  \textcolor{red!75!black}{\texttt{\docprefix{\keypath/}\key}}%
   \ifdefempty{\val}{}{=\val}%
   \hfill%
   \ifdefempty{\default}{\null}{(default:\,\constant{\default})}%
@@ -176,7 +187,7 @@
   \enditemize%
 }
 
-\newcommand\MACRO{\hspace*{-1cm}}
+\newcommand\MACRO{\hspace*{0cm}}
 
 \newlist{sankeyconstantsdesc}{description}{1}
 \setlist[sankeyconstantsdesc]{align=right,labelindent=1.5em,labelsep=.5em,leftmargin=!,font=\normalfont}
@@ -221,6 +232,37 @@
   \fontencoding\encodingdefault
   \fontfamily\ttdefault
   \fontseries\mddefault
-  \fontshape\shapedefault
-  \footnotesize%
+  \fontshape\updefault
+  \footnotesize
 }
+
+\renewcommand*{\DescribeMacro}[2][]{%
+  \@bsphack%
+  \@ifundefined{@captype}{% not float?
+    \leavevmode%
+    \marginpar{%
+      \hbadness=10000%
+      \hfuzz=5em%
+      \raggedleft%
+      \ifblank{#1}{}{{\scriptsize\textsf{[#1]}} }% class
+      \MacroFont\cmd{#2}% name
+    }% marginpar
+  }{}% not float?
+  \begingroup%
+  \DTXD at origwrindex{%
+    \DTXD at macroname{#2}\actualchar\DTXD at verbatimcmd{#2}% name
+    \ifblank{#1}{}{\levelchar[#1]}% class
+    \encapchar usage}%
+  \ifblank{#1}%
+  {}% no class
+  {% class given
+    \begingroup%
+    \DTXD at origwrindex{%
+      #1\actualchar[#1]:\levelchar%
+      \DTXD at macroname{#2}\actualchar\DTXD at verbatimcmd{#2}%
+      \encapchar usage}%
+  }% class given
+  \@esphack%
+  \ignorespaces%
+}
+

Modified: trunk/Master/texmf-dist/tex/latex/sankey/sankey.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/sankey/sankey.sty	2022-02-04 22:19:01 UTC (rev 61873)
+++ trunk/Master/texmf-dist/tex/latex/sankey/sankey.sty	2022-02-04 22:19:22 UTC (rev 61874)
@@ -31,7 +31,7 @@
 %% sankey-example-energy.tex
 %% 
 \NeedsTeXFormat{LaTeX2e}[2015/10/01]
-\ProvidesPackage{sankey}[2021/03/14 v3.0 to draw Sankey diagrams]
+\ProvidesPackage{sankey}[2022/02/04 v3.0.1 to draw Sankey diagrams]
 \RequirePackage{xparse}
 \RequirePackage{etoolbox}
 \RequirePackage{xfp}

Modified: trunk/Master/texmf-dist/tex/latex/sankey/tikzlibrarydubins.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/sankey/tikzlibrarydubins.code.tex	2022-02-04 22:19:01 UTC (rev 61873)
+++ trunk/Master/texmf-dist/tex/latex/sankey/tikzlibrarydubins.code.tex	2022-02-04 22:19:22 UTC (rev 61874)
@@ -30,32 +30,27 @@
 %% sankey-example3-variation.tex, sankey-example4.tex,
 %% sankey-example-energy.tex
 %% 
-\def\tikzlibrarydubins at version{v3.0}
-\def\tikzlibrarydubins at date{2021/03/14}
-
+\def\tikzlibrarydubins at version{v3.0.1}
+\def\tikzlibrarydubins at date{2022/02/04}
 \usetikzlibrary{calc}
 \RequirePackage{etoolbox}
 \RequirePackage{xfp}
 
 \newbool{dubinspathreverse}
-
 \def\ifpgfmathcond#1{%
   \pgfmathparse{(#1)?1:0}%
   \ifnumequal{\pgfmathresult}{1}%
 }
-
 \def\dbp at getxy#1#2#3{%
   \tikz at scan@one at point\pgfutil at firstofone(#3)\relax%
   \edef#1{\the\pgf at x}%
   \edef#2{\the\pgf at y}%
 }
-
 \def\dbp at anglebetween#1#2#3{%macro, s, t
   \dbp at getxy\dbp at ax\dbp at ay{#2}
   \dbp at getxy\dbp at bx\dbp at by{#3}
   \pgfmathsetmacro#1{atan2(\dbp at by-\dbp at ay,\dbp at bx-\dbp at ax)}
 }
-
 \def\dbp at distancebetween#1#2#3{%macro, s, t
   \dbp at getxy\dbp at ax\dbp at ay{#2}
   \dbp at getxy\dbp at bx\dbp at by{#3}
@@ -64,7 +59,6 @@
       +(\dbp at by-\dbp at ay)*(\dbp at by-\dbp at ay)%
       )}}%
 }
-
 \newcommand\dbp at rsr{% s, sa, t, ta, as, len, at, r
   let
   \p{tr}=([shift={(\dbp at angb-90:\dbp at radius pt)}]\dbp at b),
@@ -76,7 +70,6 @@
   -- ([shift={(\p{tr})}]\n3:\dbp at rradius pt)
   arc(\n3:\n2:\dbp at rradius pt)
 }
-
 \newcommand\dbp at lsl{% s, sa, t, ta, as, len, at, r
   let
   \p{tl}=([shift={(\dbp at angb+90:\dbp at radius pt)}]\dbp at b),
@@ -87,7 +80,6 @@
   -- ([shift={(\p{tl})}]\n4:\dbp at lradius pt)
   arc(\n4:\n3:\dbp at lradius pt)
 }
-
 \newcommand\dbp at rsl{% s, sa, t, ta, as, len, at, r
   let
   \p{tl}=([shift={(\dbp at angb+90:\dbp at radius pt)}]\dbp at b),
@@ -98,7 +90,6 @@
   -- ([shift={(\p{tl})}]\n4:\dbp at lradius pt)
   arc(\n4:\n3:\dbp at lradius pt)
 }
-
 \newcommand\dbp at lsr{% s, sa, t, ta, as, len, at, r
   let
   \p{tr}=([shift={(\dbp at angb-90:\dbp at radius pt)}]\dbp at b),
@@ -109,7 +100,6 @@
   -- ([shift={(\p{tr})}]\n4:\dbp at rradius pt)
   arc(\n4:\n3:\dbp at rradius pt)
 }
-
 \newcommand\dbp at lrl{% s, sa, t, ta, as, ai, at, r
   let
   \n1={\dbp at anga-90},\n2={\n1+\dbp at firstangle},
@@ -119,7 +109,6 @@
   arc(\n2+180:\n2+180-\dbp at midparam:\dbp at rradius pt)
   arc(\n4:\n3:\dbp at lradius pt)
 }
-
 \newcommand\dbp at rlr{% s, sa, t, ta, as, ai, at, r
   let
   \n1={\dbp at anga+90},\n2={\n1-\dbp at firstangle},
@@ -135,7 +124,6 @@
 \newcommand\dbp at rev@rsl{\dbp at rsl}
 \newcommand\dbp at rev@lrl{\dbp at rlr}
 \newcommand\dbp at rev@rlr{\dbp at lrl}
-
 \newcommand\dubinspath[1]{%
   \pgfextra{
     \dubinspathset{#1}
@@ -163,9 +151,6 @@
   }
   \csname dbp@\dbp at method\endcsname%
 }
-
-%% solution
-
 \def\dbp at store#1#2{%
   \expandafter\xdef\csname dbp at store@#1@#2\endcsname%
   {\csname dbp@#2\endcsname}%
@@ -173,7 +158,6 @@
 \def\dbp at get#1#2{%
   \csname dbp at store@#1@#2\endcsname%
 }
-
 \def\dbp at setparams#1#2#3#4#5{%
   % method, length, fisrt angle, middle param, last angle
   \edef\dbp at method{#1}
@@ -187,13 +171,11 @@
     }
   }{}
 }
-
 \def\dbp at updateparams#1#2#3#4#5{
   \ifpgfmathcond{#2<\dbp at length}{
     \dbp at setparams{#1}{#2}{#3}{#4}{#5}
   }{}
 }
-
 \tikzset{
   dubins path/.is family,
   dubins path,
@@ -224,9 +206,7 @@
   middle param/.store in=\dbp at midparam,
   reverse/.is if=dubinspathreverse,
 }
-
 \newcommand\dubinspathset[1]{\tikzset{dubins path,#1}}
-
 \newcommand\dubinspathcalc[1]{%
   \begingroup
   \dubinspathset{#1}



More information about the tex-live-commits mailing list.