isc-docbook-latex.xsl.in revision ec5347e2c775f027573ce5648b910361aa926c01
<!--
- Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
-
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: isc-docbook-latex.xsl.in,v 1.5 2007/06/18 23:47:34 tbox Exp $ -->
<!-- ISC customizations for db2latex generator -->
<!-- Import the db2latex stuff -->
<xsl:import href="@XSLT_DB2LATEX_STYLE@"/>
<!-- Blank lines between paragraphs, please -->
<!-- Least bad current option for constructing tables -->
<!-- LaTeX2e documentclass options. -->
<!-- This documentation is in English (or maybe Bad English) -->
<!-- Where to find "admonition" graphics -->
<!-- ANSI C function prototypes, please -->
<!-- Local modifications to db2latex's mapping rules -->
<!-- Patch around db2latex (0.8pre1) bug -->
<xsl:apply-templates />
<xsl:if test="position() != last()">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:template>
<!-- Include our copyright generator -->
<!-- Set comment convention for this output format -->
<!-- Intercept top level to prepend copyright -->
<xsl:template match="/">
<xsl:apply-imports/>
</xsl:template>
<!--
- Add support for multiple <para/> elements in a table entry.
- db2latex is already typesetting the table entry as a parbox,
- so we just have to insert the paragraph breaks.
-->
<xsl:apply-imports/>
<xsl:text> \par </xsl:text>
</xsl:template>
<!--
- Add support for <optional/> in <programlisting/>.
-->
<xsl:text>[</xsl:text>
<xsl:text>]</xsl:text>
</xsl:template>
<!--
- Customize the title page. Are we having fun yet?
-
- NB: filename of graphic specified without extension.
-
- Spacing and font sizes could probably use some work.
-->
<xsl:text>
\begin{titlepage}
\null\vfil
\vskip 60pt
\begin{center}%
{ %\LARGE
\Huge
\bfseries
</xsl:text>
<xsl:call-template name="text"/>
</xsl:for-each>
<xsl:text>
\par}%
\vskip 3em%
{ %\large
\Large
\lineskip .75em%
</xsl:text>
<xsl:call-template name="text"/>
</xsl:for-each>
<xsl:text>
\par}
%\vskip 1.5em%
\vfil
\includegraphics{isc-logo}
\end{center}\par
\vfil\null
\end{titlepage}
</xsl:text>
<xsl:text> </xsl:text>
</xsl:param>
<!--
- More front matter: copyright notice, CVS revision number, table
- of contents.
-->
<xsl:apply-imports/>
<xsl:text>\begin{center} </xsl:text>
<xsl:text>\end{center} </xsl:text>
<xsl:text>\begin{center}</xsl:text>
<xsl:call-template name="text"/>
<xsl:text>\end{center} </xsl:text>
</xsl:for-each>
<xsl:text>\tableofcontents </xsl:text>
</xsl:template>
<!--
- Try to avoid some weird looking line breaks.
-
- This doesn't really work right, so disable for now.
-->
<xsl:template match="literal" mode="disabled">
<xsl:text>\mbox{</xsl:text>
<xsl:apply-imports/>
<xsl:text>}</xsl:text>
</xsl:template>
</xsl:stylesheet>
<!--
- Local variables:
- mode: sgml
- End:
-->