emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Alternate Table Row Colors


From: Xin Shi
Subject: Re: [Orgmode] Alternate Table Row Colors
Date: Thu, 18 Jun 2009 12:21:20 -0400

Hi Carsten,

That's great! Thanks a lot!

Just one tiny typo in the docstring:

"these ca be Lisp forms"
            ~~~ -> can

Xin

On Thu, Jun 18, 2009 at 1:09 AM, Carsten Dominik <address@hidden> wrote:
Hi Xin,

I have pushed a change to this effect.  It introduces a new variable
org-export-table-row-tags which can be used for this purpose.

Please the the docstring of that variable.

HTH

- Carsten


On Jun 14, 2009, at 9:00 PM, Xin Shi wrote:

Hello Experts,

I use org-mode to produce a lot of big tables with numbers in them. When I present these tables by HTML, I found it's hard to keep track which row it is. I'm wondering if it's possible to implement additional class attribute to the <tr>, such as:

<table class="sample">
<tr class="d0"><td>One</td><td>Fish</td></tr>
<tr class="d1"><td>Two</td><td>Fish</td></tr>

<tr class="d0"><td>Red</td><td>Fish</td></tr>
<tr class="d1"><td>Blue</td><td>Fish</td></tr>
</table>

So, that in the CSS file, it'll be easier to implement the color:


<style type="text/css">
table.sample {
       border: 6px inset #8B8378;
       -moz-border-radius: 6px;
}
table.sample td {
       border: 1px solid black;
       padding: 0.2em 2ex 0.2em 2ex;

       color: black;
}
table.sample tr.d0 td {
       background-color: #FCF6CF;
}
table.sample tr.d1 td {
       background-color: #FEFEF2;
}
</style>

I borrowed idea from this article:
http://www.somacon.com/p338.php


Thanks!

Xin


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



reply via email to

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