Skip to content

Conversation

@cderv
Copy link
Collaborator

@cderv cderv commented Oct 27, 2025

Quarto LaTeX engine can automatically install missing packages and fonts because it parsed log file.

The parsing happens through known error using regex patterns.

Quarto leverages TinyTeX mainly, and experience in tinytex R package.

On tinytex side, we did export the patterns through regex.json file so we can sync between project. We haven't done so.

It is like the tinitex CLI tool that is supposed to have all the clever latexmk logic in one tool instead of duplicating in here and in tinytex.

First step is using the regex.json. This PR adds a workflow file to check daily for new entries, and open an issue for us to look at so that we don't miss any update in the future

@cderv cderv changed the title Fix detection of LuaTeX-ja missing file errors Add automatic detection update of new patterns in tinytex Oct 27, 2025
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Oct 27, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

cderv added 2 commits October 27, 2025 16:45
Gracefully exit with warning if TinyTeX daily release download fails.
This prevents workflow failure when daily release hasn't been published yet.
- Add first_run detection in compare step
- Create GitHub Actions summary on first run with:
  - TinyTeX commit SHA and link to R/latex.R
  - Pattern and category counts
  - Baseline establishment message
- Update Exit if unchanged to not exit on first run
- Add cache update step for pattern changes
- Update Save cache condition to include first_run
- Update Summary step to handle all three cases
@cderv
Copy link
Collaborator Author

cderv commented Oct 27, 2025

Test on my fork and leads to create issue like this
image

On first run, there will be no diff and an initialization leading to some summary step
image

@cderv cderv marked this pull request as ready for review October 27, 2025 16:33
@cderv cderv force-pushed the tinytex/check-pattern-daily branch from d1a349c to d6a0895 Compare October 27, 2025 16:59
@cderv cderv merged commit a5e40c3 into main Oct 27, 2025
51 checks passed
@cderv cderv deleted the tinytex/check-pattern-daily branch October 27, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants