This repository has been archived by the owner on Sep 28, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f39fb3
commit 9f914ae
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,38 @@ | |||
|
|||
{-# LANGUAGE OverloadedStrings #-} | |||
|
|||
import Text.LaTeX | |||
import Text.LaTeX.Packages.Beamer | |||
import Text.LaTeX.Packages.Inputenc | |||
|
|||
main :: IO () | |||
main = execLaTeXT beamerExample >>= renderFile "beamer.tex" | |||
|
|||
beamerExample :: Monad m => LaTeXT_ m | |||
beamerExample = thePreamble >> document theBody | |||
|
|||
thePreamble :: Monad m => LaTeXT_ m | |||
thePreamble = do | |||
-- To start using beamer, set the document class to be 'beamer'. | |||
documentclass [] beamer | |||
usepackage [utf8] inputenc | |||
author "Daniel Díaz" | |||
title "Beamer example using HaTeX" | |||
-- Use a theme to improve the aspect of your slides. | |||
usetheme CambridgeUS | |||
|
|||
theBody :: Monad m => LaTeXT_ m | |||
theBody = do | |||
-- Each slide is a call to the function 'frame' with the content of the slide. | |||
frame maketitle | |||
frame $ do | |||
frametitle "Example with block" | |||
"Here comes " | |||
alert [FromSlide 2] "the block!" | |||
uncover [FromSlide 5] " Ha! I was hiding here!" | |||
pause | |||
pause | |||
block "The block" $ do | |||
pause | |||
"The content of the block appears after a pause." | |||
uncover [FromSlide 6] $ center "And that's it!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters