httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject cvs commit: httpd-2.0/docs/manual/style/latex common.xsl latex.xsl synopsis.xsl
Date Tue, 10 Jun 2003 18:29:05 GMT
slive       2003/06/10 11:29:05

  Modified:    docs/manual/style/latex common.xsl latex.xsl synopsis.xsl
  Log:
  A bunch of little latex-related updates:
  
  - Increase the inter-list-item spacing a little.
  
  - Decrease the font-size used in examples by one notch (\small).
  
  - Use regular paragraph formatting in the directive synopsis
  table cells rather than a minipage.
  
  - Add links to <directive> and <module> (online only, not page numbers)
  
  - Fix the space missing in the directive titles.
  
  Revision  Changes    Path
  1.3       +13 -4     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.2
  retrieving revision 1.3
  diff -u -d -b -u -r1.2 -r1.3
  --- common.xsl	5 Jun 2003 15:16:27 -0000	1.2
  +++ common.xsl	10 Jun 2003 18:29:05 -0000	1.3
  @@ -63,7 +63,7 @@
   <xsl:if test="not(pre)"><xsl:text>\fbox{</xsl:text></xsl:if>
   <xsl:text>\begin{minipage}{.8\textwidth}\begin{flushleft}</xsl:text>
   <xsl:apply-templates select="title" mode="print" />
  -<xsl:if test="not(pre)"><xsl:text>{\ttfamily </xsl:text></xsl:if>
  +<xsl:if test="not(pre)"><xsl:text>{\ttfamily\small </xsl:text></xsl:if>
   <xsl:text>\noindent </xsl:text><xsl:apply-templates/>
   <xsl:if test="not(pre)"><xsl:text>}</xsl:text></xsl:if>
   <xsl:text>\end{flushleft}\end{minipage}</xsl:text>
  @@ -114,9 +114,15 @@
   <!-- ==================================================================== -->
   <xsl:template match="directive" name="directive">
   <xsl:text>\textsc{</xsl:text>
  -        <xsl:if test="@type='section'">\textless{}</xsl:if>
  +   <xsl:if test="@type='section'"><xsl:text>\textless{}</xsl:text></xsl:if>
  +   <xsl:text>\hyperlink{/mod/</xsl:text>
  +   <xsl:value-of select="@module"/>
  +   <xsl:text>:</xsl:text>
  +   <xsl:value-of select="translate(.,$uppercase,$lowercase)"/>
  +   <xsl:text>}{</xsl:text>
           <xsl:apply-templates/>
  -        <xsl:if test="@type='section'">\textgreater{}</xsl:if>
  +   <xsl:text>}</xsl:text>
  +   <xsl:if test="@type='section'"><xsl:text>\textgreater{}</xsl:text></xsl:if>
   <xsl:text>}</xsl:text>
   </xsl:template>
   <!-- /directive -->
  @@ -126,8 +132,11 @@
   <!-- Inserts a link to refereed module                                    -->
   <!-- ==================================================================== -->
   <xsl:template match="module" name="module">
  -<xsl:text>\textsc{</xsl:text>
  +<xsl:text>\textsc{\hyperlink{/mod/</xsl:text>
  +  <xsl:value-of select="."/>
  +  <xsl:text>}{</xsl:text>
       <xsl:apply-templates/>
  +  <xsl:text>}</xsl:text>
   <xsl:text>}</xsl:text>
   </xsl:template>
   <!-- /module -->
  
  
  
  1.3       +1 -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.2
  retrieving revision 1.3
  diff -u -d -b -u -r1.2 -r1.3
  --- latex.xsl	5 Jun 2003 15:16:27 -0000	1.2
  +++ latex.xsl	10 Jun 2003 18:29:05 -0000	1.3
  @@ -35,7 +35,7 @@
   \addtolength{\parskip}{1.2ex}
   
   % Shrink the inter-item spaces
  -\AfterBegin{itemize}{\addtolength{\itemsep}{-.8\baselineskip}}
  +\AfterBegin{itemize}{\addtolength{\itemsep}{-.6\baselineskip}}
   
   \pagestyle{headings}
   
  
  
  
  1.3       +24 -13    httpd-2.0/docs/manual/style/latex/synopsis.xsl
  
  Index: synopsis.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/latex/synopsis.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -d -b -u -r1.2 -r1.3
  --- synopsis.xsl	5 Jun 2003 15:16:27 -0000	1.2
  +++ synopsis.xsl	10 Jun 2003 18:29:05 -0000	1.3
  @@ -31,8 +31,9 @@
   </xsl:choose>
   <xsl:text>}\label{</xsl:text>
   <xsl:value-of select="concat('/mod/',name)"/>
  -<xsl:text>}
  -</xsl:text>
  +<xsl:text>}\hypertarget{</xsl:text>
  +<xsl:value-of select="concat('/mod/',name)"/>
  +<xsl:text>}{}</xsl:text>
   
   <xsl:text>
   \begin{tabular}{lp{.75\linewidth}}
  @@ -164,13 +165,24 @@
   <xsl:template match="directivesynopsis/name">
   <xsl:text>\subsection*{</xsl:text>
   <xsl:call-template name="simpledirname"/>
  +  <xsl:choose>
  +  <xsl:when test="$messages/message
  +      [@name='directive']/@replace-space-with">
     <xsl:value-of select="$messages/message
       [@name='directive']/@replace-space-with"/>
  +  </xsl:when>
  +  <xsl:otherwise>
  +    <xsl:text> </xsl:text>
  +  </xsl:otherwise>
  +  </xsl:choose>
  +
   <xsl:value-of select="$messages/message[@name='directive']" />
   <xsl:text>}\label{</xsl:text>
   <xsl:value-of select="concat('/mod/', //modulesynopsis/name, ':', translate(., $uppercase,
$lowercase))"/>
  -<xsl:text>}
  -</xsl:text>
  +<xsl:text>}\hypertarget{</xsl:text>
  +<xsl:value-of select="concat('/mod/', //modulesynopsis/name, ':', translate(., $uppercase,
$lowercase))"/>
  +<xsl:text>}{}</xsl:text>
  +
   </xsl:template>
   
   <xsl:template match="directivesynopsis">
  @@ -182,22 +194,22 @@
   \hline
   </xsl:text>
   <xsl:value-of select="$messages/message [@name='description']" />
  -<xsl:text>: &amp; \begin{minipage}{.8\linewidth}</xsl:text>
  +<xsl:text>: &amp; </xsl:text>
   <xsl:apply-templates select="description" />
  -<xsl:text>\end{minipage} \\
  +<xsl:text>\\
   </xsl:text>
   
   <xsl:value-of select="$messages/message[@name='syntax']" />
  -<xsl:text>: &amp; \begin{minipage}{.8\linewidth}{\ttfamily </xsl:text>
  +<xsl:text>: &amp; {\ttfamily </xsl:text>
   <xsl:apply-templates select="syntax" />
  -<xsl:text>}\end{minipage} \\
  +<xsl:text>}\\
   </xsl:text>
   
   <xsl:if test="default">
   <xsl:value-of select="$messages/message[@name='default']" />
  -<xsl:text>: &amp; \begin{minipage}{.8\linewidth}{\ttfamily </xsl:text>
  +<xsl:text>: &amp; {\ttfamily </xsl:text>
   <xsl:apply-templates select="default" />
  -<xsl:text>}\end{minipage} \\
  +<xsl:text>} \\
   </xsl:text>
   </xsl:if>
   
  @@ -253,7 +265,6 @@
   <xsl:text>\textbf{</xsl:text>
   <xsl:value-of select="$messages/message[@name='seealso']" />
   <xsl:text>}
  -
   \begin{itemize}
   </xsl:text>
   <xsl:for-each select="seealso">
  
  
  

Mime
View raw message