Add `:caption' attribute to #+ATTR_LATEX property
commit7767f8eae1328530f624b04e625a4643dbe5d9b5
authorFeng Shu <tumashu@gmail.com>
Sat, 29 Jun 2013 15:04:03 +0000 (29 23:04 +0800)
committerNicolas Goaziou <n.goaziou@gmail.com>
Tue, 2 Jul 2013 17:01:15 +0000 (2 19:01 +0200)
treef8d9d9007a5ae2a237e3a87b240d241fb8f5929f
parent239aa7e7d424802d35ed761c03a23eaf4d64558f
Add `:caption' attribute to #+ATTR_LATEX property

* lisp/ox-latex.el (org-latex--caption/label-string): Add ability,
which can build a caption string from `:caption' attribute of #+ATTR_LATEX.
(org-latex--inline-image,org-latex--org-table): Tiny change.
* doc/org.texi (@LaTeX{} specific attributes): Document `:caption'
attribute of #+ATTR_LATEX.

This feature is very useful when you export org to latex with custom
caption command, for example:

\#+ATTR_LATEX: :caption \BiTableCaption{caption 1}{caption 2}
|---+---|
| x | y |
|---+---|
| 1 | 2 |
|---+---|
doc/org.texi
lisp/ox-latex.el