emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-latex-preview, pNiceArray (running latex twice)


From: Ihor Radchenko
Subject: Re: org-latex-preview, pNiceArray (running latex twice)
Date: Wed, 14 Aug 2024 10:29:36 +0000

Uwe Brauer <oub@mat.ucm.es> writes:

>    > I just tried
>
>    > latexmk -f -pdf text.tex
>
> Confirmed.
>
> So I changed the setting of org-preview-latex-process-alist
> ....
> But now I receive
>
>
> --8<---------------cut here---------------start------------->8---
> Debugger entered--Lisp error: (error "File \"/tmp/orgtex68AmTu.dvi\" wasn’t 
> produced.  Ple...")
>   signal(error ("File \"/tmp/orgtex68AmTu.dvi\" wasn’t produced.  Ple..."))
>   error("File \"/tmp/orgtex68AmTu.dvi\" wasn't produced.  Ple...")
>   org-compile-file("/tmp/orgtex68AmTu.tex" ("latexmk  -f -pdf 
> -output-directory=%o %f") "dvi" "Please adjust `dvipng' part of 
> `org-preview-latex-..." #<buffer *Org Preview LaTeX Output*>)

This is expected.

> ((dvipng :programs
>          ("latexmk" "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
>          ("latexmk  -f -pdf -output-directory=%o %f")
>          :image-converter
>          ("dvipng -D %D -T tight -o %O %f")
>          :transparent-image-converter
>          ("dvipng -D %D -T tight -bg Transparent -o %O %f"))

dvipng previews expect .dvi files, not .pdf. You must use

("latexmk  -f -latex -output-directory=%o %f")

Except that latex does not produce the desired result, which indicates
that you are using some very strange package that is not compatible with
latex.

I can only suggest using "imagemagick" process to use pdf -> png
conversion, but truly that should be a bug in the latex package.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]