[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug?] org-latex-table-caption-above has no effect
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [bug?] org-latex-table-caption-above has no effect |
Date: |
Tue, 23 Jul 2013 18:44:04 +0200 |
Hello,
James Harkins <address@hidden> writes:
> Not entirely sure if this is a bug or not, but it seems to be a regression.
>
> According to [1], the customization variable
> org-latex-table-caption-above was added to allow table captions to
> come underneath the table. I can't see any indication that the
> variable has been deprecated, but in my environment, it has no effect
> at all.
>
> I've set the variable to nil:
>
> org-latex-table-caption-above is a variable defined in `ox-latex.el'.
> Its value is nil
>
> However, when I use the following minimal example, the exported LaTeX code
> places the \caption{} before the tabular environment.
>
> ~~
> #+DATE: <2013-07-23 Tue>
> #+OPTIONS: texht:t
> #+LATEX_CLASS: article
>
> * Heading
> #+CAPTION: A table
> #+NAME: table1
> #+ATTR_LaTeX: :starred t :options [htb]
> #+BEGIN_table
> | Row 1 | Something |
> | Row 2 | Something else |
> #+END_table
This variable, as its name suggests, only applies to tables. You're
captioning a special block (begin_table) here. Therefore it is ignored.
Regards,
--
Nicolas Goaziou