From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Viewing pdf images Date: Wed, 05 Apr 2017 03:22:03 +0000 Message-ID: References: <52f1d2ee-b964-39ac-3c96-674ad7b6137e@yahoo.com> <23B01130-8A78-4B5F-A1EE-392FDADF33F7@ur.rochester.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fa814180fb6054c62e6a6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvbWU-0005QV-82 for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 23:22:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvbWS-000215-Jf for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 23:22:18 -0400 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:35435) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvbWS-00020Y-7H for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 23:22:16 -0400 Received: by mail-lf0-x22d.google.com with SMTP id j90so458819lfk.2 for ; Tue, 04 Apr 2017 20:22:15 -0700 (PDT) In-Reply-To: <23B01130-8A78-4B5F-A1EE-392FDADF33F7@ur.rochester.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Doyley, Marvin M." , "Julian M. Burgos" Cc: "emacs-orgmode@gnu.org" --001a113fa814180fb6054c62e6a6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In case you are interested, I have now updated the solution on emacs.stackexchange to not use #+HEADER for this purpose: http://emacs.stackexchange.com/a/401/115 Earlier discussion on that: http://lists.gnu.org/archive/html/emacs-orgmode/2017-01/msg00260.html The solution still does the exact same thing as before. On Tue, Mar 21, 2017 at 8:37 PM Doyley, Marvin M. wrote: > Thanks, > > Much appreciated. > > Cheers, > M > > On Mar 21, 2017, at 6:34 AM, Julian M. Burgos < > julian.burgos@hafogvatn.is> wrote: > > > > 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 appea= r > > 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=E2=80=99t work. Emacs just Hangs :( > >>> On Mar 17, 2017, at 8:43 AM, Norwid Behrnd 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=3Dhttp-3A__emacs.stackexchange= .com_questions_390_display-2Dpdf-2Dimages-2Din-2Dorg-2Dmode&d=3DDwIC-g&c=3D= kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=3Ds3_3riAscdqtNAzgOuwYB9g0dZV= Gcp8BNCy_RylYdxU&m=3DcQ2XAFEKpHWcRH33Hvyanl-V2rE3v-7glys69pwm8CY&s=3Drmvwv-= l1KvLkkUN0iG1d7bT6-MNbzQOFpz5U4-fLPt0&e=3D > >>> > >>> 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 pd= f > >>>> 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 i= n > >>>> 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=C3=B3knastofnun, ranns=C3=B3kna- og r=C3=A1=C3=B0gjafarstofnun= hafs og vatna/ > > Marine and Freshwater Research Institute > > Sk=C3=BAlagata 4, 121 Reykjav=C3=ADk, Iceland > > S=C3=ADmi/Telephone : +354-5752037 <+354%20575%202037> > > Br=C3=A9fs=C3=ADmi/Telefax: +354-5752001 <+354%20575%202001> > > Netfang/Email: julian.burgos@hafogvatn.is > > -- Kaushal Modi --001a113fa814180fb6054c62e6a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In case you are interested, I have now updated the solutio= n on emacs.stackexchange to not use #+HEADER for this purpose:=C2=A0http://emacs.stackexchange.co= m/a/401/115

Earlier discussion on that:=C2=A0= http://lists.gnu.org/archive/html/emacs-orgmode/2017-01/msg00260.html

The solution still does the exact same thing as bef= ore.

On Tue, Mar 21, 201= 7 at 8:37 PM Doyley, Marvin M. <m.doyley@rochester.edu> wrote:
Thanks,

Much appreciated.

Cheers,
M
> On Mar 21, 2017, at 6:34 AM, Julian M. Burgos <julian.burg= os@hafogvatn.is> wrote:
>
> I have the following in my .emacs file.=C2=A0 For this to work you nee= d to
> have your emacs compiled with imagemagick support (and have imagemagic= k
> installed, of course).=C2=A0 It works well, although the images do not= appear
> immediately the first time you toggle them because the conversion take= s
> a little bit.
>
> #+BEGIN_SRC emacs-lisp
>
> (setq image-file-name-extensions
>=C2=A0 =C2=A0(quote
>=C2=A0 =C2=A0 ("png" "jpeg" "jpg" "g= if" "tiff" "tif" "xbm" "xpm" &= quot;pbm" "pgm" "ppm" "pnm" "svg&qu= ot; "pdf" "bmp" "eps")))
> (add-to-list 'image-type-file-name-regexps '("\\.eps\\= 9;" . imagemagick))
> (add-to-list 'image-file-name-extensions "eps")
> (add-to-list 'image-type-file-name-regexps '("\\.pdf\\= 9;" . imagemagick))
> (add-to-list 'image-file-name-extensions "pdf")
> (setq imagemagick-types-inhibit (remove 'PDF imagemagick-types-inh= ibit))
>
> #+END_SRC
>
>
>
>
> Doyley, Marvin M. writes:
>
>> Doesn=E2=80=99t work. Emacs just Hangs :(
>>> On Mar 17, 2017, at 8:43 AM, Norwid Behrnd <nbehrnd@yahoo.c= om> wrote:
>>>
>>>
>>> To include and display pdf files, perhaps the setup outlined h= ere is
>>> still working (dates back 2014...)
>>>
>>> htt= ps://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__emacs.stackexchange.com_= questions_390_display-2Dpdf-2Dimages-2Din-2Dorg-2Dmode&d=3DDwIC-g&c= =3Dkbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=3Ds3_3riAscdqtNAzgOuwY= B9g0dZVGcp8BNCy_RylYdxU&m=3DcQ2XAFEKpHWcRH33Hvyanl-V2rE3v-7glys69pwm8CY= &s=3Drmvwv-l1KvLkkUN0iG1d7bT6-MNbzQOFpz5U4-fLPt0&e=3D
>>>
>>> Cheers.
>>>
>>>
>>>
>>> On 03/17/2017 01:27 PM, Doyley, Marvin M. wrote:
>>>> Hi there,
>>>>
>>>> For manuscripts, my research group and I typically save im= ages in pdf
>>>> format, much better resolution. It would be nice to view p= df=C2=A0 images
>>>> when working in org-mode. Does anybody know how to view pd= f 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=C3=B3knastofnun, ranns=C3=B3kna- og r=C3=A1=C3=B0gjafarstofnu= n hafs og vatna/
> Marine and Freshwater Research Institute
> Sk=C3=BAlagata 4, 121 Reykjav=C3=ADk, Iceland
> S=C3=ADmi/Telephone : +354-5752037
> Br=C3=A9fs=C3=ADmi/Telefax:=C2=A0 +354-5752001<= br class=3D"gmail_msg"> > Netfang/Email: julian.burgos@hafogvatn.is

--

Kaushal Modi

--001a113fa814180fb6054c62e6a6--