From de42d09e1e77cb7b8f3333865fcacba3ac2dc8af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Fri, 18 May 2012 23:21:35 +0200 Subject: [PATCH] =?utf8?q?seminar.lyx:=20new=20example=20file=20from=20G?= =?utf8?q?=C3=BCnter=20Milde=20(forgot=20it=20in=20last=20commit)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/examples/seminar.lyx | 638 ++++++++++++++++++--------------------- 1 file changed, 296 insertions(+), 342 deletions(-) diff --git a/lib/examples/seminar.lyx b/lib/examples/seminar.lyx index 17944b15f4..05557ea6de 100644 --- a/lib/examples/seminar.lyx +++ b/lib/examples/seminar.lyx @@ -5,10 +5,16 @@ \textclass seminar \begin_preamble \renewcommand{\printlandscape}{\special{landscape}} + +% if slides come out in the viewer upside down, try: %\sliderotation{right} + +%\AtBeginDocument{% +% \pdfpageheight = \paperheight +% \pdfpagewidth = \paperwidth +%} \end_preamble -\options a4paper, semrot, slidesec -\use_default_options false +\use_default_options true \maintain_unincluded_children false \language english \language_package default @@ -24,15 +30,24 @@ \font_sf_scale 100 \font_tt_scale 100 -\graphics dvips -\default_output_format default +\graphics default +\default_output_format pdf \output_sync 0 \bibtex_command default \index_command default \paperfontsize default \spacing single -\use_hyperref false -\papersize default +\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_amsmath 1 \use_esint 0 @@ -66,44 +81,25 @@ \begin_body \begin_layout Standard -\begin_inset Note Note +\begin_inset Flex LandscapeSlide status open -\begin_layout Plain Layout - -\series bold -Note: -\series default - It turned out that the method +\begin_layout Title +Slides and Notes with the \family sans -PDF (dvipdfm) +\noun on +Seminar \family default - works on all LaTeX systems as expected when viewing/exporting this file - as PDF. - 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. +\noun default + class \end_layout -\begin_layout Plain Layout +\begin_layout Author +Günter Milde +\end_layout -\series bold -Note: -\series default - The -\family sans -seminar -\family default - class is designed to produce transparencies, not powerpoint-like presentations. - For such presentations, use a presentation document class like -\family sans - beamer -\family default - or -\family sans - powerdot -\family default -. +\begin_layout Date +10/10/2010 \end_layout \end_inset @@ -111,279 +107,320 @@ seminar \end_layout -\begin_layout LandscapeSlide - -\end_layout - -\begin_deeper -\begin_layout SlideHeading -Slides and Notes with the -\family sans -\noun on -Seminar -\family default -\noun default - class -\begin_inset Note Note -status open - -\begin_layout Plain Layout -written by Günter Milde -\end_layout +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents \end_inset \end_layout -\begin_layout Author -Harry Testman -\end_layout - -\begin_layout Date -10/10/2010 +\begin_layout Section +Basics \end_layout -\end_deeper -\begin_layout --Separator-- +\begin_layout Standard +\begin_inset Flex LandscapeSlide +status open +\begin_layout SlideHeading +Seminar \end_layout -\begin_layout LandscapeSlide +\begin_layout Itemize +The +\begin_inset CommandInset href +LatexCommand href +name "seminar" +target "http://www.ctan.org/pkg/seminar" -\end_layout +\end_inset -\begin_deeper -\begin_layout SlideHeading -Some basic points to start with: + class is designed to produce overhead slides (transparencies). + For powerpoint-like presentations, use a +\emph on +presentation +\emph default + document class like +\family sans + beamer +\family default + or +\family sans + powerdot +\family default +. \end_layout \begin_layout Itemize -Start a slide with an paragraph of type -\family typewriter +Insert a slide with a +\series bold LandscapeSlide -\family default +\series default or -\family typewriter +\series bold PortraitSlide -\family default -. +\series default + inset (Insert\SpecialChar \menuseparator +Custom +\begin_inset space ~ +\end_inset + +Insets). + \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 -) + +\begin_inset CommandInset href +LatexCommand href +name "sem-user.pdf" +target "http://mirror.ctan.org/macros/latex/contrib/seminar/doc/sem-user.pdf" + +\end_inset + + \end_layout -\end_deeper -\begin_layout --Separator-- +\end_inset + \end_layout -\begin_layout PortraitSlide +\begin_layout Standard +\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_deeper +\begin_layout Standard +\begin_inset Flex LandscapeSlide +status open + \begin_layout SlideHeading -Putting some content in a slide +Configuration \end_layout -\begin_layout Standard -If a paragraph shall appear in a slide, it need to be +\begin_layout SlideSubHeading +Output options +\begin_inset CommandInset label +LatexCommand label +name "sli:output-options" + +\end_inset + + \end_layout -\begin_layout Itemize -either inside the opening +\begin_layout Plain Layout +The following options can be added to the \family sans -LandscapeSlide +Options \family default - paragraph -\end_layout - -\begin_layout Itemize -or nested inside the + field in \family sans -LandscapeSlide +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Document +\begin_inset space ~ +\end_inset + +Class \family default - environment +: \end_layout -\begin_layout Standard -How to nest things is explained in LyX's User's Guide chapter 3.4. +\begin_layout Description +slidesonly Only the slides are printed. \end_layout -\end_deeper -\begin_layout --Separator-- +\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 LandscapeSlide +\begin_layout Plain Layout +\begin_inset Newpage newpage +\end_inset + \end_layout -\begin_deeper \begin_layout SlideSubHeading -What can be part of a slide? +Preamble commands \end_layout -\begin_layout Standard -Virtually everything that can appear in normal LaTeX, can also be on a slide. +\begin_layout Plain Layout +The following options can be added to the +\family sans +LaTeX preambel +\family default + in +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Document +\begin_inset space ~ +\end_inset + +Class +\family default +: \end_layout -\begin_layout Standard -(Well, floats are an exception --- who would want them on a slide.) +\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 Standard -Additionally there are the paragraph styles: +\begin_layout Description + +\backslash +notslides{4,8,9,11} don't print these slides. \end_layout -\begin_layout Itemize +\end_inset + -\family sans -SlideHeading, \end_layout -\begin_layout Itemize +\begin_layout Standard +\begin_inset Flex PortraitSlide +status open -\family sans -SlideSubheading, +\begin_layout SlideHeading +Slide contents \end_layout -\begin_layout Itemize +\begin_layout Plain Layout +Virtually everything that can appear in normal LaTeX (except floats) can + also be on a slide. +\end_layout -\family sans -ListOfSlides, +\begin_layout Plain Layout +Additional styles: \end_layout \begin_layout Itemize \family sans -SlideContents, -\family default - and +SlideHeading \end_layout \begin_layout Itemize \family sans -ProgressContents -\family default -. +SlideSubheading \end_layout -\begin_layout Standard -All of them can be found in the Style pull-down box. -\end_layout +\end_inset -\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_layout Standard +\begin_inset Flex LandscapeSlide +status open -\begin_deeper \begin_layout SlideHeading -What happens, when you want a List or a Heading first? +Warnings \end_layout -\begin_layout Standard -Normally, LyX does not 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 or a note). - -\family typewriter -seminar -\family default -. -\family typewriter -layout -\family default - tells LyX to leave an empty +\begin_layout Plain Layout +Size and orientation of the slides show problems depending on the output + format and viewing application: +\end_layout + +\begin_layout Itemize + \family sans -LandscapeSlide +seminar \family default - or + uses Postscript specials and does not work with \family sans -PortraitSlide +PDF (pdflatex) \family default -, so you don't need to use the above workaround. +. \end_layout -\begin_layout Standard -The +\begin_layout Itemize +Landscape slides do not work with \family sans ---Separator-- -\family default - paragraph after a slide is needed because LyX will normally merge two environme -nts if they come immediately one after the other (i. -\begin_inset space \thinspace{} -\end_inset +DVI. +\end_layout -g. -\begin_inset space \space{} -\end_inset +\begin_layout Plain Layout +With the current configuration in Document\SpecialChar \menuseparator +Settings, +\end_layout + +\begin_layout Itemize -two Paragraphs in the \family sans -LandscapeSlide +PDF (dvips) \family default - environment will go to one slide, if there is nothing else between.) + adapts the pager orientation → online viewing and presentation. \end_layout -\end_deeper -\begin_layout --Separator-- - -\end_layout +\begin_layout Itemize -\begin_layout Standard -The seminar class puts everything that is not nested inside a \family sans -Slide +Postscript \family default - environment on extra pages as -\emph on -notes -\emph default - (see slide -\begin_inset CommandInset ref -LatexCommand ref -reference "sli:output-options" + and +\family sans +PDF (dvipdfm) +\family default + rotate landscape slides → hardcopies. +\end_layout \end_inset - for output options). + \end_layout \begin_layout Standard -There is no need for a -\family sans ---Separator-- -\family default - paragraph, if notes follow the slide (or if a -\family sans -Landscape Slide -\family default - is followed by a -\family sans -Portrait Slide -\family default -. +Seminar uses non-standard ways to deal with paper layout and orientation. + Therefore, also Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Page Layout\SpecialChar \menuseparator +Orientation has no effect on + the output. \end_layout \begin_layout Section @@ -400,16 +437,12 @@ normal \begin_inset Quotes erd \end_inset - headings and subheadings: -\end_layout - -\begin_layout Standard -\begin_inset CommandInset toc -LatexCommand tableofcontents - -\end_inset - - + headings and subheadings. + (To get a slide with the listings, nest themt in a +\family sans +slide +\family default +inset.) \end_layout \begin_layout Subsection @@ -421,24 +454,24 @@ The \family sans SlideContents \family default - paragraph style is an analogue to the table of contents but lists only - + inset is an analogue to the table of contents but lists only \family sans SlideHeading \family default -s. - It has problems with +s (no \family sans SlideSubheading \family default -s, though which fail to show up in the list (seems to be a bug in -\family typewriter -slidesec.sty -\family default -): +s): +\begin_inset Flex SlideContents +status collapsed + +\begin_layout Plain Layout + \end_layout -\begin_layout SlideContents +\end_inset + \end_layout @@ -451,151 +484,65 @@ Analogue to a list of tables, the \family sans ListOfSlides \family default - style lists all slides in your document (to produce a slide with the list, - nest it in a -\family sans -...Slide -\family default - paragraph): -\end_layout - -\begin_layout ListOfSlides - -\end_layout - -\begin_layout Subsection -Progress Contents + style lists all slides in your document: \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_inset Flex ListOfSlides +status collapsed -\begin_deeper -\begin_layout ProgressContents - -\end_layout - -\end_deeper -\begin_layout --Separator-- +\begin_layout Plain Layout \end_layout -\begin_layout LandscapeSlide +\end_inset -\end_layout -\begin_deeper -\begin_layout SlideHeading -Configuration \end_layout -\begin_layout SlideSubHeading -Output options -\begin_inset CommandInset label -LatexCommand label -name "sli:output-options" - -\end_inset - - +\begin_layout Subsection +Progress Contents \end_layout \begin_layout Standard -The following options can be added to the -\family sans -Options -\family default - field in the menu +If you want to assure the audience, that the presentation is almost over, + insert a slide with \family sans -Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator -Document -\begin_inset space ~ -\end_inset - -Class +ProgressContents \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 Standard -\begin_inset Newpage newpage -\end_inset +\begin_inset Flex LandscapeSlide +status open +\begin_layout Plain Layout +\align center +\begin_inset Flex ProgressContents +status collapsed -\end_layout +\begin_layout Plain Layout -\begin_layout SlideSubHeading -Preamble commands \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 -\end_deeper -\begin_layout --Separator-- - -\end_layout +\end_inset -\begin_layout LandscapeSlide \end_layout -\begin_deeper \begin_layout SlideSubHeading Fancier formatting \end_layout \begin_layout Standard -The LaTeX preamble is the right place for many many options to get fancier - formatting, e. +The LaTeX preamble is the right place for many options to get fancier formatting +, e. \begin_inset space \thinspace{} \end_inset @@ -614,19 +561,16 @@ g. 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 @@ -651,17 +595,20 @@ setlength{ shadowsize}{1pt}]{shadow} \end_layout -\end_deeper -\end_deeper -\begin_layout --Separator-- +\begin_layout Standard +See +\family typewriter -\end_layout +\begin_inset CommandInset href +LatexCommand href +name "sem-user.pdf" +target "http://mirror.ctan.org/macros/latex/contrib/seminar/doc/sem-user.pdf" -\begin_layout LandscapeSlide +\end_inset + for details. \end_layout -\begin_deeper \begin_layout SlideHeading Troubleshooting \end_layout @@ -738,17 +685,24 @@ tions in Apppendix \begin_inset space ~ \end_inset -E of the seminar handbook. +E of the seminar handbook +\family typewriter + +\begin_inset CommandInset href +LatexCommand href +name "sem-user.pdf" +target "http://mirror.ctan.org/macros/latex/contrib/seminar/doc/sem-user.pdf" + +\end_inset + + +\family default +. \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 -- 2.39.2