I have the following:
#+BEGIN_SRC dot :file Graphviz/habitLoop.png :cmdline -Kfdp -Tpng
digraph habitLoop {
bgcolor = steelblue
edge [penwidth = 4.0 ]
node [fontcolor = white, fontsize = 60, style = filled]
spur [pos = "4,4!" color = red]
habit [pos = "7,1!" color = darkgreen]
reward [pos = "1,1!" color = blue]
spur:e -> habit:n
habit:w -> reward:e
reward:n -> spur:w
copyright [
pos = "4,.75!"
color = steelblue,
fontcolor = black,
fontsize = 14,
label = "© Cecil address@hidden",
shape = plaintext
]
spur [label = "Spur"]
habit [label = "Habit"]
reward [label = "Reward"]
}
#+END_SRC
But I also want to have a Dutch version. So I also have:
#+BEGIN_SRC dot :file Graphviz/gewoonteLoop.png :cmdline -Kfdp -Tpng
digraph habitLoop {
bgcolor = steelblue
edge [penwidth = 4.0 ]
node [fontcolor = white, fontsize = 60, style = filled]
spur [pos = "4,4!" color = red]
habit [pos = "7,1!" color = darkgreen]
reward [pos = "1,1!" color = blue]
spur:e -> habit:n
habit:w -> reward:e
reward:n -> spur:w
copyright [
pos = "4,.75!"
color = steelblue,
fontcolor = black,
fontsize = 14,
label = "© Cecil address@hidden",
shape = plaintext
]
spur [label = "Prikkel"]
habit [label = "Gewoonte"]
reward [label = "Beloning"]
}
#+END_SRC
The only difference are the three label statements. Can this be done more efficient? Because now I need to do updates at two places. That is an accident waiting to happen.
--
Cecil Westerhof