You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 onset par(leading: linestretch * 0.65em)
mathfont
: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 (Improving the Typst base template to match equivalent PDF options quarto-dev/quarto-cli#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.
The text was updated successfully, but these errors were encountered: