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? Also, I would like to add "Notes" and "Source" below the image. What is the right way of doing that? Vikas
Hi Vikas, Vikas Rawal <vikaslists@agrarianresearch.org> 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? Well, you can't at the moment. > Also, I would like to add "Notes" and "Source" below the > image. What is the right way of doing that? To use #+CAPTION :) -- Bastien
Hello, Vikas Rawal <vikaslists@agrarianresearch.org> 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
> > 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