I am a brand new emacs user and I want to be able to view snippets of LaTeX in my .org file.
My OS is Ubuntu 16.04, I have installed texlive-full, and I have installed AucTex and org using the Emacs package manager.
I have been trying to follow the first example in this guide:
I have put in my .emacs
file the single line
(setq org-latex-create-formula-image-program 'imagemagick)
I have the imagemagick package installed in Ubuntu.
Yet when I try to see the first example by pressing C-c C-x C-l
, I get this error message:
org-compile-file: File "/tmp/orgtex32228nYH.pdf" wasn't produced. Please adjust 'imagemagick' part of `org-preview-latex-process-alist'.
When I press C-h v
I can inspect the variable, but I have no idea what to change...
Looking in /tmp
there is no corresponding .log
file, only a .tex
file, which doesn't reveal any error.
Can anybody please help me?
org-latex-create-formula-image-program
is an alias toorg-preview-latex-default-process
, so it's going to work either way, but the new name is preferred, since it has a better chance of being valid in the future). If you forget about org for a moment and just cut and paste the example TeX program from the guide into a file on your system, and then try to process it as described in the guide, do you get any errors?org-create-formula-image
andorg-compile-file
shows the log-text of the programs for processing the preview images goes to the buffer*Org Preview LaTeX Output*
. Pityingly the used functionshell-command
erases the output buffer before it prints the new output of the shell command. That means that you will only see the output of the last command. You could collect the output of all commands in a new buffer using an after-advice oforg-compile-file
.