I'm kinda annoyed with the emacs tempo library I currently use and don't want a separate config file that would be necessary to use emacs tempel. So I'm just publishing my templates here for copy pasta / macro bootstrapping for the next paper.
@online{,
author = "",
title = "",
url = "",
date = "",
}
@book{,
author = "",
title = "",
year = "",
publisher = "",
}
#+CAPTION:
[[./assets/]]
#+CAPTION:
#+ATTR_LATEX: :height 0.1\textwidth
[[./assets/]]
#+LATEX:\newpage
(use-package tempo
:config
(tempo-define-template "today" '((insert (format-time-string "%Y-%m-%d"))) "today")
(tempo-define-template "online" '("@online{" p "," n " author = \"" p "\"," n " title = \"" p "\"," n " url = \"" p "\"," n " date = \"" p "\"," n "}") "online")
(tempo-define-template "book" '("@book{" p "," n " author = \"" p "\"," n " title = \"" p "\"," n " year = \"" p "\"," n " publisher = \"" p "\"," n "}") "book")
(tempo-define-template "fig" '("#+CAPTION: " p n "[[./assets/" p "]]" n) "fig")
(tempo-define-template "sfig" '("#+CAPTION: " p n "#+ATTR_LATEX: :height 0.1\\textwidth" n "[[./assets/" p "]]" n) "sfig")
(tempo-define-template "np" '("#+LATEX:\\newpage" n) "np"))```