Skip to content

Commit d5b4c09

Browse files
authored
Fix '.search also' with /handler config=full or existing
Make .expand* handlers use relative paths if the original path was relative. Fixes pgf-tikz#1143
1 parent b79c4c5 commit d5b4c09

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tex/generic/pgf/utilities/pgfkeys.code.tex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,13 @@
10061006
\pgfkeys{/handlers/.expand twice/.code=\expandafter\expandafter\expandafter\pgfkeys@exp@call\expandafter\expandafter\expandafter{#1}}
10071007
\pgfkeys{/handlers/.expanded/.code=\edef\pgfkeys@temp{#1}\expandafter\pgfkeys@exp@call\expandafter{\pgfkeys@temp}}
10081008

1009-
\long\def\pgfkeys@exp@call#1{\pgfkeysalso{\pgfkeyscurrentpath={#1}}}
1009+
\long\def\pgfkeys@exp@call#1{%
1010+
\ifpgfkeysaddeddefaultpath% If the original key was a relative path, do the expanded assignment with a relative path as well.
1011+
\pgfkeys@pathtoks{}%
1012+
\expandafter\pgfkeys@splitter\pgfkeyscurrentkeyRAW//% Removes the /.expand* component of the original relative key.
1013+
\fi
1014+
\pgfkeysalso{\pgfkeyscurrentpath={#1}}%
1015+
}
10101016

10111017
\def\pgfkeys@mathparse{%
10121018
\pgfkeys@ifcsname{pgfmathparse}{%

0 commit comments

Comments
 (0)