Closed ZijianFelixWang closed 1 year ago
Hi @ZijianFelixWang! Thanks for your interest (and sorry for the delay)!
There are two problems with the code \obj [hexagonal=horizonal side 1.5em angle 60]{A};
.
\obj
you need to be passing the specification for a matrix (e.g. \obj{ A & B \\ C & D \\ };
), not for a single node (e.g. \obj{ A };
). The reason is that \obj
secretly detects which is the case and exposes only relevant keys in scope.There are two possible fixes.
\obj{ A };
.\obj [hexagonal=horizonal side 1.5em angle 60]{ A \\ };
.I'm inclined towards not considering this a bug, but I also think the error message is completely misleading.
I think it should be sufficient to clarify in the manual that a matrix should be passed to \obj
for layout keys to be in scope.
LMK what you think and whether you need further help!
Is there an existing issue for this?
Current behaviour
When I compile this code:
I get an error:
Package pgfkeys Error: I do not know the key '/tikz/hexagonal', to which you u misspelled it. ^^I^^I};
Expected behaviour
It should be compiled normally and produce a pdf file.
Steps to reproduce
Using the following XELATEX version:
I installed the latest version of
commutative-diagrams
fromtlmgr
.Additional context
I searched and found an issue say that using
tikz
librarypositioning
can help, but it doesn't work for me.