tikz-bayesnet icon indicating copy to clipboard operation
tikz-bayesnet copied to clipboard

A list of options?

Open timudk opened this issue 5 years ago • 1 comments

Can I find a list of options for nodes, edges, etc. somewhere?

timudk avatar Sep 24 '19 14:09 timudk

I guess not. If I remember correctly, those options should be (at least mostly) just standard TikZ options. You can have a look on the source code how the options are passed forward: https://github.com/jluttine/tikz-bayesnet/blob/master/tikzlibrarybayesnet.code.tex

For instance, nodes are just normal TikZ nodes with some predefined styles that you can use (obs, latent, ...). You can give any node options TikZ supports. Edge options are forwarded as #1 here: \path (\x) edge [->, >={triangle 45}, #1] (\y) ;. Factor options are forwarded to node. And so on.

Perhaps would be good to mention explicitly in the readme how the options are forwarded so one could have a look on standard TikZ manual for the available options.

jluttine avatar Sep 25 '19 07:09 jluttine