HaTeX-3.9.1.0: The Haskell LaTeX library.

Safe HaskellNone

Text.LaTeX.Base.Types

Description

Some types shared along the library.

Synopsis

Documentation

type ClassName = StringSource

Class names are represented by a String.

type PackageName = StringSource

Package names are represented by a String.

type PageStyle = StringSource

Page styles are represented by a String.

data Label Source

Type of labels.

createLabel :: String -> LabelSource

Create a label from its name.

labelName :: Label -> StringSource

Get the name of a label.

data Pos Source

Vertical position.

Constructors

Bottom 
Center 
Top 

Instances

data HPos Source

Horizontal position.

Constructors

HLeft 
HCenter 
HRight 

Instances

data TableSpec Source

Type of table specifications.

Constructors

LeftColumn

Left-justified column.

CenterColumn

Centered column.

RightColumn

Right-justified column.

ParColumnTop LaTeX

Paragraph column with text vertically aligned at the top.

ParColumnMid LaTeX

Paragraph column with text vertically aligned at the middle. Requires array package.

ParColumnBot LaTeX

Paragraph column with text vertically aligned at the bottom. Requires array package.

VerticalLine

Vertical line between two columns.

DVerticalLine

Double vertical line between two columns.

data Measure Source

Measure units defined in LaTeX. Use CustomMeasure to use commands like textwidth. For instance:

 rule Nothing (CustomMeasure linewidth) (Pt 2)

This will create a black box (see rule) as wide as the text and two points tall.

Constructors

Pt Double

A point is 1/72.27 inch, that means about 0.0138 inch or 0.3515 mm.

Mm Double

Millimeter.

Cm Double

Centimeter.

In Double

Inch.

Ex Double

The height of an "x" in the current font.

Em Double

The width of an "M" in the current font.

CustomMeasure LaTeX

You can introduce a LaTeX expression as a measure.