Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forest styles which include <pgf/tikz key>={<key-value list>} passed to \forest@unknownto without outer braces #9

Open
cfr42 opened this issue Dec 11, 2023 · 0 comments

Comments

@cfr42
Copy link

cfr42 commented Dec 11, 2023

The following code produces a node with a black border, whereas one would intuitively expect a red one.

\documentclass[margin=5pt]{standalone}
\usepackage{forest}
\forestset{%
  egstyle/.style={%
    postaction={draw=red},
  },
}
\begin{document}
\begin{forest}
  [A, egstyle]
\end{forest}
\end{document}

TeX SE question: https://tex.stackexchange.com/questions/703654/alternating-color-borders-of-nodes-and-forest-package/703656?noredirect=1#comment1750649_703656

At least in this case, the problem can be avoided by patching a single line in forest.sty, but I have no idea whether this is safe in general.

forest-patch.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant