From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Julian M. Burgos" Subject: Re: Viewing pdf images Date: Wed, 05 Apr 2017 09:21:06 +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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvh7y-0002Pq-FB for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 05:21:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvh7u-0001xF-1i for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 05:21:22 -0400 Received: from hafgarpur.hafro.is ([130.208.64.48]:37295) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cvh7t-0001uA-MB for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 05:21:17 -0400 In-reply-to: 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: Kaushal Modi Cc: "emacs-orgmode@gnu.org" , "Doyley, Marvin M." Can you clarify the purpose of this function? I understand that produces an image of each pdf linked to the file. But the question in emacs.stackexchange was about displaying pdf's as inline images. Your function only converts the pdfs into images (and you have to do an export to achieve that). You would still would have to add a link to the image file in order to see it as an inline image. add a link in order to see it, correct? Kaushal Modi writes: > 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 t= o >> > have your emacs compiled with imagemagick support (and have imagemag= ick >> > installed, of course). It works well, although the images do not ap= pear >> > immediately the first time you toggle them because the conversion ta= kes >> > a little bit. >> > >> > #+BEGIN_SRC emacs-lisp >> > >> > (setq image-file-name-extensions >> > (quote >> > ("png" "jpeg" "jpg" "gif" "tiff" "tif" "xbm" "xpm" "pbm" "pgm" "p= pm" >> "pnm" "svg" "pdf" "bmp" "eps"))) >> > (add-to-list 'image-type-file-name-regexps '("\\.eps\\'" . imagemagi= ck)) >> > (add-to-list 'image-file-name-extensions "eps") >> > (add-to-list 'image-type-file-name-regexps '("\\.pdf\\'" . imagemagi= ck)) >> > (add-to-list 'image-file-name-extensions "pdf") >> > (setq imagemagick-types-inhibit (remove 'PDF imagemagick-types-inhib= it)) >> > >> > #+END_SRC >> > >> > >> > >> > >> > Doyley, Marvin M. writes: >> > >> >> Doesn=E2=80=99t work. Emacs just Hangs :( >> >>> On Mar 17, 2017, at 8:43 AM, Norwid Behrnd wro= te: >> >>> >> >>> >> >>> 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.stackexcha= nge.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 images in= pdf >> >>>> format, much better resolution. It would be nice to view pdf ima= ges >> >>>> when working in org-mode. Does anybody know how to view pdf image= s 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=B0gjafarstof= nun 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 -- Julian Mariano Burgos, PhD Hafranns=C3=B3knastofnun, ranns=C3=B3kna- og r=C3=A1=C3=B0gjafarstofnun h= afs 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: +354-5752001 Netfang/Email: julian.burgos@hafogvatn.is