all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* alternating row colours in HTML export: org-table-row-tags with new exporter?
@ 2013-03-26 20:35 Stefan Vollmar
  2013-03-26 22:20 ` Christian Moe
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Vollmar @ 2013-03-26 20:35 UTC (permalink / raw)
  To: Org Mode Mailing List

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: alternating row colours in HTML export: org-table-row-tags with new exporter?
  2013-03-26 20:35 alternating row colours in HTML export: org-table-row-tags with new exporter? Stefan Vollmar
@ 2013-03-26 22:20 ` Christian Moe
  2013-03-26 22:31   ` Stefan Vollmar
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Moe @ 2013-03-26 22:20 UTC (permalink / raw)
  To: Stefan Vollmar; +Cc: Org Mode Mailing List


Hi,

The variable has been renamed org-html-table-row-tags.

I think the general rule is, if you had org-<foo> working for export and
can't find it, try org-<backend>-<foo>.

Yours,
Christian

Stefan Vollmar writes:

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: alternating row colours in HTML export: org-table-row-tags with new exporter?
  2013-03-26 22:20 ` Christian Moe
@ 2013-03-26 22:31   ` Stefan Vollmar
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Vollmar @ 2013-03-26 22:31 UTC (permalink / raw)
  To: Christian Moe; +Cc: Org Mode Mailing List

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

Dear Christian,

On 26.03.2013, at 23:20, Christian Moe wrote:

> The variable has been renamed org-html-table-row-tags.
> 
> I think the general rule is, if you had org-<foo> working for export and
> can't find it, try org-<backend>-<foo>.

sorry - I should have been able to work that out myself: I have come across that pattern before and it is very consistent (as are all changes for the new exporter).

Thank you!

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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-26 22:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26 20:35 alternating row colours in HTML export: org-table-row-tags with new exporter? Stefan Vollmar
2013-03-26 22:20 ` Christian Moe
2013-03-26 22:31   ` Stefan Vollmar

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.