[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-latex-preview, pNiceArray (running latex twice)
From: |
Uwe Brauer |
Subject: |
Re: org-latex-preview, pNiceArray (running latex twice) |
Date: |
Wed, 14 Aug 2024 12:21:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>>> "IR" == Ihor Radchenko <yantar92@posteo.net> writes:
> Uwe Brauer <oub@mat.ucm.es> writes:
>>> You originally provided a latex file example:
>>
>>
>>> You can try running latexmk command with the above parameters on that
>>> file and see if the results make sense.
>> Ok, it still does not work.
>>
>> It seems that its really necessary to use either
>>
>> 1. pdflatex not latex, and to run it twice
>>
>> 2. Or xelatex not latex and to run it twice
> No, it should not be necessary. latexmk's job is exactly running
> latex/pdflatex/xelatex/etc the number of times necessary.
>> so latexmk -f -pdf seems to be not the same as pdflatex/xelatex
> I just tried
> latexmk -f -pdf text.tex
Confirmed.
So I changed the setting of org-preview-latex-process-alist
To
((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"))
(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.5)
:latex-compiler
("latex -interaction nonstopmode -output-directory %o %f")
:image-converter
("dvisvgm %f --no-fonts --exact-bbox --scale=%S --output=%O"))
(imagemagick :programs
("latexmk" "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")))
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*>)
org-create-formula-image("\\begin{equation*}\n A^{0}=\n
\\begin{pNiceArray}{C|..."
"/home/oub/ALLES/HGs/Karp/Pub/Preprints/Full-Euler-..." (:foreground "black"
:background "grey98" :scale 1.5 :html-foreground "Black" :html-background
"Transparent" :html-scale 1 :matchers ("begin" "$1" "$" "$$" "\\(" "\\["))
forbuffer dvipng)
org-format-latex("ltximg/org-ltximg" 106 510
"/home/oub/ALLES/HGs/Karp/Pub/Preprints/Full-Euler-..." overlays nil forbuffer
dvipng)
org--latex-preview-region(106 510)
org-latex-preview(nil)
funcall-interactively(org-latex-preview nil)
call-interactively(org-latex-preview nil nil)
command-execute(org-latex-preview)
--8<---------------cut here---------------end--------------->8---
> And it worked.
--
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military.
I support the EU and NATO membership of Ukraine.
smime.p7s
Description: S/MIME cryptographic signature
- org-latex-preview, pNiceArray (running latex twice), Uwe Brauer, 2024/08/12
- Re: org-latex-preview, pNiceArray (running latex twice), Ihor Radchenko, 2024/08/13
- Re: org-latex-preview, pNiceArray (running latex twice), Uwe Brauer, 2024/08/14
- Re: org-latex-preview, pNiceArray (running latex twice), Ihor Radchenko, 2024/08/14
- Re: org-latex-preview, pNiceArray (running latex twice), Uwe Brauer, 2024/08/14
- Re: org-latex-preview, pNiceArray (running latex twice), Ihor Radchenko, 2024/08/14
- Re: org-latex-preview, pNiceArray (running latex twice), Uwe Brauer, 2024/08/14
- Re: org-latex-preview, pNiceArray (running latex twice), Ihor Radchenko, 2024/08/14
- Re: org-latex-preview, pNiceArray (running latex twice), Uwe Brauer, 2024/08/14
- Re: org-latex-preview, pNiceArray (running latex twice), Ihor Radchenko, 2024/08/14
- Re: org-latex-preview, pNiceArray (running latex twice),
Uwe Brauer <=
- Re: org-latex-preview, pNiceArray (running latex twice), Ihor Radchenko, 2024/08/14
- Re: org-latex-preview, pNiceArray (running latex twice), Uwe Brauer, 2024/08/14
- [RFC] latex preview and pdflatex-only packages (was: org-latex-preview, pNiceArray (running latex twice)), Ihor Radchenko, 2024/08/15
- Re: [RFC] latex preview and pdflatex-only packages, Stefan Nobis, 2024/08/16
- Re: [RFC] latex preview and pdflatex-only packages, Stefan Nobis, 2024/08/16
- Re: [RFC] latex preview and pdflatex-only packages, Ihor Radchenko, 2024/08/18
- Re: [RFC] latex preview and pdflatex-only packages, Juergen Fenn, 2024/08/18
- Re: [RFC] latex preview and pdflatex-only packages, Ihor Radchenko, 2024/08/18
- Re: [RFC] latex preview and pdflatex-only packages, Juergen Fenn, 2024/08/18
- Re: [RFC] latex preview and pdflatex-only packages, Ihor Radchenko, 2024/08/18