]> git.lyx.org Git - lyx.git/blob - lib/examples/seminar.lyx
Fixes to seminar.layout and documentation.
[lyx.git] / lib / examples / seminar.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass seminar
8 \begin_preamble
9 \renewcommand{\printlandscape}{\special{landscape}}
10
11 % if slides come out in the viewer upside down, try:
12 %\sliderotation{right}
13 \end_preamble
14 \use_default_options true
15 \maintain_unincluded_children false
16 \language english
17 \language_package babel
18 \inputencoding auto
19 \fontencoding global
20 \font_roman "lmodern" "default"
21 \font_sans "lmss" "default"
22 \font_typewriter "lmtt" "default"
23 \font_math "auto" "auto"
24 \font_default_family default
25 \use_non_tex_fonts false
26 \font_sc false
27 \font_osf false
28 \font_sf_scale 100 100
29 \font_tt_scale 100 100
30 \graphics default
31 \default_output_format pdf2
32 \output_sync 0
33 \bibtex_command default
34 \index_command default
35 \paperfontsize default
36 \spacing single
37 \use_hyperref true
38 \pdf_bookmarks true
39 \pdf_bookmarksnumbered false
40 \pdf_bookmarksopen false
41 \pdf_bookmarksopenlevel 1
42 \pdf_breaklinks false
43 \pdf_pdfborder true
44 \pdf_colorlinks true
45 \pdf_backref false
46 \pdf_pdfusetitle true
47 \papersize a4paper
48 \use_geometry false
49 \use_package amsmath 1
50 \use_package amssymb 1
51 \use_package cancel 0
52 \use_package esint 0
53 \use_package mathdots 1
54 \use_package mathtools 0
55 \use_package mhchem 1
56 \use_package stackrel 0
57 \use_package stmaryrd 0
58 \use_package undertilde 0
59 \cite_engine basic
60 \cite_engine_type default
61 \biblio_style plain
62 \use_bibtopic false
63 \use_indices false
64 \paperorientation portrait
65 \suppress_date false
66 \justification false
67 \use_refstyle 0
68 \index Index
69 \shortcut idx
70 \color #008000
71 \end_index
72 \secnumdepth 3
73 \tocdepth 3
74 \paragraph_separation indent
75 \paragraph_indentation default
76 \quotes_language english
77 \papercolumns 1
78 \papersides 1
79 \paperpagestyle empty
80 \tracking_changes true
81 \output_changes false
82 \html_math_output 0
83 \html_css_as_file 0
84 \html_be_strict false
85 \author -1402925745 "Günter Milde"
86 \end_header
87
88 \begin_body
89
90 \begin_layout Standard
91 \begin_inset Flex LandscapeSlide
92 status open
93
94 \begin_layout Title
95 Slides and Notes with the 
96 \family sans
97 \noun on
98 Seminar
99 \family default
100 \noun default
101  class
102 \end_layout
103
104 \begin_layout Author
105 Günter Milde
106 \end_layout
107
108 \begin_layout Date
109 2016/09/26
110 \end_layout
111
112 \end_inset
113
114
115 \end_layout
116
117 \begin_layout Standard
118 \begin_inset Flex LandscapeSlide
119 status open
120
121 \begin_layout SlideHeading
122 Seminar
123 \end_layout
124
125 \begin_layout Itemize
126 The 
127 \begin_inset CommandInset href
128 LatexCommand href
129 name "seminar"
130 target "http://www.ctan.org/pkg/seminar"
131
132 \end_inset
133
134  class is designed to produce overhead slides (transparencies).
135  For PowerPoint-like presentations, a 
136 \change_deleted -1402925745 1475077917
137
138 \emph on
139 presentation
140 \change_unchanged
141
142 \emph default
143  document class like
144 \family sans
145  beamer
146 \family default
147  or
148 \family sans
149  powerdot
150 \family default
151  may be better suited.
152 \end_layout
153
154 \begin_layout Itemize
155 Insert a slide with a 
156 \series bold
157 LandscapeSlide
158 \series default
159  or 
160 \series bold
161 PortraitSlide
162 \series default
163  inset (Insert\SpecialChar menuseparator
164 Custom
165 \begin_inset space ~
166 \end_inset
167
168 Insets).
169 \end_layout
170
171 \begin_layout Itemize
172 Virtually everything that can appear in normal \SpecialChar LaTeX
173  (except floats) can also
174  be on a slide.
175 \end_layout
176
177 \begin_deeper
178 \begin_layout Plain Layout
179 Additional styles: 
180 \family sans
181 SlideHeading, SlideSubheading
182 \end_layout
183
184 \end_deeper
185 \begin_layout Itemize
186 The seminar handbook 
187 \begin_inset CommandInset href
188 LatexCommand href
189 name "sem-user.pdf"
190 target "https://www.ctan.org/tex-archive/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
191
192 \end_inset
193
194  is somewhat outdated but still a helpful reading.
195 \end_layout
196
197 \end_inset
198
199
200 \end_layout
201
202 \begin_layout Standard
203 \begin_inset Flex LandscapeSlide
204 status open
205
206 \begin_layout SlideHeading
207 Warnings
208 \end_layout
209
210 \begin_layout Itemize
211
212 \family sans
213 Seminar
214 \family default
215  uses 
216 \begin_inset CommandInset href
217 LatexCommand href
218 name "PGF"
219 target "http://ctan.org/pkg/pgf"
220
221 \end_inset
222
223  graphic specials: size and orientation of the slides show problems depending
224  on the output format and viewing application (see Troubleshooting below).
225 \end_layout
226
227 \begin_layout Itemize
228 Assure that the document page margins are set to default.
229 \end_layout
230
231 \end_inset
232
233
234 \family sans
235 Seminar
236 \family default
237  puts everything that is not nested inside a 
238 \family sans
239 Slide
240 \family default
241  environment on extra pages as 
242 \emph on
243 notes.
244
245 \emph default
246  (See Configuration below on how to print only slides, only notes, or both.)
247  
248 \end_layout
249
250 \begin_layout Section
251 Configuration
252 \end_layout
253
254 \begin_layout Standard
255 \begin_inset Flex LandscapeSlide
256 status open
257
258 \begin_layout SlideHeading
259 Output options
260 \begin_inset CommandInset label
261 LatexCommand label
262 name "sli:output-options"
263
264 \end_inset
265
266
267 \end_layout
268
269 \begin_layout Plain Layout
270 The following options can be added to the 
271 \family sans
272 Options
273 \family default
274  field in 
275 \family sans
276 Document\SpecialChar menuseparator
277 Settings\SpecialChar menuseparator
278 Document
279 \begin_inset space ~
280 \end_inset
281
282 Class
283 \family default
284 :
285 \end_layout
286
287 \begin_layout Description
288 notes Both notes and slides are printed (default).
289 \end_layout
290
291 \begin_layout Description
292 slidesonly Only the slides are printed.
293 \end_layout
294
295 \begin_layout Description
296 notesonly Only the notes are printed.notesonly* Produces a slide marker for
297  each slide environment.
298 \end_layout
299
300 \begin_layout Description
301 article Print as article (two-up with PDF (
302 \change_deleted -1402925745 1475078217
303 dvip
304 \change_inserted -1402925745 1475078217
305 dvipd
306 \change_unchanged
307 fm) and option 
308 \family typewriter
309 portrait
310 \family default
311 ).
312 \end_layout
313
314 \begin_layout Description
315 semrot Rotate slides if orientation does not match the document default.
316 \end_layout
317
318 \end_inset
319
320
321 \end_layout
322
323 \begin_layout Standard
324 \begin_inset Flex LandscapeSlide
325 status open
326
327 \begin_layout SlideHeading
328 Preamble commands 
329 \end_layout
330
331 \begin_layout Plain Layout
332 The following options can be added to 
333 \family sans
334 Document\SpecialChar menuseparator
335 Settings\SpecialChar menuseparator
336 LaTeX Preamble:
337 \end_layout
338
339 \begin_layout Description
340
341 \backslash
342 onlyslides{8,9,11} print only slides number 8, 9 and 11 (e.
343 \begin_inset space \thinspace{}
344 \end_inset
345
346 g.
347 \begin_inset space \space{}
348 \end_inset
349
350 color plots),
351 \end_layout
352
353 \begin_layout Description
354
355 \backslash
356 notslides{4,8,9,11} don't print these slides.
357 \end_layout
358
359 \begin_layout Description
360 For more configuration options and commands see 
361 \begin_inset CommandInset href
362 LatexCommand href
363 name "sem-user.pdf"
364 target "https://www.ctan.org/tex-archive/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
365
366 \end_inset
367
368 .
369 \end_layout
370
371 \end_inset
372
373
374 \end_layout
375
376 \begin_layout Section
377
378 \change_inserted -1402925745 1475078007
379 Lists/ToC
380 \change_deleted -1402925745 1475078002
381 Outline
382 \change_unchanged
383
384 \end_layout
385
386 \begin_layout Standard
387 Seminar defines additional content-listing commands, as the Table of Contents
388  only lists 
389 \begin_inset Quotes eld
390 \end_inset
391
392 normal
393 \begin_inset Quotes erd
394 \end_inset
395
396  headings and subheadings.
397  
398 \end_layout
399
400 \begin_layout Standard
401 The 
402 \family sans
403 SlideContents
404 \family default
405  inset is an analogue to the table of contents but lists only 
406 \family sans
407 SlideHeading
408 \family default
409 s (no 
410 \family sans
411 SlideSubheading
412 \family default
413 s): 
414 \end_layout
415
416 \begin_layout Standard
417 \begin_inset Flex LandscapeSlide
418 status open
419
420 \begin_layout SlideContents
421
422 \end_layout
423
424 \end_inset
425
426
427 \end_layout
428
429 \begin_layout Subsection
430 List of slides
431 \end_layout
432
433 \begin_layout Standard
434 Analogue to a list of tables, the 
435 \family sans
436 ListOfSlides
437 \family default
438  style lists all slides in your document: 
439 \end_layout
440
441 \begin_layout Standard
442 \begin_inset Flex LandscapeSlide
443 status open
444
445 \begin_layout ListOfSlides
446
447 \end_layout
448
449 \end_inset
450
451
452 \end_layout
453
454 \begin_layout Subsection
455 Progress Contents
456 \end_layout
457
458 \begin_layout Standard
459 If you want to assure the audience, that the presentation is almost over,
460  insert a slide with 
461 \family sans
462 ProgressContents
463 \family default
464 :
465 \end_layout
466
467 \begin_layout Standard
468 \begin_inset Flex LandscapeSlide
469 status open
470
471 \begin_layout ProgressContents
472
473 \end_layout
474
475 \end_inset
476
477
478 \end_layout
479
480 \begin_layout Section
481 Formatting
482 \end_layout
483
484 \begin_layout Standard
485 The \SpecialChar LaTeX
486  preamble is the right place for many options to get fancier formatting,
487  e.
488 \begin_inset space \thinspace{}
489 \end_inset
490
491 g., fancy frames:
492 \end_layout
493
494 \begin_layout LyX-Code
495
496 \backslash
497 usepackage{fancybox}
498 \end_layout
499
500 \begin_layout LyX-Code
501
502 \backslash
503 setlength{
504 \backslash
505 slideframewidth}{1pt}
506 \end_layout
507
508 \begin_layout LyX-Code
509
510 \backslash
511 slideframe[
512 \backslash
513 setlength{
514 \backslash
515 shadowsize}{1pt}]{shadow}
516 \change_inserted -1402925745 1475078053
517 %
518 \end_layout
519
520 \begin_layout LyX-Code
521
522 \change_inserted -1402925745 1475078060
523            
524 \change_deleted -1402925745 1475078053
525  
526 \change_unchanged
527 framecolor "black"
528 \change_inserted -1402925745 1475078066
529  
530 \change_unchanged
531 backgroundcolor "none"
532 \end_layout
533
534 \begin_layout Standard
535 See 
536 \begin_inset CommandInset href
537 LatexCommand href
538 name "sem-user.pdf"
539 target "https://www.ctan.org/tex-archive/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
540
541 \end_inset
542
543  for details
544 \family typewriter
545 .
546 \change_inserted -1402925745 1475078086
547
548 \end_layout
549
550 \begin_layout Standard
551 You can set sans-serif as default font family and select suitable font
552 \change_inserted -1402925745 1475078105
553 s
554 \change_unchanged
555  under Document\SpecialChar menuseparator
556 Settings\SpecialChar menuseparator
557 Fonts.
558 \end_layout
559
560 \begin_layout Section
561 Troubleshooting
562 \end_layout
563
564 \begin_layout Itemize
565
566 \change_inserted -1402925745 1475134685
567 LyX 2.2.0 reports a 
568 \begin_inset Quotes eld
569 \end_inset
570
571 missing characters in font nullfont
572 \begin_inset Quotes erd
573 \end_inset
574
575  error.
576  This error is caused by a bug in PGF and can be ignored.
577 \end_layout
578
579 \begin_layout Itemize
580
581 \family typewriter
582 seminar.cls
583 \family default
584  versions before 1.5 (2008-10-15) contained a bug regarding the a4paper option.
585 \end_layout
586
587 \begin_layout Itemize
588 Originally, 
589 \family typewriter
590 seminar.cls
591 \family default
592  used pstricks for the graphics.
593  This failed with pdfTeX and LuaTeX.
594  Update to a current version using 
595 \begin_inset CommandInset href
596 LatexCommand href
597 name "PGF"
598 target "http://ctan.org/pkg/pgf"
599
600 \end_inset
601
602 , if you want to use non-TeX fonts.
603 \end_layout
604
605 \begin_layout Standard
606 Correct size and orientation of the slides is somewhat tricky.
607  Depending on the use case, different settings and export routes work best:
608 \end_layout
609
610 \begin_layout Itemize
611
612 \family sans
613 Seminar
614 \family default
615  defaults to landscape orientation.
616  Therefore, Document\SpecialChar menuseparator
617 Settings\SpecialChar menuseparator
618 Page Layout\SpecialChar menuseparator
619 Orientation has no effect on the
620  output.
621  Instead, add the 
622 \family typewriter
623 portrait
624 \family default
625  class option for portrait mode.
626 \end_layout
627
628 \begin_layout Itemize
629 The default settings work nice for landscape slides on screen with PDF (dvipdfm)
630 , PDF (pdflatex), and PDF (XeTeX).
631  Do not mix LandscapeSlide and PortraitSlide, if you want to present on
632  screen or with a video projector.
633 \end_layout
634
635 \begin_layout Itemize
636 LuaTeX scales the content by a factor 0.5 when generating PDF.
637 \end_layout
638
639 \begin_deeper
640 \begin_layout Standard
641 With the option “trim margins” in the PDF viewer (e.g.
642  Okular), this can be used as a workaround for mixed slides on screen.
643 \end_layout
644
645 \end_deeper
646 \begin_layout Itemize
647 When printing on transparencies, LandscapeSlides and PortraitSlide can be
648  mixed if the option 
649 \family typewriter
650 semrot
651 \family default
652  is set and the export is done with PDF (dvipdfm).
653 \end_layout
654
655 \begin_layout Itemize
656 Output formats DVI, DVI (LuaTeX), Postscript, and PDF (ps2pdf) require the
657  option 
658 \family typewriter
659 portrait
660 \family default
661  or 
662 \family typewriter
663 article
664 \family default
665 .
666  Printing of (rotated) landscape slides is possible with options 
667 \family typewriter
668 portrait,semrot
669 \family default
670 .
671 \end_layout
672
673 \end_body
674 \end_document