summaryrefslogtreecommitdiffstats
path: root/docs/manual/style/latex/html.xsl
diff options
context:
space:
mode:
authorJoshua Slive <slive@apache.org>2003-06-21 00:51:28 +0200
committerJoshua Slive <slive@apache.org>2003-06-21 00:51:28 +0200
commitd7f61018781c2c9e1d5c019debab84a213d7f095 (patch)
treed80e6d85aebe756aad88fb74762a050979fa8ca4 /docs/manual/style/latex/html.xsl
parentDocumentRoot always used to be interpreted relative to ServerRoot. Make it se... (diff)
downloadapache2-d7f61018781c2c9e1d5c019debab84a213d7f095.tar.xz
apache2-d7f61018781c2c9e1d5c019debab84a213d7f095.zip
LaTeX:
- Replace " with \texttt{"}, which is ugly, but less ugly than quotes going in the wrong direction. - Add a disclaimer to the front of the book telling people to look at the html if they have a problem. - Use "longtable" (and thereby allow a pagebreak) for tables with more than 15 rows. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100319 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/style/latex/html.xsl')
-rw-r--r--docs/manual/style/latex/html.xsl17
1 files changed, 14 insertions, 3 deletions
diff --git a/docs/manual/style/latex/html.xsl b/docs/manual/style/latex/html.xsl
index c1a5b828ec..4519623e62 100644
--- a/docs/manual/style/latex/html.xsl
+++ b/docs/manual/style/latex/html.xsl
@@ -124,7 +124,15 @@ interpreted in pre -->
<!-- XXX: We need to deal with table headers -->
<xsl:template match="table">
-<xsl:text>\fbox{\begin{tabular}{</xsl:text>
+<xsl:variable name="table-type">
+ <xsl:choose>
+ <xsl:when test="count(tr) &gt; 15">longtable</xsl:when>
+ <xsl:otherwise>tabular</xsl:otherwise>
+ </xsl:choose>
+</xsl:variable>
+
+<xsl:text>\begin{</xsl:text><xsl:value-of select="$table-type"/>
+<xsl:text>}{|</xsl:text>
<xsl:choose>
<xsl:when test="columnspec">
<xsl:for-each select="columnspec/column">
@@ -143,9 +151,12 @@ interpreted in pre -->
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
-<xsl:text>}</xsl:text>
+<xsl:text>|}\hline
+</xsl:text>
<xsl:apply-templates select="tr"/>
-<xsl:text>\end{tabular}}
+<xsl:text>\hline\end{</xsl:text>
+<xsl:value-of select="$table-type"/>
+<xsl:text>}
</xsl:text>
</xsl:template>