all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Christopher J. White" <orgmode@grierwhite.com>
To: emacs-orgmode@gnu.org
Subject: Re: Multicolumn
Date: Tue, 28 Aug 2012 17:28:50 -0700	[thread overview]
Message-ID: <503D6242.2040708@grierwhite.com> (raw)
In-Reply-To: <1DB0A90A-0891-46BF-A110-C8EB85175B5B@univie.ac.at>

Hi Erich,

I have a hack for multicolumn support that may help... It's not great, 
but serves my purpose.

I implemented a TWiki mode that uses orgtbl-minor-mode.  TWiki pages 
support multicolumn cells by adding vertical bars with no separators:

Display:

|  Multicol     |
|  C1   |   C2  |

TWiki format:
| Multicol ||
| C1 | C2 |

Notice the double vertical bars after Multicol.  The number of vertical 
bars on every row must be the same.  You can join as many cells as you 
want that way.  I basically wanted to be able to still use 
orgtbl-minor-mode to edit such tables.  So I hacked my 
twiki-import/export code to convert "||" to "| << |" and vice-versa.

So the orgtbl version of the above looks like this in the buffer:

| Multicol | << |
| C1       | C2 |

The down side is that the text "Multicol" will expand the display size 
of C1, so if it gets long, the table grows:

| This is a long multicol cell | << |
| C1                           | C2 |

So it gets me what I want, which is orgtbl editing, and import/export 
support to twiki format.  Seems a similar technique could be backed in 
to any org export engine.

...cj

On 8/28/12 5:10 PM, Neuwirth Erich wrote:
> After some googling it seems that multicolumn support is not yet 
> implemented in org tables.
> I would need multicolumn headers quite urgently,
> but I have not yet found a way to make this possible.
>
> I think that tables with headers like this:
>
> |               |    mean       |         s.e.        |
> | gender | varA | varB |  varA | varB |
>
> are quite common, so I really want to put this feature on the wish list.
> I am not able to implement this myself.
>
> Erich
>
>
>
>

  reply	other threads:[~2012-08-29  0:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-29  0:10 Multicolumn Neuwirth Erich
2012-08-29  0:28 ` Christopher J. White [this message]
2012-08-29  1:05   ` Multicolumn Neuwirth Erich
2012-08-29  1:47     ` Multicolumn John Hendy
2012-08-29  2:39     ` Multicolumn Thomas S. Dye
2012-08-29  7:44       ` Multicolumn Neuwirth Erich
2012-08-29 14:27         ` Multicolumn John Hendy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=503D6242.2040708@grierwhite.com \
    --to=orgmode@grierwhite.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.