From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: Caption and notes for images in latex export Date: Sun, 30 Sep 2012 02:16:34 +0530 Message-ID: <20120929204634.GA32699@panahar> References: <20120928081607.GA21607@panahar> <87txui738i.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI3yl-0008BD-BZ for emacs-orgmode@gnu.org; Sat, 29 Sep 2012 16:49:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TI3yk-0007v2-Bu for emacs-orgmode@gnu.org; Sat, 29 Sep 2012 16:49:39 -0400 Received: from mail-da0-f41.google.com ([209.85.210.41]:45428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI3yk-0007tl-5O for emacs-orgmode@gnu.org; Sat, 29 Sep 2012 16:49:38 -0400 Received: by dadi14 with SMTP id i14so1098958dad.0 for ; Sat, 29 Sep 2012 13:49:36 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87txui738i.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode > > By default, orgmode export to latex puts captions of images below the > > images. How to change the behaviour and make the captions appear at > > the top? > > You can use filters: > > #+begin_src emacs-lisp > (defun my-latex-captions-above (link backend info) > (when (and (memq backend '(e-latex e-beamer)) > (string-match > "\\(^\\\\centering\n\\\\includegraphics.*\n\\)\\(\\\\caption.*\n\\)" > link)) > (replace-match "\\2\\1" nil nil link))) > > (add-to-list 'org-export-filter-link-functions 'my-latex-captions-above) > #+end_src > > > Also, I would like to add "Notes" and "Source" below the > > image. What is the right way of doing that? > > You can use the same filter. This is left as an exercise. > Thanks for responses. I am not sure if I should, at the moment, allow myself to get distracted into experimenting with the org-mode code. I am going to let it be, and leave it for later. Thanks again, Vikas