HaTeX-2.1.3: Monadic tool for write LaTeX files.

Text.LaTeX.Macro

Contents

Description

This module defines some macros to speed up writing documents.

Note: Have you an idea for a macro? Send your suggestions!

Synopsis

Simple macros

m_simpleSource

Arguments

:: Monad m 
=> [ClassOption m]

Class options

-> Class m

Class

-> Name m

Author's name

-> Title m

Document's title

-> LaTeX m

Document's content

-> LaTeX m

Output

m_wpkgsSource

Arguments

:: Monad m 
=> [ClassOption m]

Class options

-> Class m

Class

-> Name m

Author's name

-> Title m

Document's title

-> [([PackageOption m], Package m)]

A list of imported packages

-> LaTeX m

Document's content

-> LaTeX m

Output

Article macros

m_articleSource

Arguments

:: Monad m 
=> Name m

Author's name

-> Title m

Article's title

-> LaTeX m

Article's content

-> LaTeX m

Output

Function m_article generate a LaTeX file with the following properties:

  • Article class.
  • Font Size: 11pt
  • A title in the first page.
  • A4 paper.

m_articlepSource

Arguments

:: Monad m 
=> Name m

Author's name

-> Title m

Article's title

-> [([PackageOption m], Package m)]

A list of imported packages

-> LaTeX m

Document's content

-> LaTeX m

Output

Like m_article, but it lets you import packages.

Math macros

m_mathSource

Arguments

:: Monad m 
=> Name m

Author's name

-> Title m

Article's title

-> LaTeX m

Document's content

-> LaTeX m

Output

Macro for math articles. Like m_article, but importing amsmath package.