Skip to content

Commit

Permalink
tweak(org-mode): simplify dot snippet
Browse files Browse the repository at this point in the history
1. ":exports none :results silent" + link to file is pointlessly clunky.
  Just having ":results file graphics" is briefer and even works better.
2. ":cmdline -T${format}" is largely unneeded, as type is selected based
  on the file extension by default, which tends to result in behaviour
3. Change the default format to SVG. Org can be exported to a variety of
  formats, and SVG is more versatile in this respect.
  • Loading branch information
tecosaur authored and Henrik Lissner committed May 3, 2022
1 parent cc26b6b commit 7d18397
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions org-mode/dot
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# key: dot
# uuid: dot
# --
#+begin_src dot :file ${1:file} :cmdline -T${2:pdf} :exports none :results silent
#+begin_src dot :file ${1:file}.${2:svg} :results file graphics
`%`$0
#+end_src

[[file:$1]]
#+end_src

0 comments on commit 7d18397

Please sign in to comment.