Re: [O] orgtbl multicolumn support

2011-05-06 Thread Michael Bach
Michael Bach pha...@gmail.com writes:

What kind of evil, sleep-deprived line of thoughts took me when I wrote
this?  Must have been too late for anything remotely meaningful.  This
one clearly did not deserve any answer...  Sorry for the noise

 Michael Bach pha...@gmail.com writes:

 # edit

 Dear org-mode Users and Developers,

 I just wanted to know whether there are plans to support multicolumns in
 default orgtbl-to-latex.  Something along these lines:

 #+ORGTBL: SEND multicol orgtbl-to-latex :splice t :skip 0 :hline \\midrule
 |   | a | b   | c |
 |---+---+-+---|
 | 1 |   | mc(2)(c)(3) |   |
 |   | 2 | mc(2)(c)(4) |   |

 Would produce

 % % BEGIN RECEIVE ORGTBL multicol
a  b  c\NN
 \midrule
 1 \multicolumn{2}{c}{3}  \NN
2  \multicolumn{2}{c}{4}  \LL
 % END RECEIVE ORGTBL multicol

 # This should correctly read:

 % % BEGIN RECEIVE ORGTBL multicol
a  b  c \\
 \midrule
 1 \multicolumn{2}{c}{3} \\
2  \multicolumn{2}{c}{4} \\
 % END RECEIVE ORGTBL multicol

 The reason being that I would like to use \multicolumn often in the
 middle of an orgtbl.  My workarounds with manually inserting the LaTeX
 macro are clumsy.

 I understood that users should write their own conversion functions.  If
 I was going to try my fresh elisp fu, I wanted to ask here whether there
 exists a generic orgtbl syntax to implement the above intercell
 modification.  I read the doc for version 7.5 but maybe there are also
 new methods in the dev version which I freshly use.

 Kind Regards,
 Michael Bach



[O] orgtbl multicolumn support

2011-05-05 Thread Michael Bach
Dear org-mode Users and Developers,

I just wanted to know whether there are plans to support multicolumns in
default orgtbl-to-latex.  Something along these lines:

#+ORGTBL: SEND multicol orgtbl-to-latex :splice t :skip 0 :hline \\midrule
|   | a | b   | c |
|---+---+-+---|
| 1 |   | mc(2)(c)(3) |   |
|   | 2 | mc(2)(c)(4) |   |

Would produce

% % BEGIN RECEIVE ORGTBL multicol
   a  b  c\NN
\midrule
1 \multicolumn{2}{c}{3}  \NN
   2  \multicolumn{2}{c}{4}  \LL
% END RECEIVE ORGTBL multicol

The reason being that I would like to use \multicolumn often in the
middle of an orgtbl.  My workarounds with manually inserting the LaTeX
macro are clumsy.

I understood that users should write their own conversion functions.  If
I was going to try my fresh elisp fu, I wanted to ask here whether there
exists a generic orgtbl syntax to implement the above intercell
modification.  I read the doc for version 7.5 but maybe there are also
new methods in the dev version which I freshly use.

Kind Regards,
Michael Bach



Re: [O] orgtbl multicolumn support

2011-05-05 Thread Michael Bach
Michael Bach pha...@gmail.com writes:

# edit

 Dear org-mode Users and Developers,

 I just wanted to know whether there are plans to support multicolumns in
 default orgtbl-to-latex.  Something along these lines:

 #+ORGTBL: SEND multicol orgtbl-to-latex :splice t :skip 0 :hline \\midrule
 |   | a | b   | c |
 |---+---+-+---|
 | 1 |   | mc(2)(c)(3) |   |
 |   | 2 | mc(2)(c)(4) |   |

 Would produce

 % % BEGIN RECEIVE ORGTBL multicol
a  b  c\NN
 \midrule
 1 \multicolumn{2}{c}{3}  \NN
2  \multicolumn{2}{c}{4}  \LL
 % END RECEIVE ORGTBL multicol

# This should correctly read:

% % BEGIN RECEIVE ORGTBL multicol
   a  b  c \\
\midrule
1 \multicolumn{2}{c}{3} \\
   2  \multicolumn{2}{c}{4} \\
% END RECEIVE ORGTBL multicol

 The reason being that I would like to use \multicolumn often in the
 middle of an orgtbl.  My workarounds with manually inserting the LaTeX
 macro are clumsy.

 I understood that users should write their own conversion functions.  If
 I was going to try my fresh elisp fu, I wanted to ask here whether there
 exists a generic orgtbl syntax to implement the above intercell
 modification.  I read the doc for version 7.5 but maybe there are also
 new methods in the dev version which I freshly use.

 Kind Regards,
 Michael Bach