| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Drasil.Printing.LayoutObj
Description
Defines types similar to content types in Language.Drasil but better suited for printing.
Synopsis
- data Document = Document Title Author [LayoutObj]
- data Project = Project Title Author RefMap [File]
- data File = File Title Filename Depth [LayoutObj]
- type Author = Spec
- type Contents = Spec
- type Items = [LayoutObj]
- type Tags = [String]
- type Depth = Int
- type Width = Float
- type Height = Float
- type Filepath = String
- type Filename = String
- type Caption = Spec
- type RefMap = Map String Filename
- data LayoutObj
- = Table Tags [[Spec]] Label Bool Caption
- | Header Depth Title Label
- | Paragraph Contents
- | EqnBlock Contents
- | Definition DType [(String, [LayoutObj])] Label
- | List ListType
- | Figure Label (Maybe Caption) Filepath MaxWidthPercent
- | Graph [(Spec, Spec)] (Maybe Width) (Maybe Height) Caption Label
- | CodeBlock Contents
- | HDiv Tags [LayoutObj] Label
- | Cell [LayoutObj]
- | Bib BibRef
Documentation
A document must contain a title, author, and contents (as LayoutObjs).
A Project must contain a title, author, RefMap, and Files.
A File must contain a title, filename, depth, and contents (as LayoutObjs).
Constructors
| Table Tags [[Spec]] Label Bool Caption | Holds all information needed for a table. |
| Header Depth Title Label | Holds all information needed for a header. |
| Paragraph Contents | Paragraph. |
| EqnBlock Contents | Equation block. |
| Definition DType [(String, [LayoutObj])] Label | Definition. Holds the type, contents, and a label. |
| List ListType | List. |
| Figure Label (Maybe Caption) Filepath MaxWidthPercent | Holds all information needed for a figure. |
| Graph [(Spec, Spec)] (Maybe Width) (Maybe Height) Caption Label | Holds all information needed for a graph. |
| CodeBlock Contents | Code block. |
| HDiv Tags [LayoutObj] Label | Holds tags, more contents, and a label. |
| Cell [LayoutObj] | |
| Bib BibRef | Bibliography section. |