Repository navigation
Modernize: TeX Live environment, calkit LaTeX package, and a table - #17
Merged
Merged
Conversation
…ge, and add a table of the fits
petebachant
commented
Nov 17, 2026
petebachant
commented
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From Claude: This brings the example up to date with how a typical Calkit project is set up now.
Changes
texenvironment is nowkind: texlivewithrelease: 2025pinned, replacing the Docker image.dockeris dropped fromrequirements. The lock is.calkit/env-locks/tex.json; the packages the paper needed (amsmath,booktabs,sectsty,siunitx,tools) were added to it on the first build, sopackagesstays empty incalkit.yaml.\usepackage{calkit}and reads its outputs by their path in the project:\ckvalue[.3f]{results/summary.json}{...}for the R² values,\ckfigure{figures/x-vs-y.png}, and\cktable{tables/fits.tex}.figs-to-paper(map-paths) andresults-to-tex(json-to-latex) stages are gone, along withpaper/results.tex. Thebuild-paperstage declares no inputs: compiling the pipeline makes it depend on the results, figure, table, and bibliography the paper includes.analyzealso writestables/fits.tex, a booktabs table of each fit's coefficients and R², which the paper includes as Table 1.pyenvironment is now a uv project (kind: uv), made withcalkit new uv-env:pyproject.tomlwith the same dependencies, locked byuv.lock, and Python pinned to 3.13 in.python-version.requirements.txtand its uv-venv locks are gone.uv.lockand.python-versionare now inputs to the Python stages. The dependencies resolved to their latest versions, e.g., matplotlib 3.10.7 to 3.11.2, so the figure's PNG changed bytes but not content; the data and table are unchanged.analyzewrites the R² values toresults/summary.jsonat full precision, and the paper rounds them with\ckvalue[.3f], so the PDF shows the same 0.985 and 0.919.pyhaswith: [tex], and amatplotlibrcin the project setstext.usetex: trueand a serif font. Calkit added Matplotlib's usetex packages (cm-super,dvipng,geometry,type1cm,underscore) totex's lock on the first run.matplotlibrcis an input toanalyze, and the Python stages now depend ontex's lock..devcontainerand.vscodeare updated withcalkit update devcontainerandcalkit update vscode-config.I built it end to end with Calkit from calkit/calkit's main branch plus unreleased work:
calkit runpasses, the PDF shows the values, figure, and table,calkit check questionspasses, and the pipeline is up to date.Before merging
calkit-pythonfrom PyPI, 0.52.0, which has TeX Live environments but notwith(Compose a TeX Live environment into another with 'with', for Matplotlib's usetex and fonts calkit#2096, merged after it). I left the workflow as is:calkit update github-actionspins the action to the version of Calkit running it, which here was a dev build. It's worth rerunning that once the release is out.calkitpackage and TeX Live, and in the paper, the sentence pointing to Table 1 and the table's caption.dvc.lockstill has entries for stages no longer in the pipeline (plot-voltage,figs-to-paper,results-to-tex, and four_check_envstages), asmaindid, socalkit check stage-runsreports them. I didn't editdvc.lockby hand; Ignore stages removed from the pipeline in 'calkit check stage-runs' calkit#2101 drops them on the next run.Once this merges, calkit/calkit's
examples/basicsubmodule can point at the merge commit.🤖 Generated with Claude Code