[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 18:21:27 +0200 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> Uwe Brauer <oub@mat.ucm.es> writes:
> This is expected.
> 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.
I managed to do this
--8<---------------cut here---------------start------------->8---
org-preview-latex-default-process is a variable defined in ‘org.el’.
Its value is ‘imagemagick’
--8<---------------cut here---------------end--------------->8---
--8<---------------cut here---------------start------------->8---
org-preview-latex-process-alist
(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
("latexmk -f -pdf -interaction nonstopmode -output-directory %o
%f")
:image-converter
("convert -density %D -trim -antialias %f -quality 100 %O")))
--8<---------------cut here---------------end--------------->8---
But:
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "File \"/tmp/orgtexkNp9XC.pdf\" wasn’t
produced. Please adjust ‘imagemagick’ part of
‘org-preview-latex-process-alist’.")
signal(error ("File \"/tmp/orgtexkNp9XC.pdf\" wasn’t produced. Please adjust
‘imagemagick’ part of ‘org-preview-latex-process-alist’."))
error("File \"/tmp/orgtexkNp9XC.pdf\" wasn't produced. Please adjust
`imagemagick' part of `org-preview-latex-process-alist'.")
org-compile-file("/tmp/orgtexkNp9XC.tex" ("latexmk -f -pdf -interaction
nonstopmode -output-directory %o %f") "pdf" "Please adjust `imagemagick' part
of `org-preview-latex-process-alist'." #<buffer *Org Preview LaTeX Output*>)
org-create-formula-image("\\begin{equation*}\n A^{0}=\n
\\begin{pNiceArray}{C|CCC}[margin]\n -m^{00}& 0 & 0 & 0\\\\\n \\hline\n
..." "/home/oub/ALLES/HGs/HG-Org/BUGS/ltximg/org-ltximg_..." (:foreground
"black" :background "grey98" :scale 1.5 :html-foreground "Black"
:html-background "Transparent" :html-scale 1 :matchers ("begin" "$1" "$" "$$"
"\\(" "\\[")) forbuffer imagemagick)
org-format-latex("ltximg/org-ltximg" 1 404 "/home/oub/ALLES/HGs/HG-Org/BUGS/"
overlays nil forbuffer imagemagick)
org--latex-preview-region(1 404)
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---
I am puzzled.
--
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.
- Re: [RFC] latex preview and pdflatex-only packages, (continued)
- 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
- Re: [RFC] latex preview and pdflatex-only packages, Juergen Fenn, 2024/08/18
- Re: [RFC] latex preview and pdflatex-only packages, Juergen Fenn, 2024/08/18
- Re: [RFC] latex preview and pdflatex-only packages (was: org-latex-preview, pNiceArray (running latex twice)), Karthik Chikmagalur, 2024/08/17
- Re: [RFC] latex preview and pdflatex-only packages (was: org-latex-preview, pNiceArray (running latex twice)), Ihor Radchenko, 2024/08/18
- Re: org-latex-preview, pNiceArray (running latex twice), Uwe Brauer, 2024/08/14
- Re: org-latex-preview, pNiceArray (running latex twice),
Uwe Brauer <=
Re: org-latex-preview, pNiceArray (running latex twice), Karthik Chikmagalur, 2024/08/17