Does it make sense: get args from terminal just ahead of time to compile PDF?

With many language or software, we can do:

python gui.py lang en_US
npm webpage.js port 8080
typst compile -f png demo.typ

So, how about?

typst compile demo.typ "A4 landscape"
typst compile demo.typ --template IEEE
typst compile demo.typ --region India

Do you mean sys.inputs? See Does typst support conditional compile? - #4 by ssotoen.

3 Likes