-
Notifications
You must be signed in to change notification settings - Fork 2
/
transpile_latex.el
executable file
·25 lines (18 loc) · 1.13 KB
/
transpile_latex.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/emacs --script
(setq user-full-name "Taproot")
(setq user-mail-address "[email protected]")
(setq org-export-with-broken-links t)
(load-file "./resources/s.el")
(load-file "./resources/dash.el")
(load-file "./resources/lf.el")
(load-file "./resources/org-special-block-extras.el")
(require 'org-special-block-extras)
(add-hook #'org-mode-hook #'org-special-block-extras-mode)
(setq org-html-head "<link rel=\"stylesheet\" href=\"https://quantumish.github.io/admonition.css\"><script src=\"https://kit.fontawesome.com/76c5ce8bda.js\" crossorigin=\"anonymous\">")
(o-defblock aside (title "") (contents "")
(format
"<div class=\"admonition\" style=\"--admonition-color: 173, 173, 173;\"><div class=\"admonition-title\"><div class=\"admonition-title-content\"><div class=\"admonition-title-icon\"><i class=\"fas fa-quote-left\" aria-hidden=\"true\"></i></div><div class=\"admonition-title-markdown\">%s</div></div></div><div class=\"admonition-content-holder\"><div class=\"admonition-content\">%s</div></div></div>" title contents))
(require 'org-id)
(org-id-locations-load)
(find-file (car argv))
(org-latex-export-to-latex)