texlive[67133] Master/texmf-dist: tikz-nfold (16may23)
commits+karl at tug.org
commits+karl at tug.org
Tue May 16 22:21:30 CEST 2023
Revision: 67133
http://tug.org/svn/texlive?view=revision&revision=67133
Author: karl
Date: 2023-05-16 22:21:30 +0200 (Tue, 16 May 2023)
Log Message:
-----------
tikz-nfold (16may23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/tikz-nfold/README.md
trunk/Master/texmf-dist/doc/latex/tikz-nfold/tikz-nfold-doc.pdf
trunk/Master/texmf-dist/tex/latex/tikz-nfold/tikzlibrarynfold.code.tex
Modified: trunk/Master/texmf-dist/doc/latex/tikz-nfold/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikz-nfold/README.md 2023-05-16 20:20:56 UTC (rev 67132)
+++ trunk/Master/texmf-dist/doc/latex/tikz-nfold/README.md 2023-05-16 20:21:30 UTC (rev 67133)
@@ -1,5 +1,5 @@
# tikz-nfold
-## Version 0.1.1
+## Version 0.1.2
This library adds higher-order paths to [TikZ](https://ctan.org/pkg/pgf) and also fixes some graphical issues with TikZ' `double` paths, used e.g. in wide arrows. It is also compatible with [tikz-cd](https://ctan.org/pkg/tikz-cd), adding support for triple and higher arrows. See the [documentation](tikz-nfold-doc.pdf) for full details.
Modified: trunk/Master/texmf-dist/doc/latex/tikz-nfold/tikz-nfold-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/tex/latex/tikz-nfold/tikzlibrarynfold.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tikz-nfold/tikzlibrarynfold.code.tex 2023-05-16 20:20:56 UTC (rev 67132)
+++ trunk/Master/texmf-dist/tex/latex/tikz-nfold/tikzlibrarynfold.code.tex 2023-05-16 20:21:30 UTC (rev 67133)
@@ -806,13 +806,24 @@
\let\pgf at next\relax%
\else%
\ifx#1\pgfsyssoftpath at movetotoken%
- \def\pgf at nfold@macrotoadd{\pgf at nfold@parsemoveto{#2}{#3}}%
- \pgf at nfold@addmacro\pgf at cur@conn at segment%
- % A moveto marks the beginning/end of one connected segment
- \pgf at nfold@process at conn@segment%
- \let\pgf at nfold@last at closepath@from\pgfutil at empty%
- \let\pgf at cur@conn at segment\pgfutil at empty%
- \def\pgf at nfold@parser at last@moveto{{#2}{#3}}%
+ \ifx\pgf at cur@conn at segment\pgfutil at empty%
+ % This case happens for the very first segment or for double movetos.
+ % We need special treatment here, as otherwise the arrow tip extension
+ % does not work correctly. The \pgf at nfold@parsemoveto will be called
+ % in \pgf at nfold@process at conn@segment.
+ \def\pgf at nfold@parser at last@moveto{{#2}{#3}}%
+ % Make sure \pgf at cur@conn at segment is no longer empty so double movetos are not
+ % treated the same as single movetos. This is also relevant to arrow tip extensions
+ \def\pgf at cur@conn at segment{\relax}%
+ \else%
+ \def\pgf at nfold@macrotoadd{\pgf at nfold@parsemoveto{#2}{#3}}%
+ \pgf at nfold@addmacro\pgf at cur@conn at segment%
+ % A moveto marks the beginning/end of one connected segment
+ \pgf at nfold@process at conn@segment%
+ \let\pgf at nfold@last at closepath@from\pgfutil at empty%
+ \let\pgf at cur@conn at segment\pgfutil at empty%
+ \def\pgf at nfold@parser at last@moveto{{#2}{#3}}%
+ \fi
\else%
\ifx#1\pgfsyssoftpath at linetotoken%
\def\pgf at nfold@macrotoadd{\pgf at nfold@parselineto{#2}{#3}}%
More information about the tex-live-commits
mailing list.