From mboxrd@z Thu Jan 1 00:00:00 1970 From: jiewuza Subject: Re: How to create tables with multi-rows/columns cells? Date: Wed, 13 Sep 2017 10:22:57 +0800 Message-ID: References: <87y3plk4ez.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drxLB-0002E2-Rv for emacs-orgmode@gnu.org; Tue, 12 Sep 2017 22:23:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drxL8-0001GV-FR for emacs-orgmode@gnu.org; Tue, 12 Sep 2017 22:23:49 -0400 Received: from [195.159.176.226] (port=47368 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drxL8-0001Ef-9G for emacs-orgmode@gnu.org; Tue, 12 Sep 2017 22:23:46 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1drxKx-0000HB-EV for emacs-orgmode@gnu.org; Wed, 13 Sep 2017 04:23:35 +0200 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" To: emacs-orgmode@gnu.org Eric S Fraga writes: > On Monday, 11 Sep 2017 at 04:36, jiewuza wrote: >> It is quite common to have multi-rows/columns cells in talbe. But as far >> as I know, it seems impossible with the org built-in table editor. > > org does not support multi-row/column cells in tables. Well, I am thinking whether this proposal would work: 1. `|@` as a separator, meaning the next cell will span multiple columns 2. `|$` as a separator, meaning the next cell will span multiple rows 3. the span will terminate when it meats a regular cell separator `|` 4. the content of the "multi-rows/columns cell"(the big cell) should be placed in the right-bottom single cell of the big one For example, these two tables have the same effect. #+BEGIN_SRC org |@ | header |$ | | h1 | h2 | h3 | |----+--------+----| | a |@$ |$ | | d |@ | f | +-----+-----+-----+ | h | | +-----+-----+ h3 | | h1 | h2 | | +-----+-----+-----+ | a | | +-----+ f | | d | | +-----+-----------+ #+END_SRC I do not know if it can be implemented in a clear and simple way based on the current org-table and ox-* code. Maybe '|@n$m' like separator (m,n is a number) would be simpler. I do not know. But it is great if org supports multi-row/column cells in tables.