From: Uwe Brauer <oub@mat.ucm.es>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: Uwe Brauer <oub@mat.ucm.es>,
emacs-orgmode@gnu.org,
Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Subject: Re: org-latex-preview, pNiceArray (running latex twice)
Date: Wed, 14 Aug 2024 12:21:33 +0200 [thread overview]
Message-ID: <87plqbjtg2.fsf@mat.ucm.es> (raw)
In-Reply-To: 871q2rsa9e.fsf@localhost
[-- Attachment #1: Type: text/plain, Size: 3824 bytes --]
>>> "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.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5684 bytes --]
next prev parent reply other threads:[~2024-08-14 10:22 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-12 15:27 org-latex-preview, pNiceArray (running latex twice) Uwe Brauer via General discussions about Org-mode.
2024-08-13 19:35 ` Ihor Radchenko
2024-08-14 7:28 ` Uwe Brauer
2024-08-14 7:33 ` Ihor Radchenko
2024-08-14 7:56 ` Uwe Brauer
2024-08-14 7:59 ` Ihor Radchenko
2024-08-14 8:02 ` Uwe Brauer
2024-08-14 8:07 ` Ihor Radchenko
2024-08-14 9:32 ` Uwe Brauer
2024-08-14 9:51 ` Ihor Radchenko
2024-08-14 10:21 ` Uwe Brauer [this message]
2024-08-14 10:29 ` Ihor Radchenko
2024-08-14 10:54 ` Uwe Brauer
2024-08-15 17:01 ` [RFC] latex preview and pdflatex-only packages (was: org-latex-preview, pNiceArray (running latex twice)) Ihor Radchenko
2024-08-16 5:46 ` [RFC] latex preview and pdflatex-only packages Stefan Nobis
2024-08-16 6:30 ` Stefan Nobis
2024-08-18 12:01 ` Ihor Radchenko
2024-08-18 13:35 ` Juergen Fenn
2024-08-18 13:47 ` Ihor Radchenko
2024-08-18 14:12 ` Juergen Fenn
2024-08-18 14:31 ` Ihor Radchenko
2024-08-18 15:00 ` Juergen Fenn
2024-08-18 15:32 ` Juergen Fenn
2024-08-17 20:12 ` [RFC] latex preview and pdflatex-only packages (was: org-latex-preview, pNiceArray (running latex twice)) Karthik Chikmagalur
2024-08-18 12:29 ` Ihor Radchenko
2024-08-14 12:38 ` org-latex-preview, pNiceArray (running latex twice) Uwe Brauer
2024-08-14 16:21 ` Uwe Brauer via General discussions about Org-mode.
2024-08-17 20:08 ` Karthik Chikmagalur
2024-08-18 6:09 ` Uwe Brauer
2024-08-18 12:30 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87plqbjtg2.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-orgmode@gnu.org \
--cc=karthikchikmagalur@gmail.com \
--cc=yantar92@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.