Dear Dekel, dear developers,

Here are my two-cents: I have made a small adaptation of Dekel Tsur's 
layout-file for prosper, a LaTeX-package  for making PDF-presentation, 
together with it small template file. It is useful for me. I hope it is 
useful for others too.

Any comments you have on this will be appreciated.

Thanks for LyX 1.3 BTW.

Bas
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass prosper
\begin_preamble
% Document -> Layout -> options
% For printing on paper
% azure,ps,accumulate,slideBW,nocolorBG
% For displaying on the screen
% azure,pdf,accumulate,slideColor,colorBG

\newcommand{\fB}{\FromSlide{2}}
\newcommand{\fC}{\FromSlide{3}}
\newcommand{\fD}{\FromSlide{4}}
\newcommand{\fE}{\FromSlide{5}}

\newcommand{\oA}{\OnlySlide{1}}
\newcommand{\oB}{\OnlySlide{2}}
\newcommand{\oC}{\OnlySlide{3}}
\newcommand{\oD}{\OnlySlide{4}}
\newcommand{\oE}{\OnlySlide{5}}

%BS - This should go here
\newrgbcolor{theorembodycolor}{.60 0.93 0.95}
\newrgbcolor{theoremheadercolor}{.30 .86 .89}
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED] % This is a hack,
\theorembodycolor % body font
}
%\DefaultTransition{Glitter}
\end_preamble
\options alienglow,pdf,accumulate,slideColor,colorBG
\language english
\inputencoding auto
\fontscheme helvet
\graphics default
\paperfontsize default
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip 0sp
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

Template for prosper
\newline 
presentations
\layout SubTitle

Test
\layout Author

Bas Spitters
\newline 
[EMAIL PROTECTED]
\layout Date

21 February 2003
\layout Slide

First slide
\layout Standard

This works with a small adaptation of the layout-file made by Dekel Tsur.
\layout Standard

Some remarks
\layout Enumerate

Use View->PDF, not PDFLaTeX
\layout Enumerate

Change the transition mode in the preamble
\newline 
choose between Glitter
\layout Enumerate

This works with several styles for instance, rico, pascal, autumn, azure.
 However some problems ocur with blends.
\layout Standard


\begin_inset ERT
status Open

\layout Standard

\backslash 
ov{3}{
\end_inset 


\layout Slide

Second slide
\layout ItemStep

one
\layout ItemStep

two
\layout ItemStep

three
\layout Theorem

mathematics is displayed nicely
\begin_inset Formula \[
\int_{\alpha}^{\pi}f\]

\end_inset 


\layout Standard


\begin_inset ERT
status Open

\layout Standard
}
\backslash 
ov{4}{
\end_inset 


\layout Slide

A fancy slide
\layout Standard

This text is 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
onlySlide*{1}{%
\newline 

\end_inset 

not
\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 

 here all the time.
\layout Standard


\begin_inset ERT
status Open

\layout Standard

\backslash 
Accumulatefalse%
\newline 
{
\backslash 
fB 
\newline 

\end_inset 


\layout Standard


\begin_inset  Tabular
<lyxtabular version="3" rows="3" columns="2">
<features>
<column alignment="left" valignment="top" leftline="true" width="0pt">
<column alignment="left" valignment="top" leftline="true" rightline="true" width="0in">
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\layout Standard

Left
\end_inset 
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\layout Standard

Right
\end_inset 
</cell>
</row>
<row topline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
fC
\end_inset 

 three
\end_inset 
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
fC 
\end_inset 

 Three
\end_inset 
</cell>
</row>
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
fD
\end_inset 

 four
\end_inset 
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
fD 
\end_inset 

four
\end_inset 
</cell>
</row>
</lyxtabular>

\end_inset 


\layout Standard


\begin_inset ERT
status Open

\layout Standard
}}
\end_inset 


\the_end
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[prosper2]{slides (prosper)}
# By Dekel Tsur <[EMAIL PROTECTED]>
# Hacked by Bas Spitters
# General textclass parameters

ClassOptions
        Other "contemporain,pdf,accumulate,slideColor,colorBG"
End

#From slides.layout
Columns        1
Sides          1
MaxCounter     Counter_EnumI
# MaxCounter            Counter_Section

####################################
#
#  Layout-specific preamble
#
#####################################


Preamble
\newcounter{slidetype}
\setcounter{slidetype}{0}
\newcommand{\lyxendslide}{%
   \ifthenelse{\value{slidetype}>0}{\end{slide}}{}%
   \setcounter{slidetype}{0}%
}
\AtEndDocument{\lyxendslide}

\newcommand{\ov}[2]{\lyxendslide\overlays{#1}{#2\lyxendslide}}

\usepackage{amsthm}

\AtBeginDocument{\renewcommand{\proofname}{\upshape\emph{Proof}}}
[EMAIL PROTECTED]

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED] % This is a hack,
%\theorembodycolor % body font
%}
EndPreamble


############################
#
# Standard style definition
# Always comes first.
#
############################

Style Standard
  Margin            Static
  LatexType         Paragraph
  LatexName         dummy
  ParIndent         M
  ParSkip           0.4
  Align             Block
  AlignPossible     Block, Left, Right, Center
  LabelType         No_Label
End

##############################
#
# New Definitions for Slides
#
##############################

Counter
  Name                 lyxnewslide
End

Style Slide
  Margin                Dynamic
  LatexType             Command
  LatexName             lyxnewslide
  NeedProtect           1
  NextNoIndent          1
  ParSkip               0.4
  TopSep                1.3
  BottomSep             0.7
  ParSep                0.7
  Align                 Center
  AlignPossible         Block, Center, Left
  LabelType             Counter_Section
  LabelSep              xxxx
  Font
    Series              Bold
    Size                Large
  EndFont
  LabelFont
    Size                Footnotesize
    Color               Blue
  EndFont

  Preamble
  \newcommand{\lyxnewslide}[1]{
     \lyxendslide
     \setcounter{slidetype}{1}
     \begin{slide}{#1}
  }
  EndPreamble
End

# BS
Input stdclass.inc
Input stdlayouts.inc
Input theorem-unnumbered.inc

Input stdlists.inc

#BS
Style ItemStep
  CopyStyle Itemize
  LatexName itemstep
End

Input stdtitle.inc

#BS
Style SubTitle
  CopyStyle Title
  LatexName subtitle
End

Style Institution
  CopyStyle Author
  LatexName institution
End

Input lyxmacros.inc
NoStyle Address
NoStyle "Right Address"

Style Comment
  Margin                First_Dynamic
  NextNoIndent          0
  LeftMargin            MM
  RightMargin           MM
  LabelFont
     Color      magenta
  EndFont
End

Reply via email to