From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Persaud Subject: Re: using pdf as output of src-block doesn't show an inline image Date: Sun, 7 Feb 2016 18:27:13 -0800 Message-ID: <56B7FD01.6000903@lbl.gov> References: <56B58925.5050204@lbl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSbXx-0005cO-Rq for emacs-orgmode@gnu.org; Sun, 07 Feb 2016 21:27:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSbXr-0001Zc-SX for emacs-orgmode@gnu.org; Sun, 07 Feb 2016 21:27:25 -0500 Received: from fe4.lbl.gov ([128.3.41.71]:3661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSbXr-0001XS-MS for emacs-orgmode@gnu.org; Sun, 07 Feb 2016 21:27:19 -0500 Received: by mail-pa0-f49.google.com with SMTP id ho8so65869406pac.2 for ; Sun, 07 Feb 2016 18:27:16 -0800 (PST) In-Reply-To: <56B58925.5050204@lbl.gov> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Cc: John Kitchin Hi managed to get pdfs to display ;) Here is what I added in my .emacs file: (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)) (setq org-image-actual-width 600) This works for me, but I always need to run org-display-inline-images by hand after I changed something in my python code. That is, the images don't update automatically, which they did for pngs. Any idea why that is? Another question I have now, is if the above code messes up other modes, I guess there was/is a reason to inhibit pdfs with imagemagick. How do I make the above changes only apply to org-mode buffers? Arun