From: Cecil Westerhof <cldwesterhof@gmail.com>
To: emacs-orgmode@gnu.org
Subject: English and Dutch version of a Graphviz picture
Date: Sat, 1 Sep 2018 12:38:54 +0200 [thread overview]
Message-ID: <CAG-LmmCO=U+KXovUtzbmYQLebaK=J6mdmg65qK_Wj-WCySWP+Q@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1917 bytes --]
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 Westerhof\nTimeManagement@Decebal.nl",
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 Westerhof\nTimeManagement@Decebal.nl",
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
[-- Attachment #2: Type: text/html, Size: 2908 bytes --]
next reply other threads:[~2018-09-01 10:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-01 10:38 Cecil Westerhof [this message]
2018-09-01 15:04 ` English and Dutch version of a Graphviz picture Robert Klein
2018-09-02 13:27 ` Cecil Westerhof
2018-09-05 7:00 ` Robert Klein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAG-LmmCO=U+KXovUtzbmYQLebaK=J6mdmg65qK_Wj-WCySWP+Q@mail.gmail.com' \
--to=cldwesterhof@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).