emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Julian M. Burgos" <julian.burgos@hafogvatn.is>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	"Doyley, Marvin M." <m.doyley@rochester.edu>
Subject: Re: Viewing pdf images
Date: Wed, 05 Apr 2017 09:21:06 +0000	[thread overview]
Message-ID: <xgz1st75hx9.fsf@hafogvatn.is> (raw)
In-Reply-To: <CAFyQvY2VKEusORtNC7WW-Eb5t66=tdxN+OTJHcMoFZNEZyLcVQ@mail.gmail.com>

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. <m.doyley@rochester.edu>
> 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 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 <+354%20575%202037>
>> > Bréfsími/Telefax:  +354-5752001 <+354%20575%202001>
>> > Netfang/Email: julian.burgos@hafogvatn.is
>>
>> --
>
> Kaushal Modi


--
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-04-05  9:21 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
2017-03-22  0:22       ` Doyley, Marvin M.
2017-04-05  3:22         ` Kaushal Modi
2017-04-05  9:21           ` Julian M. Burgos [this message]
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=xgz1st75hx9.fsf@hafogvatn.is \
    --to=julian.burgos@hafogvatn.is \
    --cc=emacs-orgmode@gnu.org \
    --cc=kaushal.modi@gmail.com \
    --cc=m.doyley@rochester.edu \
    /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).