From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Shi Subject: Re: Alternate Table Row Colors Date: Thu, 18 Jun 2009 12:21:20 -0400 Message-ID: <5236d6f90906180921m50ea5014i8651042839088151@mail.gmail.com> References: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.gmail.com> <553077BA-8653-4DD7-BAFB-70CF1D14422E@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1541764793==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHKMi-00030b-59 for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 12:21:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHKMd-0002wc-Dp for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 12:21:27 -0400 Received: from [199.232.76.173] (port=34808 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHKMd-0002wE-5x for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 12:21:23 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]:50636) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHKMc-0005A5-JV for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 12:21:23 -0400 Received: by bwz22 with SMTP id 22so615859bwz.42 for ; Thu, 18 Jun 2009 09:21:21 -0700 (PDT) In-Reply-To: <553077BA-8653-4DD7-BAFB-70CF1D14422E@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org --===============1541764793== Content-Type: multipart/alternative; boundary=001636417c4b533457046ca1cc7e --001636417c4b533457046ca1cc7e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 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 , such as: >> >> >> >> >> >> >> >>
OneFish
TwoFish
RedFish
BlueFish
>> >> So, that in the CSS file, it'll be easier to implement the color: >> >> >> >> >> 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. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> > > --001636417c4b533457046ca1cc7e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Carsten,

That's great! Thanks a lot!

Just one tiny typ= o in the docstring:

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

Xin

On Thu, Jun 18, 2009 at 1:09 AM, Carsten Dominik <carsten.dominik@gmail.com= > wrote:
Hi Xin,

I have pushed a change to this effect. =A0It 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 clas= s attribute to the <tr>, such as:

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

<tr class=3D"d0"><td>Red</td><td>Fish<= /td></tr>
<tr class=3D"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=3D"text/css">
table.sample {
=A0 =A0 =A0 =A0border: 6px inset #8B8378;
=A0 =A0 =A0 =A0-moz-border-radius: 6px;
}
table.sample td {
=A0 =A0 =A0 =A0border: 1px solid black;
=A0 =A0 =A0 =A0padding: 0.2em 2ex 0.2em 2ex;

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

I borrowed idea from this article:
http://www.so= macon.com/p338.php


Thanks!

Xin


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


--001636417c4b533457046ca1cc7e-- --===============1541764793== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1541764793==--