emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* html export: row/column dividers in tables
@ 2009-03-31  1:01 Bill White
  2009-03-31  4:44 ` Matthew Lundin
  0 siblings, 1 reply; 7+ messages in thread
From: Bill White @ 2009-03-31  1:01 UTC (permalink / raw)
  To: emacs-orgmode

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 . billw@wolfram.com . http://members.wolfram.com/billw
"No ma'am, we're musicians."

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

end of thread, other threads:[~2009-03-31 18:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-31  1:01 html export: row/column dividers in tables Bill White
2009-03-31  4:44 ` Matthew Lundin
2009-03-31 14:20   ` Bill White
2009-03-31 14:36     ` Carsten Dominik
2009-03-31 18:12       ` Bill White
2009-03-31 18:19         ` Carsten Dominik
2009-03-31 18:22         ` Nick Dokos

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