From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Why does export of images to LaTeX requires either org-special-blocks or org-jsinfo? Date: Wed, 21 Nov 2012 14:40:34 +0100 Message-ID: <20121121134034.GA31515@kuru.dyndns-at-home.com> References: <87ip8zbb5o.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbAXl-0000bP-QT for emacs-orgmode@gnu.org; Wed, 21 Nov 2012 08:40:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbAXf-0006Wk-Sv for emacs-orgmode@gnu.org; Wed, 21 Nov 2012 08:40:45 -0500 Received: from mail-ea0-f169.google.com ([209.85.215.169]:64130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbAXf-0006We-L9 for emacs-orgmode@gnu.org; Wed, 21 Nov 2012 08:40:39 -0500 Received: by mail-ea0-f169.google.com with SMTP id a12so2371946eaa.0 for ; Wed, 21 Nov 2012 05:40:38 -0800 (PST) Content-Disposition: inline In-Reply-To: <87ip8zbb5o.fsf@somewhere.org> 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@gnu.org On Wed, Nov 21, 2012 at 09:41:39AM +0100, Francesco Pizzolante wrote: > Hi, > > I have noticed that the correct export of images in LaTeX requires one of > these 2 packages: org-special-blocks or org-jsinfo. > > While I cannot see any relation between these packages and the export of > images in LaTeX, if none of these 2 packages is loaded then images are > exported as \href instead of \includegraphics, in other words, as links > instead of images. > > Here's the code I used to check this: > > ╭──── > │ (setq org-modules nil) > │ ;;(require 'org-special-blocks) > │ ;;(require 'org-jsinfo) > ╰──── > > Please let me know if you have any explanation to this behaviour. > Those modules are optional. How do you write your links in the org file? To be included in LaTeX export with includegraphics, the description part of the link should be empty. e.g. [[/path/to/image]] This creates an inline image in the final pdf. You can add a caption by adding a caption line like this: #+CAPTION: Some caption If you add a caption, then the image is enclosed in a floating environment (figure in this case). For details see the manual: (info "(org) Images in LaTeX export") HTH -- Suvayu Open source is the future. It sets us free.