- slides.layout, seminar.layout: Both classes don't create presentations, but transparencies as clearly stated at CTAN and the package description. (There's a big difference between a transparency (used for overhead projectors) and a presentation (used for beamers).)

- seminar.layout: updated layout file from Günter Milde to fix a few long standing issues with the visualization within LyX

- seminar.lyx: new example file, also from Günter Milde

The updated layout and new example file can also go to LyX 1.5, Jürgen?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26929 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-10-17 00:43:52 +00:00
parent 525864f360
commit 2c88b65ad8
5 changed files with 733 additions and 85 deletions

View File

@ -2354,6 +2354,7 @@ lib_examples_files = Split('''
noweb2lyx.lyx noweb2lyx.lyx
powerdot-example.lyx powerdot-example.lyx
script_form.lyx script_form.lyx
seminar.lyx
serial_letter1.lyx serial_letter1.lyx
serial_letter2.lyx serial_letter2.lyx
serial_letter3.lyx serial_letter3.lyx

View File

@ -225,6 +225,7 @@ dist_examples_DATA = \
examples/noweb2lyx.lyx \ examples/noweb2lyx.lyx \
examples/powerdot-example.lyx \ examples/powerdot-example.lyx \
examples/script_form.lyx \ examples/script_form.lyx \
examples/seminar.lyx \
examples/serial_letter1.lyx \ examples/serial_letter1.lyx \
examples/serial_letter2.lyx \ examples/serial_letter2.lyx \
examples/serial_letter3.lyx \ examples/serial_letter3.lyx \

668
lib/examples/seminar.lyx Normal file
View File

@ -0,0 +1,668 @@
#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
\lyxformat 344
\begin_document
\begin_header
\textclass seminar
\begin_preamble
\renewcommand{\printlandscape}{\special{landscape}}
%\sliderotation{right}
\end_preamble
\options a4, semrot, slidesec
\use_default_options false
\language english
\inputencoding auto
\font_roman lmodern
\font_sans lmss
\font_typewriter lmtt
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle empty
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header
\begin_body
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Plain Layout
\series bold
Note:
\series default
You must not use the view PDF button to preview this file! For viewing
and exporting this as PDF use in the menus only the method
\family sans
PDF (dvipdfm)
\family default
.
Viewing and exporting seminar documents to DVI and PS can result in an
unwanted output, depending on your LaTeX system and the DVI or PostScript
viewer.
\end_layout
\begin_layout Plain Layout
\series bold
Note:
\series default
The
\family sans
seminar
\family default
class is designed to produce transparencies, not presentations.
For presentations, use a presentation document class like
\family sans
beamer
\family default
or
\family sans
powerdot
\family default
.
\end_layout
\end_inset
\end_layout
\begin_layout LandscapeSlide
\end_layout
\begin_deeper
\begin_layout SlideHeading
How to make a presentation with LyX
\begin_inset Newline newline
\end_inset
and the seminar LaTeX class
\end_layout
\begin_layout SlideSubHeading
seminar.cls and seminar.layout
\begin_inset Newline newline
\end_inset
template and introduction
\end_layout
\end_deeper
\begin_layout --Separator--
\end_layout
\begin_layout LandscapeSlide
\end_layout
\begin_deeper
\begin_layout SlideHeading
Some basic points to start with:
\end_layout
\begin_layout Itemize
Start a slide with an paragraph of type
\family typewriter
LandscapeSlide
\family default
or
\family typewriter
PortraitSlide
\family default
.
\end_layout
\begin_layout Itemize
It is really helpful to read the seminar handbook:
\family typewriter
sem-user.pdf
\family default
(or
\family typewriter
sem-user.dvi
\family default
)
\end_layout
\end_deeper
\begin_layout --Separator--
\end_layout
\begin_layout PortraitSlide
\end_layout
\begin_deeper
\begin_layout SlideHeading
Putting some stuff in a slide
\end_layout
\begin_layout Standard
If a paragraph shall appear in a slide, it need to be
\end_layout
\begin_layout Itemize
either inside the opening
\family sans
LandscapeSlide
\family default
paragraph
\end_layout
\begin_layout Itemize
or nested inside the
\family sans
LandscapeSlide
\family default
environment
\end_layout
\begin_layout Standard
How to nest things is explained in LyX's User's Guide chapter 3.4.
\end_layout
\end_deeper
\begin_layout --Separator--
\end_layout
\begin_layout LandscapeSlide
\end_layout
\begin_deeper
\begin_layout SlideHeading
What can be part of a slide?
\end_layout
\begin_layout Standard
Virtually everything that can appear in normal LaTeX, can also be on a slide.
\end_layout
\begin_layout Standard
(Well, floats are an exception --- who would want them on a slide.)
\end_layout
\begin_layout Standard
Additionally there are the paragraph styles:
\end_layout
\begin_layout Itemize
\family sans
SlideHeading,
\end_layout
\begin_layout Itemize
\family sans
SlideSubheading,
\end_layout
\begin_layout Itemize
\family sans
ListOfSlides,
\end_layout
\begin_layout Itemize
\family sans
SlideContents,
\family default
and
\end_layout
\begin_layout Itemize
\family sans
ProgressContents
\family default
.
\end_layout
\begin_layout Standard
All of them can be found in the Style pulldown.
\end_layout
\end_deeper
\begin_layout --Separator--
\end_layout
\begin_layout LandscapeSlide
Text within the
\family sans
LandscapeSlide
\family default
environment will go on top of the slide as a standard paragraph.
\end_layout
\begin_deeper
\begin_layout SlideHeading
What happens, when you want a List or a Heading first?
\end_layout
\begin_layout Standard
Normally, LyX doesn't like empty paragraphs and it kills empty environments
before you are able to nest something in them (if you don't insert an empty
command, like
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
{}
\end_layout
\end_inset
, say).
\family typewriter
seminar
\family default
.
\family typewriter
layout
\family default
tells LyX to leave an empty
\family sans
LandscapeSlide
\family default
or
\family sans
PortraitSlide
\family default
, so you don't need to use the above workaround.
\end_layout
\begin_layout Standard
The same holds for the
\family sans
--Separator--
\family default
Environment, that is needed because LyX will normally merge two environments
if they come immediately one after the other (i.e.
two Paragraphs in the
\family sans
LandscapeSlide
\family default
environment will go to one slide, if there is nothing else in between.)
\end_layout
\end_deeper
\begin_layout LandscapeSlide
\end_layout
\begin_layout --Separator--
\end_layout
\begin_layout Standard
There is no need for a
\family sans
--Separator--
\family default
paragraph, if some notes follow the slide (or if a
\family sans
Landscape Slide
\family default
is followed by a
\family sans
Portrait Slide
\family default
.
The seminar class puts everything that is not nested inside a
\family sans
Slide
\family default
environment on extra pages (see slide
\begin_inset CommandInset ref
LatexCommand ref
reference "sli:output-options"
\end_inset
for output options).
\end_layout
\begin_layout Section
Outline
\end_layout
\begin_layout Standard
Seminar defines additional content-listing commands, as the standard Table
of Contents only lists standard headings and subheadings:
\end_layout
\begin_layout Standard
\begin_inset CommandInset toc
LatexCommand tableofcontents
\end_inset
\end_layout
\begin_layout Standard
The
\family sans
SlideContents
\family default
paragraph style lists every page of the output (to produce a slide with
the contents, nest it in a
\family sans
Slide
\family default
paragraph):
\end_layout
\begin_layout SlideContents
\end_layout
\begin_layout Standard
If you want to have a listing of the slides only, use the
\family sans
ListOfSlides
\family default
paragraph style:
\end_layout
\begin_layout ListOfSlides
\end_layout
\begin_layout Section
Progress Contents
\end_layout
\begin_layout Standard
If you want to assure the audience, that the presentation is almost over,
insert a slide with
\family sans
ProgressContents
\family default
:
\end_layout
\begin_layout LandscapeSlide
\end_layout
\begin_deeper
\begin_layout ProgressContents
\end_layout
\end_deeper
\begin_layout --Separator--
\end_layout
\begin_layout LandscapeSlide
\end_layout
\begin_deeper
\begin_layout SlideHeading
output options
\begin_inset CommandInset label
LatexCommand label
name "sli:output-options"
\end_inset
\end_layout
\begin_layout Standard
The following options can be added to the
\family sans
Options
\family default
field in the menu
\family sans
Document\SpecialChar \menuseparator
Settings\SpecialChar \menuseparator
Document
\begin_inset space ~
\end_inset
Class
\family default
:
\end_layout
\begin_layout Description
slidesonly Only the slides are printed
\end_layout
\begin_layout Description
notesonly Only the notes are printed
\end_layout
\begin_layout Description
notes Both notes and slides are printed
\end_layout
\begin_layout Description
notesonly* Produces a slide marker for each slide environment
\end_layout
\begin_layout Description
article Print as article (two-up)
\end_layout
\begin_layout SlideHeading
preamble commands
\end_layout
\begin_layout Description
\backslash
onlyslides{8,9,11} print only slides number 8, 9 and 11 (e.g.
color plots),
\end_layout
\begin_layout Description
\backslash
notslides{4,8,9,11} don't print these slides.
\end_layout
\end_deeper
\begin_layout --Separator--
\end_layout
\begin_layout LandscapeSlide
\end_layout
\begin_deeper
\begin_layout SlideHeading
Fancier formatting
\end_layout
\begin_layout Standard
The LaTeX preamble is the right place for many many options to get fancier
formatting, e.
\begin_inset space \thinspace{}
\end_inset
g.:
\end_layout
\begin_layout Itemize
different font sets, e.
\begin_inset space \thinspace{}
\end_inset
g.
\begin_inset space ~
\end_inset
the Iwona fonts:
\end_layout
\begin_deeper
\begin_layout LyX-Code
\backslash
usepackage{iwona}
\end_layout
\end_deeper
\begin_layout Itemize
fancy frames:
\end_layout
\begin_deeper
\begin_layout LyX-Code
\backslash
usepackage{fancybox}
\end_layout
\begin_layout LyX-Code
\backslash
setlength{
\backslash
slideframewidth}{1pt}
\end_layout
\begin_layout LyX-Code
\backslash
slideframe[
\backslash
setlength{
\backslash
shadowsize}{1pt}]{shadow}
\end_layout
\end_deeper
\end_deeper
\begin_layout --Separator--
\end_layout
\begin_layout LandscapeSlide
\end_layout
\begin_deeper
\begin_layout SlideHeading
Troubleshooting
\end_layout
\begin_layout Itemize
There is a bug in
\family typewriter
seminar.cls
\family default
making it fail with the
\family typewriter
a4paper
\family default
option.
If you use A4 paper, set in the menu
\family sans
Document\SpecialChar \menuseparator
Settings\SpecialChar \menuseparator
Page
\begin_inset space ~
\end_inset
Layout
\family default
the
\family sans
Paper
\begin_inset space ~
\end_inset
Size
\family default
to
\family sans
Default
\family default
and add
\begin_inset Quotes eld
\end_inset
\family sans
a4
\family default
\begin_inset Quotes erd
\end_inset
to the
\family sans
Options
\family default
field in the menu
\family sans
Document\SpecialChar \menuseparator
Settings\SpecialChar \menuseparator
Document
\begin_inset space ~
\end_inset
Class
\family default
.
\end_layout
\begin_layout Itemize
If you have problems with the orientation of the slides/page, try the recommenda
tions in Apppendix E of the seminar handbook.
\end_layout
\begin_layout Itemize
Assure that the document page margins are set to default.
\end_layout
\end_deeper
\begin_layout LandscapeSlide
\end_layout
\end_body
\end_document

View File

@ -1,114 +1,92 @@
#% Do not delete the line below; configure depends on this #% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass{presentation (seminar)} # \DeclareLaTeXClass{transparencies (seminar)}
# Initial attemt at makeing a LyX layout file for the seminar class. # Versions:
# 1.0 Initial attemt at makeing a LyX layout file for the seminar class.
# Author : Lars Gullik Bjønnes <larsbj@lyx.org> # Author : Lars Gullik Bjønnes <larsbj@lyx.org>
# 1.1 08-04-2002 Günter Milde <milde users.sf.net>
# 1.2 11-12-2002 Günter Milde (copying some stuff from L. G. Bjønnes
# version in LyX 1.3)
# 1.3 2007-09-18 GM (adapted to LyX 1.5)
# 1.4 2008-10-08 GM (use --Separator-- "look")
Format 10 Format 10
Input stdclass.inc
NoStyle Chapter
NoStyle Chapter*
Sides 1 Sides 1
Columns 1 Columns 1
SecNumDepth 3
TocDepth 3
ClassOptions ClassOptions
FontSize 8|9|10|11|12|14|17 FontSize 8|9|10|11|12|14|17
Other slidesec Other slidesec
End End
# Input general definitions: (seminar is based on the article class)
Style Part Input article.layout
Align Left
TopSep 2
BottomSep 1.5
Font
Size Larger
EndFont
End
Style Part*
Align Left
TopSep 2
BottomSep 1.5
Font
Size Larger
EndFont
End
Style LandscapeSlide Style LandscapeSlide
CopyStyle Standard CopyStyle --Separator--
LatexType Environment LatexType Environment
LatexName slide LatexName slide
KeepEmpty 1 NextNoIndent 1
Labeltype Static Margin Static
LabelString "Landscape Slide" LeftMargin N
LabelSep "MMMMMMM" ParIndent ""
TopSep 0.4
LabelType Top_Environment
LabelString "Landscape Slide:"
End End
Style PortraitSlide
CopyStyle Standard
LatexType Environment
LatexName slide*
KeepEmpty 1
Labeltype Static
LabelString "Portrait Slide"
End
Style Slide Style Slide
Obsoletedby LandscapeSlide Obsoletedby LandscapeSlide
End End
Style PortraitSlide
CopyStyle LandscapeSlide
LatexName slide*
LabelString "Portrait Slide:"
End
Style Slide* Style Slide*
Obsoletedby PortraitSlide Obsoletedby PortraitSlide
End End
# EndOfSlide was a dummy style whose main purpose is to separate subsequent
# Slide environments. Nowadays lyx has the special --Separator-- style as
# workaround:
Style EndOfSlide
ObsoletedBy --Separator--
End
# Note: \slideheading is only defined when the option slidesec is present
Style SlideHeading Style SlideHeading
CopyStyle Section CopyStyle Section
LatexName slideheading LatexName slideheading
Align Center
End End
# Note: \slidesubheading is only defined when the option slidesec is present
Style SlideSubHeading Style SlideSubHeading
CopyStyle Subsection CopyStyle Subsection
LatexName slidesubheading LatexName slidesubheading
Align Center
End End
Style ListOfSlides Style ListOfSlides
KeepEmpty 1 CopyStyle --Separator--
Align Center
LatexType Command LatexType Command
LatexName listofslides LatexName listofslides
Labeltype Static TopSep 0.5
LabelString "List Of Slides" BottomSep 0.5
Align Center
# BottomSep 0
LabelString "[List Of Slides]"
End End
Style SlideContents Style SlideContents
KeepEmpty 1 CopyStyle ListOfSlides
Align Center
LatexType Command
LatexName slidecontents LatexName slidecontents
Labeltype Static LabelString "[Slide Contents]"
LabelString "Slidecontents"
End End
Style ProgressContents Style ProgressContents
KeepEmpty 1 CopyStyle ListOfSlides
Align Center
LatexType Command
LatexName Slidecontents LatexName Slidecontents
Labeltype Static LabelString "[Progress Contents]"
LabelString "Progress Contents"
End End

View File

@ -1,5 +1,5 @@
#% Do not delete the line below; configure depends on this #% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass{presentation (slides)} # \DeclareLaTeXClass{transparencies (slides)}
# Slides textclass definition file. # Slides textclass definition file.
# Author : John Weiss <jpweiss@idsi.net> # Author : John Weiss <jpweiss@idsi.net>
# #