diff options
Diffstat (limited to 'docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex')
-rwxr-xr-x | docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/caution.pdf | bin | 0 -> 1126 bytes | |||
-rwxr-xr-x | docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/important.pdf | bin | 0 -> 1126 bytes | |||
-rwxr-xr-x | docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/note.pdf | bin | 0 -> 1814 bytes | |||
-rwxr-xr-x | docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/tip.pdf | bin | 0 -> 3699 bytes | |||
-rwxr-xr-x | docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/warning.pdf | bin | 0 -> 1126 bytes | |||
-rw-r--r-- | docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.pdf | bin | 0 -> 34650 bytes | |||
-rw-r--r-- | docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.tex | 420 | ||||
-rw-r--r-- | docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.xml | 251 | ||||
-rw-r--r-- | docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.xsl | 158 |
9 files changed, 829 insertions, 0 deletions
diff --git a/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/caution.pdf b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/caution.pdf Binary files differnew file mode 100755 index 0000000000..a0afabfa23 --- /dev/null +++ b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/caution.pdf diff --git a/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/important.pdf b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/important.pdf Binary files differnew file mode 100755 index 0000000000..a0afabfa23 --- /dev/null +++ b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/important.pdf diff --git a/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/note.pdf b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/note.pdf Binary files differnew file mode 100755 index 0000000000..ec6c248a2a --- /dev/null +++ b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/note.pdf diff --git a/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/tip.pdf b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/tip.pdf Binary files differnew file mode 100755 index 0000000000..54f5dedb5d --- /dev/null +++ b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/tip.pdf diff --git a/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/warning.pdf b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/warning.pdf Binary files differnew file mode 100755 index 0000000000..a0afabfa23 --- /dev/null +++ b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/figures/warning.pdf diff --git a/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.pdf b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.pdf Binary files differnew file mode 100644 index 0000000000..43ae3e68b5 --- /dev/null +++ b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.pdf diff --git a/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.tex b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.tex new file mode 100644 index 0000000000..47fb1227d8 --- /dev/null +++ b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.tex @@ -0,0 +1,420 @@ +\documentclass[17pt,headrule,footrule,landscape]{foils} +\usepackage[latin1]{inputenc} +\usepackage{pstricks,pst-node,pst-text,pst-3d} +\usepackage{subfigure} +\usepackage{fancybox} +\usepackage{a4wide} +\usepackage{times} +\usepackage{fancyvrb} +\usepackage{amsmath,amsthm, amsfonts, amssymb, amsxtra,amsopn} +\usepackage{anysize} +\usepackage[pdftex,bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage,hyperfigures,hyperindex,citecolor=blue,urlcolor=blue]{hyperref} +\usepackage[english]{babel} +\usepackage[pdftex]{graphicx} +\pdfcompresslevel=9 +%------------------------------------------------------- Values and counters +\marginsize{1.5cm}{1.5cm}{0.5cm}{0.5cm} +\renewcommand\floatpagefraction{.9} +\renewcommand\topfraction{.9} +\renewcommand\bottomfraction{.9} +\renewcommand\textfraction{.1} + +\usepackage[usenames,pdftex]{color} +%------------------------------------------------------- BfBlue Command +\newcommand{\bfblue}[1]{ \textcolor{blue}{\bf #1} } + +%------------------------------------------------------- BfGreen Command +\newcommand{\bfgreen}[1]{ \textcolor{blue}{\bf #1} } + +%------------------------------------------------------- BfRed Command +\newcommand{\bfred}[1]{ \textcolor{red}{\bf #1} } + +%------------------------------------------------------- BfBlue Command +\newcommand{\emblue}[1]{ \textcolor{blue}{\emph{#1}} } + +%------------------------------------------------------- BfGreen Command +\newcommand{\emgreen}[1]{ \textcolor{blue}{\emph{#1}} } + +%------------------------------------------------------- BfRed Command +\newcommand{\emred}[1]{ \textcolor{red}{\emph{#1}} } + +%------------------------------------------------------- Part Command +\newcommand{\part}[1]{ +\foilhead{} +\vspace{2cm} +\begin{center} +\Huge{\textcolor{blue}{#1}} +\end{center}} + \newcommand{\dbz}{} +%------------------------------------------------------- Slide Command +\newcommand{\slide}[1]{ +\foilhead[-0.5in]{\large{\textcolor{blue}{#1}}} +} +\newcommand{\id}[1]{ +\label{#1} +\hypertarget{#1}{} +} +% -------------------------------------------- +\newenvironment{admminipage}{ +\begin{Sbox} +\begin{minipage} +}{ +\end{minipage} +\end{Sbox} +\fbox{\TheSbox} +} +\newlength{\admlength} +\newenvironment{admonition}[2] { +\hspace{0mm}\newline\hspace*\fill\newline +\noindent +\setlength{\fboxsep}{5pt} +\setlength{\admlength}{\linewidth} +\addtolength{\admlength}{-10\fboxsep} +\addtolength{\admlength}{-10\fboxrule} +\admminipage{\admlength} +\bfblue{\sc\large{#2}}\newline +\\[1mm] +%\sffamily +\includegraphics[width=1cm]{#1} +\addtolength{\admlength}{-1cm} +\addtolength{\admlength}{-20pt} +\begin{minipage}[lt]{\admlength} +\parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt +}{ +\vspace{5mm} +\end{minipage} +\endadmminipage +\vspace{.5em} +\par +} +%--------------------------------------------------SLIDES INFORMATION +\title{{\black The Slides Document Type}} +\author{{\black }} + \begin{document} +\maketitle +%--------------------------------------------------SLIDES INFORMATION +\title{{\black The Slides Document Type}} +\author{{\black }} + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Introduction} +\label{id2739608} + +This is the introductory slide. + +If you use foil groups (previously called sections), you can have introductory slides before the first group. + +\begin{admonition}{figures/warning}{Warning! :)}% NOTICE: see the db2latex FAQ w.r.t db2latex variable $latex.admonition.path + +This is a work in progress ("release early, release often") +\end{admonition} + +\end{slide} + + +%---------------------------------------------------------------------- PART +\part{Purpose and History } +%---------------------------------------------------------------------- PART +\label{id2739637} + + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{What Are Slides?} +\label{id2739648} + +\begin{itemize} +%--- Item +\item +An XML presentation tool + + +%--- Item +\item +Suitable for HTML or PDF presentations + + +%--- Item +\item +Supported by Open Source software + +\end{itemize} +\end{slide} + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Where Do They Come From?} +\label{id2739677} + +\begin{itemize} +%--- Item +\item +Maintained by the \href{http://docbook.sourceforge.net/}{DocBook Open Repository} Project at +\href{http://sourceforge.net/}{SourceForge} + + +%--- Item +\item +Customization layer of \href{http://www.oasis-open.org/docbook/xml/simple/}{Simplified DocBook} + +\end{itemize} +\end{slide} + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Why?} +\label{id2739724} + +\begin{itemize} +%--- Item +\item +So Norm could give presentations + + +%--- Item +\item +So Norm could publish those presentations on the web + + +%--- Item +\item +So Norm could have {\em accessible} presentations that didn't rely on the grotesque HTML output of some otherwise bloated, proprietary tool + + +%--- Item +\item +So Norm could cut-and-paste from his DocBook articles and papers directly into his slides + + +%--- Item +\item +Oh, let's face it: because it was there. Like the proverbial mountain. + +\end{itemize} +\end{slide} + + +%---------------------------------------------------------------------- PART +\part{Authoring } +%---------------------------------------------------------------------- PART +\label{id2739773} + + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Minimal Presentation} +\label{id2739783} + +The smallest possible presentation looks like this: + +\begin{Verbatim}[] +<?xml version='1.0'?> +<!DOCTYPE slides PUBLIC "-//Norman Walsh//DTD Slides XML V3.0b1//EN" + "http://docbook.sourceforge.net/release/slides/3.0b1/slides.dtd"> +<slides> +<slidesinfo> +<title>Presentation Title</title> +</slidesinfo> +<foil><title>Foil Title</title> +<para>Foil content</para> +</foil> +</slides> +\end{Verbatim} + +Every presentation must contain at least one slide. +\end{slide} + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Presentation Metadata} +\label{id2739810} + +Presentations usually have more metadata in the {\texttt{{slidesinfo}}} wrapper. Here's a typical example: + +\begin{Verbatim}[] +<slidesinfo> + <title>Supporting Localized Generated Text</title> + <titleabbrev>Generated Text</titleabbrev> + <author><firstname>Norman</firstname><surname>Walsh</surname></author> + <pubdate>Sunday, 08 Apr 2001</pubdate> + <confgroup> + <conftitle>XSLTUK-01</conftitle> + <confdates>08 Apr - 09 Apr 2001</confdates> + <conftitle role="address">Keble College, Oxford, UK</conftitle> + <confnum>1</confnum> + </confgroup> + <releaseinfo role="version">Version TEST</releaseinfo> + <copyright><year>2001</year> + <holder>Sun Microsystems, Inc.</holder></copyright> +</slidesinfo> +\end{Verbatim} +\end{slide} + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Presentation Content} +\label{id2739830} + +It's common for individual slides to consist of a single bulleted or numbered list. However, the full range of «block level» Simplified DocBook elements are avialable. +\end{slide} + + +%---------------------------------------------------------------------- PART +\part{Styling } +%---------------------------------------------------------------------- PART +\label{id2739862} + + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{HTML} +\label{id2739872} + +There are a lot of HTML options. When you publish your presentation on the web, it's probably best to use one of the simpler, more accessible styles. For your actual live presentation, you may want to choose something fancier. +\end{slide} + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Plain HTML} +\label{id2739888} + +\begin{itemize} +%--- Item +\item +\href{../default/}{{\texttt{{default.\dbz{}xsl}}}} +and +\href{../plain/}{{\texttt{{plain.\dbz{}xsl}}}} produce fairly simple presentations + + +%--- Item +\item +\href{../tables/}{{\texttt{{tables.\dbz{}xsl}}}} +uses a table to show the navigation context (somewhat like the tabular +\href{http://docbook.sourceforge.net/}{Website} style) + + +%--- Item +\item +\href{../vslides/}{{\texttt{{vslides.\dbz{}xsl}}}} places navigation on the left side instead of the top and bottom + + +%--- Item +\item +\href{../w3c/}{{\texttt{{w3c.\dbz{}xsl}}}} produces slides that resemble the format used by the W3C for presentations + +\end{itemize} +\end{slide} + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Fancy HTML} +\label{id2739970} + +\begin{itemize} +%--- Item +\item +\href{../frames1/frames.html}{{\texttt{{frames.\dbz{}xsl}}}} uses frames. There are several options that you can apply: + +\begin{itemize} +%--- Item +\item +\href{../frames2/frames.html}{overlay} uses CSS absolute positioning to keep the navigation static on the pages (only works on recent browsers) + + +%--- Item +\item +\href{../frames3/frames.html}{multiframe} uses additional frames to keep the navigation static on the pages + + +%--- Item +\item +\href{../frames4/frames.html}{dynamic.toc} uses JavaScript to keep the table of contents and the current slide in sync (only works on recent browsers) + + +%--- Item +\item +\href{../frames5/frames.html}{active.toc} uses JavaScript to make +the table of context «active» so that you can open and close the foil groups (only works on recent browsers) + + +%--- Item +\item +These toc styles can be combined with \href{../frames6/frames.html}{overlay} or \href{../frames7/frames.html}{multiframe} + +\end{itemize} + +\end{itemize} +\end{slide} + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{PDF} +\label{id2740078} + +The {\texttt{{fo-\dbz{}plain.\dbz{}xsl}}} stylesheet produces XSL Formatting Objects that can subsequently be turned into PDF. +\end{slide} + + +%---------------------------------------------------------------------- PART +\part{Presentation } +%---------------------------------------------------------------------- PART +\label{id2740095} + + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Look And Feel} +\label{id2740106} + +For HTML display, most of the actual «look-and-feel» of the presentation is controlled by the CSS stylesheet(s) used. +\end{slide} + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Presentation Tips} +\label{id2740122} + +\begin{itemize} +%--- Item +\item +It's usually best if each slide is only one page (avoid scrolling). + + +%--- Item +\item +If you'll be giving your presentation with a projector, make sure you know what resolution you'll have available and test your presentation at that resolution. + + +%--- Item +\item +Make your fonts bigger so the folks in the back of the room can read your slides. + + +%--- Item +\item +Test the equipment before your presentation begins. Really. + + +%--- Item +\item +Speak more slowly. I always forget that one. + +\end{itemize} +\end{slide} + + +%---------------------------------------------------------------------- PART +\part{Conclusions } +%---------------------------------------------------------------------- PART +\label{id2740169} + + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Conclusions} +\label{id2740175} + +It's customary to have a conclusions slide. +\end{slide} + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{References} +\label{id2740187} + +References are a good idea too. +\end{slide} + +%---------------------------------------------------------------------- SLIDE +\begin{slide}{Q\&A} +\label{id2740198} + +Any questions? +\end{slide} +\end{document} diff --git a/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.xml b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.xml new file mode 100644 index 0000000000..0774e29708 --- /dev/null +++ b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.xml @@ -0,0 +1,251 @@ +<?xml version='1.0'?> +<!-- +<!DOCTYPE slides SYSTEM "../../schema/dtd/slides.dtd"> +--> +<slides> +<slidesinfo> + <title>The Slides Document Type</title> + <author><firstname>Norman</firstname><surname>Walsh</surname></author> + <pubdate>Tuesday, 25 June 2002</pubdate> + <releaseinfo role="version">3.1.0</releaseinfo> + <copyright><year>2002</year> + <holder>Norman Walsh</holder></copyright> +</slidesinfo> + +<foil><title>Introduction</title> +<para>This is the introductory slide.</para> +<para>If you use foil groups (previously called sections), you can +have introductory slides before the first group.</para> +<warning><title>Warning! :)</title> +<para>This is a work in progress ("release early, release often")</para> +</warning> +</foil> + +<foilgroup><title>Purpose and History</title> + +<para>Groups can now have introductory text as well.</para> + +<foil><title>What Are Slides?</title> +<itemizedlist> +<listitem><para>An XML presentation tool +</para></listitem> +<listitem><para>Suitable for HTML or PDF presentations +</para></listitem> +<listitem><para>Supported by Open Source software +</para></listitem> +</itemizedlist> +</foil> + +<foil><title>Where Do They Come From?</title> + +<itemizedlist> +<listitem><para>Maintained by the <ulink url="http://docbook.sourceforge.net/">DocBook +Open Repository</ulink> Project at +<ulink url="http://sourceforge.net/">SourceForge</ulink> +</para></listitem> +<listitem><para>Customization layer of +<ulink url="http://www.oasis-open.org/docbook/xml/simple/">Simplified DocBook</ulink> +</para></listitem> +</itemizedlist> +</foil> + +<foil><title>Why?</title> + +<itemizedlist> +<listitem><para>So Norm could give presentations +</para></listitem> +<listitem><para>So Norm could publish those presentations on the web +</para></listitem> +<listitem><para>So Norm could have <emphasis>accessible</emphasis> presentations +that didn't rely on the grotesque HTML output of some otherwise bloated, proprietary +tool +</para></listitem> +<listitem><para>So Norm could cut-and-paste from his DocBook articles and papers +directly into his slides +</para></listitem> +<listitem><para>Oh, let's face it: because it was there. Like the proverbial mountain. +</para></listitem> +</itemizedlist> +</foil> +</foilgroup> + +<foilgroup><title>Authoring</title> + +<para>How to write a presentation.</para> + +<foil><title>Minimal Presentation</title> + +<para>The smallest possible presentation looks like this:</para> + +<screen><![CDATA[<?xml version='1.0'?> +<!DOCTYPE slides PUBLIC "-//Norman Walsh//DTD Slides XML V3.0b1//EN" + "http://docbook.sourceforge.net/release/slides/3.0b1/slides.dtd"> +<slides> +<slidesinfo> +<title>Presentation Title</title> +</slidesinfo> +<foil><title>Foil Title</title> +<para>Foil content</para> +</foil> +</slides>]]></screen> + +<para>Every presentation must contain at least one slide.</para> +</foil> + +<foil><title>Presentation Metadata</title> + +<para>Presentations usually have more metadata in the <literal>slidesinfo</literal> +wrapper. Here's a typical example:</para> + +<screen><![CDATA[<slidesinfo> + <title>Supporting Localized Generated Text</title> + <titleabbrev>Generated Text</titleabbrev> + <author><firstname>Norman</firstname><surname>Walsh</surname></author> + <pubdate>Sunday, 08 Apr 2001</pubdate> + <confgroup> + <conftitle>XSLTUK-01</conftitle> + <confdates>08 Apr - 09 Apr 2001</confdates> + <conftitle role="address">Keble College, Oxford, UK</conftitle> + <confnum>1</confnum> + </confgroup> + <releaseinfo role="version">Version TEST</releaseinfo> + <copyright><year>2001</year> + <holder>Sun Microsystems, Inc.</holder></copyright> +</slidesinfo>]]></screen> +</foil> + +<foil><title>Presentation Content</title> + +<para>It's common for individual slides to consist of a single +bulleted or numbered list. However, the full range of <quote>block +level</quote> Simplified DocBook elements are avialable.</para> + +</foil> +</foilgroup> + +<foilgroup><title>Styling</title> + +<para>How to transform a presentation.</para> + +<foil><title>HTML</title> + +<para>There are a lot of HTML options. When you publish your +presentation on the web, it's probably best to use one of the simpler, +more accessible styles. For your actual live presentation, you may +want to choose something fancier.</para> + +</foil> + +<foil><title>Plain HTML</title> + +<itemizedlist> +<listitem><para><ulink url="../default/"><filename>default.xsl</filename></ulink> +and +<ulink url="../plain/"><filename>plain.xsl</filename></ulink> +produce fairly simple presentations +</para></listitem> +<listitem><para><ulink url="../tables/"><filename>tables.xsl</filename></ulink> +uses a table to show the navigation context (somewhat like the tabular +<ulink url="http://docbook.sourceforge.net/">Website</ulink> style) +</para></listitem> +<listitem><para><ulink url="../vslides/"><filename>vslides.xsl</filename></ulink> +places navigation on the left side instead of the top and bottom +</para></listitem> +<listitem><para><ulink url="../w3c/"><filename>w3c.xsl</filename></ulink> +produces slides that resemble the format used by the W3C for presentations +</para></listitem> +</itemizedlist> + +</foil> + +<foil><title>Fancy HTML</title> + +<itemizedlist> +<listitem><para><ulink url="../frames1/frames.html"><filename>frames.xsl</filename></ulink> +uses frames. There are several options that you can apply: +</para> +<itemizedlist> +<listitem><para><ulink url="../frames2/frames.html">overlay</ulink> uses CSS absolute positioning +to keep the navigation static on the pages (only works on recent browsers) +</para></listitem> +<listitem><para><ulink url="../frames3/frames.html">multiframe</ulink> uses additional frames +to keep the navigation static on the pages +</para></listitem> +<listitem><para><ulink url="../frames4/frames.html">dynamic.toc</ulink> uses JavaScript to keep +the table of contents and the current slide in sync (only works on recent browsers) +</para></listitem> +<listitem><para><ulink url="../frames5/frames.html">active.toc</ulink> uses JavaScript to make +the table of context <quote>active</quote> so that you can open and close the foil +groups (only works on recent browsers) +</para></listitem> +<listitem><para>These toc styles can be combined with +<ulink url="../frames6/frames.html">overlay</ulink> or <ulink url="../frames7/frames.html">multiframe</ulink> +</para></listitem> +</itemizedlist> +</listitem> +</itemizedlist> +</foil> + +<foil><title>PDF</title> + +<para>The <filename>fo-plain.xsl</filename> stylesheet produces XSL Formatting +Objects that can subsequently be turned into PDF.</para> + +</foil> + +</foilgroup> + +<foilgroup><title>Presentation</title> + +<para>How to customize and present a set of slides.</para> + +<foil><title>Look And Feel</title> + +<para>For HTML display, most of the actual +<quote>look-and-feel</quote> of the presentation is controlled by the CSS +stylesheet(s) used.</para> + +</foil> + +<foil><title>Presentation Tips</title> + +<itemizedlist> +<listitem><para>It's usually best if each slide is only one page (avoid scrolling). +</para></listitem> +<listitem><para>If you'll be giving your presentation with a projector, make sure you +know what resolution you'll have available and test your presentation at that resolution. +</para></listitem> +<listitem><para>Make your fonts bigger so the folks in the back of the room can read +your slides. +</para></listitem> +<listitem><para>Test the equipment before your presentation begins. Really. +</para></listitem> +<listitem><para>Speak more slowly. I always forget that one. +</para></listitem> +</itemizedlist> +</foil> + +</foilgroup> + +<foilgroup><title>Conclusions</title> + +<foil><title>Conclusions</title> + +<para>It's customary to have a conclusions slide.</para> + +</foil> + +<foil><title>References</title> + +<para>References are a good idea too.</para> + +</foil> + +<foil><title>Q&A</title> + +<para>Any questions?</para> + +</foil> +</foilgroup> + +</slides> diff --git a/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.xsl b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.xsl new file mode 100644 index 0000000000..bb06cef611 --- /dev/null +++ b/docs/xslt/db2latex-xsl/xsl/slides/sample_foiltex/slides.xsl @@ -0,0 +1,158 @@ +<?xml version='1.0'?> +<!--############################################################################# + | $Id: slides.xsl,v 1.1 2003/07/22 07:12:13 rcasellas Exp $ + |- ############################################################################# + | $Author: rcasellas $ + | + + ############################################################################## --> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> + +<xsl:import href="../slides.xsl"/> + + <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:text>\usepackage{subfigure} </xsl:text> + <xsl:text>\usepackage{fancybox} </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:text>\usepackage{anysize} </xsl:text> + <xsl:text>\usepackage[pdftex,bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, </xsl:text> + <xsl:text>linktocpage,hyperfigures,hyperindex,citecolor=blue,urlcolor=blue]{hyperref} </xsl:text> + <xsl:text>\usepackage[english]{babel} </xsl:text> + <xsl:text>\usepackage[pdftex]{graphicx} </xsl:text> + + </xsl:variable> + + + + <xsl:variable name="db2latex.slides.optpackages"/> + + + <xsl:variable name="db2latex.slides.beforebegin"> + <xsl:text>\pdfcompresslevel=9 </xsl:text> + <xsl:text>%------------------------------------------------------- Values and counters </xsl:text> + <xsl:text>\marginsize{1.5cm}{1.5cm}{0.5cm}{0.5cm} </xsl:text> + <xsl:text>\renewcommand\floatpagefraction{.9} </xsl:text> + <xsl:text>\renewcommand\topfraction{.9} </xsl:text> + <xsl:text>\renewcommand\bottomfraction{.9} </xsl:text> + <xsl:text>\renewcommand\textfraction{.1} </xsl:text> + <xsl:text> </xsl:text> + <xsl:text>\usepackage[usenames,pdftex]{color} </xsl:text> + <xsl:text>%------------------------------------------------------- BfBlue Command </xsl:text> + <xsl:text>\newcommand{\bfblue}[1]{ \textcolor{blue}{\bf #1} } </xsl:text> + <xsl:text> </xsl:text> + <xsl:text>%------------------------------------------------------- BfGreen Command </xsl:text> + <xsl:text>\newcommand{\bfgreen}[1]{ \textcolor{blue}{\bf #1} } </xsl:text> + <xsl:text> </xsl:text> + <xsl:text>%------------------------------------------------------- BfRed Command </xsl:text> + <xsl:text>\newcommand{\bfred}[1]{ \textcolor{red}{\bf #1} } </xsl:text> + <xsl:text> </xsl:text> + <xsl:text>%------------------------------------------------------- BfBlue Command </xsl:text> + <xsl:text>\newcommand{\emblue}[1]{ \textcolor{blue}{\emph{#1}} } </xsl:text> + <xsl:text> </xsl:text> + <xsl:text>%------------------------------------------------------- BfGreen Command </xsl:text> + <xsl:text>\newcommand{\emgreen}[1]{ \textcolor{blue}{\emph{#1}} } </xsl:text> + <xsl:text> </xsl:text> + <xsl:text>%------------------------------------------------------- BfRed Command </xsl:text> + <xsl:text>\newcommand{\emred}[1]{ \textcolor{red}{\emph{#1}} } </xsl:text> + <xsl:text> </xsl:text> + <xsl:text>%------------------------------------------------------- Part Command </xsl:text> + <xsl:text>\newcommand{\part}[1]{ </xsl:text> + <xsl:text>\foilhead{} </xsl:text> + <xsl:text>\vspace{2cm} </xsl:text> + <xsl:text>\begin{center} </xsl:text> + <xsl:text>\Huge{\textcolor{blue}{#1}} </xsl:text> + <xsl:text>\end{center}} </xsl:text> + <xsl:text> \newcommand{\dbz}{} </xsl:text> + <xsl:text>%------------------------------------------------------- Slide Command </xsl:text> + <xsl:text>\newcommand{\slide}[1]{ </xsl:text> + <xsl:text>\foilhead[-0.5in]{\large{\textcolor{blue}{#1}}} </xsl:text> + <xsl:text>} </xsl:text> + <xsl:text>\newcommand{\id}[1]{ </xsl:text> + <xsl:text>\label{#1} </xsl:text> + <xsl:text>\hypertarget{#1}{} </xsl:text> + <xsl:text>} </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>\newenvironment{admminipage}{ </xsl:text> + <xsl:text>\begin{Sbox} </xsl:text> + <xsl:text>\begin{minipage} </xsl:text> + <xsl:text>}{ </xsl:text> + <xsl:text>\end{minipage} </xsl:text> + <xsl:text>\end{Sbox} </xsl:text> + <xsl:text>\fbox{\TheSbox} </xsl:text> + <xsl:text>} </xsl:text> + <xsl:text>\newlength{\admlength} </xsl:text> + <xsl:text>\newenvironment{admonition}[2] { </xsl:text> + <xsl:text>\hspace{0mm}\newline\hspace*\fill\newline </xsl:text> + <xsl:text>\noindent </xsl:text> + <xsl:text>\setlength{\fboxsep}{5pt} </xsl:text> + <xsl:text>\setlength{\admlength}{\linewidth} </xsl:text> + <xsl:text>\addtolength{\admlength}{-10\fboxsep} </xsl:text> + <xsl:text>\addtolength{\admlength}{-10\fboxrule} </xsl:text> + <xsl:text>\admminipage{\admlength} </xsl:text> + <xsl:text>\bfblue{\sc\large{#2}}\newline </xsl:text> + <xsl:text>\\[1mm] </xsl:text> + <xsl:text>%\sffamily </xsl:text> + <xsl:text>\includegraphics[width=1cm]{#1} </xsl:text> + <xsl:text>\addtolength{\admlength}{-1cm} </xsl:text> + <xsl:text>\addtolength{\admlength}{-20pt} </xsl:text> + <xsl:text>\begin{minipage}[lt]{\admlength} </xsl:text> + <xsl:text>\parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt </xsl:text> + <xsl:text>}{ </xsl:text> + <xsl:text>\vspace{5mm} </xsl:text> + <xsl:text>\end{minipage} </xsl:text> + <xsl:text>\endadmminipage </xsl:text> + <xsl:text>\vspace{.5em} </xsl:text> + <xsl:text>\par </xsl:text> + <xsl:text>} </xsl:text> + + </xsl:variable> + + + + <xsl:template match="slides"> +<!-- Document class and preamble --> + <xsl:text>\documentclass[17pt,headrule,footrule,landscape]{foils} </xsl:text> + <xsl:value-of select="$db2latex.slides.packages"/> + <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:template match="slidesinfo"> +<xsl:text>%--------------------------------------------------SLIDES INFORMATION </xsl:text> +<xsl:text>\title{{\black </xsl:text> +<xsl:apply-templates select="title"/> +<xsl:text>}} </xsl:text> +<xsl:text>\author{{\black </xsl:text> +<xsl:apply-templates select="author|authorgroup"/> +<xsl:text>}} </xsl:text> +<xsl:text> </xsl:text> +</xsl:template> + + + +<xsl:output method="text" encoding="ISO-8859-1" indent="yes"/> +<xsl:variable name="latex.use.babel">1</xsl:variable> +<xsl:variable name="latex.use.fancyvrb">1</xsl:variable> +<xsl:variable name="latex.use.fancybox">1</xsl:variable> +<xsl:variable name="latex.use.fancyhdr">1</xsl:variable> +<xsl:variable name="latex.use.subfigure">1</xsl:variable> +<xsl:variable name="latex.use.rotating">1</xsl:variable> +<xsl:variable name="latex.use.makeidx">1</xsl:variable> +<xsl:variable name="latex.pdf.support">1</xsl:variable> +<xsl:variable name="latex.math.support">1</xsl:variable> + +<xsl:variable name="latex.biblio.output">all</xsl:variable> +<xsl:variable name="latex.document.font">default</xsl:variable> +</xsl:stylesheet> |