module Text.LaTeX.Macro (
m_simple
, m_wpkgs
, m_article
) where
import Text.LaTeX.Monad
import Text.LaTeX.Commands
import Text.LaTeX.Packages
import Text.LaTeX.Arguments
m_simple :: [ClassOption]
-> Class
-> Name
-> Title
-> LaTeX
-> LaTeX
m_simple copts c a t cnt =
do documentclass copts c
author a
title t
document cnt
m_wpkgs
:: [ClassOption]
-> Class
-> Name
-> Title
-> [([PackageOption]
, Package)]
-> LaTeX
-> LaTeX
m_wpkgs copts c a t pkgs cnt =
do documentclass copts c
mapM_ (uncurry usepackage) pkgs
author a
title t
document cnt
m_article
:: Name
-> Title
-> LaTeX
-> LaTeX
m_article a t cnt =
do documentclass [pt 11, titlepage, a4paper] article
author a
title t
document $ do maketitle
cnt