-
-
Notifications
You must be signed in to change notification settings - Fork 230
Document types
The .doctype function defines the type of document based on different use cases. Each document type has its own set of features and limitations.
The layout of a plain document is linear, with no page breaks, and the content flows continuously.
Thanks to its responsiveness, it's the optimal choice for websites and knowledge management documents, resembling the style of tools such as Notion or Obsidian.
The document is composed of three main elements:
- A central content area;
- Two side margin areas.
Page margin content is displayed in a fixed position, not affected by scrolling.
Footnotes are rather sidenotes in this document type, as they are displayed in the right margin area, next to their first reference.
When in mobile view, footnotes are displayed at the end of the page.
When exporting to PDF, the output artifact contains a single page that fits the whole content.
A paged document is a traditional document with content divided into pages.
Page breaks happen either explicitly or implicitly in case of long content.
Page margin content is displayed on each page in a dedicated area.
Footnotes are displayed at the bottom of the first reference's page, in a dedicated area.
A slides document is designed for presentations, with a layout optimized for displaying content one slide at a time.
Unless specified by the layout theme, slides center their content horizontally.
Line breaks are only triggered explicitly.
Page margin content is displayed on each slide, but not in a dedicated area. It could potentially overlap actual content.
Footnotes are displayed at the bottom of the first reference's slide, but not in a dedicated area.
When exporting to PDF:
- Each slide is a page of the output artifact;
- Each fragment state is displayed on a separate page.
- Figures
- Image size
- TeX formulae
- Table caption
- Code caption
- Decorative headings
- Alerts (quote types)
- Quotation source
- Cross-references
- Page breaks
- Text symbols (text replacement)
- Emojis
- Document metadata
- Theme
- CSS
- Fonts
- Page format
- Page margin content
- Page counter
- Persistent headings
- Automatic page break
- Numbering
- Paragraph style
- Caption position
- Table of contents
- Bibliography
- Footnotes
- Stacks (row, column, grid)
- Container
- Align
- Float
- Figure
- Clip
- Box
- Collapsible
- Landscape
- Whitespace
- Variables
- Optionality
- Math
- Conditional statements
- Loops
- Let
- Destructuring
- String manipulation
- Table manipulation: sorting, computing, and more
- Table generation
- String
- Number
- Markdown content
- Boolean
- None
- Enumeration entry
- Iterable
- Dictionary
- Range
- Lambda
- Size(s)
- Color
- Dynamic
- Paper: abstract, definitions, theorems, and more