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 09:49:35 +0800 [thread overview]
Message-ID: <m2mv5zz7tc.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. When you say:
>
>> It works.
>
> what do you mean? If I edit your example, org does not recognise it as
> a table (or, at least, not a properly defined one).
I mean when I export the table to html (see below), I get what I want.
#+BEGIN_SRC org
+-----+-----+-----+
| h | |
+-----+-----+ h3 |
| h1 | h2 | |
+-----+-----+-----+
| a | b | c |
+-----+-----+-----+
| d | e | f |
+-----+-----+-----+
#+END_SRC
#+BEGIN_SRC html
<table border="1">
<tr>
<td colspan="2" align="left" valign="top">
h
</td>
<td rowspan="2" align="left" valign="top">
<br />
h3 <br />
</td>
</tr>
<tr>
<td align="left" valign="top">
h1
</td>
<td align="left" valign="top">
h2
</td>
</tr>
<tr>
<td align="left" valign="top">
a
</td>
<td align="left" valign="top">
b
</td>
<td align="left" valign="top">
c
</td>
</tr>
<tr>
<td align="left" valign="top">
d
</td>
<td align="left" valign="top">
e
</td>
<td align="left" valign="top">
f
</td>
</tr>
</table>
#+END_SRC
But there is no <thead> in the output. That is why I suggest maybe we
can add org support to treat "===" as a separator of thead and tbody.
next prev parent reply other threads:[~2017-09-13 1:50 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 [this message]
2017-09-13 2:22 ` jiewuza
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=m2mv5zz7tc.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).