| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Ltml.ToLaTeX.Format
Description
This module provides helper functions to process LSD data types
Synopsis
- class Stylable a where
- applyTextStyle :: a -> PreLaTeX -> PreLaTeX
- emptyIdentifierFormat :: IdentifierFormat
- emptyAppendixFormat :: AppendixElementFormat
- emptyHeadingFormat :: forall (b :: Bool). HeadingFormat b
- emptySectionFormat :: SectionFormat
- formatHeading :: forall (b :: Bool). FormatString (HeadingPlaceholderAtom b) -> PreLaTeX -> PreLaTeX -> PreLaTeX
- formatKey :: KeyFormat -> PreLaTeX -> PreLaTeX
- staticDocumentFormat :: PreLaTeX
- getIdentifier :: IdentifierFormat -> Int -> Int -> Text
- getEnumStyle :: IdentifierFormat -> KeyFormat -> Text
- formatHeaderFooterItem :: PreLaTeX -> PreLaTeX -> PreLaTeX -> HeaderFooterItemFormat -> PreLaTeX
Documentation
class Stylable a where Source #
helper class to be able to apply typography, regardless of whether we know which one. this also solves the problem that the style in TextTree is polymorphic.
Methods
applyTextStyle :: a -> PreLaTeX -> PreLaTeX Source #
Instances
| Stylable FontSize Source # | |
Defined in Language.Ltml.ToLaTeX.Format | |
| Stylable FontStyle Source # | |
Defined in Language.Ltml.ToLaTeX.Format | |
| Stylable TextAlignment Source # | |
Defined in Language.Ltml.ToLaTeX.Format Methods applyTextStyle :: TextAlignment -> PreLaTeX -> PreLaTeX Source # | |
| Stylable Typography Source # | |
Defined in Language.Ltml.ToLaTeX.Format Methods applyTextStyle :: Typography -> PreLaTeX -> PreLaTeX Source # | |
| Stylable Void Source # | |
Defined in Language.Ltml.ToLaTeX.Format | |
emptyHeadingFormat :: forall (b :: Bool). HeadingFormat b Source #
formatHeading :: forall (b :: Bool). FormatString (HeadingPlaceholderAtom b) -> PreLaTeX -> PreLaTeX -> PreLaTeX Source #
staticDocumentFormat :: PreLaTeX Source #
needed to create a document. imports relevant packages. since some imports and global setup is processed by the state, we pass this through the state and only use it after processing the ast.
getIdentifier :: IdentifierFormat -> Int -> Int -> Text Source #
getEnumStyle :: IdentifierFormat -> KeyFormat -> Text Source #
formatHeaderFooterItem :: PreLaTeX -> PreLaTeX -> PreLaTeX -> HeaderFooterItemFormat -> PreLaTeX Source #