]> granicus.if.org Git - apache/commitdiff
LaTeX:
authorJoshua Slive <slive@apache.org>
Mon, 16 Jun 2003 15:03:59 +0000 (15:03 +0000)
committerJoshua Slive <slive@apache.org>
Mon, 16 Jun 2003 15:03:59 +0000 (15:03 +0000)
- Add a little more meta-information to the pdf file (title/author)

- Remove the dependency on fullpage.sty, since this is not a standard
latex package.

- With <note type="Warning">, replace the arrow with an exclamation mark
in a box.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100267 13f79535-47bb-0310-9956-ffa450edef68

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

index 867ebb008a9b19b2eaaca47e25b080ba8ae0b9a2..a7904553f7708d61d1583d3d275b4abdf4d269b2 100644 (file)
@@ -24,8 +24,6 @@ Some things that need to be done with the LaTeX transforms:
 - Fix page references on "external" directives
   (<directivesynopsis location=...)
 
-- External URL references containing a "#" are broken.
-
 - Hundreds of other little problems with presentation, cross-referencing,
   etc.
 
index 135b0ae2dd0d1bed97dc265a158ee2040f8ba79d..123102a9ed434c9e32155ef340c74a53ee2270c4 100644 (file)
@@ -93,7 +93,16 @@ select="$metafile/basename"/>
 <!-- ==================================================================== -->
 <xsl:template match="note">
 <xsl:text>\par\smallskip
-{\Huge $\Longrightarrow$}\begin{minipage}[t]{.8\textwidth}
+{\Huge </xsl:text>
+<xsl:choose>
+<xsl:when test="@type='warning'">
+  <xsl:text>\fbox{!} </xsl:text>
+</xsl:when>
+<xsl:otherwise>
+  <xsl:text>$\Longrightarrow$</xsl:text>
+</xsl:otherwise>
+</xsl:choose>
+<xsl:text>}\begin{minipage}[t]{.8\textwidth}
 \noindent </xsl:text>
 <xsl:apply-templates select="title" mode="print" />
 <xsl:apply-templates/>
index 2b3c7cf647ad255de9e789c970e5ff9df80c5cd0..bf63297537253781fd7d8fd6a2f8f1385d8ea543 100644 (file)
 <xsl:text>
 \documentclass[11pt]{book}
 \usepackage{times}
-\usepackage{fullpage}
 \usepackage{style/latex/atbeginend}
+%\usepackage[pdftex]{color}
 \usepackage[colorlinks=true,letterpaper=true]{hyperref}
 
 % Let LaTeX be lenient about very-bad line wrapping.
 \tolerance=9999 
 \emergencystretch=60pt
 
+% Adjust margins to a reasonable level
+\topmargin 0pt
+\advance \topmargin by -\headheight
+\advance \topmargin by -\headsep
+\textheight 8.9in
+\oddsidemargin 0pt
+\evensidemargin \oddsidemargin
+\marginparwidth 0.5in
+\textwidth 6.5in
+
 % Keep paragraphs flush left (rather than the default of indenting
 % the first line) and put a space between paragraphs.
 \setlength{\parindent}{0ex}
 
 \pagestyle{headings}
 
+\hypersetup{
+    pdftitle={</xsl:text>
+<xsl:value-of select="$messages/message[@name='apache']" />
+<xsl:text> </xsl:text>
+<xsl:value-of select="$messages/message[@name='http-server']" />
+<xsl:text> </xsl:text>
+<xsl:value-of select="$messages/message[@name='documentation']" />
+<xsl:text> </xsl:text>
+<xsl:value-of select="$messages/message[@name='version']" />
+<xsl:text>},
+    pdfauthor={Apache Software Foundation}
+  }
+
 \title{</xsl:text>
 <xsl:value-of select="$messages/message[@name='apache']" />
 <xsl:text> </xsl:text>