emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Xin Shi <shixin111@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Alternate Table Row Colors
Date: Thu, 18 Jun 2009 07:09:59 +0200	[thread overview]
Message-ID: <553077BA-8653-4DD7-BAFB-70CF1D14422E@gmail.com> (raw)
In-Reply-To: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.gmail.com>

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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  parent reply	other threads:[~2009-06-18  5:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-14 19:00 Alternate Table Row Colors Xin Shi
2009-06-14 19:11 ` Russell Adams
2009-06-15 12:39   ` Xin Shi
2009-06-15 17:08     ` Xin Shi
2009-06-18  5:09 ` Carsten Dominik [this message]
2009-06-18 16:21   ` Xin Shi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=553077BA-8653-4DD7-BAFB-70CF1D14422E@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=shixin111@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).