emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: jiewuza <jiewuza@163.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to create tables with multi-rows/columns cells?
Date: Wed, 13 Sep 2017 10:22:57 +0800	[thread overview]
Message-ID: <m2fubrz69q.fsf@163.com> (raw)
In-Reply-To: 87y3plk4ez.fsf@gmail.com

Eric S Fraga <esflists@gmail.com> 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.

      parent reply	other threads:[~2017-09-13  2:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11  3:36 How to create tables with multi-rows/columns cells? jiewuza
2017-09-11  8:47 ` Eric S Fraga
2017-09-12 17:34   ` Grant Rettke
2017-09-13  1:49   ` jiewuza
2017-09-13  2:22   ` jiewuza [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=m2fubrz69q.fsf@163.com \
    --to=jiewuza@163.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).