From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Shi Subject: Alternate Table Row Colors Date: Sun, 14 Jun 2009 15:00:15 -0400 Message-ID: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0019088769==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFuwI-000602-KY for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:00:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFuwE-0005zp-3r for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:00:22 -0400 Received: from [199.232.76.173] (port=38608 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFuwD-0005zm-Tl for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:00:17 -0400 Received: from mail-bw0-f227.google.com ([209.85.218.227]:59876) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MFuwD-0003in-Dd for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:00:17 -0400 Received: by bwz27 with SMTP id 27so658778bwz.42 for ; Sun, 14 Jun 2009 12:00:15 -0700 (PDT) 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: emacs-orgmode@gnu.org --===============0019088769== Content-Type: multipart/alternative; boundary=001636417e194f9a79046c538de0 --001636417e194f9a79046c538de0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --001636417e194f9a79046c538de0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Experts,

I use org-mode to produce a l= ot 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:
=A0

<table class=3D"sample">
<tr= class=3D"d0"><td>One</td><td>Fish</td>= ;</tr>
<tr class=3D"d1"><td>Two</td>&l= t;td>Fish</td></tr>
<tr class=3D"d0"><td>Red</td><td>Fish<= /td></tr>
<tr class=3D"d1"><td>Blue</t= d><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 = {
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: #FCF6C= F;
}
table.sample tr.d1 td {
background-color: #FEFEF2;
}
&= lt;/style>

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

Thanks!

Xin


--001636417e194f9a79046c538de0-- --===============0019088769== 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 --===============0019088769==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Alternate Table Row Colors Date: Sun, 14 Jun 2009 14:11:18 -0500 Message-ID: <20090614191118.GA21190@thinkpad.adamsinfoserv.com> References: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFv6z-0003W4-F9 for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:11:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFv6x-0003Vo-Vf for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:11:25 -0400 Received: from [199.232.76.173] (port=53892 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFv6x-0003Vl-PC for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:11:23 -0400 Received: from squirtle.drak.net ([72.52.144.201]:59429) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MFv6x-0005Rw-Aj for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:11:23 -0400 Received: from 206.180.154.148.adsl.hal-pc.org ([206.180.154.148] helo=localhost) by squirtle.drak.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1MFv6o-0004d8-7M for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 14:11:14 -0500 Content-Disposition: inline In-Reply-To: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.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: emacs-orgmode@gnu.org Not that I'm a CSS expert, but it appears you could do this without changing how Org outputs tables by adding this styling to your CSS. http://www.zorked.com/css/alternating-table-rows-using-css-only/ Quote: tr:nth-child(odd) { background-color: #CCCCCC; } tr:nth-child(even) { background-color: #6699FF; } Good luck! If you make an example, please post it! On Sun, Jun 14, 2009 at 03:00:15PM -0400, 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 ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Shi Subject: Re: Alternate Table Row Colors Date: Mon, 15 Jun 2009 08:39:40 -0400 Message-ID: <5236d6f90906150539yaa48c3esb77c3f7a0377cda1@mail.gmail.com> References: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.gmail.com> <20090614191118.GA21190@thinkpad.adamsinfoserv.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1469122725==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGBTc-0001yY-1d for emacs-orgmode@gnu.org; Mon, 15 Jun 2009 08:39:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGBTW-0001y9-GI for emacs-orgmode@gnu.org; Mon, 15 Jun 2009 08:39:50 -0400 Received: from [199.232.76.173] (port=52765 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGBTW-0001y6-B5 for emacs-orgmode@gnu.org; Mon, 15 Jun 2009 08:39:46 -0400 Received: from mail-fx0-f216.google.com ([209.85.220.216]:60459) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGBTV-00046P-PC for emacs-orgmode@gnu.org; Mon, 15 Jun 2009 08:39:46 -0400 Received: by fxm12 with SMTP id 12so1176962fxm.42 for ; Mon, 15 Jun 2009 05:39:44 -0700 (PDT) In-Reply-To: <20090614191118.GA21190@thinkpad.adamsinfoserv.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: emacs-orgmode@gnu.org --===============1469122725== Content-Type: multipart/alternative; boundary=0016e65a0da6117210046c625aa7 --0016e65a0da6117210046c625aa7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Russell, Thanks for your posting! Unfortunately, this is quite a new feature for CSS 3, which is not supported by the Firefox 3. It would be great if the org-mode can just add the class attribute in the . Xin On Sun, Jun 14, 2009 at 3:11 PM, Russell Adams wrote: > Not that I'm a CSS expert, but it appears you could do this without > changing how Org outputs tables by adding this styling to your CSS. > > http://www.zorked.com/css/alternating-table-rows-using-css-only/ > > Quote: > > tr:nth-child(odd) { > background-color: #CCCCCC; > } > > tr:nth-child(even) { > background-color: #6699FF; > } > > Good luck! If you make an example, please post it! > > On Sun, Jun 14, 2009 at 03:00:15PM -0400, 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 > > > > ------------------------------------------------------------------ > Russell Adams RLAdams@AdamsInfoServ.com > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 > > > _______________________________________________ > 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 > --0016e65a0da6117210046c625aa7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Russell,

Thanks for your posting!

Unfortunately, this is = quite a new feature for CSS 3, which is not supported by the Firefox 3.=A0 = It would be great if the org-mode can just add the class attribute in the &= lt;tr>.

Xin


On Sun, Jun 14, 2009 at 3:11 = PM, Russell Adams <RLAdams@adamsinfoserv.com> wrote:
Not that I'm a CSS expert, but it appears you could do this without
changing how Org outputs tables by adding this styling to your CSS.

http://www.zorked.com/css/alternating-table-rows-using-= css-only/

Quote:

tr:nth-child(odd) {
background-color: #CCCCCC;
}

tr:nth-child(even) {
background-color: #6699FF;
}

Good luck! If you make an example, please post it!

On Sun, Jun 14, 2009 at 03:00:15PM -0400, Xin Shi wrote:
> Hello Experts,
>
> I use org-mode to produce a lot of big tables with numbers in them. Wh= en I
> present these tables by HTML, I found it's hard to keep track whic= h row it
> is. I'm wondering if it's possible to implement additional cla= ss attribute
> to the <tr>, such as:
>
>
> <table class=3D"sample">
> <tr class=3D"d0"><td>One</td><td>Fis= h</td></tr>
> <tr class=3D"d1"><td>Two</td><td>Fis= h</td></tr>
> <tr class=3D"d0"><td>Red</td><td>Fis= h</td></tr>
> <tr class=3D"d1"><td>Blue</td><td>Fi= sh</td></tr>
> </table>
>
> So, that in the CSS file, it'll be easier to implement the color:<= br> >
> <style type=3D"text/css">
> table.sample {
> =A0 =A0 =A0 border: 6px inset #8B8378;
> =A0 =A0 =A0 -moz-border-radius: 6px;
> }
> table.sample td {
> =A0 =A0 =A0 border: 1px solid black;
> =A0 =A0 =A0 padding: 0.2em 2ex 0.2em 2ex;
> =A0 =A0 =A0 color: black;
> }
> table.sample tr.d0 td {
> =A0 =A0 =A0 background-color: #FCF6CF;
> }
> table.sample tr.d1 td {
> =A0 =A0 =A0 background-color: #FEFEF2;
> }
> </style>
>
> I borrowed idea from this article:
> http://w= ww.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



------------------------------------------------------------------
Russell Adams =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0RLAdam= s@AdamsInfoServ.com

PGP Key ID: =A0 =A0 0x1160DCB3 =A0 =A0 =A0 =A0 =A0 http://www.adamsinfoserv.com/

Fingerprint: =A0 =A01723 D8CA 4280 1EC9 557F =A066E8 1154 E018 1160 DCB3

_______________________________________________
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

--0016e65a0da6117210046c625aa7-- --===============1469122725== 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 --===============1469122725==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Shi Subject: Re: Alternate Table Row Colors Date: Mon, 15 Jun 2009 13:08:51 -0400 Message-ID: <5236d6f90906151008o7f56a901jb841d97176b32185@mail.gmail.com> References: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.gmail.com> <20090614191118.GA21190@thinkpad.adamsinfoserv.com> <5236d6f90906150539yaa48c3esb77c3f7a0377cda1@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0969505997==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGG7c-0007Qp-Gp for emacs-orgmode@gnu.org; Mon, 15 Jun 2009 13:37:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGG7V-0007DS-JP for emacs-orgmode@gnu.org; Mon, 15 Jun 2009 13:37:26 -0400 Received: from [199.232.76.173] (port=54948 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGG7V-0007Cd-9r for emacs-orgmode@gnu.org; Mon, 15 Jun 2009 13:37:21 -0400 Received: from mail-fx0-f216.google.com ([209.85.220.216]:39588) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGFfx-0002UI-ID for emacs-orgmode@gnu.org; Mon, 15 Jun 2009 13:08:54 -0400 Received: by fxm12 with SMTP id 12so1494859fxm.42 for ; Mon, 15 Jun 2009 10:08:52 -0700 (PDT) In-Reply-To: <5236d6f90906150539yaa48c3esb77c3f7a0377cda1@mail.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: emacs-orgmode@gnu.org --===============0969505997== Content-Type: multipart/alternative; boundary=0016e6482b4ac47a9f046c661c0b --0016e6482b4ac47a9f046c661c0b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello Experts, I took a look in the lisp directory, the related function is in the org-html.el: (defun org-format-org-table-html (lines &optional splice) There it might need a counter for the row in the line (push (concat "" ... I don't know how to continue from here ... Any suggestions from our Lisp experts? Thanks! Xin On Mon, Jun 15, 2009 at 8:39 AM, Xin Shi wrote: > Hi Russell, > > Thanks for your posting! > > Unfortunately, this is quite a new feature for CSS 3, which is not > supported by the Firefox 3. It would be great if the org-mode can just add > the class attribute in the . > > Xin > > > > On Sun, Jun 14, 2009 at 3:11 PM, Russell Adams wrote: > >> Not that I'm a CSS expert, but it appears you could do this without >> changing how Org outputs tables by adding this styling to your CSS. >> >> http://www.zorked.com/css/alternating-table-rows-using-css-only/ >> >> Quote: >> >> tr:nth-child(odd) { >> background-color: #CCCCCC; >> } >> >> tr:nth-child(even) { >> background-color: #6699FF; >> } >> >> Good luck! If you make an example, please post it! >> >> On Sun, Jun 14, 2009 at 03:00:15PM -0400, 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 >> >> >> >> ------------------------------------------------------------------ >> Russell Adams RLAdams@AdamsInfoServ.com >> >> PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ >> >> Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 >> >> >> _______________________________________________ >> 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 >> > > --0016e6482b4ac47a9f046c661c0b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Experts,

I took a look in the lisp directory, the related func= tion is in the org-html.el:

(defun org-format-org-table-html (lines = &optional splice)

There it might need a counter for the row in t= he line
=A0=A0=A0 (push (concat "<tr>"=A0 ...

I don't kn= ow how to continue from here ... Any suggestions from our Lisp experts?
=
Thanks!

Xin


On Mon, Jun 15= , 2009 at 8:39 AM, Xin Shi <shixin111@gmail.com> wrote:
Hi Russell,
Thanks for your posting!

Unfortunately, this is quite a new featu= re for CSS 3, which is not supported by the Firefox 3.=A0 It would be great= if the org-mode can just add the class attribute in the <tr>.

Xin



On Sun, Jun 14, 2009 at 3:11 PM, Russell Adams <RLAdam= s@adamsinfoserv.com> wrote:
Not that I'm a CSS expert, but it appears you could do this without
changing how Org outputs tables by adding this styling to your CSS.

http://www.zorked.com/css/alternating-table-rows-using-= css-only/

Quote:

tr:nth-child(odd) {
background-color: #CCCCCC;
}

tr:nth-child(even) {
background-color: #6699FF;
}

Good luck! If you make an example, please post it!

On Sun, Jun 14, 2009 at 03:00:15PM -0400, Xin Shi wrote:
> Hello Experts,
>
> I use org-mode to produce a lot of big tables with numbers in them. Wh= en I
> present these tables by HTML, I found it's hard to keep track whic= h row it
> is. I'm wondering if it's possible to implement additional cla= ss attribute
> to the <tr>, such as:
>
>
> <table class=3D"sample">
> <tr class=3D"d0"><td>One</td><td>Fis= h</td></tr>
> <tr class=3D"d1"><td>Two</td><td>Fis= h</td></tr>
> <tr class=3D"d0"><td>Red</td><td>Fis= h</td></tr>
> <tr class=3D"d1"><td>Blue</td><td>Fi= sh</td></tr>
> </table>
>
> So, that in the CSS file, it'll be easier to implement the color:<= br> >
> <style type=3D"text/css">
> table.sample {
> =A0 =A0 =A0 border: 6px inset #8B8378;
> =A0 =A0 =A0 -moz-border-radius: 6px;
> }
> table.sample td {
> =A0 =A0 =A0 border: 1px solid black;
> =A0 =A0 =A0 padding: 0.2em 2ex 0.2em 2ex;
> =A0 =A0 =A0 color: black;
> }
> table.sample tr.d0 td {
> =A0 =A0 =A0 background-color: #FCF6CF;
> }
> table.sample tr.d1 td {
> =A0 =A0 =A0 background-color: #FEFEF2;
> }
> </style>
>
> I borrowed idea from this article:
> http://w= ww.somacon.com/p338.php
>
> Thanks!
>
> Xin

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



------------------------------------------------------------------
Russell Adams =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0RLAdam= s@AdamsInfoServ.com

PGP Key ID: =A0 =A0 0x1160DCB3 =A0 =A0 =A0 =A0 =A0 http://www.adamsinfoserv.com/

Fingerprint: =A0 =A01723 D8CA 4280 1EC9 557F =A066E8 1154 E018 1160 DCB3

_______________________________________________
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


--0016e6482b4ac47a9f046c661c0b-- --===============0969505997== 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 --===============0969505997==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Alternate Table Row Colors Date: Thu, 18 Jun 2009 07:09:59 +0200 Message-ID: <553077BA-8653-4DD7-BAFB-70CF1D14422E@gmail.com> References: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MH9t2-00085x-BC for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 01:10:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MH9sx-00084t-Cx for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 01:10:07 -0400 Received: from [199.232.76.173] (port=55662 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MH9sx-00084q-5t for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 01:10:03 -0400 Received: from mail-ew0-f210.google.com ([209.85.219.210]:44532) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MH9sw-0007AA-SD for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 01:10:03 -0400 Received: by mail-ew0-f210.google.com with SMTP id 6so1098128ewy.42 for ; Wed, 17 Jun 2009 22:10:02 -0700 (PDT) In-Reply-To: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.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: Xin Shi Cc: emacs-orgmode@gnu.org 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 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==--