Variable: org-html-table-row-open-tag
org-html-table-row-open-tag is a customizable variable defined in
ox-html.el.gz.
Value
"<tr>"
Documentation
The opening tag for table rows.
This is customizable so that alignment options can be specified. Instead of strings, these can be a Lisp function that will be evaluated for each row in order to construct the table row tags.
The function will be called with these arguments:
number: row number (0 is the first row)
group-number: group number of current row
start-group?: non-nil means the row starts a group
end-group?: non-nil means the row ends a group
top?: non-nil means this is the top row
bottom?: non-nil means this is the bottom row
For example:
(setq org-html-table-row-open-tag
(lambda (number group-number start-group? end-group-p top? bottom?)
(cond (top? "<tr class=\\"tr-top\">")
(bottom? "<tr class=\\"tr-bottom\">")
(t (if (= (mod number 2) 1)
"<tr class=\\"tr-odd\">"
"<tr class=\\"tr-even\">")))))
will use the "tr-top" and "tr-bottom" classes for the top row
and the bottom row, and otherwise alternate between "tr-odd" and
"tr-even" for odd and even rows.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-html.el.gz
(defcustom org-html-table-row-open-tag "<tr>"
"The opening tag for table rows.
This is customizable so that alignment options can be specified.
Instead of strings, these can be a Lisp function that will be
evaluated for each row in order to construct the table row tags.
The function will be called with these arguments:
`number': row number (0 is the first row)
`group-number': group number of current row
`start-group?': non-nil means the row starts a group
`end-group?': non-nil means the row ends a group
`top?': non-nil means this is the top row
`bottom?': non-nil means this is the bottom row
For example:
(setq org-html-table-row-open-tag
(lambda (number group-number start-group? end-group-p top? bottom?)
(cond (top? \"<tr class=\\\"tr-top\\\">\")
(bottom? \"<tr class=\\\"tr-bottom\\\">\")
(t (if (= (mod number 2) 1)
\"<tr class=\\\"tr-odd\\\">\"
\"<tr class=\\\"tr-even\\\">\")))))
will use the \"tr-top\" and \"tr-bottom\" classes for the top row
and the bottom row, and otherwise alternate between \"tr-odd\" and
\"tr-even\" for odd and even rows."
:group 'org-export-html
:type '(choice :tag "Opening tag"
(string :tag "Specify")
(function)))