| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Render.Latex
Description
Render analyzed input into LaTeX table.
Synopsis
- latexFromColSpans :: Int -> [[TokensWithColSpan]] -> Text
- latexInline :: [(MyTok, Text)] -> Text
- latexPackages :: [Text]
- subAndSuperscripts :: Text -> Text
Documentation
latexFromColSpans :: Int -> [[TokensWithColSpan]] -> Text Source #
Given a number of table columns, and a list of lists of colspans for each table row, return raw LaTeX code.
latexInline :: [(MyTok, Text)] -> Text Source #
Format a list of tokens within a colspan.
Preprocesses then and calls formatToken for each.
latexPackages :: [Text] Source #
subAndSuperscripts :: Text -> Text Source #
Add subscripts and superscripts to variable names. "_" is subscript, and "__" is superscript. Superscripts nest their remaining content recursively.