typst / typst/typst

Add environment variable for `pdf-standard` value

Open
#7,472 5 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cli feature request
Dominant language
Rust
Stars
56.1k
Forks
1.7k
Avg merge
3d 10h
Merged PRs (30d)
22

Description

Description

A few arguments of the compile subcommand already also exist as environment variables.

It seems, the --pdf-standard flag might also make a good candidate as it is a flag that you might want to have set properly for many documents (especially in the future). I don't exactly know where we draw the line at making environment variables but I think it is suitable.

Use Case

It would enable us to set a standard once as to not forget when invoking the compile command.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the compile subcommand, its existing environment-variable handling, and the --pdf-standard flag. Check how similar compile arguments are exposed and add coverage for the new environment variable; done means the configured standard is used when invoking compile without the flag.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.