emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stefan Vollmar <vollmar@nf.mpg.de>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: alternating row colours in HTML export: org-table-row-tags with new exporter?
Date: Tue, 26 Mar 2013 21:35:06 +0100	[thread overview]
Message-ID: <1F5CE39E-9BD5-47EE-AF18-040ADA6376FC@nf.mpg.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 983 bytes --]

Hallo,

when exporting tables to HTML we used this function:

(setq org-table-row-tags
	  (cons '(if head
				 "<tr>"
			   (if (= (mod nline 2) 1)
				   "<tr class=\"tr-odd\">"
				 "<tr class=\"tr-even\">"))
			"</tr>"))

to assign different CSS-classes to alternating rows of a table. With a suitable CSS file we were then able to assign different shades of gray to these classes and thus create tables with improved readability (nice looking, too). However, I did not find a corresponding option for the new exporter with a very recent version (release_8.0-pre-193-gaa7b1). Is there a way to achieve this goal?

Many thanks in advance.
Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: vollmar@nf.mpg.de   http://www.nf.mpg.de









[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]

             reply	other threads:[~2013-03-26 20:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-26 20:35 Stefan Vollmar [this message]
2013-03-26 22:20 ` alternating row colours in HTML export: org-table-row-tags with new exporter? Christian Moe
2013-03-26 22:31   ` Stefan Vollmar

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=1F5CE39E-9BD5-47EE-AF18-040ADA6376FC@nf.mpg.de \
    --to=vollmar@nf.mpg.de \
    --cc=emacs-orgmode@gnu.org \
    /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).