emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Displaying SVG inline in org-mode
@ 2015-09-15 21:46 Eduardo Mercovich
  2015-09-15 21:59 ` Rasmus
  0 siblings, 1 reply; 3+ messages in thread
From: Eduardo Mercovich @ 2015-09-15 21:46 UTC (permalink / raw)
  To: emacs-orgmode

Dear all. 

Sorry if this is too simple, but I'm a newbie in the Emacs world. 

I have a few png inline images which are displayed fine in Org. 

OTOH I have some svg icons that are shown perfectly in their own
buffers, but when included inline -just like the pngs- are shown only as
a reference like "/home/edumerco/whatever.svg" instead of the
icon. iimage mode is on.

I searched the web but it seems I can't find the right keywords. Can
anyone point me to some references about how to show svg images inline?

Thank you very much... :)


-- 
eduardo mercovich 

 Donde se cruzan tus talentos 
 con las necesidades del mundo, 
 ahí está tu vocación. (Aristóteles)

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

* Re: Displaying SVG inline in org-mode
  2015-09-15 21:46 Displaying SVG inline in org-mode Eduardo Mercovich
@ 2015-09-15 21:59 ` Rasmus
  2015-09-16 13:20   ` Eduardo Mercovich
  0 siblings, 1 reply; 3+ messages in thread
From: Rasmus @ 2015-09-15 21:59 UTC (permalink / raw)
  To: emacs-orgmode

Hi Eduardo,

Eduardo Mercovich <eduardo@mercovich.net> writes:

> OTOH I have some svg icons that are shown perfectly in their own
> buffers, but when included inline -just like the pngs- are shown only as
> a reference like "/home/edumerco/whatever.svg" instead of the
> icon. iimage mode is on.

It works for me.

This is my test file


     [[file:/usr/share/icons/Adwaita/scalable/actions/action-unavailable-symbolic.svg]]

I then do M-x org-toggle-inline-images RET (AKA C-c C-x C-v).  It should
show.

iimage-mode seems to a general Emacs mode.  It also works for me, but the
display is like

     "file:THE-ICON"

Make sure that you have (0) imagemagick; (1) Emacs configured to support
imagemagick.  This sentence is pure speculation; IOW I have not checked
correctness of this last sentence.

Hope it helps,
Rasmus

-- 
Got mashed potatoes. Ain't got no T-Bone. No T-Bone

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

* Re: Displaying SVG inline in org-mode
  2015-09-15 21:59 ` Rasmus
@ 2015-09-16 13:20   ` Eduardo Mercovich
  0 siblings, 0 replies; 3+ messages in thread
From: Eduardo Mercovich @ 2015-09-16 13:20 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

Hi Rasmus.

>> [...] OTOH I have some svg icons that are shown perfectly in their
>> own buffers, but when included inline -just like the pngs- are shown
>> only as a reference like "/home/edumerco/whatever.svg" instead of the
>> icon. iimage mode is on.

> It works for me.
> This is my test file
>      [[file:/usr/share/icons/Adwaita/scalable/actions/action-unavailable-symbolic.svg]]
> I then do M-x org-toggle-inline-images RET (AKA C-c C-x C-v).  It should
> show.

It worked, thank you very much. :D
It wasn't inserted as a link, but as a direct reference. That worked for
pngs, but not with svg. 

In
https://www.gnu.org/software/emacs/manual/html_node/org/Handling-links.html
is the link to enable org-toggle-inline-images by default in a
file. I'll search how to do that emacs wide. 

Again, thank you very much. 
This community rocks. :)

Best...


-- 
eduardo mercovich 

 Donde se cruzan tus talentos 
 con las necesidades del mundo, 
 ahí está tu vocación. (Aristóteles)

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

end of thread, other threads:[~2015-09-16 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-15 21:46 Displaying SVG inline in org-mode Eduardo Mercovich
2015-09-15 21:59 ` Rasmus
2015-09-16 13:20   ` Eduardo Mercovich

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).