document or i will forget

This commit is contained in:
tavo-wasd 2024-07-03 12:40:34 -06:00
parent 0e265a3794
commit 9017928dd4

View file

@ -224,6 +224,9 @@
(lambda ()
(local-set-key (kbd "C-c e") 'insert-latex-equation)))
;; Use with: '#+begin_src pic :results file'
;; Optional: ':exports none' to avoid showing the source
(defun org-babel-execute:pic (body params)
(let* ((tmpfile (org-babel-temp-file "pic-" ".png"))
(quoted-text (replace-regexp-in-string "'" "'\\\\''" body))