]> git.lyx.org Git - lyx.git/blob - development/batchtests/beamer_test.tex.orig
Adding binary path for Homebrew on MacOS-arm64 (bug 12619).
[lyx.git] / development / batchtests / beamer_test.tex.orig
1 %% LyX 2.4.0dev created this file.  For more info, see https://www.lyx.org/.
2 %% Do not edit unless you really know what you are doing.
3 \documentclass[english]{beamer}
4 \usepackage{lmodern}
5 \renewcommand{\sfdefault}{lmss}
6 \renewcommand{\ttdefault}{lmtt}
7 \usepackage[T1]{fontenc}
8 \usepackage[latin9]{inputenc}
9 \setcounter{secnumdepth}{3}
10 \setcounter{tocdepth}{3}
11 \usepackage{babel}
12 \usepackage{url}
13 \ifx\hypersetup\undefined
14   \AtBeginDocument{%
15     \hypersetup{}
16   }
17 \else
18   \hypersetup{}
19 \fi
20
21 \makeatletter
22
23 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
24 \providecommand{\LyX}{\texorpdfstring{\ensureascii{%
25   L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}}{LyX}}
26 \DeclareRobustCommand*{\lyxarrow}{%
27 \@ifstar
28 {\leavevmode\,$\triangleleft$\,\allowbreak}
29 {\leavevmode\,$\triangleright$\,\allowbreak}}
30
31 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
32 % this default might be overridden by plain title style
33 \newcommand\makebeamertitle{\frame{\maketitle}}%
34 % (ERT) argument for the TOC
35 \AtBeginDocument{%
36   \let\origtableofcontents=\tableofcontents
37   \def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
38   \def\gobbletableofcontents#1{\origtableofcontents}
39 }
40 \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
41
42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
43 % We use the "Berkeley" theme with a 3.45em-wide side bar on the left
44 \usetheme[left,width=3.45em]{Berkeley}
45
46 \makeatother
47
48 \begin{document}
49 \begin{frame}
50
51 \frametitle<presentation>{Contents}
52
53 \tableofcontents{}
54 \end{frame}
55 %
56
57 \section{Purposes}
58 \begin{frame}[<+->]{Purpose of the Beamer class}
59
60 With the \structure{Beamer} class, you can produce presentation slides,
61 which
62 \begin{itemize}
63 \item are visually highly customizable
64 \item can be very well structured
65 \item can be constructed step-by-step (``overlay'' concept)
66 \item may contain different navigation paths (note that the slides contain
67 all sorts of hyperlinks)
68 \item use \LaTeX 's superb output quality
69 \item might embed multimedia content (audio, video)
70 \item can easily be transformed to accompanying material (such as an article-like
71 handout)
72 \item and much more \ldots{}
73 \end{itemize}
74 \end{frame}
75 %
76 \begin{frame}{Purpose of this presentation}
77
78 This presentation
79 \begin{itemize}
80 \item describes some basic features of \structure{Beamer}
81 \item especially how they can be used with \LyX{}
82 \end{itemize}
83 For more general and comprehensive information on \structure{Beamer}
84 itself, please refer to the extensive class manual \cite{beamer-ug}
85 \end{frame}
86 %
87
88 \section{Segments of a presentation}
89 \begin{frame}{The global structure}
90
91 A presentation usually consists of
92 \begin{itemize}
93 \item a title page
94 \item slides that might be grouped to sections/parts
95 \item an appendix with additional information, such as a bibliography
96 \end{itemize}
97 We describe these global segments in what follows.
98 \end{frame}
99 %
100 \begin{frame}{The title page}
101
102 Within \LyX , a title page is constructed by the layouts \structure{Title},
103 \structure{Subtitle}, \structure{Author}, \structure{Institute},
104 \structure{Date} and \structure{TitleGraphic}. 
105 \begin{itemize}
106 \item None of these elements is mandatory, but at least one must be given 
107 \item The order of insertion does not matter (the real order is defined
108 in the \structure{Beamer} theme)
109 \item For \structure{Title}, \structure{Subtitle}, \structure{Author},
110 \structure{Institute} and \structure{Date}, you can define ``short''
111 forms via \alert{Insert\lyxarrow Short Title\slash Date\slash\ldots}
112 These are used in the sidebar\slash heading (given the theme actually
113 provides a sidebar\slash heading)
114 \item If you select \structure{Title (Plain Frame)} instead of \structure{Title},
115 the title page will have no sidebar or heading
116 \end{itemize}
117 \end{frame}
118 %
119 \begin{frame}{Slides/Frames}
120
121 Slides are called ``frames'' in \structure{Beamer}. Everything
122 inside a frame is put on one slide (which itself might consist of
123 sub-slides).
124 \begin{itemize}
125 \item Select the \structure{Frame} style to start a frame
126 \item The frame title is to be inserted in the ``Frame title'' inset,
127 which is automatically inserted for new frames or can be manually
128 inserted via \alert{Insert\lyxarrow Frame Title}
129 \item Alternatively, you can also use the \structure{FrameTitle} layout,
130 which additionally offers a (rarely used) short frame title option,
131 and, more importantly, overlay options
132 \item A subtitle can be added via the \structure{FrameSubtitle} layout
133 \item Frame options (see \cite{beamer-ug} for the diverse options) are
134 inserted via \alert{Insert\lyxarrow Frame Options}, overlay options
135 via \alert{Insert\lyxarrow Overlay Specifications} and \alert{Insert\lyxarrow Default Overlay Specifications}
136 (we explain later what this is)
137 \end{itemize}
138 \end{frame}
139 %
140 \begin{frame}<1-2>[label=myframe]{Frames can be repeated}
141
142 Frames can be repeated fully or only in terms of selected sub-slides,
143 multiple times at any later point of the presentation.
144
145 You just need to give the respective frame a label name via the frame
146 option ``label'' (as done here).
147
148 \pause{}
149
150 Then you can repeat this frame by means of the \structure{AgainFrame}
151 layout later in the presentation. Just enter the label name in the
152 \structure{AgainFrame} layout and specify, if required, which sub-slides
153 you want to be repeated via \alert{Insert\lyxarrow Overlay Specifications}
154 (again, see below for the concept of ``overlays'').
155 \begin{proof}<3>
156 \alert{Here's the proof!} (This text is only shown on sub-slide
157 3 which is itself only shown when this frame is repeated later on)
158 \end{proof}
159
160 \end{frame}
161 %
162 \begin{frame}{Keeping frames together}
163
164 \framesubtitle{Use nesting!}
165 \begin{itemize}
166 \item Note that all frame content, if the style is not \structure{Frame},
167 must be nested to the frame environment (via \alert{Edit\lyxarrow Increase List Depth}
168 or \shortcut{Alt+Shift+Right}). This is done automatically if you
169 insert new frame paragraphs.
170 \item Nested content is marked by a red bar in the margin of the \LyX{} workarea
171 \end{itemize}
172 \end{frame}
173 \begin{itemize}
174 \item Non-nested content (such as this) will also be displayed in the presentation
175 (on a separate slide), but not properly aligned
176 \item So please avoid this
177 \end{itemize}
178 %
179 \begin{frame}{Separating frames}
180
181 \noindent Consecutive frames have to be separated from each other.
182 This is done by means of the \structure{Separator} inset, which can
183 be produced by hitting return in an empty Standard paragraph right
184 below the frame (see UserGuide, sec.~3.4.6).
185 \begin{block}{Tip}
186
187 There is a simple and much more convenient way to start a new frame:
188 Issue \alert{Insert\lyxarrow Separated Frame Below} (\shortcut{undefined}
189 if you are in a non-nested \structure{Frame} paragraph, or \shortcut{Alt+P Shift+Return},
190 respectively, if you are in a nested paragraph within the frame).
191 If you are in the frame heading, \alert{Insert\lyxarrow Separated Frame Above}
192 inserts a new, properly separated frame above the current one!
193 \end{block}
194 \end{frame}
195 %
196
197 \againframe<3>{myframe}
198
199 \begin{frame}[plain]{Special frame types}
200
201 \LyX{} provides two special frame types:
202 \begin{enumerate}
203 \item \structure{Frame (plain)} is a frame without a sidebar/header (such
204 as this one). This is useful for slides with much content\slash wide
205 tables
206 \item \structure{Frame (fragile)} is to be used if the frame consists of
207 ``fragile'' content, especially verbatim stuff such as program listings
208 \end{enumerate}
209 If you want a fragile plain frame, pass the option ``plain'' to
210 a fragile frame or the option ``fragile'' to a plain frame.
211 \end{frame}
212 %
213 \begin{frame}{Sectioning a presentation}
214 \begin{itemize}
215 \item To group frames, you can use the usual sectioning commands (\structure{Section},
216 \structure{Subsection} etc.)
217 \item These are shown in the table of contents, the sidebar\slash header
218 (depending on the theme) and the article output (for ``article''
219 see below, the section on ``modes'')
220 \end{itemize}
221 \end{frame}
222 %
223 \begin{frame}{Parts have special meaning}
224 \begin{itemize}
225 \item You can also divide your presentation into \structure{Parts}. Note,
226 however, that parts behave differently in \structure{Beamer} than
227 in other document classes: a part is considered to be ``a little
228 `talk of its own' with its own table of contents, its own navigation
229 bars, and so on.'' \cite[sec.~10.3]{beamer-ug}
230 \item This means, for instance, that if you use parts, the table of contents
231 will only list the sections and subsections of the part that contains
232 this table of contents, and the sidebar\slash header will also only
233 show the sections of the current part.
234 \end{itemize}
235 \end{frame}
236 %
237 \begin{frame}{Re-arranging frames}
238 \begin{block}{Tip}
239
240 Did you know that you can easily move and re-arrange whole frames
241 via the outliner (\alert{View\lyxarrow Outline Pane})?
242
243 Also, you can navigate to a specific frame via the \alert{Navigate}
244 menu!
245 \end{block}
246 \end{frame}
247 %
248 \begin{frame}{The appendix}
249 \begin{itemize}
250 \item Appendices might be useful for additional\slash reserve material.
251 The appendix is part of the presentation, but not shown in the table
252 of contents\slash sidebar\slash header
253 \item An appendix is inserted as usual in \LyX :
254 \begin{itemize}
255 \item Use \alert{Document\lyxarrow Start Appendix Here} at the position
256 where the appendix should begin
257 \end{itemize}
258 \item Typical content of the appendix is the bibliography
259 \begin{itemize}
260 \item You insert it as in all other \LyX{} classes, via the \structure{Bibliography}
261 style (see the bibliography at the end of this presentation as an
262 example)
263 \item Note that you can also use Bib\TeX , although not all Bib\TeX{} styles
264 are prepared to work with \structure{Beamer}
265 \end{itemize}
266 \end{itemize}
267 \end{frame}
268 %
269
270 \section{The overlay concept}
271 \begin{frame}{What are overlays?}
272
273 Basically, the overlay concept allows to change the slide content
274 dynamically. You can uncover things/text piecewise, fade out content,
275 highlight things, replace text, images etc.
276
277 \pause{}
278 \begin{itemize}[<+->]
279 \item Overlays are useful to build up slides as you speak
280 \item They help you to shift your audience's focus on specific things
281 \item And they help your audience to follow you
282 \item So use overlays! \alert<6>{Really, use them!}
283 \end{itemize}
284 \end{frame}
285 %
286 \begin{frame}{Overlay types}
287
288 \structure{Beamer} provides many different overlay types. The most
289 important ones are:
290 \begin{description}
291 \item [{Hidden~content:}] Stuff that is completely invisible up to a point
292 \item [{Covered~content:}] Stuff that is faded out (not completely invisible)
293 \item [{Highlighted~content:}] Stuff that is somehow emphasized at a certain
294 point
295 \end{description}
296 We give examples for these types in what follows, but begin with some
297 general remarks on overlay possibilities
298 \end{frame}
299 %
300 \begin{frame}{General overlay/action possibilities}
301
302 Many \structure{Beamer} elements provide overlay settings. Basically,
303 you can define on which sub-slide(s) a given content appears (``2'',
304 ``2-4'', ``3-'', ``1,3'' etc.), or in which output mode (``presentation'',
305 ``article'' etc.)
306 \begin{itemize}
307 \item In \LyX , these settings are generally accessible via \alert{Insert\lyxarrow Overlay Specifications}
308 or \alert{Insert\lyxarrow Action Specifications}
309 \end{itemize}
310 \begin{overprint}
311 \onslide<2> 
312 \begin{definition}
313 ``Action'' is a more general concept, which does not only include
314 what we have called ``overlays'' (``on which sub-slide{[}s{]} is
315 this to be shown\slash hidden\slash highlighted''), but also tasks
316 such as ``only show this in the presentation, not on the handout''
317 or ``show this on the second screen only'' (so-called ``modes'').
318 \end{definition}
319
320 \onslide<3> 
321 \begin{alertblock}{Note to the \LaTeX{} aficionados}
322
323 The mentioned overlay/action settings conform to those command/environment
324 options embraced by\alert{\ <\ldots >} and \alert{{[}<\ldots >{]}}
325 in the \LaTeX{} output.
326
327 Note that \LyX{} adds those braces on export, so you must not enter
328 them yourself. In other words, enter ``1'' or ``+-'' to the overlay/action
329 insets, not ``<1>'' or ``{[}<+->{]}''!
330 \end{alertblock}
331 \end{overprint}
332 \end{frame}
333 %
334 \begin{frame}{An example}
335
336 Take for example a quote. In a \structure{Quote} environment, you
337 can specify the overlay settings via \alert{Insert\lyxarrow Overlay Specifications}.
338 If you do this and enter ``2'', the quote will only appear on (sub-)slide
339 2:
340 \begin{quote}<2>
341 Fear no more the heat o\textquoteright{} the sun
342
343 Nor the furious winter\textquoteright s rages
344
345 Thou thy worldly task hast done
346
347 Home art gone, and ta\textquoteright en thy wages
348 \end{quote}
349 This is how the concept works, basically.
350 \end{frame}
351 %
352 \begin{frame}{Covering vs. hiding}
353
354 The difference between ``covering'' and ``hiding'' is that hidden
355 content is treated as if it isn't there, while covered content is
356 just covered (and the space is reserved). If we would have hidden
357 the quote on the last slide and not covered, it would only have taken
358 space on appearance:
359 \begin{quote}<only@2>
360 Fear no more the heat o\textquoteright{} the sun
361
362 Nor the furious winter\textquoteright s rages
363
364 Thou thy worldly task hast done
365
366 Home art gone, and ta\textquoteright en thy wages
367 \end{quote}
368
369 You can see how this text moves when the quote is un-hidden.
370 \end{frame}
371 %
372 \begin{frame}{Coverage degrees}
373
374 \setbeamercovered{transparent}
375
376 \structure{Beamer} offers several degrees of ``coverage'', which
377 can be set via the command \alert{\textbackslash setbeamercovered}
378 either globally (for the whole presentation) or locally (e.\,g. for
379 a single frame, as here). By default, content is completely covered.
380 In ``transparent'' mode, you can see covered text greyed-out:
381 \begin{quote}<2>
382 Fear no more the heat o\textquoteright{} the sun
383
384 Nor the furious winter\textquoteright s rages
385
386 Thou thy worldly task hast done
387
388 Home art gone, and ta\textquoteright en thy wages
389 \end{quote}
390 Check the \structure{Beamer} manual for more possibilities.
391 \end{frame}
392 %
393 \begin{frame}{Default overlay/action specifications vs.\\
394 (normal) overlay/action specifications}
395 \begin{itemize}
396 \item For some environments (such as lists and also frames), you can set
397 ``default specifications'' additionally to normal overlay/action
398 specifications (or in the case of lists: ``overlay specifications''
399 for the whole list and ``item overlay specifications'' for singular
400 items)
401 \item Default specifications apply to all content of the given environment,
402 if not individually specified otherwise
403 \item They use a placeholder syntax. E.\,g., ``+(1)-'' will uncover all
404 items in a list step by step (with a start offset of 1) if they have
405 no individual item specification:
406 \begin{itemize}[<+(1)->]
407 \item One
408 \item Two
409 \item Three
410 \item<1-> Always
411 \end{itemize}
412 \end{itemize}
413 Please consult the \structure{Beamer} manual for details on this
414 syntax.
415
416 \end{frame}
417 %
418 \begin{frame}[<+->]{Default overlay/action specifications vs.\\
419 (normal) overlay/action specifications}
420
421 \noindent This frame uses a specific default overlay specification
422
423 which causes each overlay-aware paragraph \ldots{}
424 \begin{itemize}
425 \item \ldots{} or list item \ldots{}
426 \item \ldots{} to appear \ldots{}
427 \item \ldots{} on a subsequent sub-slide \ldots{}
428 \end{itemize}
429 \begin{block}{A block}
430
431 \ldots{} one after the other
432 \end{block}
433 \end{frame}
434 %
435 \begin{frame}[<alert@+>]{Default overlay/action specifications vs.\\
436 (normal) overlay/action specifications}
437
438 \noindent And this frame uses a specific default overlay specification
439 \ldots{}
440 \begin{itemize}
441 \item \ldots{} which causes each overlay-aware list item \ldots{}
442 \item \ldots{} to be highlighted \ldots{}
443 \item \ldots{} on respective sub-slides
444 \end{itemize}
445 \end{frame}
446 %
447 \begin{frame}{Pause}
448
449 The \structure{Pause} layout lets you mark a point where all following
450 content will be covered (by default for one slide, with regard to
451 the content preceding the pause):
452
453 \pause{}
454
455 After first pause
456
457 \pause{}
458
459 After second pause
460
461 \pause[2]{}
462
463 By default, consecutive pauses also end consecutively. 
464
465 Via \alert{Insert\lyxarrow Pause Number}, however, you can specify
466 a specific sub-slide at which the given pause ends, independent from
467 the number of pauses inserted before this one.
468 \end{frame}
469 %
470 \begin{frame}{Paragraph-wide overlays}
471
472 \structure{Beamer} and \LyX{} provide you with paragraph layouts whose
473 purpose it is to show/hide whole paragraphs or sequences of paragraphs
474 on specific slides. These are particularly:
475 \begin{uncoverenv}<2->
476
477 The \structure{Uncovered} layout which uncovers all content on the
478 specified slides \ldots{}
479 \begin{itemize}
480 \item \ldots{} including nested paragraphs of other layout.
481 \end{itemize}
482 \end{uncoverenv}
483
484 \begin{onlyenv}<3->
485
486 The \structure{Only} layout which un-hides content (note again how
487 the surrounding text ``moves'' when this gets visible).
488 \end{onlyenv}
489
490 \begin{overprint}
491 \onslide<4> 
492
493 And the \structure{Overprint} environment which lets you enter \ldots{}
494 \onslide<5> 
495
496 \ldots{} alternative text taking a specific space on specified slides.
497
498 \end{overprint}
499 as demonstrated here.
500 \end{frame}
501 %
502 \begin{frame}{Inline overlays}
503
504 \setbeamercovered{transparent}
505
506 \structure{Beamer} also supports inline overlays for text parts (as
507 opposed to whole paragraphs), which are accessible via \alert{Edit\lyxarrow Text Style}
508 in \LyX :
509 \begin{itemize}
510 \item You can \structure{uncover} \uncover<2->{text} on specific slides
511 \item You can make \visible<3->{text} \structure{visible} (which makes
512 a difference to ``uncover'' only with ``transparent'' coverage
513 setting, as used locally on this slide)
514 \item You can show \only<4->{text }\structure{only} on specific slides
515 \item You can make \invisible<5->{text} \structure{invisible}
516 \item And you can show \alt<6->{different}{\structure{alternative}} text
517 \end{itemize}
518 As for the paragraph layouts, the overlay settings can be accessed
519 via the \alert{Insert} menu.
520 \end{frame}
521 %
522 \begin{frame}{Overlay-aware commands}
523
524 Many ``inline'' commands (also to be found at \alert{Edit\lyxarrow Text Style})
525 are overlay-aware. 
526 \begin{itemize}
527 \item Thus, you can make for instance text on specific slides \emph<2>{emphasized},
528 \textbf<3>{bold}, shown in \alert<4>{alert} or \structure<5>{structure}
529 color.
530 \end{itemize}
531 \begin{block}<6>{Tip}
532
533 Use these Emphasize and Bold insets (instead of the usual respective
534 font settings) also if you do not need overlay specifications. Due
535 to the way emphasized and bold is defined in \structure{Beamer},
536 normal emphasizing and boldface can lead to \LaTeX{} errors, e.\,g.
537 when used in section headings.
538 \end{block}
539 \end{frame}
540 %
541
542 \section{Specific environments}
543 \begin{frame}{Specific environments}
544
545 Specific environments, particularly suited for presentations are:
546 \begin{itemize}
547 \item Diverse ``blocks''
548 \item Theorem-style environments
549 \item Columns
550 \end{itemize}
551 We sketch them briefly in what follows.
552 \end{frame}
553 %
554 \begin{frame}{Blocks}
555
556 Blocks can contain all sorts of information. We used them here for
557 ``tips'' and ``hints''. The class provides 3 pre-defined blocks
558 with different look:
559 \begin{block}<2->{Block}
560
561 A general-purpose block
562 \end{block}
563 \begin{exampleblock}<3->{Example Block}
564
565 A block for ``examples''
566 \end{exampleblock}
567 \begin{alertblock}<4->{Alert Block}
568
569 And an ``alert'' block for important remarks.
570 \end{alertblock}
571 \end{frame}
572 %
573 \begin{frame}{Handling Blocks}
574 \begin{itemize}
575 \item In \LyX , blocks have a similar user interface to frames, which means
576 that
577 \begin{itemize}
578 \item Content inside blocks needs to be nested (if the paragraph layout
579 is not \structure{Block})
580 \item Consecutive blocks of the same type must be separated by the \structure{Separator}
581 paragraph style
582 \begin{block}<only@2>{Tip}
583
584 Use \alert{Edit\lyxarrow Start New Environment} (\shortcut{undefined})
585 to quickly start a new block from within a previous block!
586 \end{block}
587 \end{itemize}
588 \item Blocks are overlay-aware
589 \end{itemize}
590 \end{frame}
591 %
592 \begin{frame}{Theorem-style environments}
593
594 \framesubtitle{(Theorem, Corollary, Definition, Definitions, Example, Examples,
595 Fact, Proof)}
596
597 Theorems look similar to blocks in the output, but they have a fixed
598 title (depending on the type). 
599 \begin{theorem}
600 This is a theorem!
601 \end{theorem}
602
603 \begin{fact}
604 This is a fact!
605 \end{fact}
606
607
608 \pause{}
609
610 Via \alert{Insert\lyxarrow Additional Theorem Text}, you can add
611 some extra text to this fixed title
612 \begin{example}[a bad one!]
613
614 An example with additional text (brackets added automatically)
615 \end{example}
616
617 \end{frame}
618 %
619 \begin{frame}{Columns}
620
621 Sometimes it is useful to divide a presentation into columns
622 \begin{columns}[t]
623
624 \column{.4\textwidth}
625
626 To do this, first select \structure{Columns} (note the plural) to
627 start the columns
628
629 \pause{}
630
631 \column{.4\textwidth}
632
633 And then, in the following paragraph, select \structure{Column} (singular)
634 to start a specific column
635 \end{columns}
636
637 \pause{}
638
639 \medskip{}
640
641 Note:
642 \begin{itemize}
643 \item In the \structure{Column} (singular) environment, you need to specify
644 the width using \LaTeX{} syntax (but also something like ``3.5cm''
645 will work)
646 \item Any (singular) \structure{Column} must be nested to the (plural)
647 \structure{Columns}. Likewise, column content can be any paragraph
648 style that is nested to a singular \structure{Column}
649 \end{itemize}
650 \end{frame}
651 %
652
653 \section{Short remarks on modes}
654 \begin{frame}{Modes}
655
656 In \structure{Beamer} terms, a ``mode'' is a specific output route.
657 There are several modes for different purposes. We just want to highlight
658 three:
659 \begin{enumerate}
660 \item The ``beamer'' mode
661 \item The ``presentation'' mode
662 \item The ``article'' mode
663 \end{enumerate}
664 The beamer mode is the default. Unless explicitly specified otherwise,
665 your \structure{Beamer} document is in ``beamer'' mode.
666 \end{frame}
667 %
668 \begin{frame}<presentation>{Switching Modes}
669
670 However, you can switch document parts, frames, headings and all ``action''-aware
671 environments to a different mode. For instance, we have switched this
672 frame to ``presentation'' mode.
673 \begin{itemize}
674 \item What does this mean?
675 \begin{itemize}
676 \item It means that this frame will only be visible in the presentation,
677 not in the accompanying ``article'', if you produce such an article
678 (we will elaborate on this a bit below)
679 \end{itemize}
680 \end{itemize}
681 \end{frame}
682 %
683 \begin{frame}<article>{Switching Modes}
684
685 This frame will not be visible in the presentation, but only in the
686 article, since it is in ``article'' mode.
687 \end{frame}
688 %
689 \begin{frame}{So what?}
690
691 This is actually pretty useful! You can set up a single document and
692 produce both a presentation and \textendash{} using the article mode
693 \textendash{} a handout. 
694 \begin{itemize}
695 \item And we mean a \emph{real}, useful handout, not one of those scaled
696 slide printouts that are so common nowadays (but if you insist, you
697 can produce one of those as well)
698 \item Modes allow you to add extra text to the handout or hide parts from
699 it
700 \item You can use for instance different graphics for the presentation and
701 the handout
702 \item and so on \ldots{}
703 \end{itemize}
704 \end{frame}
705 %
706 \begin{frame}{Examples}
707
708 As said, many elements are mode-aware. 
709 \begin{itemize}
710 \item You can show particular text \only<presentation>{only in the presentation}\only<article>{only in the article}
711 via \alert{Edit\lyxarrow Text Style\lyxarrow Only}
712 \end{itemize}
713 \mode<article>{\begin{itemize}
714 \item Or put all sorts of complex contents via \alert{Insert\lyxarrow Custom Insets\lyxarrow ArticleMode}
715 in an inset that will only be output in article mode
716 \end{itemize}
717 }\mode<presentation>{\begin{itemize}
718 \item Or put all sorts of complex contents via \alert{Insert\lyxarrow Custom Insets\lyxarrow PresentationMode}
719 in an inset that will only be output in presentation mode
720 \end{itemize}
721 }
722 \begin{itemize}
723 \item Or you can define that an \emph<presentation>{emphasizing} should
724 only apply to the presentation, \textbf<article>{a bold face} only
725 to article
726 \item You can also show section headings or frame titles\slash subtitles
727 only in the presentation\slash article (like we do for the ``Contents''
728 and ``References'' frame titles in this presentation)
729 \item And much more of this sort \ldots{}
730 \end{itemize}
731 \end{frame}
732 %
733 \begin{frame}{Setting up an article}
734
735 Setting up a beamer article with \LyX{} is easy.
736 \begin{itemize}
737 \item Just create a new document with the class \structure{Beamer Article (Standard Class)}
738 or \structure{Beamer Article (KOMA-Script)}
739 \item Then add the presentation to this document as a child (via \alert{Insert\lyxarrow File\lyxarrow Child Document\ldots})
740 \item And that's it. Now you can produce the handout and the presentation
741 by compiling one of these two documents, while you only need to edit
742 one, namely the presentation
743 \end{itemize}
744 Check out the accompanying beamer-article example document for this
745 presentation. You can find it in the same folder as this document.
746 \end{frame}
747 %
748
749 \section{Changing the look}
750 \begin{frame}{Themes}
751 \begin{itemize}
752 \item \structure{Beamer} presentations are themeable. Themes determine
753 the colors used, the macro structure (use of sidebars, headlines etc.),
754 the fonts, the look of list items, blocks and in general the whole
755 look and feel of a presentation
756 \item \structure{Beamer} itself ships a number of different-looking themes
757 to chose from (we use the ``Berkeley'' theme in this presentation;
758 see \alert{Document\lyxarrow Settings\lyxarrow\LaTeX{} Preamble}
759 for how we activated and slightly tweaked the theme)
760 \item In addition to this standard set, you can get more themes from \href{http://www.ctan.org}{CTAN}
761 and other places at the Internet
762 \item If you still are not satisified or if you need a theme matching to
763 your University's or company's corporate design, the \structure{Beamer}
764 manual \cite{beamer-ug} explains how you can setup your own theme
765 \end{itemize}
766 \end{frame}
767 %
768 \begin{frame}{Themes can be modified}
769
770 But you do not need to write a theme from scratch if you want to alter
771 the look.
772 \begin{itemize}
773 \item Existing themes can be modified both in details and in major areas
774 (such as the coloring)
775 \item Consult the \structure{Beamer} manual \cite{beamer-ug} for details
776 \end{itemize}
777 \end{frame}
778 %
779
780 \section{And more \ldots}
781 \begin{frame}{\ldots{} much more!}
782
783 Note that \structure{Beamer} can do much more than we have described
784 here. The \structure{Beamer} manual \cite{beamer-ug} provides a
785 comprehensive documentation.
786
787 Also, have a look at the \structure{Beamer} examples and templates
788 shipped with \LyX !
789 \end{frame}
790 %
791
792 \appendix
793
794 \section{Appendix}
795
796 \begin{frame}
797
798 \frametitle<presentation>{References}
799
800 \end{frame}
801 %
802 \begin{thebibliography}{1}
803 \bibitem{beamer-ug}Tantau, Till et al.:\newblock The beamer class.
804 \url{https://ctan.org/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf}.
805
806 \end{thebibliography}
807 %
808
809 \end{document}