From: Stefan Vollmar <vollmar@nf.mpg.de>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: [ox-html] bug in documentation of org-html-table-row-tags
Date: Wed, 27 Mar 2013 10:35:00 +0100 [thread overview]
Message-ID: <E10B9CFB-8E9E-4D20-969E-25B25E14883C@nf.mpg.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]
Hallo,
according to the documentation of org-html-table-row-tags in ox-html.el the following code can be used to assign different CSS classes to alternating rows:
(setq org-html-table-row-tags
(cons '(if head
\"<tr>\"
(if (= (mod nline 2) 1)
\"<tr class=\\\"tr-odd\\\">\"
\"<tr class=\\\"tr-even\\\">\"))
\"</tr>\"))
This does not work for me because of these problems:
eval: Symbol's value as variable is void: head
=: Symbol's value as variable is void: nline
My knowledge of elisp is very limited, but I assume fixing these errors would require defining head and a line counter nline around ll. 2976 in ox-html, at least the latter might be simple to fix.
However, I would suggest to implement this differently: have an option "org-html-alternating-table-row-classes" (or similar) that - if not nil - is used for alternating class names. Or - in keeping with hardwired class names like "org-ul" - always use "org-row-odd" and "org-row-even" if "org-html-alternating-table-row-classes" is not nil. Users who would prefer different class names could then still come up with their own definition of org-html-table-row-tags if needed.
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 --]
next reply other threads:[~2013-03-27 10:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-27 9:35 Stefan Vollmar [this message]
2013-04-07 21:23 ` [ox-html] bug in documentation of org-html-table-row-tags Bastien
2013-04-09 10:52 ` Stefan Vollmar
2013-04-09 11:46 ` Bastien
2013-04-09 11:56 ` Stefan Vollmar
2013-04-09 14:56 ` Nicolas Goaziou
2013-04-09 15:19 ` Bastien
2013-04-09 17:18 ` Achim Gratz
2013-04-09 20:50 ` Nicolas Goaziou
2013-04-10 16:32 ` Achim Gratz
2013-04-10 17:04 ` Nicolas Goaziou
2013-04-09 17:29 ` Stefan Vollmar
2013-04-09 17:40 ` Bastien
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=E10B9CFB-8E9E-4D20-969E-25B25E14883C@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).