Great question! Comparing Org mode, Markdown, and groff in terms of features as typesetting systems involves understanding what each is designed for, their capabilities, and typical use cases.
1. Org mode
- Org mode is an Emacs major mode primarily designed for outlining, note-taking, task management, and literate programming.
- It also supports exporting documents to many formats: HTML, LaTeX (PDF), Markdown, Beamer presentations, slideshows, and others.
- Features include:
- Hierarchical document structure with headings, subheadings
- TODO/task management, scheduling, deadlines
- Tables, source code blocks with syntax highlighting and execution (literate programming)
- Export versatility with complex customization (LaTeX preprocessing)
- Inline images, links, footnotes, citations, mathematical notation (via LaTeX), and more.
Org mode is more than just a typesetting system—it's a comprehensive writing/planning environment—and its exporting capabilities to LaTeX allow complex typesetting with relatively simple markup.
2. Markdown
- Markdown is a lightweight markup language designed for simple, readable plaintext formatting.
- It supports basic text formatting: headings, emphasis, lists, code blocks, links, images, blockquotes, tables (in some variants).
- Extended variants like GitHub Flavored Markdown add features like task lists, tables, footnotes, and more.
- Markdown is simple and easy to write but limited for complex documents requiring detailed typography or advanced layouts.
- It can be converted to HTML, PDF (through intermediate converters), and other formats, but needs external tools for complex typesetting.
3. groff (GNU troff)
- groff is a traditional Unix text processing system designed for high-quality typesetting.
- It is a direct descendant of the classical troff/nroff suite used for man pages, books, articles.
- Features:
- Very fine control over typography: layout, kerning, fonts, macros
- Complex document structures with macros/packages (e.g., for man pages, technical reports)
- Support for equations, tables, footnotes
- Output to PostScript, PDF, and other printer formats via device drivers.
- groff requires learning its macro system and commands—it is low-level but very powerful for detailed typographic control.
Summary and comparison
| Feature / System | Markdown | Org mode | groff (troff) |
|---|
| Target user & use case | Simple docs, web | Notes, literate programming, exporting | Professional typesetting, man pages |
| Typographic control | Minimal | Moderate (via export to LaTeX, HTML) | Very high, low-level fine control |
| Document structure | Simple (headings) | Rich hierarchical structure | Flexible via macros |
| Tables | Basic (in some variants) | Full support, including calculation | Complex support |
| Links and images | Yes | Yes | Limited |
| Mathematical formulas | Limited (needs extension) | Yes (LaTeX math export) | Yes (eqn preprocessor) |
| Export formats | HTML, PDF (via tools) | Many (HTML, LaTeX, Markdown, PDF) | PostScript, PDF, ASCII, DVI |
| Learning curve | Very easy | Moderate (Emacs familiarity helps) | High (macro language, manual effort) |
| Extensibility | Limited | Very high (Emacs Lisp extensions) | High (custom macros and preprocessors) |
| Task management | No | Yes | No |
Which one has more features as a typesetting system?
- If your definition of features emphasizes fine typographic control and professional-level typesetting, groff is the most capable and powerful system here, but it has a steeper learning curve.
- If you want a flexible system that combines note-taking and document creation with export to multiple formats, including good LaTeX/typographic output, Org mode offers many features, especially leveraging LaTeX export.
- Markdown is the simplest and most limited formatter, good for basic documents and web publishing, but not advanced typesetting.
In brief:
- groff > in low-level typesetting power and control.
- Org mode > in integrated workflow, document structuring, and export flexibility.
- Markdown > in simplicity and ease of use but limited features.
If your goal is advanced typesetting (like books, articles needing precise typesetting), groff or Org mode exporting to LaTeX are better options. For simple formatting and quick documents, Markdown suffices.
Let me know if you'd like a focus on a particular use case!