diff --git a/news/changelog-1.9.md b/news/changelog-1.9.md index c195f23f04..d6f0dd09f8 100644 --- a/news/changelog-1.9.md +++ b/news/changelog-1.9.md @@ -82,6 +82,7 @@ All changes included in 1.9: - New `shorthands` variable for Babel language shortcuts control. - New `pdf-trailer-id` support for reproducible PDF builds. - New `cancel` package support for `\cancel` command in math. +- ([#14017](https://github.com/quarto-dev/quarto-cli/issues/14017)]): `tColorOptions()` in .tex file will now always have options in alphabetical order. Previously, they were in random order leading to a different .tex intermediates for identical .qmd. ### `revealjs` diff --git a/src/resources/filters/common/latex.lua b/src/resources/filters/common/latex.lua index ab8b17ee96..6224edb8bb 100644 --- a/src/resources/filters/common/latex.lua +++ b/src/resources/filters/common/latex.lua @@ -6,7 +6,7 @@ function tColorOptions(options) local optionStr = "" local prepend = false - for k, v in pairs(options) do + for k, v in spairs(options) do if (prepend) then optionStr = optionStr .. ', ' end diff --git a/tests/docs/smoke-all/2026/02/11/issue-14017.qmd b/tests/docs/smoke-all/2026/02/11/issue-14017.qmd new file mode 100644 index 0000000000..6f0e0eb0e9 --- /dev/null +++ b/tests/docs/smoke-all/2026/02/11/issue-14017.qmd @@ -0,0 +1,18 @@ +--- +title: "Issue 14017" +code-block-bg: true +format: + pdf: + keep-tex: true +_quarto: + tests: + pdf: + noErrors: default + ensureLatexFileRegexMatches: + - ['boxrule=0pt, breakable, enhanced, frame hidden, interior hidden, sharp corners'] + - [] +--- + +```r +1 + 1 +```