This commit is contained in:
tavo-wasd 2024-06-23 11:10:53 -06:00
parent e6f1c1d8e3
commit 896b4db68a

View file

@ -141,16 +141,16 @@
(if (eq system-type 'android) (if (eq system-type 'android)
(progn ;; Android custom org-latex-preview (progn ;; Android custom org-latex-preview
(setq org-preview-latex-process-alist (setq org-preview-latex-process-alist
'((texpngweb '((dvipngweb
:programs ("curl") :programs ("latex" "dvipng")
:description "tex > png" :description "dvi > png"
:message "you need to install curl." :message "you need to install the programs: latex and dvipng."
:image-input-type "tex" :image-input-type "dvi"
:image-output-type "png" :image-output-type "png"
:image-size-adjust (1.0 . 1.0) :image-size-adjust (1.0 . 1.0)
:latex-compiler ("") :latex-compiler ("curl -F \"file=@%f\" -F \"type=tex\" 0.0.0.0:8000 && curl 0.0.0.0:8000/tmp.dvi -o %O")
:image-converter ("curl -F \"file=@%f\" -F \"dpi=%D\" http://0.0.0.0:8000 && curl http://0.0.0.0:8000/tmp.png -o %O")))) :image-converter ("curl -F \"file=@%f\" -F \"type=dvi\" -F \"dpi=%D\" -o %O 0.0.0.0:8000 && curl 0.0.0.0:8000/tmp.png -o %O"))))
(setq org-latex-create-formula-image-program 'texpngweb))) (setq org-latex-create-formula-image-program 'dvipngweb)))
;; --- ;; ---
;; --- Keybinds --- ;; --- Keybinds ---