diff --git a/src/tex2lyx/Makefile.am b/src/tex2lyx/Makefile.am index 7a744abc0b..da7c3183a4 100644 --- a/src/tex2lyx/Makefile.am +++ b/src/tex2lyx/Makefile.am @@ -25,6 +25,7 @@ TEST_FILES = \ test/runtests.cmake \ test/runtests.py \ test/algo2e.tex \ + test/beamer.tex \ test/box-color-size-space-align.tex \ test/CJK.tex \ test/CJKutf8.tex \ @@ -49,6 +50,7 @@ TEST_FILES = \ TEST_RESULTS = \ test/algo2e.lyx.lyx \ + test/beamer.lyx.lyx \ test/box-color-size-space-align.lyx.lyx \ test/CJK.lyx.lyx \ test/CJKutf8.lyx.lyx \ diff --git a/src/tex2lyx/test/CMakeLists.txt b/src/tex2lyx/test/CMakeLists.txt index 643b017bb2..a6f6789f85 100644 --- a/src/tex2lyx/test/CMakeLists.txt +++ b/src/tex2lyx/test/CMakeLists.txt @@ -12,6 +12,7 @@ project(testTex2lyx) set(_tex_tests test.ltx algo2e.tex + beamer.tex box-color-size-space-align.tex CJK.tex CJKutf8.tex diff --git a/src/tex2lyx/test/beamer.lyx.lyx b/src/tex2lyx/test/beamer.lyx.lyx new file mode 100644 index 0000000000..0290d7f6b9 --- /dev/null +++ b/src/tex2lyx/test/beamer.lyx.lyx @@ -0,0 +1,4411 @@ +#LyX file created by tex2lyx 2.4 +\lyxformat 547 +\begin_document +\begin_header +\save_transient_properties true +\origin roundtrip +\textclass beamer +\begin_preamble + + +\usepackage{babel} + + +\usetheme[left,width=3.45em]{Berkeley} + + +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding iso8859-15 +\fontencoding T1 +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "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 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 0 +\use_package cancel 0 +\use_package esint 1 +\use_package mathdots 0 +\use_package mathtools 0 +\use_package mhchem 0 +\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 true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Presentations with Beamer +\end_layout + +\begin_layout Subtitle +An Introduction to the Basics +\end_layout + +\begin_layout Author +John Doe +\end_layout + +\begin_layout Date +Version +\begin_inset space ~ + +\end_inset + +2.3 +\end_layout + +\begin_layout Frame + +\end_layout + +\begin_deeper +\begin_layout FrameTitle + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +presentation +\end_layout + +\end_inset + +Contents +\end_layout + +\end_deeper +\begin_layout Frame + +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Section +Purposes +\end_layout + +\begin_layout Frame + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard ++- +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Purpose of the Beamer class +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +With the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + class, you can produce presentation slides, which +\end_layout + +\begin_deeper +\begin_layout Itemize +are visually highly customizable +\end_layout + +\begin_layout Itemize +can be very well structured +\end_layout + +\begin_layout Itemize +can be constructed step-by-step ( +\begin_inset Quotes eld +\end_inset + +overlay +\begin_inset Quotes erd +\end_inset + + concept) +\end_layout + +\begin_layout Itemize +may contain different navigation paths (note that the slides contain all sorts of hyperlinks) +\end_layout + +\begin_layout Itemize +use \SpecialChar LaTeX +'s superb output quality +\end_layout + +\begin_layout Itemize +might embed multimedia content (audio, video) +\end_layout + +\begin_layout Itemize +can easily be transformed to accompanying material (such as an article-like handout) +\end_layout + +\begin_layout Itemize +and much more \SpecialChar ldots + +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Purpose of this presentation +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +This presentation +\end_layout + +\begin_deeper +\begin_layout Itemize + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard ++- +\end_layout + +\end_inset + +describes some basic features of +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +especially how they can be used +\end_layout + +\end_deeper +\begin_layout Frame +For more general and comprehensive information on +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +presentation +\end_layout + +\end_inset + +Beamer +\end_layout + +\end_inset + + itself, please refer to the extensive class manual +\begin_inset CommandInset citation +LatexCommand cite +after "" +key "beamer-ug" +literal "false" + +\end_inset + + +\end_layout + +\begin_layout Section* +Segments of a presentation +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +The global structure +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +A presentation usually consists of +\end_layout + +\begin_deeper +\begin_layout Itemize + +\begin_inset Argument item:2 +status collapsed + + +\begin_layout Standard ++- +\end_layout + +\end_inset + +a title page +\end_layout + +\begin_layout Itemize + +\begin_inset Argument item:2 +status collapsed + + +\begin_layout Standard ++- +\end_layout + +\end_inset + +slides that might be grouped to sections/parts +\end_layout + +\begin_layout Itemize + +\begin_inset Argument item:1 +status collapsed + + +\begin_layout Standard +extra +\end_layout + +\end_inset + + +\begin_inset Argument item:2 +status collapsed + + +\begin_layout Standard ++- +\end_layout + +\end_inset + +an appendix with additional information, such as a bibliography +\end_layout + +\end_deeper +\begin_layout Frame +We describe these global segments in what follows. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +The title page +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +A title page is constructed by the layouts +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Title +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Subtitle +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +2 +\end_layout + +\end_inset + +Author +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Institute +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Date +\end_layout + +\end_inset + + and +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +TitleGraphic +\end_layout + +\end_inset + +. +\end_layout + +\begin_deeper +\begin_layout Itemize +None of these elements is mandatory, but at least one must be given +\end_layout + +\begin_layout Itemize +The order of insertion does not matter (the real order is defined in the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + theme) +\end_layout + +\begin_layout Itemize +For +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Title +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Subtitle +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Author +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Institute +\end_layout + +\end_inset + + and +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Date +\end_layout + +\end_inset + +, you can define +\begin_inset Quotes eld +\end_inset + +short +\begin_inset Quotes erd +\end_inset + + forms via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →Short Title\SpecialChar breakableslash +Date\SpecialChar breakableslash +\SpecialChar ldots + +\end_layout + +\end_inset + + These are used in the sidebar\SpecialChar breakableslash +heading (given the theme actually provides a sidebar\SpecialChar breakableslash +heading) +\end_layout + +\begin_layout Itemize +If you select +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Title (Plain Frame) +\end_layout + +\end_inset + + instead of +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Title +\end_layout + +\end_inset + +, the title page will have no sidebar or heading +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +1-2 +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status collapsed + + +\begin_layout Standard +label=myframe +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Frames can be repeated +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Frames can be repeated fully or only in terms of selected sub-slides, multiple times at any later point of the presentation. +\end_layout + +\begin_layout Frame +You just need to give the respective frame a label name via the frame option +\begin_inset Quotes eld +\end_inset + +label +\begin_inset Quotes erd +\end_inset + + (as done here). +\end_layout + +\begin_deeper +\begin_layout Pause + +\end_layout + +\end_deeper +\begin_layout Frame +Then you can repeat this frame by means of the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +AgainFrame +\end_layout + +\end_inset + + layout later in the presentation. Just enter the label name in the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +AgainFrame +\end_layout + +\end_inset + + layout and specify, if required, which sub-slides you want to be repeated via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →Overlay Specifications +\end_layout + +\end_inset + + (again, see below for the concept of +\begin_inset Quotes eld +\end_inset + +overlays +\begin_inset Quotes erd +\end_inset + +). +\end_layout + +\begin_deeper +\begin_layout Proof + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +3 +\end_layout + +\end_inset + + +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Here's the proof! +\end_layout + +\end_inset + + (This text is only shown on sub-slide 3 which is itself only shown when this frame is repeated later on) +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Keeping frames together +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout FrameSubtitle +Use nesting! +\end_layout + +\end_deeper +\begin_deeper +\begin_layout Itemize +Note that all frame content, if the style is not +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Frame +\end_layout + +\end_inset + +, must be nested to the frame environment (via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Edit →Increase List Depth +\end_layout + +\end_inset + + or +\family sans +Alt+Shift+Right +\family default +). This is done automatically if you insert new frame paragraphs. +\end_layout + +\begin_layout Itemize +Nested content is marked by a red bar in the margin of the LyX workarea +\end_layout + +\end_deeper +\begin_layout Itemize +Non-nested content (such as this) will also be displayed in the presentation (on a separate slide), but not properly aligned +\end_layout + +\begin_layout Itemize +So please avoid this +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Separating frames +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\noindent +Consecutive frames have to be separated from each other. This is done by means of the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +\noindent +Separator +\end_layout + +\end_inset + + inset, which can be produced by hitting return in an empty Standard paragraph right below the frame (see UserGuide, sec. +\begin_inset space ~ + +\end_inset + +3.4.6). +\end_layout + +\begin_deeper +\begin_layout Block + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +Tip +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +There is a simple and much more convenient way to start a new frame: Issue +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →Separated Frame Below +\end_layout + +\end_inset + + ( +\family sans +undefiniert +\family default + if you are in a non-nested +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Frame +\end_layout + +\end_inset + + paragraph, or +\family sans +Alt+A Shift+Return +\family default +, respectively, if you are in a nested paragraph within the frame). If you are in the frame heading, +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →Separated Frame Above +\end_layout + +\end_inset + + inserts a new, properly separated frame above the current one! +\end_layout + +\end_deeper +\begin_layout AgainFrame + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +3 +\end_layout + +\end_inset + +myframe +\end_layout + +\begin_layout Frame + +\begin_inset Argument 3 +status collapsed + + +\begin_layout Standard +plain +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Special frame types +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +LyX provides two special frame types: +\end_layout + +\begin_deeper +\begin_layout Enumerate + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Frame (plain) +\end_layout + +\end_inset + + is a frame without a sidebar/header (such as this one). This is useful for slides with much content\SpecialChar breakableslash +wide tables +\end_layout + +\begin_layout Enumerate + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Frame (fragile) +\end_layout + +\end_inset + + is to be used if the frame consists of +\begin_inset Quotes eld +\end_inset + +fragile +\begin_inset Quotes erd +\end_inset + + content, especially verbatim stuff such as program listings +\end_layout + +\end_deeper +\begin_layout Frame +If you want a fragile plain frame, pass the option +\begin_inset Quotes eld +\end_inset + +plain +\begin_inset Quotes erd +\end_inset + + to a fragile frame or the option +\begin_inset Quotes eld +\end_inset + +fragile +\begin_inset Quotes erd +\end_inset + + to a plain frame. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Re-arranging frames +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Block + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +Tip +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +Did you know that you can easily move and re-arrange whole frames via the outliner ( +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +View →Outline Pane +\end_layout + +\end_inset + +)? +\end_layout + +\begin_layout Block +Also, you can navigate to a specific frame via the +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Navigate +\end_layout + +\end_inset + + menu! +\end_layout + +\end_deeper +\begin_layout Section* + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +article +\end_layout + +\end_inset + +The overlay concept +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +What are overlays? +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Basically, the overlay concept allows to change the slide content dynamically. You can uncover things/text piecewise, fade out content, highlight things, replace text, images etc. +\end_layout + +\begin_deeper +\begin_layout Pause + +\end_layout + +\end_deeper +\begin_deeper +\begin_layout Itemize + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard ++- +\end_layout + +\end_inset + +Overlays are useful to build up slides as you speak +\end_layout + +\begin_layout Itemize +They help you to shift your audience's focus on specific things +\end_layout + +\begin_layout Itemize +And they help your audience to follow you +\end_layout + +\begin_layout Itemize +So use overlays! +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +6 +\end_layout + +\end_inset + +Really, use them! +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Overlay types +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + provides many different overlay types. The most important ones are: +\end_layout + +\begin_deeper +\begin_layout Description +Hidden +\begin_inset space ~ + +\end_inset + +content: Stuff that is completely invisible up to a point +\end_layout + +\begin_layout Description +Covered +\begin_inset space ~ + +\end_inset + +content: Stuff that is faded out (not completely invisible) +\end_layout + +\begin_layout Description +Highlighted +\begin_inset space ~ + +\end_inset + +content: Stuff that is somehow emphasized at a certain point +\end_layout + +\end_deeper +\begin_layout Frame +We give examples for these types in what follows, but begin with some general remarks on overlay possibilities +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +General overlay/action possibilities +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Many +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + elements provide overlay settings. Basically, you can define on which sub-slide(s) a given content appears ( +\begin_inset Quotes eld +\end_inset + +2 +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +2-4 +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +3- +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +1,3 +\begin_inset Quotes erd +\end_inset + + etc.), or in which output mode ( +\begin_inset Quotes eld +\end_inset + +presentation +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +article +\begin_inset Quotes erd +\end_inset + + etc.) +\end_layout + +\begin_deeper +\begin_layout Itemize +In LyX, these settings are generally accessible via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →Overlay Specifications +\end_layout + +\end_inset + + or +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →Action Specifications +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_deeper +\begin_layout Overprint + +\begin_inset Argument item:1 +status collapsed + + +\begin_layout Standard +2 +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Definition + +\begin_inset Quotes eld +\end_inset + +Action +\begin_inset Quotes erd +\end_inset + + is a more general concept, which does not only include what we have called +\begin_inset Quotes eld +\end_inset + +overlays +\begin_inset Quotes erd +\end_inset + + ( +\begin_inset Quotes eld +\end_inset + +on which sub-slide[s] is this to be shown\SpecialChar breakableslash +hidden\SpecialChar breakableslash +highlighted +\begin_inset Quotes erd +\end_inset + +), but also tasks such as +\begin_inset Quotes eld +\end_inset + +only show this in the presentation, not on the handout +\begin_inset Quotes erd +\end_inset + + or +\begin_inset Quotes eld +\end_inset + +show this on the second screen only +\begin_inset Quotes erd +\end_inset + + (so-called +\begin_inset Quotes eld +\end_inset + +modes +\begin_inset Quotes erd +\end_inset + +). +\end_layout + +\end_deeper +\begin_layout Overprint + +\begin_inset Argument item:1 +status collapsed + + +\begin_layout Standard +3 +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout AlertBlock + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +Note to the \SpecialChar LaTeX + aficionados +\end_layout + +\end_inset + + +\end_layout + +\begin_layout AlertBlock +The mentioned overlay/action settings conform to those command/environment options embraced by +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout + +\begin_inset space \space{} + +\end_inset + +<\SpecialChar ldots +> +\end_layout + +\end_inset + + and +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +[<\SpecialChar ldots +>] +\end_layout + +\end_inset + + in the \SpecialChar LaTeX + output. +\end_layout + +\begin_layout AlertBlock +Note that LyX adds those braces on export, so you must not enter them yourself. In other words, enter +\begin_inset Quotes eld +\end_inset + +1 +\begin_inset Quotes erd +\end_inset + + or +\begin_inset Quotes eld +\end_inset + ++- +\begin_inset Quotes erd +\end_inset + + to the overlay/action insets, not +\begin_inset Quotes eld +\end_inset + +<1> +\begin_inset Quotes erd +\end_inset + + or +\begin_inset Quotes eld +\end_inset + +[<+->] +\begin_inset Quotes erd +\end_inset + +! +\end_layout + +\end_deeper +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +An example +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Take for example a quote. In a +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Quote +\end_layout + +\end_inset + + environment, you can specify the overlay settings via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →Overlay Specifications +\end_layout + +\end_inset + +. If you do this and enter +\begin_inset Quotes eld +\end_inset + +2 +\begin_inset Quotes erd +\end_inset + +, the quote will only appear on (sub-)slide 2: +\end_layout + +\begin_deeper +\begin_layout Quote + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +2 +\end_layout + +\end_inset + +Fear no more the heat o +\begin_inset Quotes ers +\end_inset + + the sun +\end_layout + +\begin_layout Quote +Nor the furious winter +\begin_inset Quotes ers +\end_inset + +s rages +\end_layout + +\begin_layout Quote +Thou thy worldly task hast done +\end_layout + +\begin_layout Quote +Home art gone, and ta +\begin_inset Quotes ers +\end_inset + +en thy wages +\end_layout + +\end_deeper +\begin_layout Frame +This is how the concept works, basically. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Covering vs. hiding +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +The difference between +\begin_inset Quotes eld +\end_inset + +covering +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + +hiding +\begin_inset Quotes erd +\end_inset + + is that hidden content is treated as if it isn't there, while covered content is just covered (and the space is reserved). If we would have hidden the quote on the last slide and not covered, it would only have taken space on appearance: +\end_layout + +\begin_deeper +\begin_layout Quote + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +only@2 +\end_layout + +\end_inset + +Fear no more the heat o +\begin_inset Quotes ers +\end_inset + + the sun +\end_layout + +\begin_layout Quote +Nor the furious winter +\begin_inset Quotes ers +\end_inset + +s rages +\end_layout + +\begin_layout Quote +Thou thy worldly task hast done +\end_layout + +\begin_layout Quote +Home art gone, and ta +\begin_inset Quotes ers +\end_inset + +en thy wages +\end_layout + +\end_deeper +\begin_layout Frame +You can see how this text moves when the quote is un-hidden. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Coverage degrees +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +setbeamercovered +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +transparent +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + offers several degrees of +\begin_inset Quotes eld +\end_inset + +coverage +\begin_inset Quotes erd +\end_inset + +, which can be set via the command +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout + +\backslash +setbeamercovered +\end_layout + +\end_inset + + either globally (for the whole presentation) or locally (e. +\begin_inset space \thinspace{} + +\end_inset + +g. for a single frame, as here). By default, content is completely covered. In +\begin_inset Quotes eld +\end_inset + +transparent +\begin_inset Quotes erd +\end_inset + + mode, you can see covered text greyed-out: +\end_layout + +\begin_deeper +\begin_layout Quote + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +2 +\end_layout + +\end_inset + +Fear no more the heat o +\begin_inset Quotes ers +\end_inset + + the sun +\end_layout + +\begin_layout Quote +Nor the furious winter +\begin_inset Quotes ers +\end_inset + +s rages +\end_layout + +\begin_layout Quote +Thou thy worldly task hast done +\end_layout + +\begin_layout Quote +Home art gone, and ta +\begin_inset Quotes ers +\end_inset + +en thy wages +\end_layout + +\end_deeper +\begin_layout Frame +Check the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + manual for more possibilities. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Default overlay/action specifications vs. +\begin_inset Newline newline +\end_inset + + (normal) overlay/action specifications +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +For some environments (such as lists and also frames), you can set +\begin_inset Quotes eld +\end_inset + +default specifications +\begin_inset Quotes erd +\end_inset + + additionally to normal overlay/action specifications (or in the case of lists: +\begin_inset Quotes eld +\end_inset + +overlay specifications +\begin_inset Quotes erd +\end_inset + + for the whole list and +\begin_inset Quotes eld +\end_inset + +item overlay specifications +\begin_inset Quotes erd +\end_inset + + for singular items) +\end_layout + +\begin_layout Itemize +Default specifications apply to all content of the given environment, if not individually specified otherwise +\end_layout + +\begin_layout Itemize +They use a placeholder syntax. E. +\begin_inset space \thinspace{} + +\end_inset + +g., +\begin_inset Quotes eld +\end_inset + ++(1)- +\begin_inset Quotes erd +\end_inset + + will uncover all items in a list step by step (with a start offset of 1) if they have no individual item specification: +\end_layout + +\begin_deeper +\begin_layout Itemize + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard ++(1)- +\end_layout + +\end_inset + +One +\end_layout + +\begin_layout Itemize +Two +\end_layout + +\begin_layout Itemize +Three +\end_layout + +\begin_layout Itemize + +\begin_inset Argument item:2 +status collapsed + + +\begin_layout Standard +1- +\end_layout + +\end_inset + +Always +\end_layout + +\end_deeper +\end_deeper +\begin_layout Frame +Please consult the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + manual for details on this syntax. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard ++- +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Default overlay/action specifications vs. +\begin_inset Newline newline +\end_inset + + (normal) overlay/action specifications +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\noindent +This frame uses a specific default overlay specification +\end_layout + +\begin_layout Frame +which causes each overlay-aware paragraph \SpecialChar ldots + +\end_layout + +\begin_deeper +\begin_layout Itemize +\SpecialChar ldots + or list item \SpecialChar ldots + +\end_layout + +\begin_layout Itemize +\SpecialChar ldots + to appear \SpecialChar ldots + +\end_layout + +\begin_layout Itemize +\SpecialChar ldots + on a subsequent sub-slide \SpecialChar ldots + +\end_layout + +\end_deeper +\begin_deeper +\begin_layout Block + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +A block +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +\SpecialChar ldots + one after the other +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +alert@+ +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Default overlay/action specifications vs. +\begin_inset Newline newline +\end_inset + + (normal) overlay/action specifications +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\noindent +And this frame uses a specific default overlay specification \SpecialChar ldots + +\end_layout + +\begin_deeper +\begin_layout Itemize +\SpecialChar ldots + which causes each overlay-aware list item \SpecialChar ldots + +\end_layout + +\begin_layout Itemize +\SpecialChar ldots + to be highlighted \SpecialChar ldots + +\end_layout + +\begin_layout Itemize +\SpecialChar ldots + on respective sub-slides +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Pause +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +The +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Pause +\end_layout + +\end_inset + + layout lets you mark a point where all following content will be covered (by default for one slide, with regard to the content preceding the pause): +\end_layout + +\begin_deeper +\begin_layout Pause + +\end_layout + +\end_deeper +\begin_layout Frame +After first pause +\end_layout + +\begin_deeper +\begin_layout Pause + +\end_layout + +\end_deeper +\begin_layout Frame +After second pause +\end_layout + +\begin_deeper +\begin_layout Pause + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +2 +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Frame +By default, consecutive pauses also end consecutively. +\end_layout + +\begin_layout Frame +Via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →Pause Number +\end_layout + +\end_inset + +, however, you can specify a specific sub-slide at which the given pause ends, independent from the number of pauses inserted before this one. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Paragraph-wide overlays +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + and LyX provide you with paragraph layouts whose purpose it is to show/hide whole paragraphs or sequences of paragraphs on specific slides. These are particularly: +\end_layout + +\begin_deeper +\begin_layout Uncover + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +2- +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Uncover +The +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Uncovered +\end_layout + +\end_inset + + layout which uncovers all content on the specified slides \SpecialChar ldots + +\end_layout + +\begin_deeper +\begin_layout Itemize +\SpecialChar ldots + including nested paragraphs of other layout. +\end_layout + +\end_deeper +\end_deeper +\begin_deeper +\begin_layout Only + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +3- +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Only +The +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Only +\end_layout + +\end_inset + + layout which un-hides content (note again how the surrounding text +\begin_inset Quotes eld +\end_inset + +moves +\begin_inset Quotes erd +\end_inset + + when this gets visible). +\end_layout + +\end_deeper +\begin_deeper +\begin_layout Overprint + +\begin_inset Argument item:1 +status collapsed + + +\begin_layout Standard +4 +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +And the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Overprint +\end_layout + +\end_inset + + environment which lets you enter \SpecialChar ldots + +\end_layout + +\end_deeper +\begin_layout Overprint + +\begin_inset Argument item:1 +status collapsed + + +\begin_layout Standard +5 +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\SpecialChar ldots + alternative text taking a specific space on specified slides. +\end_layout + +\end_deeper +\end_deeper +\begin_layout Frame +as demonstrated here. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Inline overlays +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +setbeamercovered +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{ +\end_layout + +\end_inset + +transparent +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + also supports inline overlays for text parts (as opposed to whole paragraphs), which are accessible via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Edit →Text Style +\end_layout + +\end_inset + + in LyX: +\end_layout + +\begin_deeper +\begin_layout Itemize +You can +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +uncover +\end_layout + +\end_inset + + +\begin_inset Flex Uncover +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +2- +\end_layout + +\end_inset + +text +\end_layout + +\end_inset + + on specific slides +\end_layout + +\begin_layout Itemize +You can make +\begin_inset Flex Visible +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +3- +\end_layout + +\end_inset + +text +\end_layout + +\end_inset + + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +visible +\end_layout + +\end_inset + + (which makes a difference to +\begin_inset Quotes eld +\end_inset + +uncover +\begin_inset Quotes erd +\end_inset + + only with +\begin_inset Quotes eld +\end_inset + +transparent +\begin_inset Quotes erd +\end_inset + + coverage setting, as used locally on this slide) +\end_layout + +\begin_layout Itemize +You can show +\begin_inset Flex Only +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +4- +\end_layout + +\end_inset + +text +\end_layout + +\end_inset + + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +only +\end_layout + +\end_inset + + on specific slides +\end_layout + +\begin_layout Itemize +You can make +\begin_inset Flex Invisible +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +5- +\end_layout + +\end_inset + +text +\end_layout + +\end_inset + + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +invisible +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +And you can show +\begin_inset Flex Alternative +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +6- +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +different +\end_layout + +\end_inset + + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +alternative +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + text +\end_layout + +\end_deeper +\begin_layout Frame +As for the paragraph layouts, the overlay settings can be accessed via the +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert +\end_layout + +\end_inset + + menu. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Overlay-aware commands +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Many +\begin_inset Quotes eld +\end_inset + +inline +\begin_inset Quotes erd +\end_inset + + commands (also to be found at +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Edit →Text Style +\end_layout + +\end_inset + +) are overlay-aware. +\end_layout + +\begin_deeper +\begin_layout Itemize +Thus, you can make for instance text on specific slides +\begin_inset Flex Emphasize +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +2 +\end_layout + +\end_inset + +emphasized +\end_layout + +\end_inset + +, +\begin_inset Flex Bold +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +3 +\end_layout + +\end_inset + +bold +\end_layout + +\end_inset + +, shown in +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +4 +\end_layout + +\end_inset + +alert +\end_layout + +\end_inset + + or +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +5 +\end_layout + +\end_inset + +structure +\end_layout + +\end_inset + + color. +\end_layout + +\end_deeper +\begin_deeper +\begin_layout Block + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +6 +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +Tip +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +Use these Emphasize and Bold insets (instead of the usual respective font settings) also if you do not need overlay specifications. Due to the way emphasized and bold is defined in +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + +, normal emphasizing and boldface can lead to \SpecialChar LaTeX + errors, e. +\begin_inset space \thinspace{} + +\end_inset + +g. when used in section headings. +\end_layout + +\end_deeper +\begin_layout Section +Specific environments +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Specific environments +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Specific environments, particularly suited for presentations are: +\end_layout + +\begin_deeper +\begin_layout Itemize +Diverse +\begin_inset Quotes eld +\end_inset + +blocks +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Itemize +Theorem-style environments +\end_layout + +\begin_layout Itemize +Columns +\end_layout + +\end_deeper +\begin_layout Frame +We sketch them briefly in what follows. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Blocks +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Blocks can contain all sorts of information. We used them here for +\begin_inset Quotes eld +\end_inset + +tips +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + +hints +\begin_inset Quotes erd +\end_inset + +. The class provides 3 pre-defined blocks with different look: +\end_layout + +\begin_deeper +\begin_layout Block + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +2- +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +Block +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +A general-purpose block +\end_layout + +\end_deeper +\begin_deeper +\begin_layout ExampleBlock + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +3- +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +Example Block +\end_layout + +\end_inset + + +\end_layout + +\begin_layout ExampleBlock +A block for +\begin_inset Quotes eld +\end_inset + +examples +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\end_deeper +\begin_deeper +\begin_layout AlertBlock + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +4- +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +Alert Block +\end_layout + +\end_inset + + +\end_layout + +\begin_layout AlertBlock +And an +\begin_inset Quotes eld +\end_inset + +alert +\begin_inset Quotes erd +\end_inset + + block for important remarks. +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Handling Blocks +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +In LyX, blocks have a similar user interface to frames, which means that +\end_layout + +\begin_deeper +\begin_layout Itemize +Content inside blocks needs to be nested (if the paragraph layout is not +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Block +\end_layout + +\end_inset + +) +\end_layout + +\begin_layout Itemize +Consecutive blocks of the same type must be separated by the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Separator +\end_layout + +\end_inset + + paragraph style +\end_layout + +\begin_deeper +\begin_layout Block + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +only@2 +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +Tip +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +Use +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Edit →Start New Environment +\end_layout + +\end_inset + + ( +\family sans +undefiniert +\family default +) to quickly start a new block from within a previous block! +\end_layout + +\end_deeper +\end_deeper +\begin_layout Itemize +Blocks are overlay-aware +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Theorem-style environments +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout FrameSubtitle +(Theorem, Corollary, Definition, Definitions, Example, Examples, Fact, Proof) +\end_layout + +\end_deeper +\begin_layout Frame +Theorems look similar to blocks in the output, but they have a fixed title (depending on the type). +\end_layout + +\begin_deeper +\begin_layout Theorem +This is a theorem! +\end_layout + +\end_deeper +\begin_deeper +\begin_layout Fact +This is a fact! +\end_layout + +\end_deeper +\begin_deeper +\begin_layout Pause + +\end_layout + +\end_deeper +\begin_layout Frame +Via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →Additional Theorem Text +\end_layout + +\end_inset + +, you can add some extra text to this fixed title +\end_layout + +\begin_deeper +\begin_layout Example + +\begin_inset Argument 2 +status collapsed + + +\begin_layout Standard +a bad one! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Example +An example with additional text (brackets added automatically) +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Columns +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Sometimes it is useful to divide a presentation into columns +\end_layout + +\begin_deeper +\begin_layout Columns + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +t +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Column +.4 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +textwidth +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Columns +To do this, first select +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Columns +\end_layout + +\end_inset + + (note the plural) to start the columns +\end_layout + +\begin_deeper +\begin_layout Pause + +\end_layout + +\end_deeper +\begin_deeper +\begin_layout Column +.4 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +textwidth +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Columns +And then, in the following paragraph, select +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Column +\end_layout + +\end_inset + + (singular) to start a specific column +\end_layout + +\end_deeper +\begin_deeper +\begin_layout Pause + +\end_layout + +\end_deeper +\begin_layout Frame + +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Frame +Note: +\end_layout + +\begin_deeper +\begin_layout Itemize +In the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Column +\end_layout + +\end_inset + + (singular) environment, you need to specify the width using \SpecialChar LaTeX + syntax (but also something like +\begin_inset Quotes eld +\end_inset + +3.5cm +\begin_inset Quotes erd +\end_inset + + will work) +\end_layout + +\begin_layout Itemize +Any (singular) +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Column +\end_layout + +\end_inset + + must be nested to the (plural) +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Columns +\end_layout + +\end_inset + +. Likewise, column content can be any paragraph style that is nested to a singular +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Column +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Section +Short remarks on modes +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Modes +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +In +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + terms, a +\begin_inset Quotes eld +\end_inset + +mode +\begin_inset Quotes erd +\end_inset + + is a specific output route. There are several modes for different purposes. We just want to highlight three: +\end_layout + +\begin_deeper +\begin_layout Enumerate +The +\begin_inset Quotes eld +\end_inset + +beamer +\begin_inset Quotes erd +\end_inset + + mode +\end_layout + +\begin_layout Enumerate +The +\begin_inset Quotes eld +\end_inset + +presentation +\begin_inset Quotes erd +\end_inset + + mode +\end_layout + +\begin_layout Enumerate +The +\begin_inset Quotes eld +\end_inset + +article +\begin_inset Quotes erd +\end_inset + + mode +\end_layout + +\end_deeper +\begin_layout Frame +The beamer mode is the default. Unless explicitly specified otherwise, your +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + document is in +\begin_inset Quotes eld +\end_inset + +beamer +\begin_inset Quotes erd +\end_inset + + mode. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +presentation +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Switching Modes +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +However, you can switch document parts, frames, headings and all +\begin_inset Quotes eld +\end_inset + +action +\begin_inset Quotes erd +\end_inset + +-aware environments to a different mode. For instance, we have switched this frame to +\begin_inset Quotes eld +\end_inset + +presentation +\begin_inset Quotes erd +\end_inset + + mode. +\end_layout + +\begin_deeper +\begin_layout Itemize +What does this mean? +\end_layout + +\begin_deeper +\begin_layout Itemize +It means that this frame will only be visible in the presentation, not in the accompanying +\begin_inset Quotes eld +\end_inset + +article +\begin_inset Quotes erd +\end_inset + +, if you produce such an article (we will elaborate on this a bit below) +\end_layout + +\end_deeper +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +article +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Switching Modes +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +This frame will not be visible in the presentation, but only in the article, since it is in +\begin_inset Quotes eld +\end_inset + +article +\begin_inset Quotes erd +\end_inset + + mode. +\end_layout + +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +So what? +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +This is actually pretty useful! You can set up a single document and produce both a presentation and – using the article mode – a handout. +\end_layout + +\begin_deeper +\begin_layout Itemize +And we mean a +\emph on +real +\emph default +, useful handout, not one of those scaled slide printouts that are so common nowadays (but if you insist, you can produce one of those as well) +\end_layout + +\begin_layout Itemize +Modes allow you to add extra text to the handout or hide parts from it +\end_layout + +\begin_layout Itemize +You can use for instance different graphics for the presentation and the handout +\end_layout + +\begin_layout Itemize +and so on \SpecialChar ldots + +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Examples +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +As said, many elements are mode-aware. +\end_layout + +\begin_deeper +\begin_layout Itemize +You can show particular text +\begin_inset Flex Only +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +presentation +\end_layout + +\end_inset + +only in the presentation +\end_layout + +\end_inset + + +\begin_inset Flex Only +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +article +\end_layout + +\end_inset + +only in the article +\end_layout + +\end_inset + + via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +\noindent +Edit →Text Style →Only +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Frame + +\begin_inset Flex ArticleMode +status collapsed + +\begin_layout Itemize +Or put all sorts of complex contents via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →Custom Insets →ArticleMode +\end_layout + +\end_inset + + in an inset that will only be output in article mode +\end_layout + +\end_inset + + +\begin_inset Flex PresentationMode +status collapsed + +\begin_layout Itemize +Or put all sorts of complex contents via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →Custom Insets →PresentationMode +\end_layout + +\end_inset + + in an inset that will only be output in presentation mode +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +Or you can define that an +\begin_inset Flex Emphasize +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +presentation +\end_layout + +\end_inset + +emphasizing +\end_layout + +\end_inset + + should only apply to the presentation, +\begin_inset Flex Bold +status collapsed + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +article +\end_layout + +\end_inset + +a bold face +\end_layout + +\end_inset + + only to article +\end_layout + +\begin_layout Itemize +You can also show section headings or frame titles\SpecialChar breakableslash +subtitles only in the presentation\SpecialChar breakableslash +article (like we do for the +\begin_inset Quotes eld +\end_inset + +Contents +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + +References +\begin_inset Quotes erd +\end_inset + + frame titles in this presentation) +\end_layout + +\begin_layout Itemize +And much more of this sort \SpecialChar ldots + +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Setting up an article +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Setting up a beamer article with LyX is easy. +\end_layout + +\begin_deeper +\begin_layout Itemize +Just create a new document with the class +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +\noindent +Beamer Article (Standard Class) +\end_layout + +\end_inset + + or +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +\noindent +Beamer Article (KOMA-Script) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +Then add the presentation to this document as a child (via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert →File →Child Document\SpecialChar ldots + +\end_layout + +\end_inset + +) +\end_layout + +\begin_layout Itemize +And that's it. Now you can produce the handout and the presentation by compiling one of these two documents, while you only need to edit one, namely the presentation +\end_layout + +\end_deeper +\begin_layout Frame +Check out the accompanying beamer-article example document for this presentation. You can find it in the same folder as this document. +\end_layout + +\begin_layout Section +Changing the look +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Themes +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + presentations are themeable. Themes determine the colors used, the macro structure (use of sidebars, headlines etc.), the fonts, the look of list items, blocks and in general the whole look and feel of a presentation +\end_layout + +\begin_layout Itemize + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + itself ships a number of different-looking themes to chose from (we use the +\begin_inset Quotes eld +\end_inset + +Berkeley +\begin_inset Quotes erd +\end_inset + + theme in this presentation; see +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Document →Settings →LaTeX +\begin_inset space ~ + +\end_inset + +Preamble +\end_layout + +\end_inset + + for how we activated and slightly tweaked the theme) +\end_layout + +\begin_layout Itemize +In addition to this standard set, you can get more themes from +\begin_inset CommandInset href +LatexCommand href +name "CTAN" +target "http://www.ctan.org" +literal "false" + +\end_inset + +and other places at the Internet +\end_layout + +\begin_layout Itemize +If you still are not satisified or if you need a theme matching to your University's or company's corporate design, the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + manual +\begin_inset CommandInset citation +LatexCommand cite +after "" +key "beamer-ug" +literal "false" + +\end_inset + + explains how you can setup your own theme +\end_layout + +\end_deeper +\begin_layout Standard + +\begin_inset Separator plain + +\end_inset + + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +Themes can be modified +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +But you do not need to write a theme from scratch if you want to alter the look. +\end_layout + +\begin_deeper +\begin_layout Itemize +Existing themes can be modified both in details and in major areas (such as the coloring) +\end_layout + +\begin_layout Itemize +Consult the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + manual +\begin_inset CommandInset citation +LatexCommand cite +after "" +key "beamer-ug" +literal "false" + +\end_inset + + for details +\end_layout + +\end_deeper +\begin_layout Section +And more \SpecialChar ldots + +\end_layout + +\begin_layout Frame + +\begin_inset Argument 4 +status collapsed + + +\begin_layout Standard +\SpecialChar ldots + much more! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Note that +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + can do much more than we have described here. The +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + manual +\begin_inset CommandInset citation +LatexCommand cite +after "" +key "beamer-ug" +literal "false" + +\end_inset + + provides a comprehensive documentation. +\end_layout + +\begin_layout Frame +Also, have a look at the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + examples and templates shipped with LyX! +\end_layout + +\begin_layout Standard +\start_of_appendix + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +%dummy comment inserted by tex2lyx to ensure that this paragraph is not empty +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Appendix +\end_layout + +\begin_layout Frame + +\end_layout + +\begin_deeper +\begin_layout FrameTitle + +\begin_inset Argument 1 +status collapsed + + +\begin_layout Standard +presentation +\end_layout + +\end_inset + +References +\end_layout + +\end_deeper +\begin_deeper +\begin_layout Bibliography + +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "" +key "beamer-ug" +literal "false" + +\end_inset + +Tantau, Till et al.: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +newblock +\end_layout + +\end_inset + + The beamer class. +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout +https://ctan.org/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf +\end_layout + +\end_inset + +. +\end_layout + +\end_deeper +\end_body +\end_document diff --git a/src/tex2lyx/test/beamer.tex b/src/tex2lyx/test/beamer.tex new file mode 100644 index 0000000000..c5424fee4c --- /dev/null +++ b/src/tex2lyx/test/beamer.tex @@ -0,0 +1,706 @@ +\documentclass[english]{beamer} +\usepackage[T1]{fontenc} +\usepackage[latin9]{inputenc} + +\usepackage{babel} + +\usetheme[left,width=3.45em]{Berkeley} + +\begin{document} + +\title{Presentations with Beamer} + +\subtitle{An Introduction to the Basics} + +\author{John Doe} + +\date{Version~2.3} + +\maketitle + +\begin{frame} + +\frametitle{Contents} + +\tableofcontents +\end{frame} + +\section{Purposes} + +\begin{frame}[<+->]{Purpose of the Beamer class} + +With the \structure{Beamer} class, you can produce presentation slides, +which +\begin{itemize} +\item are visually highly customizable +\item can be very well structured +\item can be constructed step-by-step (``overlay'' concept) +\item may contain different navigation paths (note that the slides contain +all sorts of hyperlinks) +\item use \LaTeX 's superb output quality +\item might embed multimedia content (audio, video) +\item can easily be transformed to accompanying material (such as an article-like +handout) +\item and much more \ldots{} +\end{itemize} +\end{frame} + +\begin{frame}{Purpose of this presentation} + +This presentation +\begin{itemize}[<+->] +\item describes some basic features of \structure{Beamer} +\item especially how they can be used +\end{itemize} +For more general and comprehensive information on \structure{Beamer} +itself, please refer to the extensive class manual \cite{beamer-ug} +\end{frame} + +\section*{Segments of a presentation} + +\begin{frame}{The global structure} + +A presentation usually consists of +\begin{itemize} +\item<+-> a title page +\item<+-> slides that might be grouped to sections/parts +\item[extra]<+-> an appendix with additional information, such as a bibliography +\end{itemize} +We describe these global segments in what follows. +\end{frame} + +\begin{frame}{The title page} + +A title page is constructed by the layouts \structure{Title}, +\structure{Subtitle}, \structure<2>{Author}, \structure{Institute}, +\structure{Date} and \structure{TitleGraphic}. +\begin{itemize} +\item None of these elements is mandatory, but at least one must be given +\item The order of insertion does not matter (the real order is defined +in the \structure{Beamer} theme) +\item For \structure{Title}, \structure{Subtitle}, \structure{Author}, +\structure{Institute} and \structure{Date}, you can define ``short'' +forms via \alert{Insert \textrightarrow Short Title\slash Date\slash\ldots} +These are used in the sidebar\slash heading (given the theme actually +provides a sidebar\slash heading) +\item If you select \structure{Title (Plain Frame)} instead of \structure{Title}, +the title page will have no sidebar or heading +\end{itemize} +\end{frame} + +\begin{frame}<1-2>[label=myframe]{Frames can be repeated} + +Frames can be repeated fully or only in terms of selected sub-slides, +multiple times at any later point of the presentation. + +You just need to give the respective frame a label name via the frame +option ``label'' (as done here). + +\pause{} + +Then you can repeat this frame by means of the \structure{AgainFrame} +layout later in the presentation. Just enter the label name in the +\structure{AgainFrame} layout and specify, if required, which sub-slides +you want to be repeated via \alert{Insert \textrightarrow Overlay Specifications} +(again, see below for the concept of ``overlays''). +\begin{proof}<3> +\alert{Here's the proof!} (This text is only shown on sub-slide +3 which is itself only shown when this frame is repeated later on) +\end{proof} + +\end{frame} + +\begin{frame}{Keeping frames together} + +\framesubtitle{Use nesting!} +\begin{itemize} +\item Note that all frame content, if the style is not \structure{Frame}, +must be nested to the frame environment (via \alert{Edit \textrightarrow Increase List Depth} +or \textsf{Alt+Shift+Right}). This is done automatically if you +insert new frame paragraphs. +\item Nested content is marked by a red bar in the margin of the LyX workarea +\end{itemize} +\end{frame} +\begin{itemize} +\item Non-nested content (such as this) will also be displayed in the presentation +(on a separate slide), but not properly aligned +\item So please avoid this +\end{itemize} + +\begin{frame}{Separating frames} + +\noindent Consecutive frames have to be separated from each other. +This is done by means of the \structure{\noindent Separator} inset, +which can be produced by hitting return in an empty Standard paragraph +right below the frame (see UserGuide, sec.~3.4.6). +\begin{block}{Tip} + +There is a simple and much more convenient way to start a new frame: +Issue \alert{Insert \textrightarrow Separated Frame Below} (\textsf{undefiniert} +if you are in a non-nested \structure{Frame} paragraph, or \textsf{Alt+A Shift+Return}, +respectively, if you are in a nested paragraph within the frame). +If you are in the frame heading, \alert{Insert \textrightarrow Separated Frame Above} +inserts a new, properly separated frame above the current one! +\end{block} +\end{frame} + +\againframe<3>{myframe} + +\begin{frame}[plain]{Special frame types} + +LyX provides two special frame types: +\begin{enumerate} +\item \structure{Frame (plain)} is a frame without a sidebar/header (such +as this one). This is useful for slides with much content\slash wide +tables +\item \structure{Frame (fragile)} is to be used if the frame consists of +``fragile'' content, especially verbatim stuff such as program listings +\end{enumerate} +If you want a fragile plain frame, pass the option ``plain'' to +a fragile frame or the option ``fragile'' to a plain frame. +\end{frame} + +\begin{frame}{Re-arranging frames} +\begin{block}{Tip} + +Did you know that you can easily move and re-arrange whole frames +via the outliner (\alert{View \textrightarrow Outline Pane})? + +Also, you can navigate to a specific frame via the \alert{Navigate} +menu! +\end{block} +\end{frame} + +\section
*{The overlay concept} + +\begin{frame}{What are overlays?} + +Basically, the overlay concept allows to change the slide content +dynamically. You can uncover things/text piecewise, fade out content, +highlight things, replace text, images etc. + +\pause{} +\begin{itemize}[<+->] +\item Overlays are useful to build up slides as you speak +\item They help you to shift your audience's focus on specific things +\item And they help your audience to follow you +\item So use overlays! \alert<6>{Really, use them!} +\end{itemize} +\end{frame} +% +\begin{frame}{Overlay types} + +\structure{Beamer} provides many different overlay types. The most +important ones are: +\begin{description} +\item [{Hidden~content:}] Stuff that is completely invisible up to a point +\item [{Covered~content:}] Stuff that is faded out (not completely invisible) +\item [{Highlighted~content:}] Stuff that is somehow emphasized at a certain +point +\end{description} +We give examples for these types in what follows, but begin with some +general remarks on overlay possibilities +\end{frame} + +\begin{frame}{General overlay/action possibilities} + +Many \structure{Beamer} elements provide overlay settings. Basically, +you can define on which sub-slide(s) a given content appears (``2'', +``2-4'', ``3-'', ``1,3'' etc.), or in which output mode (``presentation'', +``article'' etc.) +\begin{itemize} +\item In LyX, these settings are generally accessible via \alert{Insert \textrightarrow Overlay Specifications} +or \alert{Insert \textrightarrow Action Specifications} +\end{itemize} +\begin{overprint} +\onslide<2> +\begin{definition} +``Action'' is a more general concept, which does not only include +what we have called ``overlays'' (``on which sub-slide{[}s{]} is +this to be shown\slash hidden\slash highlighted''), but also tasks +such as ``only show this in the presentation, not on the handout'' +or ``show this on the second screen only'' (so-called ``modes''). +\end{definition} + +\onslide<3> +\begin{alertblock}{Note to the \LaTeX{} aficionados} + +The mentioned overlay/action settings conform to those command/environment +options embraced by\alert{\ <\ldots >} and \alert{{[}<\ldots >{]}} +in the \LaTeX{} output. + +Note that LyX adds those braces on export, so you must not enter +them yourself. In other words, enter ``1'' or ``+-'' to the overlay/action +insets, not ``<1>'' or ``{[}<+->{]}''! +\end{alertblock} +\end{overprint} +\end{frame} +% +\begin{frame}{An example} + +Take for example a quote. In a \structure{Quote} environment, you +can specify the overlay settings via \alert{Insert \textrightarrow Overlay Specifications}. +If you do this and enter ``2'', the quote will only appear on (sub-)slide +2: +\begin{quote}<2> +Fear no more the heat o\textquoteright{} the sun + +Nor the furious winter\textquoteright s rages + +Thou thy worldly task hast done + +Home art gone, and ta\textquoteright en thy wages +\end{quote} +This is how the concept works, basically. +\end{frame} +% +\begin{frame}{Covering vs. hiding} + +The difference between ``covering'' and ``hiding'' is that hidden +content is treated as if it isn't there, while covered content is +just covered (and the space is reserved). If we would have hidden +the quote on the last slide and not covered, it would only have taken +space on appearance: +\begin{quote} +Fear no more the heat o\textquoteright{} the sun + +Nor the furious winter\textquoteright s rages + +Thou thy worldly task hast done + +Home art gone, and ta\textquoteright en thy wages +\end{quote} + +You can see how this text moves when the quote is un-hidden. +\end{frame} +% +\begin{frame}{Coverage degrees} + +\setbeamercovered{transparent} + +\structure{Beamer} offers several degrees of ``coverage'', which +can be set via the command \alert{\textbackslash setbeamercovered} +either globally (for the whole presentation) or locally (e.\,g. for +a single frame, as here). By default, content is completely covered. +In ``transparent'' mode, you can see covered text greyed-out: +\begin{quote}<2> +Fear no more the heat o\textquoteright{} the sun + +Nor the furious winter\textquoteright s rages + +Thou thy worldly task hast done + +Home art gone, and ta\textquoteright en thy wages +\end{quote} +Check the \structure{Beamer} manual for more possibilities. +\end{frame} +% +\begin{frame}{Default overlay/action specifications vs.\\ +(normal) overlay/action specifications} +\begin{itemize} +\item For some environments (such as lists and also frames), you can set +``default specifications'' additionally to normal overlay/action +specifications (or in the case of lists: ``overlay specifications'' +for the whole list and ``item overlay specifications'' for singular +items) +\item Default specifications apply to all content of the given environment, +if not individually specified otherwise +\item They use a placeholder syntax. E.\,g., ``+(1)-'' will uncover all +items in a list step by step (with a start offset of 1) if they have +no individual item specification: +\begin{itemize}[<+(1)->] +\item One +\item Two +\item Three +\item<1-> Always +\end{itemize} +\end{itemize} +Please consult the \structure{Beamer} manual for details on this +syntax. + +\end{frame} +% +\begin{frame}[<+->]{Default overlay/action specifications vs.\\ +(normal) overlay/action specifications} + +\noindent This frame uses a specific default overlay specification + +which causes each overlay-aware paragraph \ldots{} +\begin{itemize} +\item \ldots{} or list item \ldots{} +\item \ldots{} to appear \ldots{} +\item \ldots{} on a subsequent sub-slide \ldots{} +\end{itemize} +\begin{block}{A block} + +\ldots{} one after the other +\end{block} +\end{frame} +% +\begin{frame}[]{Default overlay/action specifications vs.\\ +(normal) overlay/action specifications} + +\noindent And this frame uses a specific default overlay specification +\ldots{} +\begin{itemize} +\item \ldots{} which causes each overlay-aware list item \ldots{} +\item \ldots{} to be highlighted \ldots{} +\item \ldots{} on respective sub-slides +\end{itemize} +\end{frame} +% +\begin{frame}{Pause} + +The \structure{Pause} layout lets you mark a point where all following +content will be covered (by default for one slide, with regard to +the content preceding the pause): + +\pause{} + +After first pause + +\pause{} + +After second pause + +\pause[2]{} + +By default, consecutive pauses also end consecutively. + +Via \alert{Insert \textrightarrow Pause Number}, however, you can specify +a specific sub-slide at which the given pause ends, independent from +the number of pauses inserted before this one. +\end{frame} +% +\begin{frame}{Paragraph-wide overlays} + +\structure{Beamer} and LyX provide you with paragraph layouts whose +purpose it is to show/hide whole paragraphs or sequences of paragraphs +on specific slides. These are particularly: +\begin{uncoverenv}<2-> + +The \structure{Uncovered} layout which uncovers all content on the +specified slides \ldots{} +\begin{itemize} +\item \ldots{} including nested paragraphs of other layout. +\end{itemize} +\end{uncoverenv} + +\begin{onlyenv}<3-> + +The \structure{Only} layout which un-hides content (note again how +the surrounding text ``moves'' when this gets visible). +\end{onlyenv} + +\begin{overprint} +\onslide<4> + +And the \structure{Overprint} environment which lets you enter \ldots{} +\onslide<5> + +\ldots{} alternative text taking a specific space on specified slides. + +\end{overprint} +as demonstrated here. +\end{frame} +% +\begin{frame}{Inline overlays} + +\setbeamercovered{transparent} + +\structure{Beamer} also supports inline overlays for text parts (as +opposed to whole paragraphs), which are accessible via \alert{Edit \textrightarrow Text Style} +in LyX: +\begin{itemize} +\item You can \structure{uncover} \uncover<2->{text} on specific slides +\item You can make \visible<3->{text} \structure{visible} (which makes +a difference to ``uncover'' only with ``transparent'' coverage +setting, as used locally on this slide) +\item You can show \only<4->{text }\structure{only} on specific slides +\item You can make \invisible<5->{text} \structure{invisible} +\item And you can show \alt<6->{different}{\structure{alternative}} text +\end{itemize} +As for the paragraph layouts, the overlay settings can be accessed +via the \alert{Insert} menu. +\end{frame} +% +\begin{frame}{Overlay-aware commands} + +Many ``inline'' commands (also to be found at \alert{Edit \textrightarrow Text Style}) +are overlay-aware. +\begin{itemize} +\item Thus, you can make for instance text on specific slides \emph<2>{emphasized}, +\textbf<3>{bold}, shown in \alert<4>{alert} or \structure<5>{structure} +color. +\end{itemize} +\begin{block}<6>{Tip} + +Use these Emphasize and Bold insets (instead of the usual respective +font settings) also if you do not need overlay specifications. Due +to the way emphasized and bold is defined in \structure{Beamer}, +normal emphasizing and boldface can lead to \LaTeX{} errors, e.\,g. +when used in section headings. +\end{block} +\end{frame} + +\section{Specific environments} +\begin{frame}{Specific environments} + +Specific environments, particularly suited for presentations are: +\begin{itemize} +\item Diverse ``blocks'' +\item Theorem-style environments +\item Columns +\end{itemize} +We sketch them briefly in what follows. +\end{frame} +% +\begin{frame}{Blocks} + +Blocks can contain all sorts of information. We used them here for +``tips'' and ``hints''. The class provides 3 pre-defined blocks +with different look: +\begin{block}<2->{Block} + +A general-purpose block +\end{block} +\begin{exampleblock}<3->{Example Block} + +A block for ``examples'' +\end{exampleblock} +\begin{alertblock}<4->{Alert Block} + +And an ``alert'' block for important remarks. +\end{alertblock} +\end{frame} +% +\begin{frame}{Handling Blocks} +\begin{itemize} +\item In LyX, blocks have a similar user interface to frames, which means +that +\begin{itemize} +\item Content inside blocks needs to be nested (if the paragraph layout +is not \structure{Block}) +\item Consecutive blocks of the same type must be separated by the \structure{Separator} +paragraph style +\begin{block}{Tip} + +Use \alert{Edit \textrightarrow Start New Environment} (\textsf{undefiniert}) +to quickly start a new block from within a previous block! +\end{block} +\end{itemize} +\item Blocks are overlay-aware +\end{itemize} +\end{frame} +% +\begin{frame}{Theorem-style environments} + +\framesubtitle{(Theorem, Corollary, Definition, Definitions, Example, Examples, +Fact, Proof)} + +Theorems look similar to blocks in the output, but they have a fixed +title (depending on the type). +\begin{theorem} +This is a theorem! +\end{theorem} + +\begin{fact} +This is a fact! +\end{fact} + + +\pause{} + +Via \alert{Insert \textrightarrow Additional Theorem Text}, you can add +some extra text to this fixed title +\begin{example}[a bad one!] + +An example with additional text (brackets added automatically) +\end{example} + +\end{frame} +% +\begin{frame}{Columns} + +Sometimes it is useful to divide a presentation into columns +\begin{columns}[t] + +\column{.4\textwidth} + +To do this, first select \structure{Columns} (note the plural) to +start the columns + +\pause{} + +\column{.4\textwidth} + +And then, in the following paragraph, select \structure{Column} (singular) +to start a specific column +\end{columns} + + +\pause{} + +\medskip{} + +Note: +\begin{itemize} +\item In the \structure{Column} (singular) environment, you need to specify +the width using \LaTeX{} syntax (but also something like ``3.5cm'' +will work) +\item Any (singular) \structure{Column} must be nested to the (plural) +\structure{Columns}. Likewise, column content can be any paragraph +style that is nested to a singular \structure{Column} +\end{itemize} +\end{frame} + +\section{Short remarks on modes} +\begin{frame}{Modes} + +In \structure{Beamer} terms, a ``mode'' is a specific output route. +There are several modes for different purposes. We just want to highlight +three: +\begin{enumerate} +\item The ``beamer'' mode +\item The ``presentation'' mode +\item The ``article'' mode +\end{enumerate} +The beamer mode is the default. Unless explicitly specified otherwise, +your \structure{Beamer} document is in ``beamer'' mode. +\end{frame} +% +\begin{frame}{Switching Modes} + +However, you can switch document parts, frames, headings and all ``action''-aware +environments to a different mode. For instance, we have switched this +frame to ``presentation'' mode. +\begin{itemize} +\item What does this mean? +\begin{itemize} +\item It means that this frame will only be visible in the presentation, +not in the accompanying ``article'', if you produce such an article +(we will elaborate on this a bit below) +\end{itemize} +\end{itemize} +\end{frame} +% +\begin{frame}
{Switching Modes} + +This frame will not be visible in the presentation, but only in the +article, since it is in ``article'' mode. +\end{frame} +% +\begin{frame}{So what?} + +This is actually pretty useful! You can set up a single document and +produce both a presentation and \textendash{} using the article mode +\textendash{} a handout. +\begin{itemize} +\item And we mean a \emph{real}, useful handout, not one of those scaled +slide printouts that are so common nowadays (but if you insist, you +can produce one of those as well) +\item Modes allow you to add extra text to the handout or hide parts from +it +\item You can use for instance different graphics for the presentation and +the handout +\item and so on \ldots{} +\end{itemize} +\end{frame} +% +\begin{frame}{Examples} + +As said, many elements are mode-aware. +\begin{itemize} +\item You can show particular text \only{only in the presentation}\only
{only in the article} +via \alert{\noindent Edit \textrightarrow Text Style \textrightarrow Only} +\end{itemize} +\mode
{\begin{itemize} +\item Or put all sorts of complex contents via \alert{Insert \textrightarrow Custom Insets \textrightarrow ArticleMode} +in an inset that will only be output in article mode +\end{itemize} +}\mode{\begin{itemize} +\item Or put all sorts of complex contents via \alert{Insert \textrightarrow Custom Insets \textrightarrow PresentationMode} +in an inset that will only be output in presentation mode +\end{itemize} +} +\begin{itemize} +\item Or you can define that an \emph{emphasizing} should +only apply to the presentation, \textbf
{a bold face} only +to article +\item You can also show section headings or frame titles\slash subtitles +only in the presentation\slash article (like we do for the ``Contents'' +and ``References'' frame titles in this presentation) +\item And much more of this sort \ldots{} +\end{itemize} +\end{frame} +% +\begin{frame}{Setting up an article} + +Setting up a beamer article with LyX is easy. +\begin{itemize} +\item Just create a new document with the class \structure{\noindent Beamer Article (Standard Class)} +or \structure{\noindent Beamer Article (KOMA-Script)} +\item Then add the presentation to this document as a child (via \alert{Insert \textrightarrow File \textrightarrow Child Document\ldots}) +\item And that's it. Now you can produce the handout and the presentation +by compiling one of these two documents, while you only need to edit +one, namely the presentation +\end{itemize} +Check out the accompanying beamer-article example document for this +presentation. You can find it in the same folder as this document. +\end{frame} + +\section{Changing the look} +\begin{frame}{Themes} +\begin{itemize} +\item \structure{Beamer} presentations are themeable. Themes determine +the colors used, the macro structure (use of sidebars, headlines etc.), +the fonts, the look of list items, blocks and in general the whole +look and feel of a presentation +\item \structure{Beamer} itself ships a number of different-looking themes +to chose from (we use the ``Berkeley'' theme in this presentation; +see \alert{Document \textrightarrow Settings \textrightarrow LaTeX~Preamble} for +how we activated and slightly tweaked the theme) +\item In addition to this standard set, you can get more themes from \href{http://www.ctan.org}{CTAN} +and other places at the Internet +\item If you still are not satisified or if you need a theme matching to +your University's or company's corporate design, the \structure{Beamer} +manual \cite{beamer-ug} explains how you can setup your own theme +\end{itemize} +\end{frame} +% +\begin{frame}{Themes can be modified} + +But you do not need to write a theme from scratch if you want to alter +the look. +\begin{itemize} +\item Existing themes can be modified both in details and in major areas +(such as the coloring) +\item Consult the \structure{Beamer} manual \cite{beamer-ug} for details +\end{itemize} +\end{frame} + +\section{And more \ldots} +\begin{frame}{\ldots{} much more!} + +Note that \structure{Beamer} can do much more than we have described +here. The \structure{Beamer} manual \cite{beamer-ug} provides a +comprehensive documentation. + +Also, have a look at the \structure{Beamer} examples and templates +shipped with LyX! +\end{frame} + +\appendix + +\section{Appendix} + +\begin{frame} + +\frametitle{References} +\begin{thebibliography}{1} +\bibitem{beamer-ug}Tantau, Till et al.:\newblock The beamer class. +\url{https://ctan.org/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf}. +\end{thebibliography} +\end{frame} + +\end{document} diff --git a/src/tex2lyx/test/runtests.py b/src/tex2lyx/test/runtests.py index 74f5cf7972..7c82909ded 100755 --- a/src/tex2lyx/test/runtests.py +++ b/src/tex2lyx/test/runtests.py @@ -74,6 +74,7 @@ def main(argv): else: files = ['test.ltx', \ 'algo2e.tex', \ + 'beamer.tex', \ 'box-color-size-space-align.tex', \ 'CJK.tex', \ 'CJKutf8.tex', \