diff --git a/public/texpngweb.el b/texpngweb.el similarity index 57% rename from public/texpngweb.el rename to texpngweb.el index 96c01a8..1eafa5a 100644 --- a/public/texpngweb.el +++ b/texpngweb.el @@ -8,7 +8,10 @@ :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") + ;; This works in my pc, but not in android. + ;; :latex-compiler ("curl -F \"file=@%f\" http://0.0.0.0:8000") + ;; For some reason this works in android (and also on pc) + :latex-compiler ("curl -F \"file=@%f\" http://0.0.0.0:8000 && curl http://0.0.0.0:8000/tmp.png -o %O") :image-converter ("curl http://0.0.0.0:8000/tmp.png -o %O")))) (setq org-latex-create-formula-image-program 'texpngweb)