Safe Haskell | None |
---|
Beamer is a LaTeX package for the creation of slides.
Each frame is contained within the frame
function. Here is an example:
{-# LANGUAGE OverloadedStrings #-} import Text.LaTeX import Text.LaTeX.Packages.Beamer mySlides :: Monad m => LaTeXT m () mySlides = do frame $ do frametitle "First frame" "Content of the first frame." frame $ do frametitle "Second frame" "Content of the second frame." pause " And actually a little more."
The pause
command in the second frame makes the second part of the text
to appear one screen later.
- beamer :: ClassName
- frame :: LaTeXC l => l -> l
- frametitle :: LaTeXC l => l -> l
- framesubtitle :: LaTeXC l => l -> l
- alert :: LaTeXC l => [OverlaySpec] -> l -> l
- pause :: LaTeXC l => l
- block :: LaTeXC l => l -> l -> l
- data OverlaySpec
- beameritem :: LaTeXC l => [OverlaySpec] -> l
- uncover :: LaTeXC l => [OverlaySpec] -> l -> l
- only :: LaTeXC l => [OverlaySpec] -> l -> l
- usetheme :: LaTeXC l => Theme -> l
- data Theme
- = AnnArbor
- | Antibes
- | Bergen
- | Berkeley
- | Berlin
- | Boadilla
- | CambridgeUS
- | Copenhagen
- | Darmstadt
- | Dresden
- | Frankfurt
- | Goettingen
- | Hannover
- | Ilmenau
- | JuanLesPins
- | Luebeck
- | Madrid
- | Malmoe
- | Marburg
- | Montpellier
- | PaloAlto
- | Pittsburgh
- | Rochester
- | Singapore
- | Szeged
- | Warsaw
- | Boxes
- | Default
- | CustomTheme String
Beamer package
The beamer
document class. Importing a package is not required. Example:
documentclass [] beamer
Beamer commands
frame :: LaTeXC l => l -> lSource
A presentation is composed of a sequence of frames. Each frame is created with this function.
frametitle :: LaTeXC l => l -> lSource
Set the title of the current frame. Use it within a frame
.
framesubtitle :: LaTeXC l => l -> lSource
Set the subtitle of the current frame. Use it within a frame
.
alert :: LaTeXC l => [OverlaySpec] -> l -> lSource
Highlight in red a piece of text. With the OverlaySpec
s, you can specify the slides where
the text will be highlighted.
:: LaTeXC l | |
=> l | Title for the block |
-> l | Content of the block |
-> l | Result |
A block
will be displayed surrounding a text.
Overlay Specifications
data OverlaySpec Source
Specifications for beamer functions.
beameritem :: LaTeXC l => [OverlaySpec] -> lSource
beameritem
works like item
, but allows you to specify the slides where
the item will be displayed.
uncover :: LaTeXC l => [OverlaySpec] -> l -> lSource
With uncover
, show a piece of text only in the slides you want.
only :: LaTeXC l => [OverlaySpec] -> l -> lSource
Similar to uncover
.
Themes
usetheme :: LaTeXC l => Theme -> lSource
Set the Theme
employed in your presentation (in the preamble).