reanimate-0.5.0.1: Animation library based on SVGs.

CopyrightWritten by David Himmelstrup
LicenseUnlicense
Maintainerlemmih@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Reanimate.LaTeX

Description

 
Synopsis

Documentation

latex :: Text -> Tree Source #

Invoke latex and import the result as an SVG object. SVG objects are cached to improve performance.

Example:

latex "$e^{i\\pi}+1=0$"

latexWithHeaders :: [Text] -> Text -> Tree Source #

Invoke latex with extra script headers.

latexChunks :: [Text] -> [Tree] Source #

Invoke latex and separate results.

xelatex :: Text -> Tree Source #

Invoke xelatex and import the result as an SVG object. SVG objects are cached to improve performance. Xelatex has support for non-western scripts.

xelatexWithHeaders :: [Text] -> Text -> Tree Source #

Invoke xelatex with extra script headers.

ctex :: Text -> Tree Source #

Invoke xelatex with "usepackage[UTF8]{ctex}" and import the result as an SVG object. SVG objects are cached to improve performance. Xelatex has support for non-western scripts.

Example:

ctex "中文"

ctexWithHeaders :: [Text] -> Text -> Tree Source #

Invoke xelatex with extra script headers + ctex headers.

latexAlign :: Text -> Tree Source #

Invoke latex and import the result as an SVG object. SVG objects are cached to improve performance. This wraps the TeX code in an 'align*' context.

Example:

latexAlign "R = \\frac{{\\Delta x}}{{kA}}"