MMD->LaTeX table problem

I am experiencing a strange issue related to tables when using the MMD->LaTeX export option. For some reason, \bottomrule does not get applied to all tables, only to some. I think there is a problem with the template

<xsl:template match=“tr[last()]”>
<xsl:apply-templates select=“td|th”/>
xsl:text \ \bottomrule

in xhtml2latex.xslt

I have tried to debug the issue myself, but find no difference in neither the markdown source, nor the generated xhtml (which both looks fine) between tables for which \bottomrule is applied, and those for which it is not.


I haven’t experienced this - send me a copy of the MMD source for the table(s) in question and I can take a look at it.

On the way…

This was solved off list - it is an issue with the xsltproc binary that Apple included with OS X - it’s outdated, and doesn’t handle the last() function, causing problems. Install a newer version, and it should be fine. Hopefully this will be fixed with 10.5.