Repository navigation
Conversation
What changed: - add project-relative biblatex resource loading, numeric citations, notes, sorting, and bibliography rendering - route biblatex commands through a dedicated compiler module What was run: - CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-biblatex cargo test --manifest-path crates/compiler/Cargo.toml --test biblatex -- --nocapture: 7 passed Next step: - commit focused coverage and regenerated support inventories Lane-Owner: daniel-parent (mac-m5pro-dq222) Implementation-Agent: codex gpt-5.6-luna (max) Commit-Executor: codex (this session); trailers added by daniel-parent Lane-Owner: daniel-parent (mac-m5pro-dq222)
What changed: - add coverage for citations, notes, textcite, nocite, sorting, undefined keys, and headings - regenerate compiler and macOS supported-LaTeX inventories and user docs What was run: - CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-biblatex cargo test --manifest-path crates/compiler/Cargo.toml --test biblatex -- --nocapture: test result: ok. 7 passed; 0 failed - sh crates/compiler/scripts/render_supported_latex.sh: completed Next step: - run the final full compiler test suite Lane-Owner: daniel-parent (mac-m5pro-dq222) Implementation-Agent: codex gpt-5.6-luna (max) Commit-Executor: codex (this session); trailers added by daniel-parent Lane-Owner: daniel-parent (mac-m5pro-dq222)
|
daniel-parent independent review (subagent) Verdict: APPROVE (one non-blocking correctness gap and one integration heads-up below, worth follow-up but not reasons to hold this PR). Reviewed in a detached worktree ( 1. Dependency change
One note for the record: 2. Overlap Confirmed Real conflict risk with draft #166 ("compiler: kernel and natbib citations, bibliography labels and .bbl input," still open/draft, last pushed 2026-09-13): #166 completely restructures the same match arms — it deletes the standalone 3. Correctness vs. real biblatex
4. Isolation Full Parsed the four real-world/natbib/thebibliography fixtures that don't use biblatex ( Didn't attempt a full CLI/PDF run: 5. Minor nit (non-blocking)
|
What changed: - `\addbibresource` and `\printbibliography` move out of `P::command` into `#[inline(never)]` helpers (`add_bib_resource`, `print_bibliography`); `biblatex_cite` is `#[inline(never)]` too. - The biblatex `\citeauthor`/`\citeyear` dispatch moves from the `command` arm to the top of `natbib_cite`. - Why: `P::command` is on the stack once per nested sub-parse. In debug builds every local of every arm gets its own slot, so #558's inline arms grew each nesting level by 1440 bytes. Combined with #601, 32 nested tabulars (#577's STREAM_DEPTH_LIMIT, kept at 32) overflowed the 2 MiB debug test thread in robustness::nested_sub_parses_hit_tex_grouping_capacity_instead_of_the_stack (found by the integration preview, #609). What was run: - Stack per nesting level (debug), measured with a scratch probe that prints the stack address in `parse_stream` at each depth (not committed): | construct | #601 | #601+#558 before | #601+#558 after | | tabular | 57232 | 58672 | 57360 | | footnote | 31424 | 32864 | 31552 | | colorbox | 30928 | 32368 | 31056 | | rotatebox | 32048 | 33488 | 32176 | | uline | 30336 | 31776 | 30464 | - #601 + #558 (merge), debug, CARGO_BUILD_JOBS=4: cargo test --test robustness --test biblatex biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s robustness: test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 41.06s - This branch, debug: biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s robustness: test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 40.81s natbib: test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s --lib cite: test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 331 filtered out; finished in 0.00s Next step: merge into the integration preview (#609) and rerun there. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…er arms out of the recursive command frame) What changed: - Merges agent/daniel-parent/biblatex-basic at 16dd331 (no rebase, no conflicts). What was run (this merge, CARGO_BUILD_JOBS=4): - crates/compiler, debug: cargo test --locked --test robustness --test biblatex biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s robustness: test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 42.11s - crates/render-pipeline, release: cargo test --release --locked --test math_symbols --test long_arrows long_arrows: test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s math_symbols: test result: FAILED. 15 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.05s (common_math_glyph_runs_use_semantic_unicode, the #536/#597 conflict, still open) Next step: the #536/#597 long-arrow extraction decision. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…g-arrow blocker What changed: - Failure 1 (debug stack overflow): fixed on #558 (16dd331), with the measured per-level stack before/after, and a margin warning. This preview's frame is 65136 bytes per nested tabular. - Failure 2 (#536/#597 long arrows): why the decided fix is blocked as specified. Empty-text clusters are invalid in display-list-v2, the join's pieces are in different runs, and the exact PDF route's per-glyph-id ToUnicode made real `=`/`−`/`→` extract as the arrow in a prototype. What was run: - Documentation only; the test lines are in the preceding merge commit. Next step: the long-arrow decision from daniel-parent. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
|
daniel-parent subagent (claude-opus-5): fixed the debug stack overflow that the integration preview (#609) found with #601. What changed (
|
| construct | #601 | #601+#558 before | #601+#558 after |
|---|---|---|---|
| tabular | 57232 | 58672 | 57360 |
| footnote | 31424 | 32864 | 31552 |
| colorbox | 30928 | 32368 | 31056 |
| rotatebox | 32048 | 33488 | 32176 |
| uline | 30336 | 31776 | 30464 |
Test results
Debug, CARGO_BUILD_JOBS=4.
biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
robustness: test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 41.06s
This branch:
biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
robustness: test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 40.81s
natbib: test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
--lib cite: test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 331 filtered out; finished in 0.00s
…he readiness merges What changed: - New docs/integration/repin-runbook.md covers the re-pin step by step: - the vendor copy commands for compiler, pdf, math-layout, tex-expansion, project-files and the new bibliography mirror; - the lockfile regeneration for render-pipeline and flashtex-cli (no Cargo.toml dependency line needed for bibliography); - the required default features: linebreak-skip, amsmath-sideset, compiler-text-run; - the optional features, the ignored test to restore, and the VENDORING.md rows to update; - the expected compile and test results, and the known remaining failures with owners. - docs/integration/daniel-parent-preview.md: - corrects the bibliography row: the compiler depends on ../bibliography since #558; - records the #569/#584/#599/#582/#585 conflict resolutions and the HSpace fix. What was run (scratch re-pin, vendor from c47e145, CARGO_BUILD_JOBS=4, never committed): - render-pipeline cargo test --release --no-fail-fast: all binaries ok, 466 passed, 0 failed, 3 ignored - page_para_control: test result: ok. 19 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s - flashtex-cli cargo test --release: ok. 31 passed; 0 failed / ok. 26 passed; 0 failed; 1 ignored - amsmath TOTAL 59/59 within 0.5 bp; amssymb TOTAL 38/39 within 0.5 bp; tabular TOTAL 128/128 (words 0.5 bp, rules 0.1 bp); display-placement TOTAL 47/48 within 0.5 bp Next step: - Integration lane applies the runbook after the queue merges. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…shtex-bibliography PR #558 added flashtex-bibliography to flashtex-compiler's dependencies but only updated crates/compiler/Cargo.lock. bridge and paragraph-layout path-depend on the real compiler, so their lockfiles gain the same entry; flashtex-cli and render-pipeline build against the vendored compiler snapshot and are unchanged. Verified CI-style with cargo build --release --locked for all five crates. Implementation-Agent: fable-integration-cmp Commit-Executor: fable-integration-cmp (direct; Cursor usage limit)
* compiler: implement \thepage via the \pageref late-binding path
\thepage parses to a new Inline::ThePage resolved at layout time to the
physical page being set, formatted in the \pagenumbering style in force
there (previously: unknown_command). \pagenumbering now emits a
zero-width Inline::PageNumbering marker that resets the displayed page
counter to 1 and switches the style; labels capture the styled page text
so \pageref (and cleveref page refs) match. Unknown styles fall back to
arabic, keeping the command accepted as before.
Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: muse-spark-1.3-contributor
* compiler: support \captionof{figure/table}[short]{text} outside floats
caption.sty's standalone caption form reuses \caption's exact machinery
(counter step, Figure/Table N: prefix, FigureCaption block) with the float
type given explicitly instead of read from the enclosing environment.
The [short] list-of-figures argument is consumed and ignored; unknown
types diagnose and fall back to paragraph text like \caption outside a
figure. Inventory entry plus regenerated supported-LaTeX artifacts.
Implementation-Agent: muse-spark-1.3-contributor
* compiler: parse \marginpar and set the note in the right margin (#505)
\marginpar[<left>]{<right>} now parses to a new Inline::Marginpar
carrying the one-sided {<right>} note (a present [<left>] is consumed
with a warning); the unsupported_feature diagnostic is gone in the real
compiler, incremental span-shifting/block signatures and the Core 14
layout (skips the note, no mark) updated. Stated simplification: always
the right margin (no two-sided alternation, \reversemarginpar), no
collision avoidance between close notes.
Render-pipeline placement lands separately (needs a vendor/compiler
re-pin past this commit to compile the new Inline variant) — see the
paired draft PR.
Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: daniel-muse-lead-2 (Claude Sonnet Muse supervisor; split
compiler-only files from muse/marginpar 3473c632/9c819976 for the
compiler-PR-first/pipeline-draft-second pattern)
Co-authored-by: d-q222 <[email protected]>
* compiler: add basic biblatex support
What changed:
- add project-relative biblatex resource loading, numeric citations, notes, sorting, and bibliography rendering
- route biblatex commands through a dedicated compiler module
What was run:
- CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-biblatex cargo test --manifest-path crates/compiler/Cargo.toml --test biblatex -- --nocapture: 7 passed
Next step:
- commit focused coverage and regenerated support inventories
Lane-Owner: daniel-parent (mac-m5pro-dq222)
Implementation-Agent: codex gpt-5.6-luna (max)
Commit-Executor: codex (this session); trailers added by daniel-parent
Lane-Owner: daniel-parent (mac-m5pro-dq222)
* compiler: cover biblatex support
What changed:
- add coverage for citations, notes, textcite, nocite, sorting, undefined keys, and headings
- regenerate compiler and macOS supported-LaTeX inventories and user docs
What was run:
- CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-biblatex cargo test --manifest-path crates/compiler/Cargo.toml --test biblatex -- --nocapture: test result: ok. 7 passed; 0 failed
- sh crates/compiler/scripts/render_supported_latex.sh: completed
Next step:
- run the final full compiler test suite
Lane-Owner: daniel-parent (mac-m5pro-dq222)
Implementation-Agent: codex gpt-5.6-luna (max)
Commit-Executor: codex (this session); trailers added by daniel-parent
Lane-Owner: daniel-parent (mac-m5pro-dq222)
* compiler: route eqnarray/eqnarray* through multirow displays (#520)
eqnarray/eqnarray* now parse via multirow_environment (rows on \\, 3
cells on &), numbered against the shared equation counter (* unnumbers
all, \nonumber/\notag unnumbers one row); N rows consume N+1 numbers
per ltmath.dtx. Both envs moved from the unimplemented to the
implemented inventory.
Render-pipeline layout (RowsEnv::EqnArray, right/centred/left columns,
kernel arraycolsep spacing) lands separately — see the paired draft PR;
it has no compile-time dependency on this commit (RowsEnv reads the
environment name from source text), but its end-to-end geometry test
stays #[ignore]d until a vendor/compiler re-pin lets it see real
eqnarray output instead of the vendored plain-text fallback.
Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: daniel-muse-lead-2 (Claude Sonnet Muse supervisor; split
compiler-only files from muse/eqnarray for the compiler-PR-first/
pipeline-draft-second pattern)
Co-authored-by: d-q222 <[email protected]>
* compiler: keep biblatex's parser arms out of the recursive command frame
What changed:
- `\addbibresource` and `\printbibliography` move out of `P::command` into
`#[inline(never)]` helpers (`add_bib_resource`, `print_bibliography`);
`biblatex_cite` is `#[inline(never)]` too.
- The biblatex `\citeauthor`/`\citeyear` dispatch moves from the `command`
arm to the top of `natbib_cite`.
- Why: `P::command` is on the stack once per nested sub-parse. In debug
builds every local of every arm gets its own slot, so #558's inline arms
grew each nesting level by 1440 bytes. Combined with #601, 32 nested
tabulars (#577's STREAM_DEPTH_LIMIT, kept at 32) overflowed the 2 MiB
debug test thread in
robustness::nested_sub_parses_hit_tex_grouping_capacity_instead_of_the_stack
(found by the integration preview, #609).
What was run:
- Stack per nesting level (debug), measured with a scratch probe that prints
the stack address in `parse_stream` at each depth (not committed):
| construct | #601 | #601+#558 before | #601+#558 after |
| tabular | 57232 | 58672 | 57360 |
| footnote | 31424 | 32864 | 31552 |
| colorbox | 30928 | 32368 | 31056 |
| rotatebox | 32048 | 33488 | 32176 |
| uline | 30336 | 31776 | 30464 |
- #601 + #558 (merge), debug, CARGO_BUILD_JOBS=4:
cargo test --test robustness --test biblatex
biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
robustness: test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 41.06s
- This branch, debug:
biblatex: test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
robustness: test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 40.81s
natbib: test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
--lib cite: test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 331 filtered out; finished in 0.00s
Next step: merge into the integration preview (#609) and rerun there.
Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
* integration: regenerate supported-latex artifacts on the combined head
crates/compiler/scripts/render_supported_latex.sh over the five merged
PRs: 333 -> 341 text commands, 62 -> 64 environments (eqnarray,
eqnarray*), 23 -> 24 packages (biblatex); Mac bundled copy synced.
Implementation-Agent: fable-integration-cmp
Commit-Executor: fable-integration-cmp (direct; Cursor usage limit)
* integration: regenerate bridge and paragraph-layout lockfiles for flashtex-bibliography
PR #558 added flashtex-bibliography to flashtex-compiler's dependencies
but only updated crates/compiler/Cargo.lock. bridge and paragraph-layout
path-depend on the real compiler, so their lockfiles gain the same entry;
flashtex-cli and render-pipeline build against the vendored compiler
snapshot and are unchanged. Verified CI-style with
cargo build --release --locked for all five crates.
Implementation-Agent: fable-integration-cmp
Commit-Executor: fable-integration-cmp (direct; Cursor usage limit)
---------
Co-authored-by: muse-spark-1.3-contributor <[email protected]>
Co-authored-by: d-q222 <[email protected]>
|
Landed via #645, an integration branch that merged this PR with GitHub could not auto-close this: #645 was squash-merged, which creates a new commit, so this branch's tip is not an ancestor of main even though its content is. I verified the feature is present on main before closing. Why the work was batched: these PRs all append to the same compiler/pipeline hub files ( Reopen if you find anything of yours that did not make it across. — orchestrator-astra (Commander) |
What
Basic
biblatexsupport in the compiler, in a new module,crates/compiler/src/biblatex.rs:\usepackage[style=numeric|authoryear, sorting=none|nyt, backend=biber]{biblatex},\addbibresource{file.bib}.\cite,\parencite,\textcite("Author [n]"),\autocite(same as\parencite),\citeauthor,\citeyear,\nocite{*}, with pre/post notes (\cite[p.~5]{k}gives [n, p. 5]).\printbibliography[title=…]: the heading is "References" in article and "Bibliography" in report/book, followed by numeric-style entries.style=alphabeticgives a clear "not yet supported" warning.authoryearlabels are minimal.Why
The corpus sweep found
extended/project-biblatex-biberfailing because biblatex was unimplemented.Overlap check
bib.rsand the natbib/bibliography fixtures. This PR does not editbib.rs. It adds a new module and small dispatch arms inparser.rs.GH-BIBLATEX-BASIC.Test results
cargo test --manifest-path crates/compiler/Cargo.toml, lib:test result: ok. 339 passed; 0 failedtests/biblatex.rs:test result: ok. 7 passed; 0 failedtests/supported_latex.rs:test result: ok. 8 passed; 0 failedsorting=noneandsorting=nyt.Not done
vendor/compilerre-pin before it sees this.🤖 Generated with Claude Code
https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz