Bottom-up hierarchy via transclusion [007L]

You may be used to writing \LaTeX documents, where you work from the top down: you create some section headings, put some text under those headings, make some deeper section headings, put more text, etc. Forests work in the opposite way, from the bottom up: you start by writing independent, atomic notes/trees and then only later start to (sparingly) assemble these into a hierarchy in order to reify the emerging structure.

Forester’s bottom-up approach to section hierarchy works via something called transclusion. The idea is that at any time, you can include (“transclude”) the full contents of another tree into the current tree as a subsection by adding the following code:

\transclude{address}

This is kind of like \LaTeX ’s \input command, but much better behaved: for instance, section levels are computed on the fly depending on the position in the hierarchy. This entire tutorial is cobbled together by transcluding many smaller trees, each with their own independent existence. For example, the following two sections are transcluded from an entirely different part of my forest:

One of the immediate impacts and strengths of Forester’s transclusion model is that a given tree has no canonical “geographic” location in the forest. One tree can appear as a child of many other trees, which allows the same content to be incorporated into different textual and intellectual narratives.

Context

Build your own Stacks Project in 10 minutes [0052]

Backlinks

Forester markup: mainmatter [007O]

The Forester markup language [007N]

Related

Build your own Stacks Project in 10 minutes [0052]

Definition. Forests and trees of evergreen notes [tfmt-000R]

Atomicity of scientific notes [tfmt-0007]

Designing tools for scientific thought [tfmt-0001]