Open christopherkenny opened 3 weeks ago
I'd certainly consider a PR with changes like this. (It would need careful testing, though.)
Note that author-meta
and title-meta
are just used in formats that require special treatment for these fields (e.g. formats where these can't contain formatting); we don't use them for typst.
Proposed Improvement:
The default template for Typst currently supports many fewer base features than the PDF template. This, of course makes sense, as Typst is much newer. Many features included in PDF templates could be added to the Typst base template without substantial amounts of code. Below, I've shortened a list from a discussion in Quarto:
Title & Author
thanks
: To the call to#title
, we could add:Fonts
linestretch
: 1 = single spaced, 2 = double spaced, and so onmathfont
:codefont
:linkcolor
: Each color setting below require converting content to string or running a.replace("\\#", "#")
onlinkcolor
due to pandoc's escapingfilecolor
,urlcolor
: these have to be handled together as far as I knowcitecolor
:toccolor
Metadata
keywords
title-meta
author-meta
I'm happy to PR in any of these, if you are interested.
Alternatives:
This started as a downstream discussion for Quarto (https://github.com/quarto-dev/quarto-cli/discussions/10223), but it was suggested to look here for editing template-specific pieces.
These could also be in custom templates, of course. However, at least some set of these options are probably good to have in the default template.