Org-preview-latex-fragment command in emacs org-mode

5 there is a command called org-preview-latex-fragment in org-mode . its default binding key is Cc Cx Cl . The organization’s manual says that this team can preview an inline latex fragment. but after using it, nothing happens, but there are empty frames (I can’t upload images, sorry).

What happened? I am using emacs23.1 on Ubuntu10.10, the org-mode version is 6.21b, and I installed dvipng version 1.13-1.

I tried to trace the code but got lost. How can i fix this?

+4
source share
2 answers

The easiest way to debug is to try to compile a temporary file created to create the fragment. It is usually located in / tmp and contains "org" in the file name. You can find the posts.

+4
source

I solve the problem by changing the program to convert the latex fragment from dvipng to imagemagik . I think something is missing on my computer.

 \Mx customize-variable RET org-latex-create-formula-image-program \RET 

Update:

you can increase the size of the preview by doing

 \Mx customize-variable RET Org Format Latex Options RET 

Update 2

I had some problem with imagemagick . Look at and go back to dvipng after following the instructions in the doc . So both work with correlation.

+1
source

Source: https://habr.com/ru/post/1341922/


All Articles