summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-05-16 20:21:30 +0000
committerKarl Berry <karl@freefriends.org>2023-05-16 20:21:30 +0000
commite66174d7e5c8c2f71571c928e0d6c5a8b037a904 (patch)
tree4c43d53c05b5b44e3cedf1a9a963b6f914fb66b7 /Master/texmf-dist
parentcae38f5a3dc749919c5d4d2b33a971ef392d514b (diff)
tikz-nfold (16may23)
git-svn-id: svn://tug.org/texlive/trunk@67133 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/tikz-nfold/README.md2
-rw-r--r--Master/texmf-dist/doc/latex/tikz-nfold/tikz-nfold-doc.pdfbin302747 -> 302791 bytes
-rw-r--r--Master/texmf-dist/tex/latex/tikz-nfold/tikzlibrarynfold.code.tex25
3 files changed, 19 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/tikz-nfold/README.md b/Master/texmf-dist/doc/latex/tikz-nfold/README.md
index bb89176466f..6cfba546a4f 100644
--- a/Master/texmf-dist/doc/latex/tikz-nfold/README.md
+++ b/Master/texmf-dist/doc/latex/tikz-nfold/README.md
@@ -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.
diff --git a/Master/texmf-dist/doc/latex/tikz-nfold/tikz-nfold-doc.pdf b/Master/texmf-dist/doc/latex/tikz-nfold/tikz-nfold-doc.pdf
index a02b30a571e..9a26adfd67a 100644
--- a/Master/texmf-dist/doc/latex/tikz-nfold/tikz-nfold-doc.pdf
+++ b/Master/texmf-dist/doc/latex/tikz-nfold/tikz-nfold-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/tex/latex/tikz-nfold/tikzlibrarynfold.code.tex b/Master/texmf-dist/tex/latex/tikz-nfold/tikzlibrarynfold.code.tex
index 4cc014355b3..da48d7b62b4 100644
--- a/Master/texmf-dist/tex/latex/tikz-nfold/tikzlibrarynfold.code.tex
+++ b/Master/texmf-dist/tex/latex/tikz-nfold/tikzlibrarynfold.code.tex
@@ -806,13 +806,24 @@
\let\pgf@next\relax%
\else%
\ifx#1\pgfsyssoftpath@movetotoken%
- \def\pgf@nfold@macrotoadd{\pgf@nfold@parsemoveto{#2}{#3}}%
- \pgf@nfold@addmacro\pgf@cur@conn@segment%
- % A moveto marks the beginning/end of one connected segment
- \pgf@nfold@process@conn@segment%
- \let\pgf@nfold@last@closepath@from\pgfutil@empty%
- \let\pgf@cur@conn@segment\pgfutil@empty%
- \def\pgf@nfold@parser@last@moveto{{#2}{#3}}%
+ \ifx\pgf@cur@conn@segment\pgfutil@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@nfold@parsemoveto will be called
+ % in \pgf@nfold@process@conn@segment.
+ \def\pgf@nfold@parser@last@moveto{{#2}{#3}}%
+ % Make sure \pgf@cur@conn@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@cur@conn@segment{\relax}%
+ \else%
+ \def\pgf@nfold@macrotoadd{\pgf@nfold@parsemoveto{#2}{#3}}%
+ \pgf@nfold@addmacro\pgf@cur@conn@segment%
+ % A moveto marks the beginning/end of one connected segment
+ \pgf@nfold@process@conn@segment%
+ \let\pgf@nfold@last@closepath@from\pgfutil@empty%
+ \let\pgf@cur@conn@segment\pgfutil@empty%
+ \def\pgf@nfold@parser@last@moveto{{#2}{#3}}%
+ \fi
\else%
\ifx#1\pgfsyssoftpath@linetotoken%
\def\pgf@nfold@macrotoadd{\pgf@nfold@parselineto{#2}{#3}}%