[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] html export: row/column dividers in tables
From: |
Bill White |
Subject: |
[Orgmode] html export: row/column dividers in tables |
Date: |
Mon, 30 Mar 2009 20:01:44 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
I recently found a need for visible dividers (or "rules") between the
rows and columns of an org table exported to html. The most recent
discussion of this that I could find on gmane was
http://article.gmane.org/gmane.emacs.orgmode/1709/match=table+rules+html
from 2007, which concluded that such rules weren't supported, so here's
a kludgey workaround I found today:
#+BEGIN_HTML
<pre>
|----+----+----+----|
| a0 | b0 | c0 | d0 |
|----+----+----+----|
| a1 | b1 | c1 | d1 |
|----+----+----+----|
| a2 | b2 | c2 | d2 |
|----+----+----+----|
</pre>
#+END_HTML
It isn't pretty, but it works when you really need visual separation of
rows and columns. Here's what it looks like in real life:
http://members.wolfram.com/billw/VerbatimTables.html
BTW, here's how I got the org-mode code sample onto the webpage:
#+begin_src org
#+BEGIN_HTML
<pre>
|----+----+----+----|
| a0 | b0 | c0 | d0 |
|----+----+----+----|
| a1 | b1 | c1 | d1 |
|----+----+----+----|
| a2 | b2 | c2 | d2 |
|----+----+----+----|
</pre>
#+END_HTML
#+end_src
Cheers -
bw
--
Bill White . address@hidden . http://members.wolfram.com/billw
"No ma'am, we're musicians."
- [Orgmode] html export: row/column dividers in tables,
Bill White <=