From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Caption and notes for images in latex export Date: Fri, 28 Sep 2012 14:15:25 +0200 Message-ID: <87txui738i.fsf@gmail.com> References: <20120928081607.GA21607@panahar> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THZXh-0001BZ-S6 for emacs-orgmode@gnu.org; Fri, 28 Sep 2012 08:19:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THZXc-0000WU-3B for emacs-orgmode@gnu.org; Fri, 28 Sep 2012 08:19:41 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:62752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THZXb-0000WI-Ta for emacs-orgmode@gnu.org; Fri, 28 Sep 2012 08:19:36 -0400 Received: by weyu3 with SMTP id u3so1480123wey.0 for ; Fri, 28 Sep 2012 05:19:34 -0700 (PDT) In-Reply-To: <20120928081607.GA21607@panahar> (Vikas Rawal's message of "Fri, 28 Sep 2012 13:46:07 +0530") 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 Hello, Vikas Rawal writes: > 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. Regards, -- Nicolas Goaziou