Org-mode's radio tables are an easy, simple and fast way to create tables within Emacs/AUCTeX. They offer all of the calculation capabilities of the org-mode spreadsheets, which can be very convenient if need simple, auto-updating data.
The source org-table can be placed within a comment
environment using the comment
package, or after \end{document}
. The radio table can be placed anywhere in the document by surrounding it with
% BEGIN RECEIVE ORGTBL table_name
% END RECEIVE ORGTBL table_name
The table will be automatically generated in LaTeX format within those two tags and will be updated every time the org-table is updated. Activating the orgtbl-mode
(minor mode) will make it easier to edit the org-table within AUCTeX.
Radio Tables explanation
As requested, a brief explanation of what radio tables are and a link to where more info can be found:
Radio tables are a way of using Org-mode's tables in any mode within Emacs. The idea behind them is that one should be able to create a table in any mode (i.e. LaTeX-mode) while still using Org's syntax in a minor orgtbl-mode
AND without generating errors with the major mode. This means that there will be a "source table" in Org syntax, a "target table" in the required syntax (i.e. LaTeX syntax) and a translator function to convert from one to the other and to place the table in the proper place. In a sense, the table is sent to its final place via the translator function, much like a radio signals are sent from the transmitter to the receptor.
In the case of radio tables, the "receptor" is defined by two lines that are comments in the major mode that we are working in. For LaTeX mode, those two lines take the form written above. Then, the source table is created elsewhere, with a special line atop of it, in the form of
#+ORGTBL: SEND table_name translation_function arguments....
Now, if the source table in Org syntax will definitely cause errors if placed as-is within the LaTeX document, so two ways to deal with this are to either send it past the \end{document}
line, grouping all the source tables towards the end of the document and separating them from their target tables, or wrapping them in a comment
environment, defined by the comment
package, which would allow to keep the source tables close to the targets.
As for the translator function, Org-mode
provides a very basic generic translator function that will give good enough tables. This translator function can be modified to fit the user's need.
Here's a link to the official documentation: http://www.gnu.org/software/emacs/manual/html_node/org/Radio-tables.html#Radio-tables