Skip to content

Commit 13484ed

Browse files
authored
Merge pull request #13311 from quarto-dev/tinytex/handle-ngerman
2 parents 9b1c7bb + 8614135 commit 13484ed

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

news/changelog-1.8.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ All changes included in 1.8:
6262

6363
- ([#12775](https://github.com/quarto-dev/quarto-cli/issues/12775)): Convert Quarto-native layouts (divs with `layout` syntax) to Beamer columns, equivalent to using the Pandoc-native syntax of div with `columns` and `column` classes.
6464

65+
### `pdf`
66+
67+
- ([#12732](https://github.com/quarto-dev/quarto-cli/issues/12732)): Correctly detect missing definition files in multiline babel error for search package to auto-install.
68+
6569
### `hugo-md`
6670

6771
- ([#12676](https://github.com/quarto-dev/quarto-cli/issues/12676)): Add support for rendering layout panels that are not floats.

src/command/render/latexmk/parse-error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ const packageMatchers = [
270270
{ regex: /.* Loading '([^']+)' aborted!.*/g },
271271
{ regex: /.*! LaTeX Error: File `([^']+)' not found.*/g },
272272
{ regex: /.* file ['`]?([^' ]+)'? not found.*/g },
273-
{ regex: /.*the language definition file ([^ ]+) .*/g },
273+
{ regex: /.*the language definition file ([^\s]*).*/g },
274274
{ regex: /.* \\(file ([^)]+)\\): cannot open .*/g },
275275
{ regex: /.*file `([^']+)' .*is missing.*/g },
276276
{ regex: /.*! CTeX fontset `([^']+)' is unavailable.*/g },

tests/unit/latexmk/parse-error.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ unitTest("Detect missing files with `findMissingFontsAndPackages`", async () =>
3535
assertFound("! LaTeX Error: File `framed.sty' not found.", "framed.sty");
3636
assertFound("/usr/local/bin/mktexpk: line 123: mf: command not found", "mf");
3737
assertFound("or the language definition file ngerman.ldf was not found", "ngerman.ldf");
38+
assertFound(`Package babel Error: Unknown option 'ngerman'. Either you misspelled it
39+
(babel) or the language definition file ngerman.ldf
40+
(babel) was not found.
41+
(babel) There is a locale ini file for this language.
42+
(babel) If it’s the main language, try adding \`provide=*'
43+
(babel) to the babel package options.`, "ngerman.ldf")
3844
assertFound("!pdfTeX error: pdflatex (file 8r.enc): cannot open encoding file for reading", "8r.enc");
3945
assertFound("! CTeX fontset `fandol' is unavailable in current mode", "fandol");
4046
assertFound('Package widetext error: Install the flushend package which is a part of sttools', "flushend.sty");

0 commit comments

Comments
 (0)