mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 23:28:51 -05:00
Improving table layout and general LaTeX compatibility. (Thanks to Florian Zeitz)
This commit is contained in:
parent
dee8939277
commit
b4412526ef
@ -99,6 +99,8 @@
|
||||
\newcommand{\XEPNumber}[0]{<xsl:value-of select="/xep/header/number"/>}
|
||||
\newcommand{\XEPVersion}[0]{<xsl:value-of select="$maxXEPVersion"/>}
|
||||
|
||||
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
|
||||
|
||||
\fancyhead[L,L]{\includegraphics[totalheight=10pt]{xmpp.pdf} \slshape \leftmark}
|
||||
\fancyfoot[C,C]{\thepage}
|
||||
|
||||
@ -225,7 +227,7 @@
|
||||
<xsl:template match='table'>
|
||||
<TeXML escape="0">
|
||||
<env name="center">
|
||||
<env name='tabularx'><parm><cmd name="linewidth" /></parm>
|
||||
<env name='tabularx'><parm><TeXML escape="0">\linewidth</TeXML></parm>
|
||||
<parm><xsl:for-each select='tr[1]/th | tr[1]/td'><xsl:if test="position() = 1">l</xsl:if><xsl:if test='position() != last() and position() > 1'>X</xsl:if><xsl:if test='position() = last()'>X</xsl:if></xsl:for-each></parm>
|
||||
<xsl:for-each select='tr'>
|
||||
<xsl:for-each select='td | th'><xsl:if test='position() > 1'> & </xsl:if><TeXML escape="1"><xsl:value-of select='.'/></TeXML><xsl:if test='position() = last()'> \\</xsl:if></xsl:for-each>
|
||||
|
Loading…
Reference in New Issue
Block a user