You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sl...@apache.org on 2003/06/13 17:08:58 UTC
cvs commit: httpd-2.0/docs/manual/style/latex common.xsl html.xsl
slive 2003/06/13 08:08:58
Modified: docs/manual/style/latex common.xsl html.xsl
Log:
LaTeX:
- Another attempt to fix the # URL issue.
- Table changes:
- Use \small font inside tables.
- Use bold for table headers.
- Another hack to deal with <br>: use a small-skip rather
than a line-break after an <indent>.
Revision Changes Path
1.5 +1 -2 httpd-2.0/docs/manual/style/latex/common.xsl
Index: common.xsl
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/latex/common.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -b -u -r1.4 -r1.5
--- common.xsl 12 Jun 2003 19:50:41 -0000 1.4
+++ common.xsl 13 Jun 2003 15:08:58 -0000 1.5
@@ -85,8 +85,7 @@
<xsl:text>\begin{list}{}{\topsep 0pt\rightmargin 0pt\leftmargin 2em}
\item[] </xsl:text>
<xsl:apply-templates/>
-<xsl:text>\end{list}
-</xsl:text>
+<xsl:text>\end{list}</xsl:text>
</xsl:template>
<!-- ==================================================================== -->
1.7 +29 -6 httpd-2.0/docs/manual/style/latex/html.xsl
Index: html.xsl
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/latex/html.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -b -u -r1.6 -r1.7
--- html.xsl 12 Jun 2003 19:50:41 -0000 1.6
+++ html.xsl 13 Jun 2003 15:08:58 -0000 1.7
@@ -53,10 +53,10 @@
one line break followed by smallskips. -->
<xsl:template match="br">
<xsl:choose>
-<xsl:when test="name(preceding-sibling::node()[1])='br'">
+<xsl:when test="name(preceding-sibling::node()[1])='br' or name(preceding-sibling::node()[1])='indent'">
<xsl:text>\smallskip </xsl:text>
</xsl:when>
-<xsl:when test="name(preceding-sibling::node()[2])='br'">
+<xsl:when test="name(preceding-sibling::node()[2])='br' or name(preceding-sibling::node()[2])='indent'">
<xsl:choose>
<xsl:when test="normalize-space(preceding-sibling::node()[1])=''">
<xsl:text>\smallskip </xsl:text>
@@ -159,7 +159,7 @@
</xsl:text>
</xsl:template>
-<xsl:template match="td|th">
+<xsl:template match="td">
<xsl:variable name="pos" select="position()"/>
<xsl:text>\begin{minipage}[t]{</xsl:text>
<xsl:choose>
@@ -167,10 +167,29 @@
<xsl:value-of select="../../columnspec/column[$pos]/@width"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="1 div last()"/>
+ <xsl:value-of select=".95 div last()"/>
</xsl:otherwise>
</xsl:choose>
- <xsl:text>\linewidth}</xsl:text>
+ <xsl:text>\linewidth}\small </xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>\end{minipage}</xsl:text>
+ <xsl:if test="not(position()=last())">
+ <xsl:text> & </xsl:text>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template match="th">
+ <xsl:variable name="pos" select="position()"/>
+ <xsl:text>\begin{minipage}[t]{</xsl:text>
+ <xsl:choose>
+ <xsl:when test="../../columnspec">
+ <xsl:value-of select="../../columnspec/column[$pos]/@width"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select=".95 div last()"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>\linewidth}\bfseries </xsl:text>
<xsl:apply-templates/>
<xsl:text>\end{minipage}</xsl:text>
<xsl:if test="not(position()=last())">
@@ -217,7 +236,11 @@
<xsl:if test="not(.=@href)">
<xsl:text>\footnote{</xsl:text>
<xsl:text>\href{</xsl:text>
- <xsl:value-of select="@href"/>
+ <xsl:call-template name="replace-string">
+ <xsl:with-param name="text" select="@href"/>
+ <xsl:with-param name="replace" select="'#'"/>
+ <xsl:with-param name="with" select="'\#'"/>
+ </xsl:call-template>
<xsl:text>}{</xsl:text>
<xsl:call-template name="ltescape">
<xsl:with-param name="string" select="@href"/>