| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Drasil.Printers
Synopsis
- makeDocument :: PrintingInformation -> Document -> Document
- makeProject :: PrintingInformation -> Document -> Project
- genHTML :: String -> Document -> Doc
- genericCSS :: Doc
- data SingleLine
- showHasSymbImpl :: HasSymbol x => x -> String
- oneLineSentenceDoc :: PrintingInformation -> Sentence -> Doc
- oneLineExprDoc :: PrintingInformation -> Expr -> Doc
- oneLineCodeExprDoc :: PrintingInformation -> CodeExpr -> Doc
- oneLineUnitDoc :: USymb -> Doc
- genTeX :: Document -> ShowTableOfContents -> PrintingInformation -> Doc
- genJupyterLessonPlan :: Document -> Doc ann
- genJupyterSRS :: Document -> Doc ann
- genMDBook :: Project -> [FileLayout]
- data PrintingInformation
- piSys :: ChunkDB -> Stage -> Notation -> PrintingInformation
- data Notation
Document
makeDocument :: PrintingInformation -> Document -> Document Source #
makeProject :: PrintingInformation -> Document -> Project Source #
HTML
Printer
CSS
genericCSS :: Doc Source #
Generic CSS used for stylizing the LayoutObj language when outputted in
HTML format.
Plain
Types
Functions
showHasSymbImpl :: HasSymbol x => x -> String Source #
Helper for printing a HasSymbol in Implementation Stage
Renderers
oneLineSentenceDoc :: PrintingInformation -> Sentence -> Doc Source #
Creates a OneLine Implementation-stage sentenceDoc.
oneLineExprDoc :: PrintingInformation -> Expr -> Doc Source #
Creates a OneLine Implementation-stage exprDoc.
oneLineCodeExprDoc :: PrintingInformation -> CodeExpr -> Doc Source #
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 -> 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 |