[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Caption and notes for images in latex export
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Caption and notes for images in latex export |
Date: |
Fri, 28 Sep 2012 14:15:25 +0200 |
Hello,
Vikas Rawal <address@hidden> 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