Skip to content

QUARTO_PDF_STANDARD#14241

Merged
gordonwoodhull merged 1 commit intomainfrom
feature/pdf-standard-env
Mar 20, 2026
Merged

QUARTO_PDF_STANDARD#14241
gordonwoodhull merged 1 commit intomainfrom
feature/pdf-standard-env

Conversation

@gordonwoodhull
Copy link
Contributor

@gordonwoodhull gordonwoodhull commented Mar 20, 2026

Not important to get this into the release, but I'd like to get it out of the way.

With the environment variable, we can run that experiment again in the future.

Summary

  • Add QUARTO_PDF_STANDARD environment variable as a fallback when no pdf-standard is set in document YAML
  • Comma-separated values, e.g. QUARTO_PDF_STANDARD=ua-2 or QUARTO_PDF_STANDARD=a-2b,ua-1
  • Applied in LaTeX, Typst, and PDF format resolution (output-tex.ts, output-typst.ts, format-pdf.ts)
  • Extracted from experiment: enable QUARTO_PDF_STANDARD and run latex/typst tests #14097

Test plan

  • Smoke test verifies env var produces \DocumentMetadata with correct pdfstandard in LaTeX output
  • Test fails without the feature code, passes with it
  • Typechecks clean

When no pdf-standard is set in document YAML, fall back to the
QUARTO_PDF_STANDARD environment variable (comma-separated, e.g.
"ua-1" or "a-2b,ua-1"). This applies to LaTeX, Typst, and PDF
format resolution.

Includes a smoke test that verifies the env var produces the
expected \DocumentMetadata in LaTeX output.
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Mar 20, 2026

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

Status Scan Engine 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.

@gordonwoodhull gordonwoodhull merged commit f6e1e92 into main Mar 20, 2026
51 checks passed
@gordonwoodhull gordonwoodhull deleted the feature/pdf-standard-env branch March 20, 2026 01:32
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.

2 participants