• CTAN update: numodel-bundle

    From CTAN Announcements@petra@ctan.org to ctan-ann on Tue Sep 8 21:02:17 2026
    From Newsgroup: comp.text.tex

    Paul Zuurbier submitted an update to the

    numodel-bundle

    package.

    Version: 0.9.1 2026-09-07
    License: lppl1.3c

    Summary description: Numerical physics models with Forrester diagrams and auto-sized plots

    Announcement text: ------------------------------------------------------------------------

    This release is numodel-plot only; numodel is version-synced with no
    functional changes. It is also the first published release carrying
    the 0.9.0 work: that archive was prepared but never published, so the
    changes below reach users here.

    Highlights
    ----------
    * A scaled axis now presents its power of ten as an SI prefix on the
    unit: "s (km)" instead of "s (10^3 m)", "E (TJ/kg)" instead of
    "E (10^6 MJ/kg)", "m (Mg)" instead of "m (10^3 kg)". The fold
    respects unit powers (10^6 m^2 -> km^2) and existing prefixes, and
    falls back to the power-of-ten form whenever no engineering prefix
    fits. The new setup key scale-format=exponent restores the previous
    presentation globally.
    * New setup key halo-color. The default halo-color=auto matches the
    tick-label halo to the surrounding background at every \drawplot:
    a tcolorbox's colback, a beamer colour theme's bg, the pagecolor
    package's \thepagecolor, and white otherwise. Any other value pins
    the halo to that colour.

    Fixed
    -----
    * \qtyPlain produced wrong output on siunitx 3.5.0 and newer. siunitx
    renamed the variable holding the current prefix-mode from
    \l_siunitx_quantity_prefix_mode_tl -- a documented public variable
    through v3.4.14 -- to \l_siunitx_quantity_prefix_mode_str, leaving
    the old name declared but never assigned. Reading the stale name
    resolved an empty mode and fell through to plain \qty, so every
    scaled axis label silently gained a spurious "1": "t (1 ks)" instead
    of "t (ks)". Nothing errored. The mode is now read from whichever
    variable carries a value, so both siunitx generations work.

    Under the hood
    --------------
    * \qtyPlain no longer patches siunitx internals. It is now built
    entirely on siunitx's documented code-level interface, following the
    investigation behind siunitx issue #864, which established that the
    whole prefix-mode pipeline is already public. Axis labels are
    unchanged; three edge cases the old override got wrong are fixed
    (a mantissa of 1 behind a sign or comparator is no longer dropped,
    a number carrying an uncertainty is passed through untouched, and
    all three prefix-mode values now behave the same whether \qtyPlain
    is called directly or reached through \edef).
    * \pzuIfUnitNonEngTF derives its verdict from the net power of ten
    siunitx extracts from the unit instead of from a hard-coded list of
    prefix control sequences. Two units change verdict, both towards
    scaling: \centi\metre\per\centi\second (the prefixes cancel) and
    \centi\metre\cubed (cm^3 is 10^-6 m^3).

    Packaging
    ---------
    * The bundle now ships one README and one CHANGELOG, both at the
    bundle root, on CTAN maintainer request. The former per-module
    README/CHANGELOG pairs have been merged into them; module-specific
    entries live under a per-module heading within each release.

    Requirements
    ------------
    * siunitx is now requested with a date of 2023-11-06 (v3.3.8). An
    older siunitx produces a LaTeX warning rather than an error, but
    scaled axis labels may come out subtly wrong.

    See CHANGELOG.md for the full list.

    ------------------------------------------------------------------------

    The packagerCOs Catalogue entry can be viewed at
    https://ctan.org/pkg/numodel-bundle

    The packagerCOs files themselves can be inspected at
    https://mirrors.ctan.org/macros/luatex/latex/numodel-bundle/

    ------------------------------------------------------------------------

    Thanks for the upload.

    For the CTAN Team
    Petra R|+be-Pugliese

    ------------------------------------------------------------------------

    CTAN is run entirely by volunteers and supported by TeX user groups.
    Please join a user group or donate to one, see https://ctan.org/lugs
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From CTAN Announcements@manfred@ctan.org to ctan-ann on Fri Oct 9 21:07:14 2026
    From Newsgroup: comp.text.tex

    Paul Zuurbier submitted an update to the

    numodel-bundle

    package.

    Version: 0.10.0
    License: lppl1.3c

    Summary description: Numerical physics models with Forrester diagrams and auto-sized plots

    Announcement text: --------------------------------------------------------------------------------
    numodel-bundle v0.10.0

    Write a numerical model once, and get everything a physics lesson
    needs from it.

    numodel lets you declare a model in LaTeX -- its variables with start
    values and siunitx units, its rules, a stop condition -- and does the
    rest. It computes the model (Euler integration in Lua) and typesets it
    in every form teaching material uses: the text model in the notation
    pupils know from their syllabus (English, or Dutch Coachtaal, with
    further languages as drop-in files), the Forrester stock-and-flow
    diagram, laid out automatically from the rules, and graphs of the
    computed results. Because all of these come from one declaration, the
    text, the diagram and the graphs can never disagree; change a start
    value and every view follows.

    The graphs come from numodel-plot, which is also usable on its own.
    It sizes each plot to a whole number of tick intervals, writes axis
    labels in the IEEE or ISO 80000-1 style, folds the power of ten of a
    scaled axis into an SI prefix -- "s (km)" rather than "s (10^3 m)" --
    and places the labels sensibly for one-, two- and four-quadrant plots.

    New: numodel-coach -- from the text straight into Coach -------------------------------------------------------
    In many Dutch secondary schools, pupils build and run their models in
    CMA Coach 7. Until now that meant retyping the model from the
    textbook, where the formatted table of a PDF does not copy. The new
    module numodel-coach writes the model as a Coach 7 activity:

    \coachmodel{free-fall} % writes free-fall.cma7

    Pupils open the file and find exactly the model of the text, ready to
    run. This is more than a copy of the rules:

    * The rules are translated into Coachtaal with care for where the two
    languages differ. Coach gives unary minus and powers the same
    priority, so -x^2 is written -(x^2); comparisons joined by AND/OR get
    the parentheses Coachtaal requires; numbers get a decimal comma and
    function arguments the semicolon separator; names Coachtaal does not
    allow bare are put in brackets. Whatever cannot be translated
    exactly is reported as a warning, never silently changed.
    * Units become comments on the initial values, and every variable
    appears in Coach's variable list with its unit -- and with the axis
    range of its graph in the document, so a new graph in Coach looks
    like the one in the text.
    * An instruction text is written once in LaTeX, typeset in the PDF
    where you want it and shown in Coach's instruction window as well:
    paragraphs, lists, emphasis, and inline formulas with sub- and
    superscripts all carry over.
    * The iteration count follows numodel's maxiter setting; the file can
    also be embedded in the PDF.

    CMA does not document the .cma7 format. numodel-coach was developed
    against files saved by Coach 7.0 and tested with Coach 7 on
    Chromebooks; reports from other Coach versions are welcome.

    numodel
    -------
    * A documented Lua interface opens the model to other tools:
    numodel.get_model returns the complete model (variables, start
    values, units, rules in order, stop condition, axis ranges), and
    numodel.plaintext renders it as plain text in Coachtaal or the
    English notation. numodel-coach is its first user.
    * Fixed: \diagrammodel failed when the unit of a y-variable is a
    robust command with an optional argument, such as the unit macros of
    physunits.

    numodel-plot
    ------------
    * scale-format=input: a scaled axis can now keep its unit exactly as
    written and put the factor in front of it ("10^3 km"), next to the
    existing prefix ("Mm") and exponent ("10^6 m") forms.
    * Ready for siunitx 3.6, which removes an internal that the SI-prefix
    axis labels relied on; verified against siunitx 3.3.8, 3.4, 3.5 and
    the 3.6 development branch.

    Documentation
    -------------
    * The README is now written for users of the packages; each of the
    three packages has its own manual.

    See CHANGELOG.md for the full list. --------------------------------------------------------------------------------

    This package is located at
    https://mirrors.ctan.org/macros/luatex/latex/numodel-bundle

    More information is at
    https://ctan.org/pkg/numodel-bundle


    --------------------------------------------------------------------------------

    Thanks for the upload.

    For the CTAN Team
    Manfred Lotz


    CTAN is run entirely by volunteers and supported by TeX user groups.
    Please join a user group or donate to one, see https://ctan.org/lugs .
    --- Synchronet 3.22a-Linux NewsLink 1.2