1. Fix transformation of absolute <a href>s to footnotes,
and include hyperref links. This is a result of fixing
a bug in the latex escaping template.
2. Turn off the ugly box around the links, and make them
colored instead.
3. Slightly shrink the inter-paragraph spacing, and the spacing
around <notes> and <examples>.
4. Change to favour standard pdf fonts where possible. This
may or may not be a good move in the long run.
A new version is online at
http://www.apache.org/~slive/manual/
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100173
13f79535-47bb-0310-9956-
ffa450edef68
<table><columnlist><column width="20%"/><column width="80%"/></columnlist>
<tr><td>...
-- href
-
- External hrefs should be transformed to \footnote{}s, but it's not
- working at the moment. It is easy enough just to <value-of> the @href,
- but this won't work because the result needs to be run through the
- escaping routines or LaTeX will barf.
-
- Images
A quick search makes me believe that pdftex will not handle gifs.
<!-- ==================================================================== -->
<xsl:template match="example">
-<xsl:text>\par\medskip\begin{center}</xsl:text>
+<xsl:text>\par\smallskip\begin{center}</xsl:text>
<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>}</xsl:text></xsl:if>
<xsl:text>\end{flushleft}\end{minipage}</xsl:text>
<xsl:if test="not(pre)"><xsl:text>}</xsl:text></xsl:if>
-<xsl:text>\end{center}\par\medskip</xsl:text>
+<xsl:text>\end{center}\par\smallskip</xsl:text>
</xsl:template>
<xsl:template match="example/title" mode="print">
<!-- <note> -->
<!-- ==================================================================== -->
<xsl:template match="note">
-<xsl:text>\par\medskip
+<xsl:text>\par\smallskip
{\Huge $\Longrightarrow$}\begin{minipage}[t]{.8\textwidth}
\noindent </xsl:text>
<xsl:apply-templates select="title" mode="print" />
<xsl:apply-templates/>
-<xsl:text>\end{minipage}\par\medskip</xsl:text>
+<xsl:text>\end{minipage}\par\smallskip</xsl:text>
</xsl:template>
<xsl:template match="note/title" mode="print">
<xsl:text>
\end{minipage}
\end{tabular}}
-\medskip
+\smallskip
</xsl:text>
</xsl:template>
</xsl:text>
</xsl:template>
+
+<!--
+ This is a horrible hack, but it seems to mostly work. It does a
+ few things:
+
+ 1. Transforms references starting in http:// to footnotes with the
+ appropriate hyperref macro to make them clickable. (This needs
+ to be expanded to deal with news: and needs to be adjusted to
+ deal with "#", which is creating bad links at the moment.)
+
+ 2. For intra-document references, constructs the appropriate absolute
+ reference using a latex \pageref.
+ This involves applying a simplified version of the
+ general URL resolution rules to deal with ../. It only works for
+ one level of subdirectory.
+
+ 3. It is also necessary to deal with the fact that index pages
+ get references as "/".
+-->
<xsl:template match="a">
<xsl:apply-templates/>
<xsl:if test="@href">
<xsl:choose>
<xsl:when test="starts-with(@href, 'http:')">
<xsl:if test="not(.=@href)">
- <xsl:text>\footnote{</xsl:text>
+ <xsl:text>\footnote{\href{</xsl:text>
+ <xsl:value-of select="@href"/>
+ <xsl:text>}{</xsl:text>
<xsl:call-template name="ltescape">
- <xsl:with-param name="string">
- <xsl:value-of select="string(@href)"/>
- </xsl:with-param>
+ <xsl:with-param name="string" select="@href"/>
</xsl:call-template>
- <xsl:text>}</xsl:text>
+ <xsl:text>}}</xsl:text>
</xsl:if>
</xsl:when>
<xsl:when test="starts-with(@href, '#')">
<xsl:template match="sitemap">
<xsl:text>
\documentclass[11pt]{book}
-\usepackage{fullpage,hyperref}
+\usepackage{times}
+\usepackage{fullpage}
\usepackage{style/latex/atbeginend}
+\usepackage[colorlinks=true,letterpaper=true]{hyperref}
% Let LaTeX be lenient about very-bad line wrapping.
\tolerance=9999
% Keep paragraphs flush left (rather than the default of indenting
% the first line) and put a space between paragraphs.
\setlength{\parindent}{0ex}
-\addtolength{\parskip}{1.5ex}
+\addtolength{\parskip}{1.2ex}
% Shrink the inter-item spaces
\AfterBegin{itemize}{\addtolength{\itemsep}{-.8\baselineskip}}
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="."/>
+ <xsl:value-of select="$string"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="seealso">
- <xsl:text>\bigskip\noindent\textbf{</xsl:text>
+ <xsl:text>\medskip\noindent\textbf{</xsl:text>
<xsl:value-of select="$messages/message[@name='seealso']" />
<xsl:text>}
\begin{itemize}</xsl:text>
</xsl:if>
<xsl:text>
-\medskip\textbf{</xsl:text>
+\smallskip\textbf{</xsl:text>
<xsl:value-of select="$messages/message [@name='directives']" />
<xsl:text>}
</xsl:text>