2
<!--#############################################################################
3
| $Id: slides.xsl,v 1.1 2003/07/22 07:12:13 rcasellas Exp $
4
|- #############################################################################
7
+ ############################################################################## -->
8
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
10
<xsl:import href="../slides.xsl"/>
12
<xsl:variable name="db2latex.slides.packages">
13
<xsl:text>\usepackage[latin1]{inputenc} </xsl:text>
14
<xsl:text>\usepackage{pstricks,pst-node,pst-text,pst-3d} </xsl:text>
15
<xsl:text>\usepackage{subfigure} </xsl:text>
16
<xsl:text>\usepackage{fancybox} </xsl:text>
17
<xsl:text>\usepackage{a4wide} </xsl:text>
18
<xsl:text>\usepackage{times} </xsl:text>
19
<xsl:text>\usepackage{fancyvrb} </xsl:text>
20
<xsl:text>\usepackage{amsmath,amsthm, amsfonts, amssymb, amsxtra,amsopn} </xsl:text>
21
<xsl:text>\usepackage{anysize} </xsl:text>
22
<xsl:text>\usepackage[pdftex,bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, </xsl:text>
23
<xsl:text>linktocpage,hyperfigures,hyperindex,citecolor=blue,urlcolor=blue]{hyperref} </xsl:text>
24
<xsl:text>\usepackage[english]{babel} </xsl:text>
25
<xsl:text>\usepackage[pdftex]{graphicx} </xsl:text>
31
<xsl:variable name="db2latex.slides.optpackages"/>
34
<xsl:variable name="db2latex.slides.beforebegin">
35
<xsl:text>\pdfcompresslevel=9 </xsl:text>
36
<xsl:text>%------------------------------------------------------- Values and counters </xsl:text>
37
<xsl:text>\marginsize{1.5cm}{1.5cm}{0.5cm}{0.5cm} </xsl:text>
38
<xsl:text>\renewcommand\floatpagefraction{.9} </xsl:text>
39
<xsl:text>\renewcommand\topfraction{.9} </xsl:text>
40
<xsl:text>\renewcommand\bottomfraction{.9} </xsl:text>
41
<xsl:text>\renewcommand\textfraction{.1} </xsl:text>
42
<xsl:text> </xsl:text>
43
<xsl:text>\usepackage[usenames,pdftex]{color} </xsl:text>
44
<xsl:text>%------------------------------------------------------- BfBlue Command </xsl:text>
45
<xsl:text>\newcommand{\bfblue}[1]{ \textcolor{blue}{\bf #1} } </xsl:text>
46
<xsl:text> </xsl:text>
47
<xsl:text>%------------------------------------------------------- BfGreen Command </xsl:text>
48
<xsl:text>\newcommand{\bfgreen}[1]{ \textcolor{blue}{\bf #1} } </xsl:text>
49
<xsl:text> </xsl:text>
50
<xsl:text>%------------------------------------------------------- BfRed Command </xsl:text>
51
<xsl:text>\newcommand{\bfred}[1]{ \textcolor{red}{\bf #1} } </xsl:text>
52
<xsl:text> </xsl:text>
53
<xsl:text>%------------------------------------------------------- BfBlue Command </xsl:text>
54
<xsl:text>\newcommand{\emblue}[1]{ \textcolor{blue}{\emph{#1}} } </xsl:text>
55
<xsl:text> </xsl:text>
56
<xsl:text>%------------------------------------------------------- BfGreen Command </xsl:text>
57
<xsl:text>\newcommand{\emgreen}[1]{ \textcolor{blue}{\emph{#1}} } </xsl:text>
58
<xsl:text> </xsl:text>
59
<xsl:text>%------------------------------------------------------- BfRed Command </xsl:text>
60
<xsl:text>\newcommand{\emred}[1]{ \textcolor{red}{\emph{#1}} } </xsl:text>
61
<xsl:text> </xsl:text>
62
<xsl:text>%------------------------------------------------------- Part Command </xsl:text>
63
<xsl:text>\newcommand{\part}[1]{ </xsl:text>
64
<xsl:text>\foilhead{} </xsl:text>
65
<xsl:text>\vspace{2cm} </xsl:text>
66
<xsl:text>\begin{center} </xsl:text>
67
<xsl:text>\Huge{\textcolor{blue}{#1}} </xsl:text>
68
<xsl:text>\end{center}} </xsl:text>
69
<xsl:text> \newcommand{\dbz}{} </xsl:text>
70
<xsl:text>%------------------------------------------------------- Slide Command </xsl:text>
71
<xsl:text>\newcommand{\slide}[1]{ </xsl:text>
72
<xsl:text>\foilhead[-0.5in]{\large{\textcolor{blue}{#1}}} </xsl:text>
73
<xsl:text>} </xsl:text>
74
<xsl:text>\newcommand{\id}[1]{ </xsl:text>
75
<xsl:text>\label{#1} </xsl:text>
76
<xsl:text>\hypertarget{#1}{} </xsl:text>
77
<xsl:text>} </xsl:text>
78
<xsl:text>% -------------------------------------------- </xsl:text>
79
<xsl:text>\newenvironment{admminipage}{ </xsl:text>
80
<xsl:text>\begin{Sbox} </xsl:text>
81
<xsl:text>\begin{minipage} </xsl:text>
82
<xsl:text>}{ </xsl:text>
83
<xsl:text>\end{minipage} </xsl:text>
84
<xsl:text>\end{Sbox} </xsl:text>
85
<xsl:text>\fbox{\TheSbox} </xsl:text>
86
<xsl:text>} </xsl:text>
87
<xsl:text>\newlength{\admlength} </xsl:text>
88
<xsl:text>\newenvironment{admonition}[2] { </xsl:text>
89
<xsl:text>\hspace{0mm}\newline\hspace*\fill\newline </xsl:text>
90
<xsl:text>\noindent </xsl:text>
91
<xsl:text>\setlength{\fboxsep}{5pt} </xsl:text>
92
<xsl:text>\setlength{\admlength}{\linewidth} </xsl:text>
93
<xsl:text>\addtolength{\admlength}{-10\fboxsep} </xsl:text>
94
<xsl:text>\addtolength{\admlength}{-10\fboxrule} </xsl:text>
95
<xsl:text>\admminipage{\admlength} </xsl:text>
96
<xsl:text>\bfblue{\sc\large{#2}}\newline </xsl:text>
97
<xsl:text>\\[1mm] </xsl:text>
98
<xsl:text>%\sffamily </xsl:text>
99
<xsl:text>\includegraphics[width=1cm]{#1} </xsl:text>
100
<xsl:text>\addtolength{\admlength}{-1cm} </xsl:text>
101
<xsl:text>\addtolength{\admlength}{-20pt} </xsl:text>
102
<xsl:text>\begin{minipage}[lt]{\admlength} </xsl:text>
103
<xsl:text>\parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt </xsl:text>
104
<xsl:text>}{ </xsl:text>
105
<xsl:text>\vspace{5mm} </xsl:text>
106
<xsl:text>\end{minipage} </xsl:text>
107
<xsl:text>\endadmminipage </xsl:text>
108
<xsl:text>\vspace{.5em} </xsl:text>
109
<xsl:text>\par </xsl:text>
110
<xsl:text>} </xsl:text>
116
<xsl:template match="slides">
117
<!-- Document class and preamble -->
118
<xsl:text>\documentclass[17pt,headrule,footrule,landscape]{foils} </xsl:text>
119
<xsl:value-of select="$db2latex.slides.packages"/>
120
<xsl:value-of select="$db2latex.slides.beforebegin"/>
121
<!-- Process SlidesInfo -->
122
<xsl:apply-templates select="slidesinfo"/>
123
<xsl:text>\begin{document} </xsl:text>
124
<xsl:text>\maketitle </xsl:text>
125
<!-- Process Everything except SlidesInfo -->
126
<xsl:apply-templates select="*[not(slidesinfo)]"/>
127
<!-- <xsl:apply-templates select="foil|foilgroup"/> -->
128
<xsl:text>\end{document} </xsl:text>
132
<xsl:template match="slidesinfo">
133
<xsl:text>%--------------------------------------------------SLIDES INFORMATION </xsl:text>
134
<xsl:text>\title{{\black </xsl:text>
135
<xsl:apply-templates select="title"/>
136
<xsl:text>}} </xsl:text>
137
<xsl:text>\author{{\black </xsl:text>
138
<xsl:apply-templates select="author|authorgroup"/>
139
<xsl:text>}} </xsl:text>
140
<xsl:text> </xsl:text>
145
<xsl:output method="text" encoding="ISO-8859-1" indent="yes"/>
146
<xsl:variable name="latex.use.babel">1</xsl:variable>
147
<xsl:variable name="latex.use.fancyvrb">1</xsl:variable>
148
<xsl:variable name="latex.use.fancybox">1</xsl:variable>
149
<xsl:variable name="latex.use.fancyhdr">1</xsl:variable>
150
<xsl:variable name="latex.use.subfigure">1</xsl:variable>
151
<xsl:variable name="latex.use.rotating">1</xsl:variable>
152
<xsl:variable name="latex.use.makeidx">1</xsl:variable>
153
<xsl:variable name="latex.pdf.support">1</xsl:variable>
154
<xsl:variable name="latex.math.support">1</xsl:variable>
156
<xsl:variable name="latex.biblio.output">all</xsl:variable>
157
<xsl:variable name="latex.document.font">default</xsl:variable>