lyx_mirror/lib/examples/seminar.lyx
Günter Milde 66f8d9a279 Fixes to seminar.layout and documentation.
Thanks to Jean-Marc for test and report.
2016-09-29 09:40:06 +02:00

675 lines
12 KiB
Plaintext

#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 508
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass seminar
\begin_preamble
\renewcommand{\printlandscape}{\special{landscape}}
% if slides come out in the viewer upside down, try:
%\sliderotation{right}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package babel
\inputencoding auto
\fontencoding global
\font_roman "lmodern" "default"
\font_sans "lmss" "default"
\font_typewriter "lmtt" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref false
\pdf_pdfusetitle true
\papersize a4paper
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 0
\use_package esint 0
\use_package mathdots 1
\use_package mathtools 0
\use_package mhchem 1
\use_package stackrel 0
\use_package stmaryrd 0
\use_package undertilde 0
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification false
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle empty
\tracking_changes true
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\author -1402925745 "Günter Milde"
\end_header
\begin_body
\begin_layout Standard
\begin_inset Flex LandscapeSlide
status open
\begin_layout Title
Slides and Notes with the
\family sans
\noun on
Seminar
\family default
\noun default
class
\end_layout
\begin_layout Author
Günter Milde
\end_layout
\begin_layout Date
2016/09/26
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Flex LandscapeSlide
status open
\begin_layout SlideHeading
Seminar
\end_layout
\begin_layout Itemize
The
\begin_inset CommandInset href
LatexCommand href
name "seminar"
target "http://www.ctan.org/pkg/seminar"
\end_inset
class is designed to produce overhead slides (transparencies).
For PowerPoint-like presentations, a
\change_deleted -1402925745 1475077917
\emph on
presentation
\change_unchanged
\emph default
document class like
\family sans
beamer
\family default
or
\family sans
powerdot
\family default
may be better suited.
\end_layout
\begin_layout Itemize
Insert a slide with a
\series bold
LandscapeSlide
\series default
or
\series bold
PortraitSlide
\series default
inset (Insert\SpecialChar menuseparator
Custom
\begin_inset space ~
\end_inset
Insets).
\end_layout
\begin_layout Itemize
Virtually everything that can appear in normal \SpecialChar LaTeX
(except floats) can also
be on a slide.
\end_layout
\begin_deeper
\begin_layout Plain Layout
Additional styles:
\family sans
SlideHeading, SlideSubheading
\end_layout
\end_deeper
\begin_layout Itemize
The seminar handbook
\begin_inset CommandInset href
LatexCommand href
name "sem-user.pdf"
target "https://www.ctan.org/tex-archive/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
\end_inset
is somewhat outdated but still a helpful reading.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Flex LandscapeSlide
status open
\begin_layout SlideHeading
Warnings
\end_layout
\begin_layout Itemize
\family sans
Seminar
\family default
uses
\begin_inset CommandInset href
LatexCommand href
name "PGF"
target "http://ctan.org/pkg/pgf"
\end_inset
graphic specials: size and orientation of the slides show problems depending
on the output format and viewing application (see Troubleshooting below).
\end_layout
\begin_layout Itemize
Assure that the document page margins are set to default.
\end_layout
\end_inset
\family sans
Seminar
\family default
puts everything that is not nested inside a
\family sans
Slide
\family default
environment on extra pages as
\emph on
notes.
\emph default
(See Configuration below on how to print only slides, only notes, or both.)
\end_layout
\begin_layout Section
Configuration
\end_layout
\begin_layout Standard
\begin_inset Flex LandscapeSlide
status open
\begin_layout SlideHeading
Output options
\begin_inset CommandInset label
LatexCommand label
name "sli:output-options"
\end_inset
\end_layout
\begin_layout Plain Layout
The following options can be added to the
\family sans
Options
\family default
field in
\family sans
Document\SpecialChar menuseparator
Settings\SpecialChar menuseparator
Document
\begin_inset space ~
\end_inset
Class
\family default
:
\end_layout
\begin_layout Description
notes Both notes and slides are printed (default).
\end_layout
\begin_layout Description
slidesonly Only the slides are printed.
\end_layout
\begin_layout Description
notesonly Only the notes are printed.notesonly* Produces a slide marker for
each slide environment.
\end_layout
\begin_layout Description
article Print as article (two-up with PDF (
\change_deleted -1402925745 1475078217
dvip
\change_inserted -1402925745 1475078217
dvipd
\change_unchanged
fm) and option
\family typewriter
portrait
\family default
).
\end_layout
\begin_layout Description
semrot Rotate slides if orientation does not match the document default.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Flex LandscapeSlide
status open
\begin_layout SlideHeading
Preamble commands
\end_layout
\begin_layout Plain Layout
The following options can be added to
\family sans
Document\SpecialChar menuseparator
Settings\SpecialChar menuseparator
LaTeX Preamble:
\end_layout
\begin_layout Description
\backslash
onlyslides{8,9,11} print only slides number 8, 9 and 11 (e.
\begin_inset space \thinspace{}
\end_inset
g.
\begin_inset space \space{}
\end_inset
color plots),
\end_layout
\begin_layout Description
\backslash
notslides{4,8,9,11} don't print these slides.
\end_layout
\begin_layout Description
For more configuration options and commands see
\begin_inset CommandInset href
LatexCommand href
name "sem-user.pdf"
target "https://www.ctan.org/tex-archive/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
\end_inset
.
\end_layout
\end_inset
\end_layout
\begin_layout Section
\change_inserted -1402925745 1475078007
Lists/ToC
\change_deleted -1402925745 1475078002
Outline
\change_unchanged
\end_layout
\begin_layout Standard
Seminar defines additional content-listing commands, as the Table of Contents
only lists
\begin_inset Quotes eld
\end_inset
normal
\begin_inset Quotes erd
\end_inset
headings and subheadings.
\end_layout
\begin_layout Standard
The
\family sans
SlideContents
\family default
inset is an analogue to the table of contents but lists only
\family sans
SlideHeading
\family default
s (no
\family sans
SlideSubheading
\family default
s):
\end_layout
\begin_layout Standard
\begin_inset Flex LandscapeSlide
status open
\begin_layout SlideContents
\end_layout
\end_inset
\end_layout
\begin_layout Subsection
List of slides
\end_layout
\begin_layout Standard
Analogue to a list of tables, the
\family sans
ListOfSlides
\family default
style lists all slides in your document:
\end_layout
\begin_layout Standard
\begin_inset Flex LandscapeSlide
status open
\begin_layout ListOfSlides
\end_layout
\end_inset
\end_layout
\begin_layout Subsection
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 Standard
\begin_inset Flex LandscapeSlide
status open
\begin_layout ProgressContents
\end_layout
\end_inset
\end_layout
\begin_layout Section
Formatting
\end_layout
\begin_layout Standard
The \SpecialChar LaTeX
preamble is the right place for many options to get fancier formatting,
e.
\begin_inset space \thinspace{}
\end_inset
g., fancy frames:
\end_layout
\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}
\change_inserted -1402925745 1475078053
%
\end_layout
\begin_layout LyX-Code
\change_inserted -1402925745 1475078060
\change_deleted -1402925745 1475078053
\change_unchanged
framecolor "black"
\change_inserted -1402925745 1475078066
\change_unchanged
backgroundcolor "none"
\end_layout
\begin_layout Standard
See
\begin_inset CommandInset href
LatexCommand href
name "sem-user.pdf"
target "https://www.ctan.org/tex-archive/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
\end_inset
for details
\family typewriter
.
\change_inserted -1402925745 1475078086
\end_layout
\begin_layout Standard
You can set sans-serif as default font family and select suitable font
\change_inserted -1402925745 1475078105
s
\change_unchanged
under Document\SpecialChar menuseparator
Settings\SpecialChar menuseparator
Fonts.
\end_layout
\begin_layout Section
Troubleshooting
\end_layout
\begin_layout Itemize
\change_inserted -1402925745 1475134685
LyX 2.2.0 reports a
\begin_inset Quotes eld
\end_inset
missing characters in font nullfont
\begin_inset Quotes erd
\end_inset
error.
This error is caused by a bug in PGF and can be ignored.
\end_layout
\begin_layout Itemize
\family typewriter
seminar.cls
\family default
versions before 1.5 (2008-10-15) contained a bug regarding the a4paper option.
\end_layout
\begin_layout Itemize
Originally,
\family typewriter
seminar.cls
\family default
used pstricks for the graphics.
This failed with pdfTeX and LuaTeX.
Update to a current version using
\begin_inset CommandInset href
LatexCommand href
name "PGF"
target "http://ctan.org/pkg/pgf"
\end_inset
, if you want to use non-TeX fonts.
\end_layout
\begin_layout Standard
Correct size and orientation of the slides is somewhat tricky.
Depending on the use case, different settings and export routes work best:
\end_layout
\begin_layout Itemize
\family sans
Seminar
\family default
defaults to landscape orientation.
Therefore, Document\SpecialChar menuseparator
Settings\SpecialChar menuseparator
Page Layout\SpecialChar menuseparator
Orientation has no effect on the
output.
Instead, add the
\family typewriter
portrait
\family default
class option for portrait mode.
\end_layout
\begin_layout Itemize
The default settings work nice for landscape slides on screen with PDF (dvipdfm)
, PDF (pdflatex), and PDF (XeTeX).
Do not mix LandscapeSlide and PortraitSlide, if you want to present on
screen or with a video projector.
\end_layout
\begin_layout Itemize
LuaTeX scales the content by a factor 0.5 when generating PDF.
\end_layout
\begin_deeper
\begin_layout Standard
With the option “trim margins” in the PDF viewer (e.g.
Okular), this can be used as a workaround for mixed slides on screen.
\end_layout
\end_deeper
\begin_layout Itemize
When printing on transparencies, LandscapeSlides and PortraitSlide can be
mixed if the option
\family typewriter
semrot
\family default
is set and the export is done with PDF (dvipdfm).
\end_layout
\begin_layout Itemize
Output formats DVI, DVI (LuaTeX), Postscript, and PDF (ps2pdf) require the
option
\family typewriter
portrait
\family default
or
\family typewriter
article
\family default
.
Printing of (rotated) landscape slides is possible with options
\family typewriter
portrait,semrot
\family default
.
\end_layout
\end_body
\end_document