diff options
author | Alexander Bokovoy <ab@samba.org> | 2007-11-27 15:47:55 +0000 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-23 08:47:40 -0500 |
commit | 0a6fea6796e0da0d5c8690c851f2723e4b385ba7 (patch) | |
tree | 18a0bf743f818490dbbce188b06796d4f1d3eec4 /docs/xslt/db2latex-xsl/xsl/slides/slides.xsl | |
parent | 754a2e1494f14fd5d0f157b0f0eada0d13fb80c0 (diff) | |
download | samba-0a6fea6796e0da0d5c8690c851f2723e4b385ba7.tar.gz samba-0a6fea6796e0da0d5c8690c851f2723e4b385ba7.tar.bz2 samba-0a6fea6796e0da0d5c8690c851f2723e4b385ba7.zip |
Embed db2latex as interim solution before migration to dblatex
(This used to be commit 166c61077bc5c6ca238865f71687369ad7c35a07)
Diffstat (limited to 'docs/xslt/db2latex-xsl/xsl/slides/slides.xsl')
-rw-r--r-- | docs/xslt/db2latex-xsl/xsl/slides/slides.xsl | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/docs/xslt/db2latex-xsl/xsl/slides/slides.xsl b/docs/xslt/db2latex-xsl/xsl/slides/slides.xsl new file mode 100644 index 0000000000..52446153b5 --- /dev/null +++ b/docs/xslt/db2latex-xsl/xsl/slides/slides.xsl @@ -0,0 +1,96 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: slides.xsl,v 1.2 2003/04/07 08:40:23 rcasellas Exp $ +|- ############################################################################# +| $Author: rcasellas $ +| +| PURPOSE: +| This is the "parent" stylesheet. The used "modules" are included here. +| output encoding text in ISO-8859-1 indented. ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + <xsl:include href="../docbook.xsl"/> + <xsl:output method="text" encoding="ISO-8859-1" indent="yes"/> + <xsl:include href="slidesinfo.mod.xsl"/> + <xsl:include href="slidestoc.mod.xsl"/> + <xsl:include href="foil.mod.xsl"/> + + + <xsl:template match="/"> + <xsl:variable name="xsl-vendor" select="system-property('xsl:vendor')"/> + <xsl:message>################################################################################</xsl:message> + <xsl:message> XSLT stylesheets DocBook - LaTeX 2e </xsl:message> + <xsl:message> SLIDES DTD </xsl:message> + <xsl:message> Reqs: LaTeX 2e installation common packages </xsl:message> + <xsl:message>################################################################################</xsl:message> + <xsl:message> RELEASE : <xsl:value-of select="$VERSION"/> </xsl:message> + <xsl:message> VERSION : <xsl:value-of select="$CVSVERSION"/> </xsl:message> + <xsl:message> TAG : <xsl:value-of select="$TAG"/> </xsl:message> + <xsl:message> WWW : http://db2latex.sourceforge.net </xsl:message> + <xsl:message> SUMMARY : http://www.sourceforge.net/projects/db2latex </xsl:message> + <xsl:message> AUTHOR : Ramon Casellas casellas@infres.enst.fr </xsl:message> + <xsl:message> AUTHOR : James Devenish j-devenish@users.sf.net </xsl:message> + <xsl:message> USING : <xsl:call-template name="set-vendor"/> </xsl:message> + <xsl:message><xsl:value-of select="$xsl-vendor"/> </xsl:message> + <xsl:message>################################################################################</xsl:message> + <xsl:apply-templates/> + </xsl:template> + + + + + <xsl:param name="db2latex.slides.class" select="'prosper'"/> + + <xsl:param name="db2latex.slides.customclass" select="'rcas'"/> + + <xsl:param name="db2latex.slides.options" select="'pdf,frames,slideColor'"/> + + <xsl:variable name="db2latex.slides.packages"> + <xsl:text>\usepackage[latin1]{inputenc} </xsl:text> + <xsl:text>\usepackage{pstricks,pst-node,pst-text,pst-3d} </xsl:text> + </xsl:variable> + + <xsl:variable name="db2latex.slides.optpackages"> + <xsl:text>\usepackage{subfigure} </xsl:text> + <xsl:text>\usepackage{a4wide} </xsl:text> + <xsl:text>\usepackage{times} </xsl:text> + <xsl:text>\usepackage{fancyvrb} </xsl:text> + <xsl:text>\usepackage{amsmath,amsthm, amsfonts, amssymb, amsxtra,amsopn} </xsl:text> + </xsl:variable> + + <xsl:variable name="db2latex.slides.beforebegin"> + <xsl:text>% Definition of new colors </xsl:text> + <xsl:text>\newrgbcolor{LemonChiffon}{1. 0.98 0.8} </xsl:text> + <xsl:text>\newrgbcolor{LightBlue}{0.68 0.85 0.9} </xsl:text> + <xsl:text>\hypersetup{pdfpagemode=FullScreen} </xsl:text> + <xsl:text>\makeatletter </xsl:text> + <xsl:text>%\newdimen\pst@dimz </xsl:text> + </xsl:variable> + + + <xsl:template match="slides"> +<!-- Document class and preamble --> + <xsl:text>\documentclass[</xsl:text><xsl:value-of select="$db2latex.slides.options"/> + <xsl:text>, </xsl:text><xsl:value-of select="$db2latex.slides.customclass"/> + <xsl:text>]{</xsl:text><xsl:value-of select="$db2latex.slides.class"/> + <xsl:text>} </xsl:text> + <xsl:value-of select="$db2latex.slides.packages"/> + <xsl:value-of select="$db2latex.slides.optpackages"/> + <xsl:value-of select="$db2latex.slides.beforebegin"/> +<!-- Process SlidesInfo --> + <xsl:apply-templates select="slidesinfo"/> + <xsl:text>\begin{document} </xsl:text> + <xsl:text>\maketitle </xsl:text> +<!-- Process Everything except SlidesInfo --> + <xsl:apply-templates select="*[not(slidesinfo)]"/> +<!-- <xsl:apply-templates select="foil|foilgroup"/> --> + <xsl:text>\end{document} </xsl:text> + </xsl:template> + + +</xsl:stylesheet> |