emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* creating png images in emails with org-mode
@ 2020-09-16 10:03 Joseph Vidal-Rosset
  2020-09-16 11:37 ` Joseph Vidal-Rosset
  2020-09-17  4:57 ` Nick Dokos
  0 siblings, 2 replies; 7+ messages in thread
From: Joseph Vidal-Rosset @ 2020-09-16 10:03 UTC (permalink / raw)
  To: Liste-emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 436 bytes --]

Hello,

One more time, my setup to create png image via LaTeX in email in org-mode
is broken.

I get this error message:

Creating LaTeX preview...
org-compile-file: File "/tmp/orgtex2wp50c.png" wasn’t produced.  Please
adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’.

Your help is welcome, because I do not understand what I have to do, how I
have to "adjust" imagemagick.

Best wishes,

Jo.

[-- Attachment #2: Type: text/html, Size: 1243 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: creating png images in emails with org-mode
  2020-09-16 10:03 creating png images in emails with org-mode Joseph Vidal-Rosset
@ 2020-09-16 11:37 ` Joseph Vidal-Rosset
  2020-09-16 14:00   ` Eric S Fraga
  2020-09-17  4:57 ` Nick Dokos
  1 sibling, 1 reply; 7+ messages in thread
From: Joseph Vidal-Rosset @ 2020-09-16 11:37 UTC (permalink / raw)
  To: Liste-emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 776 bytes --]

Hello,

My problem has just been  solved with substituting dvipng for imagemagick:

(setq org-latex-create-formula-image-program 'dvipng)

; (setq org-latex-create-formula-image-program 'imagemagick)

Le mer. 16 sept. 2020 à 12:03, Joseph Vidal-Rosset <
joseph.vidal.rosset@gmail.com> a écrit :

> Hello,
>
> One more time, my setup to create png image via LaTeX in email in org-mode
> is broken.
>
> I get this error message:
>
> Creating LaTeX preview...
> org-compile-file: File "/tmp/orgtex2wp50c.png" wasn’t produced.  Please
> adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’.
>
> Your help is welcome, because I do not understand what I have to do, how I
> have to "adjust" imagemagick.
>
> Best wishes,
>
> Jo.
>

[-- Attachment #2: Type: text/html, Size: 2157 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: creating png images in emails with org-mode
  2020-09-16 11:37 ` Joseph Vidal-Rosset
@ 2020-09-16 14:00   ` Eric S Fraga
  0 siblings, 0 replies; 7+ messages in thread
From: Eric S Fraga @ 2020-09-16 14:00 UTC (permalink / raw)
  To: Joseph Vidal-Rosset; +Cc: Liste-emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

On Wednesday, 16 Sep 2020 at 13:37, Joseph Vidal-Rosset wrote:
> My problem has just been solved with substituting dvipng for imagemagick:

This may solve your problem but you really shouldn't be having that
problem in the first place?  I use imagemagick, not dvipng, and things
work fine for me, e.g.

$$ \frac{a}{b} $$

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-725-g7bc18e

[-- Attachment #2.1: Type: text/html, Size: 756 bytes --]

[-- Attachment #2.2: latexr3gJi9_5c1f0461c61efbab27202a4a8944b1e43a4ccc3d.png --]
[-- Type: image/png, Size: 412 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: creating png images in emails with org-mode
  2020-09-16 10:03 creating png images in emails with org-mode Joseph Vidal-Rosset
  2020-09-16 11:37 ` Joseph Vidal-Rosset
@ 2020-09-17  4:57 ` Nick Dokos
  2020-09-17 12:27   ` Eric S Fraga
  1 sibling, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2020-09-17  4:57 UTC (permalink / raw)
  To: emacs-orgmode

Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:

> Hello,
>
> One more time, my setup to create png image via LaTeX in email in org-mode is broken.
>
> I get this error message:
>
> Creating LaTeX preview...
> org-compile-file: File "/tmp/orgtex2wp50c.png" wasn’t produced.  Please adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’.
>
> Your help is welcome, because I do not understand what I have to do, how I have to "adjust" imagemagick.
>
> Best wishes,
>
> Jo.
>

Apparently, recent versions of ImageMagick (version 7 seems to be one)
on (perhaps) some distros ship with a
/etc/ImageMagick-<version>/policy.xml file that imposes restrictions
on what can be done. Here's an SE question with some information:

    https://emacs.stackexchange.com/questions/31408/error-message-when-previewing-latex-snippet-in-org-file
    
-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: creating png images in emails with org-mode
  2020-09-17  4:57 ` Nick Dokos
@ 2020-09-17 12:27   ` Eric S Fraga
  2020-09-18 14:08     ` Nick Dokos
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2020-09-17 12:27 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

On Thursday, 17 Sep 2020 at 00:57, Nick Dokos wrote:
> Apparently, recent versions of ImageMagick (version 7 seems to be one)
> on (perhaps) some distros ship with a
> /etc/ImageMagick-<version>/policy.xml file that imposes restrictions
> on what can be done. Here's an SE question with some information:

Thank you.  Interesting.

For the OP, it might be worth noting that the solution on the
StackExchange page you linked to refers to the generation of PDF files
from the LaTeX snippet; I would imagine that the fix noted will need to
be adjusted for PNG files but cannot verify as I'm still on ImageMagick
version 6 and don't have these issues.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-725-g7bc18e


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: creating png images in emails with org-mode
  2020-09-17 12:27   ` Eric S Fraga
@ 2020-09-18 14:08     ` Nick Dokos
  2020-09-18 14:48       ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2020-09-18 14:08 UTC (permalink / raw)
  To: emacs-orgmode

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> On Thursday, 17 Sep 2020 at 00:57, Nick Dokos wrote:
>> Apparently, recent versions of ImageMagick (version 7 seems to be one)
>> on (perhaps) some distros ship with a
>> /etc/ImageMagick-<version>/policy.xml file that imposes restrictions
>> on what can be done. Here's an SE question with some information:
>
> Thank you.  Interesting.
>
> For the OP, it might be worth noting that the solution on the
> StackExchange page you linked to refers to the generation of PDF files
> from the LaTeX snippet; I would imagine that the fix noted will need to
> be adjusted for PNG files but cannot verify as I'm still on ImageMagick
> version 6 and don't have these issues.

Actually, it refers to the generation of PNG files from PDF files using
`convert' (I think). The `imagemagick' process of LaTeX preview uses
`pdflatex'to go from TeX to PDF and `convert' to go from PDF to PNG.

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: creating png images in emails with org-mode
  2020-09-18 14:08     ` Nick Dokos
@ 2020-09-18 14:48       ` Eric S Fraga
  0 siblings, 0 replies; 7+ messages in thread
From: Eric S Fraga @ 2020-09-18 14:48 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

On Friday, 18 Sep 2020 at 10:08, Nick Dokos wrote:
> Actually, it refers to the generation of PNG files from PDF files using
> `convert' (I think). The `imagemagick' process of LaTeX preview uses
> `pdflatex'to go from TeX to PDF and `convert' to go from PDF to PNG.

Ah, yes, that makes sense!  Thank you.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-725-g7bc18e


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-18 15:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-16 10:03 creating png images in emails with org-mode Joseph Vidal-Rosset
2020-09-16 11:37 ` Joseph Vidal-Rosset
2020-09-16 14:00   ` Eric S Fraga
2020-09-17  4:57 ` Nick Dokos
2020-09-17 12:27   ` Eric S Fraga
2020-09-18 14:08     ` Nick Dokos
2020-09-18 14:48       ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).