Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-10 Thread Achim Gratz
Nicolas Goaziou writes: Sorry, but using this has quadratic complexity with the number of rows... That's true. But that doesn't matter unless you plan to export thousand row tables. Anyway, patches welcome. I've been thinking about this… the way I currently see it is that the row-number

Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-10 Thread Nicolas Goaziou
Hello, Achim Gratz strom...@nexgo.de writes: Nicolas Goaziou writes: Sorry, but using this has quadratic complexity with the number of rows... That's true. But that doesn't matter unless you plan to export thousand row tables. Anyway, patches welcome. I've been thinking about this… the

Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Stefan Vollmar
Dear Bastien, On 07.04.2013, at 23:23, Bastien wrote: [...] I pushed a fix which preserves the spirit of the previous option, but with more variables to check against. I know this is not the most user-friendly we can do here, but at least it is consistent with what the code allows. Thanks

Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Bastien
Hi Stefan, Stefan Vollmar voll...@nf.mpg.de writes: should probably be: (setq org-html-table-row-tags (cons '(cond (top-row-p tr class=\tr-top\) (bottom-row-p tr class=\tr-bottom\) (t tr)) /tr)) Of course, you're right, I fixed

Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Stefan Vollmar
Dear Bastien, On 09.04.2013, at 13:46, Bastien wrote: (setq org-html-table-row-tags (cons '(cond (top-row-p tr class=\tr-top\) (bottom-row-p tr class=\tr-bottom\) (t tr)) /tr)) Of course, you're right, I fixed this. great, thanks!

Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: This is already very useful. However, in addition to rowgroup-number, top-row-p and bottom-row-p it would be really helpful to have a row counter variable. Is this difficult to implement (I honestly tried but did not see an obvious way)? I think it is

Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Indeed. I had forgotten to implement such a tool in ox.el. I added `org-export-table-row-number'. Could you patch `org-html-table-row' accordingly? Done, thanks! -- Bastien

Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Achim Gratz
Nicolas Goaziou writes: Indeed. I had forgotten to implement such a tool in ox.el. I added `org-export-table-row-number'. Sorry, but using this has quadratic complexity with the number of rows... Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD

Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Stefan Vollmar
Dear Nicolas, dear Bastien, On 09.04.2013, at 16:56, Nicolas Goaziou wrote: [...] Indeed. I had forgotten to implement such a tool in ox.el. I added `org-export-table-row-number'. Could you patch `org-html-table-row' accordingly? I suggest to replace the current lisp example in the

Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Bastien
Stefan Vollmar voll...@nf.mpg.de writes: I suggest to replace the current lisp example in the documentation of org-html-table-row with (or similar): (setq org-html-table-row-tags (cons '(cond (top-row-p tr class=\tr-top\) (bottom-row-p tr class=\tr-bottom\)

Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-09 Thread Nicolas Goaziou
Hello, Achim Gratz strom...@nexgo.de writes: Nicolas Goaziou writes: Indeed. I had forgotten to implement such a tool in ox.el. I added `org-export-table-row-number'. Sorry, but using this has quadratic complexity with the number of rows... That's true. But that doesn't matter unless you

Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-07 Thread Bastien
Hi Stefan, Stefan Vollmar voll...@nf.mpg.de writes: 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: Obviously, this option has been simply copied from org-html.el and the docstring

[O] [ox-html] bug in documentation of org-html-table-row-tags

2013-03-27 Thread Stefan Vollmar
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)