I'm trying to add colors to a recursive macro that I don't understand at all how it works(well, I see the basics but I'm lost to all the tex macro weirdness
\g@addto@macro\htree@start{child[color=\colors{\x}] foreach \noexpand\x in {1,2} {\iffalse}\fi}
the code comes from
http://www.texample.net/tikz/examples/h-tree/
I'd like to do various things like color child, add nodes, based on or child angle/index/etc, position, etc...
I'd like to try to add more than 2 children too.
I really don't get what {\iffalse}\fi} is doing...
{\iffalse}\fi
is called a brace hack, and provides a way, upon expansion to get a single brace into a definition. See tex.stackexchange.com/questions/418621/…