emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to create tables with multi-rows/columns cells?
@ 2017-09-11  3:36 jiewuza
  2017-09-11  8:47 ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: jiewuza @ 2017-09-11  3:36 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-13  2:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).