Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/command/render/latexmk/texlive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,16 @@ export async function findPackages(
// Special cases for known packages where tlmgr file search doesn't work
// https://github.com/rstudio/tinytex/blob/33cbe601ff671fae47c594250de1d22bbf293b27/R/latex.R#L470
const knownPackages = ["fandol", "latex-lab", "colorprofiles"];
// Special cases where tlmgr --file search returns no results for a .sty file
// because the TeX Live package name differs from what the file search returns.
// tagpdf-base.sty is in the tagpdf-base package in TeX Live 2026.
const knownFileMappings: Record<string, string> = {
"tagpdf-base.sty": "tagpdf-base",
};
if (knownPackages.includes(searchTerm)) {
results.push(searchTerm);
} else if (knownFileMappings[searchTerm]) {
results.push(knownFileMappings[searchTerm]);
} else {
const result = await tlmgrCommand(
"search",
Expand Down
Loading