From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Table caption in Latex export with :float nil Date: Thu, 12 Mar 2015 14:52:46 +0100 Message-ID: <8761a6491t.fsf@gmx.us> References: <7FE04555-FBB1-4A43-A50C-EF81E8F37308@agrarianresearch.org> <87r3svudbt.fsf@gmx.us> <239B1E00-B975-4FEA-9826-DDB82D7B4C8B@agrarianresearch.org> <87sidbr5yx.fsf@gmx.us> <0935B34F-25B2-4CF4-8DA6-3A8B6752162C@agrarianresearch.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW3Xr-0000AN-Fk for emacs-orgmode@gnu.org; Thu, 12 Mar 2015 09:53:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YW3Xl-0000ZO-Uq for emacs-orgmode@gnu.org; Thu, 12 Mar 2015 09:53:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:40341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW3Xl-0000Z8-O2 for emacs-orgmode@gnu.org; Thu, 12 Mar 2015 09:52:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YW3Xj-0006LI-J8 for emacs-orgmode@gnu.org; Thu, 12 Mar 2015 14:52:55 +0100 Received: from 46.166.188.226 ([46.166.188.226]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Mar 2015 14:52:55 +0100 Received: from rasmus by 46.166.188.226 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Mar 2015 14:52:55 +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: emacs-orgmode@gnu.org Vikas Rawal writes: > I did see this, but needed an example to understand what was going to > work. Specifying \captionof in a separate line did not occur to me. The point is merely that you need to "cheat" ox-latex to think there's not a caption. I used this macro as a workaround (since I also needed other backends than). #+MACRO: caption (eval (format (if (org-export-derived-backend-p org-export-current-backend 'latex) "@@latex:\\captionof{table}{%s\\label{%s}}@@" "#+CAPTION: %s") (org-trim "$1") (org-trim "$2"))) And then {{{caption(⋯, NAME)}}} in place of #+CAPTION:⋯ You could probably make it smarter and capture the label automatically. –Rasmus -- Together we will make the possible totalllly impossible!