emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Caption and notes for images in latex export


From: Vikas Rawal
Subject: Re: [O] Caption and notes for images in latex export
Date: Sun, 30 Sep 2012 02:16:34 +0530
User-agent: Mutt/1.5.21 (2010-09-15)

> > 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]