From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Table captions in LaTeX export Date: Thu, 11 Jun 2015 20:12:10 -1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3ICb-0000T1-A0 for emacs-orgmode@gnu.org; Fri, 12 Jun 2015 02:12:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3ICW-0005zd-Av for emacs-orgmode@gnu.org; Fri, 12 Jun 2015 02:12:29 -0400 Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:52835) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Z3ICW-0005zD-4A for emacs-orgmode@gnu.org; Fri, 12 Jun 2015 02:12:24 -0400 Received: from [98.155.37.29] (port=56533 helo=manifi) by box472.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1Z3ICM-00028C-ON for emacs-orgmode@gnu.org; Fri, 12 Jun 2015 00:12:15 -0600 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 Aloha all, With this input: ,---------------------------------------------------------------------------------- | #+begin_margintable | #+name: tab:eg | #+attr_latex: :float nil :booktabs t :center nil :caption \caption{Example table} | | First | Second | | |-------+--------| | | One | Two | | | Three | Four | | #+end_margintable `---------------------------------------------------------------------------------- On export to LaTeX, I get this, which lacks a caption and a label: ,-------------------- | \begin{margintable} | \begin{tabular}{ll} | \toprule | First & Second\\ | \midrule | One & Two\\ | Three & Four\\ | \bottomrule | \end{tabular} | \end{margintable} `-------------------- It would be good to have :caption and label honored, even when :float nil, like this: ,-------------------------------------- | \begin{margintable} | \caption{Example table\label{tab:eg}} | \begin{tabular}{ll} | \toprule | First & Second\\ | \midrule | One & Two\\ | Three & Four\\ | \bottomrule | \end{tabular} | \end{margintable} `-------------------------------------- Is this possible? All the best, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com