From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: [bug?] org-latex-table-caption-above has no effect Date: Tue, 23 Jul 2013 11:56:38 -0400 Message-ID: <87y58xgthl.wl%jamshark70@dewdrop-world.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1exB-0008Gi-JS for emacs-orgmode@gnu.org; Tue, 23 Jul 2013 11:56:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1exA-0004W3-6m for emacs-orgmode@gnu.org; Tue, 23 Jul 2013 11:56:45 -0400 Received: from mail-qe0-x230.google.com ([2607:f8b0:400d:c02::230]:58151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1exA-0004Vu-3O for emacs-orgmode@gnu.org; Tue, 23 Jul 2013 11:56:44 -0400 Received: by mail-qe0-f48.google.com with SMTP id 2so4585722qea.35 for ; Tue, 23 Jul 2013 08:56:43 -0700 (PDT) Received: from dlm-A6200.gmail.com (cpe-98-157-146-44.ma.res.rr.com. [98.157.146.44]) by mx.google.com with ESMTPSA id c4sm4882636qad.0.2013.07.23.08.56.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 23 Jul 2013 08:56:43 -0700 (PDT) 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: orgmode 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 ~~ Actual exported LaTeX (excluding preamble, with comment added by hand): ~~ \section{Heading} \label{sec-1} \begin{table*}[htb] % Why is this at the beginning? \caption{\label{table1}A table} \begin{center} \begin{tabular}{ll} Row 1 & Something\\ Row 2 & Something else\\ \end{tabular} \end{center} \end{table*} ~~ Expected: ~~ \section{Heading} \label{sec-1} \begin{table*}[htb] \begin{center} \begin{tabular}{ll} Row 1 & Something\\ Row 2 & Something else\\ \end{tabular} \end{center} \caption{\label{table1}A table} \end{table*} ~~ Org-mode version 8.0.2 (release_8.0.2-122-gcbf956 @ /home/*****/share/org-mode.git/lisp/) Thanks, hjh [1] http://comments.gmane.org/gmane.emacs.orgmode/47227