diff options
author | Norbert Preining <norbert@preining.info> | 2023-05-17 03:01:58 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-05-17 03:01:58 +0000 |
commit | 92ffb9032b85f818a8d3b469ad4d3889c2a44ba1 (patch) | |
tree | 54bc1ce009357117a376baa5ffa223f904acee4f /graphics/pgf | |
parent | 95bdae3d8a40af1f2f82f786dc29d3761fe431f1 (diff) |
CTAN sync 202305170301
Diffstat (limited to 'graphics/pgf')
-rw-r--r-- | graphics/pgf/contrib/tikz-nfold/README.md | 2 | ||||
-rw-r--r-- | graphics/pgf/contrib/tikz-nfold/tikz-nfold-doc.pdf | bin | 302747 -> 302791 bytes | |||
-rw-r--r-- | graphics/pgf/contrib/tikz-nfold/tikzlibrarynfold.code.tex | 25 |
3 files changed, 19 insertions, 8 deletions
diff --git a/graphics/pgf/contrib/tikz-nfold/README.md b/graphics/pgf/contrib/tikz-nfold/README.md index bb89176466..6cfba546a4 100644 --- a/graphics/pgf/contrib/tikz-nfold/README.md +++ b/graphics/pgf/contrib/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/graphics/pgf/contrib/tikz-nfold/tikz-nfold-doc.pdf b/graphics/pgf/contrib/tikz-nfold/tikz-nfold-doc.pdf Binary files differindex a02b30a571..9a26adfd67 100644 --- a/graphics/pgf/contrib/tikz-nfold/tikz-nfold-doc.pdf +++ b/graphics/pgf/contrib/tikz-nfold/tikz-nfold-doc.pdf diff --git a/graphics/pgf/contrib/tikz-nfold/tikzlibrarynfold.code.tex b/graphics/pgf/contrib/tikz-nfold/tikzlibrarynfold.code.tex index 4cc014355b..da48d7b62b 100644 --- a/graphics/pgf/contrib/tikz-nfold/tikzlibrarynfold.code.tex +++ b/graphics/pgf/contrib/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}}% |