Skip to content

Commit b54e45d

Browse files
committed
tweak(tempel): additional org-mode templates
1 parent 4f88b64 commit b54e45d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

assets/templates/tempel/org.eld

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,27 @@ org-mode
88
(height "#+attr_latex: :height " (p "0.1\textheight") n)
99
(dot "#+begin_src dot :file " (p "graph") "." (p "svg") " :results file graphics" n> r> n "#+end_src" :post (org-edit-src-code))
1010
(jupyter "#+begin_src jupyter-" (p "python") " :session " r " :async yes" n> r> n "#+end_src" :post (org-edit-src-code))
11+
(figure "#+caption: " (p "Figure caption") n>
12+
"#+name: " (p "fig:figure-label") n>
13+
"#+attr_latex: :width .6\\textwidth :placement [H]" n>
14+
"[[file:" (p "path/to/figure.png") "]]" n>)
15+
(subfigs "#+caption: " (p "Figure caption") n>
16+
"#+name: " (p "fig:figure-label") n>
17+
"#+begin_figure:" n> "[H]" n>
18+
"#+latex: \\centering" n>
19+
"#+name: " (p "fig:subfig1-label") n>
20+
"#+caption: " (p "Subfigure 1 caption")
21+
"#+attr_latex: :width .3\\textwidth :center nil :options [b]{.28\\textwidth}" n>
22+
"#+begin_subfigure" n>
23+
"#+attr_latex: :width \textwidth" n>
24+
"[[file:" (p "path/to/file1.png") "]]" n>
25+
"#+end_subfigure" n>
26+
"#+latex: \\quad" n>
27+
"#+name: " (p "fig:subfig2-label") n>
28+
"#+caption: " (p "Subfigure 2 caption")
29+
"#+attr_latex: :width .3\\textwidth :center nil :options [b]{.28\\textwidth}" n>
30+
"#+begin_subfigure" n>
31+
"#+attr_latex: :width \\textwidth" n>
32+
"[[file:" (p "path/to/file2.png") "]]" n>
33+
"#+end_subfigure" n>
34+
"#+end_figure")

0 commit comments

Comments
 (0)