| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Drasil.Printers
Synopsis
- genHTML :: String -> Document -> Doc
- genericCSS :: Doc
- data SingleLine
- sentenceDoc :: SingleLine -> Spec -> Doc
- exprDoc :: SingleLine -> Expr -> Doc
- codeExprDoc :: SingleLine -> Expr -> Doc
- symbolDoc :: Symbol -> Doc
- unitDoc :: SingleLine -> USymb -> Doc
- showHasSymbImpl :: HasSymbol x => x -> String
- genTeX :: Document -> ShowTableOfContents -> PrintingInformation -> Doc
- genJupyterLessonPlan :: Document -> Doc ann
- genJupyterSRS :: Document -> Doc ann
- genMDBook :: Project -> [FileLayout]
- data PrintingInformation
- piSys :: ChunkDB -> Map UID Reference -> Stage -> Notation -> PrintingInformation
- data Notation
HTML
Printer
CSS
genericCSS :: Doc Source #
Generic CSS used for stylizing the LayoutObj language when outputted in
HTML format.
Markdown
Printer
Section Printers
Plain
Types
Functions
sentenceDoc :: SingleLine -> Spec -> Doc Source #
Create sentences for a document in Doc format.
codeExprDoc :: SingleLine -> Expr -> Doc Source #
Create code expressions for a document in Doc format.
assumes someone has already makde the code expression into an expression
showHasSymbImpl :: HasSymbol x => x -> String Source #
Helper for printing a HasSymbol in Implementation Stage
TeX
genTeX :: Document -> ShowTableOfContents -> PrintingInformation -> Doc Source #
Generates a LaTeX document.
Jupyter
genJupyterLessonPlan :: Document -> Doc ann Source #
Build the general Jupyter Notebook document.
genJupyterSRS :: Document -> Doc ann Source #
Build an SRS document in JSON format.
Markdown
genMDBook :: Project -> [FileLayout] Source #
Generate a mdBook SRS
Printing Information and Options
data PrintingInformation Source #
Printing information contains a database, a stage, and a printing configuration.
piSys :: ChunkDB -> Map UID Reference -> Stage -> Notation -> PrintingInformation Source #
Builds a document's printing information based on the system information.
Notation can be scientific or for engineering.
Constructors
| Scientific | |
| Engineering |