As part of a different question (Detecting empty PGFKEYS), I posted a code fragment where I was told a space did not matter. I've been able to reproduce the case where it does. Can someone help me understand why a space is not allowed in the following code (see comment below)
MWE:
\documentclass{minimal}
\usepackage{pgfkeys}
\pgfkeys{
/dir/.is family,
/dir/akey/.code={do something}
}
\newcommand\test[1]{% Note, don't put a space between the , and the #1, why? I don
't know.
\pgfkeys{/dir,#1}
}
\begin{document}
\test{
akey
}
\end{document}
If you put a space after the comma in "/dir,#1", pdflatex rejects this code with the error "I don't know the key '/dir/ akey'". How come?
\distMarkup[ leftTailLabel = label number 1,, you can afford a space in\pgfkeys{/distMarkup, default, #1}. – Jan 09 '20 at 14:05