]> granicus.if.org Git - apache/commitdiff
LaTeX:
authorJoshua Slive <slive@apache.org>
Fri, 20 Jun 2003 22:51:28 +0000 (22:51 +0000)
committerJoshua Slive <slive@apache.org>
Fri, 20 Jun 2003 22:51:28 +0000 (22:51 +0000)
- 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

docs/manual/style/latex/TODO
docs/manual/style/latex/common.xsl
docs/manual/style/latex/html.xsl
docs/manual/style/latex/latex.xsl

index 2d335e0cb0a704aebf200923117a82860514305b..f167e5c863185b420935db0e2bfbdccc0a509918 100644 (file)
@@ -8,12 +8,6 @@ Some things that need to be done with the LaTeX transforms:
   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.
 
index c7a46856894809f2e76fa4529334c653d5e03251..bec14b9ee6abf9384ec0d3ff7426da92a32fcd13 100644 (file)
@@ -159,7 +159,7 @@ select="$metafile/basename"/>
 <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>} \\
index c1a5b828ec84b3a173793906ef1909a81a93b79b..4519623e624b3b4cf74fecb3d6cf5c4d0775ea63 100644 (file)
@@ -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>
 
index d54b6aca4a879975881dd54cb2f94744a2408e0e..d3e8ac7dfdb174e1a1d708f786928cb4f372efec 100644 (file)
 \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>
  </xsl:choose>
 </xsl:variable>
 
+<xsl:variable name="result7">
+ <xsl:choose>
+ <xsl:when test="contains($result6, '&quot;')">
+   <xsl:call-template name="replace-string">
+    <xsl:with-param name="replace" select="'&quot;'"/>
+    <xsl:with-param name="with" select="'\texttt{&quot;}'"/>
+    <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="'\_'"/>
                     <xsl:call-template name="replace-string">
                     <xsl:with-param name="replace" select="'&amp;'"/>
                     <xsl:with-param name="with" select="'\&amp;'"/>
-                    <xsl:with-param name="text" select="$result6"/>
+                    <xsl:with-param name="text" select="$result7"/>
                     </xsl:call-template>
                 </xsl:with-param>
                 </xsl:call-template>