Safe Haskell | None |
---|
AMSMath support. Also numeric instances (Num
, Fractional
and Floating
) for LaTeX
and LaTeXT
.
- amsmath :: PackageName
- math :: LaTeXC l => l -> l
- mathDisplay :: LaTeXC l => l -> l
- equation :: LaTeXC l => l -> l
- equation_ :: LaTeXC l => l -> l
- align :: LaTeXC l => [l] -> l
- align_ :: LaTeXC l => [l] -> l
- eqref :: LaTeXC l => l -> l
- nonumber :: LaTeXC l => l
- autoParens :: LaTeXC l => l -> l
- autoSquareBrackets :: LaTeXC l => l -> l
- autoBraces :: LaTeXC l => l -> l
- autoAngleBrackets :: LaTeXC l => l -> l
- autoBrackets :: LaTeXC l => LaTeX -> LaTeX -> l -> l
- langle :: LaTeXC l => l
- rangle :: LaTeXC l => l
- lfloor :: LaTeXC l => l
- rfloor :: LaTeXC l => l
- lceil :: LaTeXC l => l
- rceil :: LaTeXC l => l
- dblPipe :: LaTeXC l => l
- (^:) :: LaTeXC l => l -> l -> l
- (!:) :: LaTeXC l => l -> l -> l
- tsin :: LaTeXC l => l
- arcsin :: LaTeXC l => l
- tcos :: LaTeXC l => l
- arccos :: LaTeXC l => l
- ttan :: LaTeXC l => l
- arctan :: LaTeXC l => l
- cot :: LaTeXC l => l
- arccot :: LaTeXC l => l
- tsinh :: LaTeXC l => l
- tcosh :: LaTeXC l => l
- ttanh :: LaTeXC l => l
- coth :: LaTeXC l => l
- sec :: LaTeXC l => l
- csc :: LaTeXC l => l
- texp :: LaTeXC l => l
- tlog :: LaTeXC l => l
- ln :: LaTeXC l => l
- tsqrt :: LaTeXC l => Maybe l -> l -> l
- tsum :: LaTeXC l => l
- sumFromTo :: LaTeXC l => l -> l -> l
- prod :: LaTeXC l => l
- prodFromTo :: LaTeXC l => l -> l -> l
- integral :: LaTeXC l => l
- integralFromTo :: LaTeXC l => l -> l -> l
- pm :: LaTeXC l => l -> l -> l
- mp :: LaTeXC l => l -> l -> l
- cdot :: LaTeXC l => l -> l -> l
- times :: LaTeXC l => l -> l -> l
- div_ :: LaTeXC l => l -> l -> l
- frac :: LaTeXC l => l -> l -> l
- (*:) :: LaTeXC l => l -> l -> l
- star :: LaTeXC l => l -> l -> l
- circ :: LaTeXC l => l -> l -> l
- bullet :: LaTeXC l => l -> l -> l
- (=:) :: LaTeXC l => l -> l -> l
- (/=:) :: LaTeXC l => l -> l -> l
- (<:) :: LaTeXC l => l -> l -> l
- (<=:) :: LaTeXC l => l -> l -> l
- (>:) :: LaTeXC l => l -> l -> l
- (>=:) :: LaTeXC l => l -> l -> l
- ll :: LaTeXC l => l -> l -> l
- gg :: LaTeXC l => l -> l -> l
- equiv :: LaTeXC l => l -> l -> l
- propto :: LaTeXC l => l -> l -> l
- in_ :: LaTeXC l => l -> l -> l
- ni :: LaTeXC l => l -> l -> l
- notin :: LaTeXC l => l -> l -> l
- subset :: LaTeXC l => l -> l -> l
- supset :: LaTeXC l => l -> l -> l
- cap :: LaTeXC l => l -> l -> l
- cup :: LaTeXC l => l -> l -> l
- setminus :: LaTeXC l => l -> l -> l
- vee :: LaTeXC l => l -> l -> l
- wedge :: LaTeXC l => l -> l -> l
- oplus :: LaTeXC l => l -> l -> l
- ominus :: LaTeXC l => l -> l -> l
- otimes :: LaTeXC l => l -> l -> l
- oslash :: LaTeXC l => l -> l -> l
- odot :: LaTeXC l => l -> l -> l
- alpha :: LaTeXC l => l
- beta :: LaTeXC l => l
- gamma :: LaTeXC l => l
- gammau :: LaTeXC l => l
- delta :: LaTeXC l => l
- deltau :: LaTeXC l => l
- epsilon :: LaTeXC l => l
- varepsilon :: LaTeXC l => l
- zeta :: LaTeXC l => l
- eta :: LaTeXC l => l
- theta :: LaTeXC l => l
- vartheta :: LaTeXC l => l
- thetau :: LaTeXC l => l
- iota :: LaTeXC l => l
- kappa :: LaTeXC l => l
- lambda :: LaTeXC l => l
- lambdau :: LaTeXC l => l
- mu :: LaTeXC l => l
- nu :: LaTeXC l => l
- xi :: LaTeXC l => l
- xiu :: LaTeXC l => l
- pi_ :: LaTeXC l => l
- varpi :: LaTeXC l => l
- piu :: LaTeXC l => l
- rho :: LaTeXC l => l
- varrho :: LaTeXC l => l
- sigma :: LaTeXC l => l
- varsigma :: LaTeXC l => l
- sigmau :: LaTeXC l => l
- tau :: LaTeXC l => l
- upsilon :: LaTeXC l => l
- upsilonu :: LaTeXC l => l
- phi :: LaTeXC l => l
- varphi :: LaTeXC l => l
- phiu :: LaTeXC l => l
- chi :: LaTeXC l => l
- psi :: LaTeXC l => l
- psiu :: LaTeXC l => l
- omega :: LaTeXC l => l
- omegau :: LaTeXC l => l
- to :: LaTeXC l => l
- mapsto :: LaTeXC l => l
- forall :: LaTeXC l => l
- exists :: LaTeXC l => l
- dagger :: LaTeXC l => l
- ddagger :: LaTeXC l => l
- infty :: LaTeXC l => l
- mathdefault :: LaTeXC l => l -> l
- mathbf :: LaTeXC l => l -> l
- mathrm :: LaTeXC l => l -> l
- mathcal :: LaTeXC l => l -> l
- mathsf :: LaTeXC l => l -> l
- mathtt :: LaTeXC l => l -> l
- mathit :: LaTeXC l => l -> l
- pmatrix :: (Texy a, LaTeXC l) => Maybe HPos -> Matrix a -> l
- bmatrix :: (Texy a, LaTeXC l) => Maybe HPos -> Matrix a -> l
- b2matrix :: (Texy a, LaTeXC l) => Maybe HPos -> Matrix a -> l
- vmatrix :: (Texy a, LaTeXC l) => Maybe HPos -> Matrix a -> l
- v2matrix :: (Texy a, LaTeXC l) => Maybe HPos -> Matrix a -> l
AMSMath package
AMSMath package. Example:
usepackage [] amsmath
Math Environments
mathDisplay :: LaTeXC l => l -> lSource
Displayed mathematical expressions, i.e. in a seperate line / block.
equation :: LaTeXC l => l -> lSource
A numbered mathematical equation (or otherwise math expression).
Referencing
eqref :: LaTeXC l => l -> lSource
A reference to a numbered equation. Use with a label
defined in the
scope of the equation refered to.
nonumber :: LaTeXC l => lSource
Prevent an equation from being numbered, where the environment would by default do that.
Symbols and utilities
The unicode approximations do, of course, not reliably represent how LaTeX renders these symbols.
Brackets / delimiters
autoParens :: LaTeXC l => l -> lSource
Surround a LaTeX math expression by parentheses whose height
automatically matches the expression's. Translates to \left(...\right)
.
autoSquareBrackets :: LaTeXC l => l -> lSource
Like autoParens
, but with square brackets. Equivalent to
.
autoBrackets
"[""]"
autoBraces :: LaTeXC l => l -> lSource
Like autoParens
, but with curly brackets.
autoAngleBrackets :: LaTeXC l => l -> lSource
Like autoParens
, but with angle brackets 〈 ... 〉. Equivalent to
.
autoBrackets
langle
rangle
autoBrackets :: LaTeXC l => LaTeX -> LaTeX -> l -> lSource
Superscript and subscript
Function symbols
Some symbols are preceded with t to be distinguished from
predefined Haskell entities (like sin
and cos
).
tsqrt :: LaTeXC l => Maybe l -> l -> lSource
Root notation. Use tsqrt (Just n) x
for the n
th root of x
.
When Nothing
is supplied, the function will output a square root.
Sum/Integral symbols
Sigma sumation symbol. Use sumFromTo
instead if you want to
specify the limits of the sum.
:: LaTeXC l | |
=> l | Expression below the sigma. |
-> l | Expression above the sigma. |
-> l |
Sigma sumation symbol with limits.
Pi product symbol. Use prodFromTo
if you want to specify the
limits of the product.
:: LaTeXC l | |
=> l | Expression below the pi. |
-> l | Expression above the pi. |
-> l |
Pi product symbol with limits.
integral :: LaTeXC l => lSource
Integral symbol. Use integralFromTo
if you want to specify
the limits of the integral.
:: LaTeXC l | |
=> l | Lower limit of integration. |
-> l | Upper limit of integration. |
-> l |
Integral symbol with limits of integration.
Operator symbols
Arithmetic
Comparison
Sets
Misc operators
Greek alphabet
Functions of greek alphabet symbols.
Uppercase versions are suffixed with u
.
Variants are prefixed with var
.
The function pi_
is ended by an underscore symbol to
distinguish it from the pi
Prelude function.
varepsilon :: LaTeXC l => lSource
symbol.
Other symbols
Fonts
mathdefault :: LaTeXC l => l -> lSource
Default math symbol font.
mathit :: LaTeXC l => l -> lSource
Italic math. Uses the same glyphs as mathdefault
, but with spacings
intended for multi-character symbols rather than juxtaposition of single-character symbols.
Matrices
pmatrix :: (Texy a, LaTeXC l) => Maybe HPos -> Matrix a -> lSource
LaTeX rendering of a matrix using pmatrix
and a custom function to render cells.
Optional argument sets the alignment of the cells. Default (providing Nothing
)
is centered.
( M )
bmatrix :: (Texy a, LaTeXC l) => Maybe HPos -> Matrix a -> lSource
LaTeX rendering of a matrix using bmatrix
and a custom function to render cells.
Optional argument sets the alignment of the cells. Default (providing Nothing
)
is centered.
[ M ]
b2matrix :: (Texy a, LaTeXC l) => Maybe HPos -> Matrix a -> lSource
LaTeX rendering of a matrix using Bmatrix
and a custom function to render cells.
Optional argument sets the alignment of the cells. Default (providing Nothing
)
is centered.
{ M }