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/21 00:51:28 UTC
cvs commit: httpd-2.0/docs/manual/style/latex TODO common.xsl html.xsl latex.xsl
slive 2003/06/20 15:51:28
Modified: docs/manual/style/latex TODO common.xsl html.xsl latex.xsl
Log:
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.
Revision Changes Path
1.9 +0 -6 httpd-2.0/docs/manual/style/latex/TODO
Index: TODO
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/latex/TODO,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -b -u -r1.8 -r1.9
--- TODO 19 Jun 2003 18:36:06 -0000 1.8
+++ TODO 20 Jun 2003 22:51:28 -0000 1.9
@@ -8,12 +8,6 @@
A quick search makes me believe that pdftex will not handle gifs.
It probably will handle png.
-- Fix quotes
-
- In LaTeX, quotes should be like ``This''. This may
- not be feasible for us, in which case we could simply replace
- " with \texttt{"} or something, so that the quotes are all straight.
-
- Hundreds of other little problems with presentation, cross-referencing,
etc.
1.8 +1 -1 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.7
retrieving revision 1.8
diff -u -d -b -u -r1.7 -r1.8
--- common.xsl 19 Jun 2003 18:36:06 -0000 1.7
+++ common.xsl 20 Jun 2003 22:51:28 -0000 1.8
@@ -159,7 +159,7 @@
<xsl:template match="related">
<xsl:text>
\fbox{\begin{tabular}{rr}
-\begin{minipage}[t]{.4\linewidth}
+\begin{minipage}[t]{.49\linewidth}
\textbf{</xsl:text>
<xsl:value-of select="$messages/message[@name='relatedmodules']" />
<xsl:text>} \\
1.9 +14 -3 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.8
retrieving revision 1.9
diff -u -d -b -u -r1.8 -r1.9
--- html.xsl 19 Jun 2003 18:36:06 -0000 1.8
+++ html.xsl 20 Jun 2003 22:51:28 -0000 1.9
@@ -124,7 +124,15 @@
<!-- 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) > 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 @@
</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>
1.8 +26 -1 httpd-2.0/docs/manual/style/latex/latex.xsl
Index: latex.xsl
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/latex/latex.xsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -b -u -r1.7 -r1.8
--- latex.xsl 19 Jun 2003 18:36:06 -0000 1.7
+++ latex.xsl 20 Jun 2003 22:51:28 -0000 1.8
@@ -82,6 +82,15 @@
\begin{document}
\frontmatter
\maketitle
+
+\section*{About The PDF Documentation}
+
+This is an early release of the PDF version of the Apache
+Documentation. It is converted from XML source files, and may contain
+some errors and inconsistencies. If you have difficulty reading a
+part of this file, please consult instead the HTML version of the
+documentation on the Apache HTTP Server website.
+
\tableofcontents
\mainmatter
</xsl:text>
@@ -261,6 +270,22 @@
</xsl:choose>
</xsl:variable>
+<xsl:variable name="result7">
+ <xsl:choose>
+ <xsl:when test="contains($result6, '"')">
+ <xsl:call-template name="replace-string">
+ <xsl:with-param name="replace" select="'"'"/>
+ <xsl:with-param name="with" select="'\texttt{"}'"/>
+ <xsl:with-param name="text" select="$result6"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$result6"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:variable>
+
+
<xsl:call-template name="replace-string">
<xsl:with-param name="replace" select="'_'"/>
<xsl:with-param name="with" select="'\_'"/>
@@ -292,7 +317,7 @@
<xsl:call-template name="replace-string">
<xsl:with-param name="replace" select="'&'"/>
<xsl:with-param name="with" select="'\&'"/>
- <xsl:with-param name="text" select="$result6"/>
+ <xsl:with-param name="text" select="$result7"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>