emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] How to create tables with multi-rows/columns cells?


From: jiewuza
Subject: [O] How to create tables with multi-rows/columns cells?
Date: Mon, 11 Sep 2017 11:36:19 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin)

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.

So I turned to the emacs built-in table, and create a simple example:
#+BEGIN_SRC org
   +-----+-----+-----+
   |     h     |     |
   +-----+-----+  h3 |
   |  h1 | h2  |     |
   +-----+-----+-----+
   |  a  |  b  |  c  |
   +-----+-----+-----+
   |  d  |  e  |  f  |
   +-----+-----+-----+
#+END_SRC

It works. However, when I export it to HTML, I find it does not contain
<thead> tag (I would like to style the table head).

So I'd like to know how do you guys to create such tables in org-mode.

p.s. One workaround would be add support for the exporter to recognize
`===` as a separator of table head and body

#+BEGIN_SRC org
   +-----+-----+-----+
   |     h     |     |
   +-----+-----+  h3 |
   |  h1 | h2  |     |
   +=====+=====+=====+
   |  a  |  b  |  c  |
   +-----+-----+-----+
   |  d  |  e  |  f  |
   +-----+-----+-----+
#+END_SRC




reply via email to

[Prev in Thread] Current Thread [Next in Thread]