emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Julian M. Burgos" <julian.burgos@hafogvatn.is>
To: "Doyley, Marvin M." <m.doyley@rochester.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	Norwid Behrnd <nbehrnd@yahoo.com>
Subject: Re: Viewing pdf images
Date: Tue, 21 Mar 2017 10:34:37 +0000	[thread overview]
Message-ID: <xgzh92mlxz6.fsf@hafogvatn.is> (raw)
In-Reply-To: <B86B5AAE-7BFA-4B7D-80DD-455E77C4D9DD@ur.rochester.edu>

I have the following in my .emacs file.  For this to work you need to
have your emacs compiled with imagemagick support (and have imagemagick
installed, of course).  It works well, although the images do not appear
immediately the first time you toggle them because the conversion takes
a little bit.

#+BEGIN_SRC emacs-lisp

(setq image-file-name-extensions
   (quote
    ("png" "jpeg" "jpg" "gif" "tiff" "tif" "xbm" "xpm" "pbm" "pgm" "ppm" "pnm" "svg" "pdf" "bmp" "eps")))
(add-to-list 'image-type-file-name-regexps '("\\.eps\\'" . imagemagick))
(add-to-list 'image-file-name-extensions "eps")
(add-to-list 'image-type-file-name-regexps '("\\.pdf\\'" . imagemagick))
(add-to-list 'image-file-name-extensions "pdf")
(setq imagemagick-types-inhibit (remove 'PDF imagemagick-types-inhibit))

#+END_SRC




Doyley, Marvin M. writes:

> Doesn’t work. Emacs just Hangs :(
>> On Mar 17, 2017, at 8:43 AM, Norwid Behrnd <nbehrnd@yahoo.com> wrote:
>>
>>
>> To include and display pdf files, perhaps the setup outlined here is
>> still working (dates back 2014...)
>>
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__emacs.stackexchange.com_questions_390_display-2Dpdf-2Dimages-2Din-2Dorg-2Dmode&d=DwIC-g&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=s3_3riAscdqtNAzgOuwYB9g0dZVGcp8BNCy_RylYdxU&m=cQ2XAFEKpHWcRH33Hvyanl-V2rE3v-7glys69pwm8CY&s=rmvwv-l1KvLkkUN0iG1d7bT6-MNbzQOFpz5U4-fLPt0&e=
>>
>> Cheers.
>>
>>
>>
>> On 03/17/2017 01:27 PM, Doyley, Marvin M. wrote:
>>> Hi there,
>>>
>>> For manuscripts, my research group and I typically save images in pdf
>>> format, much better resolution. It would be nice to view pdf  images
>>> when working in org-mode. Does anybody know how to view pdf images in
>>> org-mode.
>>>
>>> Thanks, M
>>>
>>> PS We also work with svg images too, that would also love to view in
>>> org-mode
>>>


--
Julian Mariano Burgos, PhD
Hafrannsóknastofnun, rannsókna- og ráðgjafarstofnun hafs og vatna/
Marine and Freshwater Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: julian.burgos@hafogvatn.is

  reply	other threads:[~2017-03-21 10:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-17 12:27 Viewing pdf images Doyley, Marvin M.
     [not found] ` <52f1d2ee-b964-39ac-3c96-674ad7b6137e@yahoo.com>
2017-03-17 13:48   ` Doyley, Marvin M.
2017-03-21 10:34     ` Julian M. Burgos [this message]
2017-03-22  0:22       ` Doyley, Marvin M.
2017-04-05  3:22         ` Kaushal Modi
2017-04-05  9:21           ` Julian M. Burgos
2017-04-05 11:52             ` Kaushal Modi
2017-04-05 15:23               ` Kaushal Modi
2017-04-06 15:02               ` Julian M. Burgos
2017-04-09 22:06 ` Eduardo Mercovich
2017-04-10  0:00   ` Doyley, Marvin M.
2017-04-10 16:51     ` Eduardo Mercovich
2017-04-12 13:05       ` Doyley, Marvin M.
     [not found]     ` <c8efd5b805e447aba02e063b2f4b5327@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-04-10 17:06       ` Eric S Fraga

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xgzh92mlxz6.fsf@hafogvatn.is \
    --to=julian.burgos@hafogvatn.is \
    --cc=emacs-orgmode@gnu.org \
    --cc=m.doyley@rochester.edu \
    --cc=nbehrnd@yahoo.com \
    /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 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).