14 lines
462 B
EmacsLisp
14 lines
462 B
EmacsLisp
;; Sample emacs configuration for this setup
|
|
|
|
(setq org-preview-latex-process-alist
|
|
'((texpngweb
|
|
:programs ("curl")
|
|
:description "tex > png"
|
|
:message "you need to install curl."
|
|
:image-input-type "tex"
|
|
:image-output-type "png"
|
|
:image-size-adjust (1.0 . 1.0)
|
|
:latex-compiler ("curl -F \"file=@%f\" http://0.0.0.0:8000")
|
|
:image-converter ("curl http://0.0.0.0:8000/tmp.png -o %O"))))
|
|
|
|
(setq org-latex-create-formula-image-program 'texpngweb)
|