[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to create tables with multi-rows/columns cells?
From: |
jiewuza |
Subject: |
Re: [O] How to create tables with multi-rows/columns cells? |
Date: |
Wed, 13 Sep 2017 09:49:35 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) |
Eric S Fraga <address@hidden> 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.