• 검색 결과가 없습니다.

5.4 Creating Presentations

5.4.4 Handouts

5.4 Creating Presentations 153

of contents into your slides.

\documentclass[

aspectratio=169 ]{beamer}

\begin{document}

\begin{frame}

Wide is beautiful.

\end{frame}

\end{document}

Wide is beautiful.

154 Specialities

If no mode is specified, beamer mode is assumed.

\documentclass[handout]{beamer}

\begin{document}

\begin{frame}

Some text \pause with pauses.

\onslide<beamer: 3-| handout: 2-> This text will be on a separate slide, even in handout.

\end{frame}

\end{document}

Some text with pauses.

separate slide, even in handout.

Some text with pauses. This text will be on a separate slide, even in handout.

Often you will want to show some parts only in one mode—to provide additional commentary in handouts, or to hide things that only make sense during the presentation. This is easily achieved by using a special zeroth slide that is not included in the rendered document. An example of doing so is presented inListing 5.1.

Handouts created in this way still use the slide structure—titles, lots of empty space, and bright colours. As an alternative, the article mode will typeset the document in a fashion similar to a regular article. Due to the more pronounced differences between layouts, this may require more tweaking than the handout mode, but the result will often be much more suitable for a printed handout.

Switching to the article mode differs from switching to other beamer modes. Rather than passing options to the class, the class is replaced by article and the beamerarticle is included in the preamble. SeeListing 5.2 for an example. The beamerarticle package defines all of the beamer commands and environments, so that they will produce sensible output in the article.

Because the concept of slides is not present in an article,5 the overlay specifications will be useless. However the special zeroth slide works

5To be more precise, only contents of the first slide are typeset.

5.4 Creating Presentations 155

\documentclass[handout]{beamer}

\begin{document}

\begin{frame}

A frame.

\end{frame}

\begin{frame}<handout: 0>

A frame only visible in presentation.

\end{frame}

\begin{frame}<0>

A frame only visible in handout.

\end{frame}

\end{document}

A frame.

A frame only visible in handout.

Listing 5.1: An example of using zeroth slides to hide content in presen-tation and in handout.

% \documentclass{beamer}

\documentclass{article}

\usepackage{beamerarticle}

\title{Handouts}

\author{Me and Myself}

\begin{document}

\maketitle

\begin{frame}

Handouts are \alert{very}

important.

\end{frame}

\begin{frame}

Almost as important as the presentations.

\end{frame}

\end{document}

Handouts

Me and Myself October 11, 2022

Handouts are very impor-tant.

Almost as important as the presentations.

1

Listing 5.2: An example of using beamer in article mode.

normally and can be used to hide content.

\begin{frame}<0>

Additional information for the article.

\uncover<article: 2->{This won't print.}

\end{frame}

\begin{frame}<article: 0>

Additional information for the presentation.

\end{frame}

Additional information for the article.

1

Because the overlay specification is often used to provide contents for a single mode, there exists a short cut: f you provide only the mode name, this will be the same as setting all other modes to zeroth slide and leaving the first slide for the specified mode. This usually results in a more readable code.

\begin{frame}<article>

Content for the article.

\end{frame}

\begin{frame}<beamer>

Content for the presentation.

\end{frame}

Content for the article.

1

Chapter 6

Graphics in Your Document

Most documents these days contain some graphics alongside the text. While photos and drawings can be easily added, integrating diagrams and schemat-ics seamlessly with your document might prove difficult. Fonts, colours, and lines must be adjusted so that they do not look out of place. Furthermore, later changes to your document layout may force you to redo this work.

Fortunately it is possible to create your graphics directly in LATEX, which will automatically take care of adjusting the aforementioned settings and keep them in sync with the document itself.

6.1 Overview

First, some background on how to think about graphics. Roughly, there are three types of pictures that you may find yourself dealing with:

Photos are pictures that contain realistic shading and lots of detail.

These include actual photos, photo-realistic renders, and screen-shots from video games. In photos, exact pixel colour is not really important, and lossy compression can be used without visual degra-dation. It is best to store photos in the JPEG format.

Drawings are pictures with flat colours and relatively few details. This category includes pixel art and screenshots of program interfaces.

Here, lossy compression would result in visible degradation, and would not be very efficient anyway. It is best to use a lossless compression format such as PNG. This will ensure that each picture is reproduced with pixel-perfect fidelity, while keeping the file sizes small.

Diagrams or Charts are simple graphics that contain text, lines, and other geometric objects. Logos and schematics are prime examples

of these. Ideally, they should be stored as drawing instructions in a vector based graphics in format, such as EPS, SVG or PDF. Vector based graphics can be scaled to any size without loss of quality.

You have already learned about including photos and drawings, in Sec-tion 2.19. You can use the same techniques to include diagrams, and this is totally fine. Some programs, such as Inkscape [29], even support ways to easily include produced graphics in LATEX documents. However, this chapter will focus on drawing diagrams directly in LATEX. This has many advantages, such as logical structuring, plain text formatting, and seamless integration with the document layout.

Creating graphical output with LATEX has a long tradition. It started out with the picture environment, which allows you to create graphics by cleverly placing predefined elements onto a canvas. Unfortunately, this environment is not very robust, and so many alternatives have been developed over the years, such as metapost [80], asymptote [22] or xypic [62]. Today, the most widely used package is pgf [73] (short for

“Portable Graphics Format”) and its user interface TikZ (a recursive acronym—“TikZ ist kein Zeichenprogramm”—German for “TikZ is not a drawing program”). This chapter will introduce the basic concepts of writing graphics in TikZ. More detailed tutorials can be found in the pgf documentation.

While TikZ is a powerful and versatile language, using it for com-plicated graphics is not always easy. Many packages and libraries build upon the pgf foundation to simplify the creation of specialized diagrams.

These include pgfplots [18], for plotting functions and presenting data, and commutative-diagrams [8], for creating commutative diagrams. It’s usually a good idea to search CTAN for a package which already solves your problem before writing new TikZ code from the ground up, yourself.

문서에서 The Not So Short Introduction to LATEX (페이지 171-176)