LaTeX DSL for Kotlin
summary
A Kotlin-embedded LaTeX DSL is implemented as a proof of concept using type-safe builders and extension functions to model document trees, preamble handling and implicit package inclusion (e.g. verbatim/fragile frames) and producing LaTeX/Beamer output from a Document root. It works for structure, packages, lengths and units and HTML-like tags, but Kotlin’s lack of custom operator return types and assignment expressions prevents faithful math expression embedding; graphics, tables and citation support are on the roadmap.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 1:00About me
- 3:50Usability issues
- 5:08Motivation
- 6:00What is Kotlin
- 6:34Extension functions
- 7:38Lambdas
- 8:44Text tag detail
- 9:13Receiver object
- 10:16HTML
- 12:26DSL Marker
- 16:20Document structure
- 17:35Abstract class
- 18:20Element
- 19:04Preamble
- 20:02Extensions Packages
- 22:06Parent Element
- 22:42Package Extension
- 23:32Environment Class
- 27:37Multiplying
- 29:31Math
- 31:56Summary
- 33:28Roadmap
- 34:21Links
