emacs-devel
[Top][All Lists]
Advanced

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

Re: SVG with embedded png


From: Joe Corneli
Subject: Re: SVG with embedded png
Date: Tue, 18 May 2021 15:24:31 +0100

Joost Kremers writes:

> If I manually change the link to a relative one on my computer, Emacs (27.2)
> shows the linked png just fine (provided the png image is in the directory
> pointed to, of course). Why your Emacs isn't able to find the png, I don't 
> know.
> Perhaps you moved it in between viewing the svg in Firefox and Emacs?

OP here, apologies: I neglected to make the link in my demo code easily
transferrable for testing!  I’ve streamlined the reproduction case.

Please try this:

$ emacs -Q demo.org

...where the org file is the one that’s attached, and the PNG file
Tft1st.png is saved in the /tmp directory:

$ ls -lt /tmp/Tft1st.png
-rw-rw-r-- 1 joe joe 391204 May 18 15:00 /tmp/Tft1st.png

Lastly, evaluate the Org block with C-c C-c.

Attachment: demo.org
Description: Text Data

Attachment: Tft1st.png
Description: PNG image


I’ve attached a screenshot of what I see when I do this.  I noticed that

(setq org-preview-latex-default-process 'dvisvgm)

seems to be crucial for reproducing the problem.  If the variable is set
to use dvipng, then the picture does shows up as expected (but as inline
PNG format, not SVG).

(setq org-preview-latex-default-process 'dvipng)

Attachment: Screenshot from 2021-05-18 15-18-59.png
Description: PNG image


-- 
Dr Joseph A. Corneli (https://github.com/holtzermann17)

HYPERREAL ENTERPRISES LTD is a private company limited by shares, incorporated
25th, June 2019 as Company Number 634284 on the Register of Companies for
Scotland (https://beta.companieshouse.gov.uk/company/SC634284).

reply via email to

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