A Capability-Trigger Progression Model for Diagram-as-Code Pedagogy: Mermaid to D2 to TikZ for Document Engineering Volume 5

Document Engineering Volume 5 in the elixresearches program teaches Vietnamese 14+ learners to author diagrams as text using Mermaid, D2, and TikZ. The pedagogical question that determines its architecture is not which tool to teach first but when a learner should switch tools and when they should deepen the current one. This paper synthesises the official documentation of the three tools, the visualization-theory canon (Larkin and Simon, Tufte, Bertin, Cheng, Munzner, Healy), the cognitive-load and multimedia-learning literature (Sweller, PaasRenkl-Sweller, Mayer), the desirable-difficulty literature (Bjork and Bjork), and the cognitive-dimensions-of-notations literature (Green-Petre, Petre, Stenning-Oberlander) into a capabilitytrigger progression model. The model is operational: for any (learner, target diagram) pair it specifies which tool to use, which expressive limit will eventually trigger escalation, and which next tool resolves that limit. Mermaid covers procedural and behavioural diagrams at low syntactic cost; D2 covers structural and architectural diagrams with declarative layout; TikZ covers everything PGF can express. The substantive contribution is the transition-criteria table linking trigger to next tool to rationale, three worked transitions, and four learner-route maps (schoolproject, science-fair, capstone, math-olympiad). The progression is capability-trigger-based, not chronological; the operational question for the teacher is whether the learner has hit a recurring expressive limit, not whether a curriculum unit has been completed.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-05-12
DOI
https://doi.org/10.5281/zenodo.20131600
Primary Topic
Visual and Cognitive Learning Processes
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

A Capability-Trigger Progression Model for Diagram-as-Code Pedagogy: Mermaid to D2 to TikZ for Document Engineering Volume 5

That Le
Zenodo (CERN European Organization for Nuclear Research)
Visual and Cognitive Learning Processes
preprint

A Capability-Trigger Progression Model for Diagram-as-Code Pedagogy: Mermaid to D2 to TikZ for Document Engineering Volume 5

That Le
preprint en

Abstract

Document Engineering Volume 5 in the elixresearches program teaches Vietnamese 14+ learners to author diagrams as text using Mermaid, D2, and TikZ. The pedagogical question that determines its architecture is not which tool to teach first but when a learner should switch tools and when they should deepen the current one. This paper synthesises the official documentation of the three tools, the visualization-theory canon (Larkin and Simon, Tufte, Bertin, Cheng, Munzner, Healy), the cognitive-load and multimedia-learning literature (Sweller, PaasRenkl-Sweller, Mayer), the desirable-difficulty literature (Bjork and Bjork), and the cognitive-dimensions-of-notations literature (Green-Petre, Petre, Stenning-Oberlander) into a capabilitytrigger progression model. The model is operational: for any (learner, target diagram) pair it specifies which tool to use, which expressive limit will eventually trigger escalation, and which next tool resolves that limit. Mermaid covers procedural and behavioural diagrams at low syntactic cost; D2 covers structural and architectural diagrams with declarative layout; TikZ covers everything PGF can express. The substantive contribution is the transition-criteria table linking trigger to next tool to rationale, three worked transitions, and four learner-route maps (schoolproject, science-fair, capstone, math-olympiad). The progression is capability-trigger-based, not chronological; the operational question for the teacher is whether the learner has hit a recurring expressive limit, not whether a curriculum unit has been completed.

Zenodo (CERN European Organization for Nuclear Research)
ElSohly Laboratories (United States) (US)
Quality Education
Visual and Cognitive Learning Processes
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.