Release. Forester 2.1 [005O]
This is a major release that breaks compatibility of the XML format for trees; existing forests can be upgraded by copying forest.xsl and style.css into their assets directory.
- Development mode and edit button. A
--devoption has been added to theforesterexecutable; when this option is enabled, absolute paths will be embedded into tree metadata and an edit button is added to the top of the command palette. - Your own TeX preamble. There is no longer a hardcoded LaTeX preamble used for compiling graphics; instead, you can store your own
.styfiles in theassetsdirectory and import them locally in a specific tree using the new\texpackage{...}frontmatter command. - Fluid binding constructs. Macros in the Forester language have functional semantics, which means that they capture their environment at the time of definition; this differs from the stacks of dynamic scopes that are familiar from the TeX model. This release adds support for fluid bindings via
\alloc, \put, \getin order to simulate this behavior of TeX where desired; a scope can be delimited using\scope{...}. This can be useful for providing flexible configurations to macros. - Tables of contents. Tables of contents are now rendered by the default
forest.xslstylesheet. - LaTeX output. LaTeX output with full bibliography support is now available; this feature is still experimental, and may not work properly with some constructs (e.g. code blocks, etc.).
- Name resolution. The behavior of name resolution was highly erratic in the prior release, and this has been corrected by adopting the yuujinchou library. This change may break trees that depended on the prior behavior.
- Namespaces and hierarchical identifiers. Identifiers in the Forester language are now hierarchical, with components delimited by
/. Namespaces can be created using\namespace\foo{...}, outside which all exported identifiers are prefixed byfoo/. Namespaces can be opened into the current scope using\open\foo.