From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: [Feature Request] Cross headings in tables Date: Tue, 05 Oct 2010 19:54:14 +0200 Message-ID: <87eic4le49.fsf@Rainer.invalid> References: <87ocb96ebn.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=56039 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3Bih-00006z-PO for emacs-orgmode@gnu.org; Tue, 05 Oct 2010 13:54:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3Bif-0000uy-N9 for emacs-orgmode@gnu.org; Tue, 05 Oct 2010 13:54:31 -0400 Received: from lo.gmane.org ([80.91.229.12]:47797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3Bif-0000uf-DD for emacs-orgmode@gnu.org; Tue, 05 Oct 2010 13:54:29 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P3BiZ-0001fG-BS for emacs-orgmode@gnu.org; Tue, 05 Oct 2010 19:54:23 +0200 Received: from p57aab139.dip.t-dialin.net ([87.170.177.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 19:54:23 +0200 Received: from Stromeko by p57aab139.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 19:54:23 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Now that I've started exporting some org files (to HTML mostly), I run into some limitations here and there. I've worked around most of them, but have not been able to do anything about this (other than editing the resulting HTML): I have some tables where I used (without thinking much about it) cross headings like this: |----------+---------------------+-----------------| | Header | some more | and more | | actually | multi-line headings | just work! | |----------+---------------------+-----------------| | item | stuff | things | | etc. | pp. | ad nauseam | |----------+---------------------+-----------------| | Header | to keep | things together | |----------+---------------------+-----------------| | ... | | | | | ... | | | | | ... | |----------+---------------------+-----------------| I don't want to rip these apart into separate tables since that causes the different parts to all have different widths (both in the source and the export) and I really need these to line up and be just a single table. I guess that I could somehow manage to use the "splicing" of tables to get the HTML export done, but I'd have that problem again for each export backend. Also, this would interrupt the table in the source and make a formatting mess unless I'd define the column width for each of the table parts by hand (which is equally undesirable). So I'd like to have first-class cross headings, maybe like this: |----------+-----------+-----------------| | Header | some more | and more | |----------+-----------+-----------------| | item | stuff | things | | etc. | pp. | ad nauseam | |----------+-----------+-----------------| |> Header | to keep | things together | |----------+-----------+-----------------| | | ... | | |----------+-----------+-----------------| So, the first heading would be determined by the first horizontal separator inside the table (for backwards compatibility) and any following heading would need get some special syntax (like the "|>" above, but anything that doesn't collide with existing syntax will just be fine I think). If there's a heading marker before the first horizontal separation, it should probably take precedence over the backwards-compatible markup. That would also enable to have table headings without a separator, something that's not possible today. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada