Hello,

Vikas Rawal <vikasli...@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

Reply via email to