From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: orgmod: R and threeparttable Date: Sat, 14 Dec 2013 12:04:21 +0100 Message-ID: <87ob4jae2y.fsf@gmail.com> References: <87sitvakg6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vrn0z-0005D9-9b for emacs-orgmode@gnu.org; Sat, 14 Dec 2013 06:04:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vrn0t-00010R-55 for emacs-orgmode@gnu.org; Sat, 14 Dec 2013 06:04:09 -0500 Received: from mail-ea0-x22e.google.com ([2a00:1450:4013:c01::22e]:41815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vrn0s-00010J-Ux for emacs-orgmode@gnu.org; Sat, 14 Dec 2013 06:04:03 -0500 Received: by mail-ea0-f174.google.com with SMTP id b10so1285335eae.5 for ; Sat, 14 Dec 2013 03:04:02 -0800 (PST) In-Reply-To: (Vikas Rawal's message of "Sat, 14 Dec 2013 10:40:57 +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: Vikas Rawal Cc: "emacs-orgmode@gnu.org" Vikas Rawal writes: > I do not know if I am expressing myself clearly. The table is being > generated by an R source code. We need a way of adding notes to such a > table. There are two different problems: 1. How to generate "threeparttable" environment using Org syntax and `latex' export back-end. 2. How to generate Org syntax specified above from a source block. At the moment, my only concern is point 1. > Unfortunately, on such matters, one has to work with the conventions in > different disciplines. At least in social sciences, it is usually expected > that notes are placed below Tables and Figures, and not as part of > footnotes, which are reserved for notes to text. At least my collaborators > and readers frown when I put table sources and notes in the footnotes. Understood. You didn't answer to my suggestion to use special blocks, though. > I do understand that there are innumerable requests for adding this feature > and that. In particular, it has been said many times before that we cannot > support every possible latex table environment. But I still think that, in > this area of application of org mode, capability to neatly add a footer to > tables and graphics, including when they are made by a source block, would > be very useful. If my suggestion to use special blocks doesn't apply, you still need to properly define your problem. In particular: - How table notes are generated? Do you want to hijack footnotes in table to produce them? - Should note numbers be configurable? - Should "threeparttable" be generated only when table contains at least a note and some global option is set to a non-nil value? Or should a user explicitly write that he requires such an environment for the current table? - Can another environment than "tabular" be used within "threeparttable"? - Is the "table" environment around mandatory? - ... Regards, -- Nicolas Goaziou