From 7d18397ccd366bf3435aced862e7f7469e71024c Mon Sep 17 00:00:00 2001 From: TEC Date: Mon, 11 Apr 2022 19:35:10 +0800 Subject: [PATCH] tweak(org-mode): simplify dot snippet 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. --- org-mode/dot | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/org-mode/dot b/org-mode/dot index 110ed844..28ba8384 100644 --- a/org-mode/dot +++ b/org-mode/dot @@ -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]] \ No newline at end of file +#+end_src \ No newline at end of file