Re: [O] How to define file-local preamble for graphviz dot?

2014-08-05 Thread Vladimir Alexiev
Vladimir Alexiev vladimir.alexiev at ontotext.com writes: I have a bunch of dot settings that I want to set globally. I hacked it like this: (defadvice org-babel-expand-body:dot (before add-preamble (body params) activate) A better way to hack it is like that, using the header args

[O] How to define file-local preamble for graphviz dot?

2014-08-01 Thread Vladimir Alexiev
I have a bunch of dot settings that I want to set globally. I hacked it like this: (setq va/org-dot-preamble digraph g { rankdir=LR nodesep=0.2 ranksep=0.1 arrowsize=0.2 node [fontname=courier fontsize=10 margin=\0.02,0.01\ shape=box width=0.1 height=0.1] edge [fontname=courier fontsize=8