HaTeX-3.2.0.1: LaTeX code writer.

Safe HaskellNone

Text.LaTeX.Base.Commands.Monad

Contents

Description

LaTeX standard commands and environments.

For contributors: This module was automatically generated by HaTeX-meta. So, please, don't make any change here directly, because this is intended to be generated automatically from Text.LaTeX.Base.Commands module via HaTeX-meta, and therefore, changes must to be done in these places.

Synopsis

Basic functions

raw :: Monad m => Text -> LaTeXT_ mSource

Insert a raw piece of Text. This functions doesn't care about LaTeX reserved characters, it insert the text just as it is received.

between :: Monad m => LaTeXT_ m -> LaTeXT_ m -> LaTeXT_ m -> LaTeXT_ mSource

Calling between c l1 l2 puts c between l1 and l2 and appends them.

Preamble commands

title :: Monad m => LaTeXT_ m -> LaTeXT_ mSource

Set the title of your document.

author :: Monad m => LaTeXT_ m -> LaTeXT_ mSource

Set the author(s) of the document.

date :: Monad m => LaTeXT_ m -> LaTeXT_ mSource

Set a date for your document.

institute :: Monad m => Maybe (LaTeXT_ m) -> LaTeXT_ m -> LaTeXT_ mSource

Set either an institute or an organization for the document.

documentclass :: Monad m => [ClassOption] -> ClassName -> LaTeXT_ mSource

Set the document class. Needed in all documents.

usepackage :: Monad m => [LaTeXT_ m] -> PackageName -> LaTeXT_ mSource

Import a package. First argument is a list of options for the package named in the second argument.

Classes

Document classes

Class options

landscape :: ClassOptionSource

Changes the layout of the document to print in landscape mode

openright :: ClassOptionSource

Makes chapters begin either only on right hand pages

openany :: ClassOptionSource

Makes chapters begin on the next page available.

fleqn :: ClassOptionSource

Typesets displayed formulae left-aligned instead of centred.

leqno :: ClassOptionSource

Places the numbering of formulae on the left hand side instead of the right.

Paper sizes

data PaperType Source

LaTeX available paper types.

Constructors

A0 
A1 
A2 
A3 
A4 
A5 
A6 
B0 
B1 
B2 
B3 
B4 
B5 
B6 
Letter 
Executive 
Legal 

Page styles

markboth :: Monad m => LaTeXT_ m -> LaTeXT_ m -> LaTeXT_ mSource

Used in conjunction with myheadings for setting both the left and the right heading.

markright :: Monad m => LaTeXT_ m -> LaTeXT_ mSource

Used in conjunction with myheadings for setting the right heading.

Body commands

maketitle :: Monad m => LaTeXT_ mSource

Generate the title. It normally contains the title name of your document, the author(s) and date.

Document structure

tableofcontents :: Monad m => LaTeXT_ mSource

Create the table of contents, automatically generated from your sections, subsections, and other related stuff.

Sections

section :: Monad m => LaTeXT_ m -> LaTeXT_ mSource

Start a new section with a given title.

Logos & symbols

latex :: Monad m => LaTeXT_ mSource

The LaTeX logo.

ldots :: Monad m => LaTeXT_ mSource

Horizontal dots.

vdots :: Monad m => LaTeXT_ mSource

Vertical dots.

ddots :: Monad m => LaTeXT_ mSource

Diagonal dots.

HaTeX specific

hatex :: Monad m => LaTeXT_ mSource

Print the HaTeX logo.

hatex3 :: Monad m => LaTeXT_ mSource

Print the HaTeX 3 logo.

hatex_meta :: Monad m => LaTeXT_ mSource

Print the HaTeX-meta logo.

hatex_version :: Monad m => LaTeXT_ mSource

Print the HaTeX logo, beside the complete version number.

Document layout

par :: Monad m => LaTeXT_ mSource

Start a new paragraph

newline :: Monad m => LaTeXT_ mSource

Start a new line.

lnbk :: Monad m => LaTeXT_ mSource

Start a new line. In a tabular, it starts a new row, so use newline instead.

Document measures

Formatting text

Fonts

Sizes

Environments

minipage :: Monad m => Maybe Pos -> LaTeXT_ m -> LaTeXT_ m -> LaTeXT_ mSource

Minipage environments.

Page numbering

arabic :: Monad m => LaTeXT_ mSource

Arabic numerals.

roman :: Monad m => LaTeXT_ mSource

Lowercase roman numerals.

roman_ :: Monad m => LaTeXT_ mSource

Uppercase roman numerals.

alph :: Monad m => LaTeXT_ mSource

Lowercase letters.

alph_ :: Monad m => LaTeXT_ mSource

Uppercase letters.

Boxes

rule :: Monad m => Maybe Measure -> Measure -> Measure -> LaTeXT_ mSource

Produce a simple black box.

Cross references

Tables

tabular :: Monad m => Maybe Pos -> [TableSpec] -> LaTeXT_ m -> LaTeXT_ mSource

The tabular environment can be used to typeset tables with optional horizontal and vertical lines.

(&) :: Monad m => LaTeXT_ m -> LaTeXT_ m -> LaTeXT_ mSource

hline :: Monad m => LaTeXT_ mSource

Horizontal line.

cline :: Monad m => Int -> Int -> LaTeXT_ mSource

cline i j writes a partial horizontal line beginning in column i and ending in column j.

Others

qts :: Monad m => LaTeXT_ m -> LaTeXT_ mSource

Quotation marks.