Forester 5.0 › Simplifications to the source language [OYOT]
- October 20, 2024
- Jon Sterling, Kento Okura
Removal of imports within subtrees [OYOU]
- October 20, 2024
- Jon Sterling, Kento Okura
It is no longer permitted to have an \import declaration within a subtree: these can occur only at the top level of a file and therefore have file-level scope.
Removing transclusion overrides [011T]
- October 20, 2024
- Jon Sterling, Kento Okura
In prior versions of Forester, it was possible to override the title and the taxon of a transcluded tree using the fluid bindings \transclude/title and \transclude/taxon respectively. This feature is no longer supported in Forester 5.0, and existing users are encouraged to purge their use of it prior to upgrading to Forester 5.0.
In short, supporting this feature was greatly complicating the planned transition to a genuine hypermedia format; it could also be argued that it might have led to scenarios where an original author’s intentions are violated at the transclusion site.
Please note that transclusion options, such as \transclude/expanded, etc., are still supported.
Removal of autocapitalisation [OYOV]
- October 20, 2024
- Jon Sterling, Kento Okura
Titles and taxa will no longer be autocapitalised: this feature biases Forester toward specific languages and is annoyingly complex to maintain. Therefore, you must rename all your titles and taxa to be capitalised by hand. This can be done in VS Code using the following regexp: replace \\taxon\{([a-z]) with \\taxon{\U$1, etc.
Changes to fallthrough behaviour for undefined identifiers [OYOW]
- October 20, 2024
- Jon Sterling, Kento Okura
Previously, an undefined identifier like \foo would be emitted verbatim as text rather than raising a warning. The reasoning behind this was to smoothly support referring to existing commands in TeX-like environments (including KaTeX and embedded LaTeX). The trade-off was that authors would not receive warnings about what were in many cases typographical errors.
In Forester 5.0, the fallthrough behaviour of undefined identifiers is now restricted to code that is evaluated within a TeX-like environment (either KaTeX or embedded LaTeX). In all other cases, a warning will be emitted. This involves a trade-off, because the arguments to a macro like
\def\my-macro[x]{#{\int_{\x}}}
are evaluated first outside the math scope. Therefore, a call like \int{\alpha} written outside of a math scope would result in a warning. The recommended solution to this problem is to use a lazy argument, which will be evaluated in CBN. Here is an updated version of the macro that works uses a lazy argument:\def\my-macro[~x]{#{\int_{\x{}}}}The design is admittedly imperfect, but I believe this is an improvement as it allows us to catch more typos. I expect that the handling of undefined identifier fallthrough will continue to evolve.