HaTeX- The Haskell LaTeX library.

Safe HaskellNone




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." 
     " 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 package

beamer :: ClassNameSource

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 OverlaySpecs, you can specify the slides where the text will be highlighted.

pause :: LaTeXC l => lSource

Introduces a pause in a slide.



:: LaTeXC l 
=> l

Title for the block

-> l

Content of the block

-> l


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.


usetheme :: LaTeXC l => Theme -> lSource

Set the Theme employed in your presentation (in the preamble).