From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ox-latex, bug?] :caption forces environment Date: Thu, 19 Feb 2015 16:13:26 +0100 Message-ID: <87h9uindd5.fsf@nicolasgoaziou.fr> References: <87sie23qe7.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOSm8-0001B8-5D for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 10:12:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOSm3-00087n-1w for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 10:12:24 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:33343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOSm2-000873-Sd for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 10:12:18 -0500 In-Reply-To: <87sie23qe7.fsf@gmx.us> (rasmus@gmx.us's message of "Thu, 19 Feb 2015 15:52:16 +0100") 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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > Consider this example: > > #+ATTR_LATEX: :environment nil :center nil :caption cap > | t | > > Exporting to latex, it produces: > > \begin{table}[htb] > cap > \begin{tabular}{l} > \toprule > t\\ > \bottomrule > \end{tabular} > \end{table} > > I'd expect: > > cap > \begin{tabular}{l} > \toprule > t\\ > \bottomrule > \end{tabular} This is a feature. A caption implies, at least, a "table" environment. > The real usecase is that I want to use \captionof{table}{my caption}. This feature existed before support for "captionof". Of course, it is now possible to make use of this macro and alter `org-latex--org-table' accordingly. Regards, -- Nicolas Goaziou