Org mode tables: exclude columns from export

I have a set of tables in org-mode that I export, but I would like certain columns used for calculations and consumption by code blocks to be excluded from LaTeX export.

I'm sure I saw a way to do this by specifying a range of columns to export under the table, but I cannot find a link to it anywhere on the Internet, so I have a good chance.

+4
source share
3 answers

If you use "Radio Tables", you can do something like

#+ORGTBL: SEND some-name orgtbl-to-latex :skipcols (3) |-----+-------+------| | 2 | 1/2 | junk | | 4 | 1/4 | junk | | 8 | 1/2 | junk | 

See http://www.gnu.org/software/emacs/manual/html_mono/org.html#Radio-tables for more details.

I believe this may not be possible directly with export through Cc Ce , as they have been offering the same answer at http://comments.gmane.org/gmane.emacs.orgmode/33946 since November 2010.

+2
source

Another way to achieve this is to define the β€œhidden” type of column H in the LaTeX header parameters of the org file, and then use #+ATTR_LATEX: :align llH to indicate that the third column should be hidden during export ( source ):

 #+LATEX_HEADER: \usepackage{array} #+LATEX_HEADER: \newcolumntype{H}{>{\setbox0=\hbox\bgroup}c<{\egroup}@{}} #+ATTR_LATEX: :align llH |-----+-------+------| | 2 | 1/2 | junk | | 4 | 1/4 | junk | | 8 | 1/2 | junk | 
+5
source

http://www.gnu.org/software/emacs/manual/html_mono/org.html#The-spreadsheet

3.5.6 Editing and debugging formulas Use '/' for: Do not export this line. Useful for rows containing constriction markers or column group markers.

Note. To do this, you must use the first column for additional information to do this.

0
source

All Articles