HaTeX-2.0.0: Library for write LaTeX code.

Text.LaTeX.Commands

Contents

Description

Here, principal LaTeX m commands and environments.

Synopsis

Document's Properties

documentclass :: Monad m => [ClassOption m] -> Class m -> LaTeX mSource

In header, determines the document class.

usepackage :: Monad m => [PackageOption m] -> Package m -> LaTeX mSource

In header, import a package.

pagestyle :: Monad m => Style m -> LaTeX mSource

In header, determines page style.

thispagestyle :: Monad m => Style m -> LaTeX mSource

A local version of pagestyle, to use for any page.

author :: Monad m => Name m -> LaTeX mSource

In header, especifies the document's author.

title :: Monad m => Title m -> LaTeX mSource

In header, especifies the document's title.

Document Environment

Text Layout

lnbk :: Monad m => LaTeX mSource

Starts a new line.

pfbk :: Monad m => LaTeX mSource

Starts a new paragraph.

newpage :: Monad m => LaTeX mSource

Starts a new page.

Importing

Hyphenation

Pre-made

today :: Monad m => LaTeX mSource

Writes current date.

tex :: Monad m => LaTeX mSource

TeX nice word.

latex :: Monad m => LaTeX mSource

LaTeX m nice word.

latexe :: Monad m => LaTeX mSource

LaTeX m2e nice word.

Sections

sectiontab :: Monad m => Title m -> Title m -> LaTeX mSource

part :: Monad m => Title m -> LaTeX mSource

part_ :: Monad m => Title m -> LaTeX mSource

parttab :: Monad m => Title m -> Title m -> LaTeX mSource

chaptertab :: Monad m => Title m -> Title m -> LaTeX mSource

appendix :: Monad m => LaTeX mSource

Generate the appendix.

maketitle :: Monad m => LaTeX mSource

Generate the title page.

tableofcontents :: Monad m => LaTeX mSource

Generate the table of contents.

Cross references

label :: Monad m => Marker m -> LaTeX mSource

ref :: Monad m => Marker m -> LaTeX mSource

Footnotes

footnote :: Monad m => Text m -> LaTeX mSource

Adds a given text to the page's footnote.

Emphasized

underline :: Monad m => Text m -> LaTeX mSource

Underlines a text.

emph :: Monad m => Text m -> LaTeX mSource

Emphasizes a text.

Environments

itemize :: Monad m => LaTeX m -> LaTeX mSource

Environment for create simple lists. See item.

item :: Monad m => [ItemOption m] -> LaTeX mSource

Create a list item. Optional argument is used to change its icon.

Example:

 item [\"-\"] \"Item content.\"

flushleft :: Monad m => LaTeX m -> LaTeX mSource

Left alignment.

flushright :: Monad m => LaTeX m -> LaTeX mSource

Right alignment.

center :: Monad m => LaTeX m -> LaTeX mSource

Center alignment.

quote :: Monad m => LaTeX m -> LaTeX mSource

Quote from a text.

quotation :: Monad m => LaTeX m -> LaTeX mSource

Like quote, but indenting the first line of each paragraph.

verse :: Monad m => LaTeX m -> LaTeX mSource

abstract :: Monad m => LaTeX m -> LaTeX mSource

Use abstract to create an abstract, containing the argument's text.

verbatim :: Monad m => LaTeX m -> LaTeX mSource

A text within the verbatim environment has monospaced font and no commands or environments will be executed.

verbatim_ :: Monad m => LaTeX m -> LaTeX mSource

Like verbatim, but it makes visible the spaces.

verb :: Monad m => LaTeX m -> LaTeX mSource

An inline version of verbatim.

verb_ :: Monad m => LaTeX m -> LaTeX mSource

An inline version of verbatim_.

Floating Bodies

caption :: Monad m => Text m -> LaTeX mSource

Customizing

newcommand :: Monad m => Name m -> [Int] -> LaTeX m -> LaTeX mSource

renewcommand :: Monad m => Name m -> [Int] -> LaTeX m -> LaTeX mSource

providecommand :: Monad m => Name m -> [Int] -> LaTeX m -> LaTeX mSource

newenvironment :: Monad m => Name m -> [Int] -> LaTeX m -> LaTeX m -> LaTeX mSource

Fonts

Format

textrm :: Monad m => LaTeX m -> LaTeX mSource

Roman font

texttt :: Monad m => LaTeX m -> LaTeX mSource

Monospaced font

textmd :: Monad m => LaTeX m -> LaTeX mSource

Medium font

textup :: Monad m => LaTeX m -> LaTeX mSource

Upright font

textsl :: Monad m => LaTeX m -> LaTeX mSource

Slanted font

textsf :: Monad m => LaTeX m -> LaTeX mSource

Sans Serif font

textbf :: Monad m => LaTeX m -> LaTeX mSource

Bold font

textit :: Monad m => LaTeX m -> LaTeX mSource

Italic font

textsc :: Monad m => LaTeX m -> LaTeX mSource

Small Caps font

textnormal :: Monad m => LaTeX m -> LaTeX mSource

Default font

Size

Differents fonts size are sorted from lowest to highest.

tiny :: Monad m => LaTeX m -> LaTeX mSource

small :: Monad m => LaTeX m -> LaTeX mSource

large :: Monad m => LaTeX m -> LaTeX mSource

large2 :: Monad m => LaTeX m -> LaTeX mSource

large3 :: Monad m => LaTeX m -> LaTeX mSource

huge :: Monad m => LaTeX m -> LaTeX mSource

huge2 :: Monad m => LaTeX m -> LaTeX mSource

Spacing

hspace :: Monad m => LaTeX m -> LaTeX mSource

Creates an horizontal spaces with length specified by the argument. See Text.LaTeX.Arguments to create a correct argument.

hspace_ :: Monad m => LaTeX m -> LaTeX mSource

Same as hspace, but it ignores start or end of lines.

vspace :: Monad m => LaTeX m -> LaTeX mSource

Vertical version of hspace. Useful to separate two paragraphs.

vspace_ :: Monad m => LaTeX m -> LaTeX mSource

Same as vspace, but it ignores start or end of pages.

skip :: Monad m => LaTeX m -> LaTeX mSource

Like vspace, but for lines of the same paragraph. bigskip and smallskip use skip with a predefined argument.

Boxes

mbox :: Monad m => LaTeX m -> LaTeX mSource

fbox :: Monad m => LaTeX m -> LaTeX mSource

parbox :: Monad m => [Char] -> Width m -> LaTeX m -> LaTeX mSource

minipage :: Monad m => [Char] -> Width m -> LaTeX m -> LaTeX mSource

makebox :: Monad m => [Width m] -> [Char] -> LaTeX m -> LaTeX mSource

framebox :: Monad m => [Width m] -> [Char] -> LaTeX m -> LaTeX mSource

raisebox :: Monad m => Lift m -> [Extend m] -> [Extend m] -> LaTeX m -> LaTeX mSource

Tabular

type Tabular m = LaTeX mSource

csep :: Monad m => LaTeX m -> LaTeX mSource

tabular :: Monad m => [LaTeX m] -> LaTeX m -> LaTeX m -> Tabular mSource

The tabular environment can be used to creates tables.

  • First argument specifies vertical position: "c" (center), "t" (top) and "b" (bottom). Example: ["t"]
  • Second argument specifies table's format: "l" (left-aligned text column), "r" (right-aligned text column), "c" (center text column), cjustified (justified text column) and "|" (vertical line). Example: "|l|r|"
  • Third argument refers to table's content: hline inserts an horizontal line, cline inserts a partial horizontal line, (&) separates columns and (//) separates rows.

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

(//) :: Monad m => LaTeX m -> LaTeX m -> LaTeX mSource

hline :: Monad m => LaTeX mSource

Insert an horizontal line in a tabular.

clineSource

Arguments

:: Monad m 
=> Int

Start column

-> Int

End column

-> LaTeX m 

Insert a partial horizontal line in a tabular.

multicolumn :: Monad m => Int -> LaTeX m -> LaTeX m -> LaTeX mSource

type LxMatrix m = [[LaTeX m]]Source

matrixTab :: Monad m => [LaTeX m] -> LaTeX m -> LxMatrix m -> Tabular mSource

A matrix version of tabular. First and second arguments have the same meaning. The generated tabular has the same rows and columns as the matrix.

Others

string :: Monad m => String -> LaTeX mSource

Like fromString, but taking care with reserved characters.

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

Delimite between quotes a text.

ldots :: Monad m => LaTeX mSource

Write a ellipsis.