orgtbl-to-generic

orgtbl-to-generic is an autoloaded Lisp function in `org-table.el'.

(orgtbl-to-generic TABLE PARAMS &optional BACKEND)

Convert the orgtbl-mode TABLE to some other format.
This generic routine can be used for many standard cases.
TABLE is a list, each entry either the symbol `hline' for a horizontal
separator line, or a list of fields for that line.
PARAMS is a property list of parameters that can influence the conversion.
A third optional argument BACKEND can be used to convert the content of
the cells using a specific export back-end.

For the generic converter, some parameters are obligatory: you need to
specify either :lfmt, or all of (:lstart :lend :sep).

Valid parameters are:

:splice When set to t, return only table body lines, don't wrap
them into :tstart and :tend. Default is nil. When :splice
is non-nil, this also means that the exporter should not look
for and interpret header and footer sections.

:hline String to be inserted on horizontal separation lines.
May be nil to ignore hlines.

:sep Separator between two fields
:remove-nil-lines Do not include lines that evaluate to nil.

Each in the following group may be either a string or a function
of no arguments returning a string:

:tstart String to start the table. Ignored when :splice is t.
:tend String to end the table. Ignored when :splice is t.
:lstart String to start a new table line.
:llstart String to start the last table line, defaults to :lstart.
:lend String to end a table line
:llend String to end the last table line, defaults to :lend.

Each in the following group may be a string, a function of one
argument (the field or line) returning a string, or a plist
mapping columns to either of the above:

:lfmt Format for entire line, with enough %s to capture all fields.
If this is present, :lstart, :lend, and :sep are ignored.
:llfmt Format for the entire last line, defaults to :lfmt.
:fmt A format to be used to wrap the field, should contain
%s for the original field value. For example, to wrap
everything in dollars, you could use :fmt "$%s$".
This may also be a property list with column numbers and
formats. For example :fmt (2 "$%s$" 4 "%s%%")
:hlstart :hllstart :hlend :hllend :hlsep :hlfmt :hllfmt :hfmt
Same as above, specific for the header lines in the table.
All lines before the first hline are treated as header.
If any of these is not present, the data line value is used.

This may be either a string or a function of two arguments:

:efmt Use this format to print numbers with exponentials.
The format should have %s twice for inserting mantissa
and exponent, for example "%s\\times10^{%s}". This
may also be a property list with column numbers and
formats. :fmt will still be applied after :efmt.

In addition to this, the parameters :skip and :skipcols are always handled
directly by `orgtbl-send-table'. See manual.