Vikas Rawal <vikasli...@agrarianresearch.org> 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