From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug?] org-latex-table-caption-above has no effect Date: Tue, 23 Jul 2013 18:44:04 +0200 Message-ID: <87fvv5kyzv.fsf@gmail.com> References: <87y58xgthl.wl%jamshark70@dewdrop-world.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1fgm-0005Br-TX for emacs-orgmode@gnu.org; Tue, 23 Jul 2013 12:43:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1fgm-0006GD-12 for emacs-orgmode@gnu.org; Tue, 23 Jul 2013 12:43:52 -0400 Received: from mail-we0-x231.google.com ([2a00:1450:400c:c03::231]:36860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1fgl-0006G3-R1 for emacs-orgmode@gnu.org; Tue, 23 Jul 2013 12:43:51 -0400 Received: by mail-we0-f177.google.com with SMTP id m46so626409wev.22 for ; Tue, 23 Jul 2013 09:43:50 -0700 (PDT) In-Reply-To: <87y58xgthl.wl%jamshark70@dewdrop-world.net> (James Harkins's message of "Tue, 23 Jul 2013 11:56:38 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: James Harkins Cc: orgmode Hello, James Harkins 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