From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [Feature Request] Cross headings in tables Date: Sat, 16 Feb 2013 20:21:58 +0100 Message-ID: <87obfk12uh.fsf_-_@Rainer.invalid> References: <87ocb96ebn.fsf@Rainer.invalid> <87eic4le49.fsf@Rainer.invalid> <87d3nwzo22.fsf@Rainer.invalid> <87ei7qxiuf.fsf@Rainer.invalid> <87wrlakxcv.fsf@Rainer.invalid> <87zkm3yk96.fsf@Rainer.invalid> <87tyc1xwam.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6nKy-0006Wj-My for emacs-orgmode@gnu.org; Sat, 16 Feb 2013 14:22:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6nKx-0004cJ-Ev for emacs-orgmode@gnu.org; Sat, 16 Feb 2013 14:22:16 -0500 Received: from plane.gmane.org ([80.91.229.3]:49028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6nKx-0004c7-8a for emacs-orgmode@gnu.org; Sat, 16 Feb 2013 14:22:15 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U6nLE-0004Mg-Bm for emacs-orgmode@gnu.org; Sat, 16 Feb 2013 20:22:32 +0100 Received: from pd9eb2732.dip.t-dialin.net ([217.235.39.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Feb 2013 20:22:32 +0100 Received: from Stromeko by pd9eb2732.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Feb 2013 20:22:32 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I've just looked at how to implement this using org-element and the new exporter. Much to my dismay I found that table headers are not a separate row or row group type and the new exporter is still using this "everything before the first separator is a heading" kludge. It's easy enough to introduce a second type of separator in org-element (BTW, I don't think that 'rule is a particularly good symbol name for this) by adding another type of table rows, but then these lines get ignored by the new exporter. While the logic used there is amendable (not as easily), it would be more hackish than I hoped. Also, it appears that each element can have only one property or did I miss something? It seems that having a way to get the (main) property and then asking if there are sub-properties on that element would allow simpler code in this particular instance and likely elsewhere. Maybe I missed how to do it, though. The cleanest way to implement this would be if being a header would be a property of the row group (maybe returnable as the sign of the row group number). There'd be two types of separators, "|-" and "|~". If the line past the end of a row group is "|~", then it is a header group, otherwise it is a normal group. This is incompatible with tradition, but it would allow to use row groups in formulas without introducing unwanted headers. Thoughts? Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs