* Please evaluate the following block with C-c C-c #+begin_src emacs-lisp :results output silent (setq org-preview-latex-default-process 'dvisvgm) ;; works if it is dvipng (setq org-preview-latex-process-alist '((dvipng :programs ("latex" "dvipng") :description "dvi > png" :message "you need to install the programs: latex and dvipng." :image-input-type "dvi" :image-output-type "png" :image-size-adjust (1.0 . 1.0) :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f") :image-converter ("dvipng -D %D -T tight -o %O %f")) (dvisvgm :programs ("latex" "dvisvgm") :description "dvi > svg" :message "you need to install the programs: latex and dvisvgm." :image-input-type "dvi" :image-output-type "svg" :image-size-adjust (1.7 . .1) :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f") :image-converter ("dvisvgm %f -n -e -c %S -o %O")) (imagemagick :programs ("latex" "convert") :description "pdf > png" :message "you need to install the programs: latex and imagemagick." :image-input-type "pdf" :image-output-type "png" :image-size-adjust (1.0 . 1.0) :latex-compiler ("pdflatex -interaction nonstopmode -output-directory %o %f") :image-converter ("convert -density %D -trim -antialias %f -quality 100 %O")))) (org-toggle-inline-images) (org-preview-latex-fragment '(16)) #+end_src * Here is the file [[file:/tmp/Tft1st.png]] * Here it is from inside LaTeX, but that doesn't work properly $$\mathit{Hello} \includegraphics[width=2cm,natwidth=445,natheight=661]{/tmp/Tft1st.png}$$