-
Notifications
You must be signed in to change notification settings - Fork 12
Add Typst support with feature parity to HTML and LaTeX PDF #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
(cherry picked from commit d33823d)
(cherry picked from commit 6161b0e)
Also adds support for brands group + fill parameter (cherry picked from commit 9fa2535) # Conflicts: # example.qmd
Also adds support for tiny to Huge size specification for typst (cherry picked from commit 09fa6c1 where change regarding specific support mention in documentation has been removed) # Conflicts: # example.qmd Co-authored-by: Christophe Dervieux <cderv@posit.co>
Renamed for consistency w/ PR for color icons in HTML and LaTeX PDF formats (cherry picked from commit 6f978fd where usage of color and specific format option has been removed from example.qmd. This is because there is not yet feature parity on this for format and we don't want to advertise yet until support) # Conflicts: # example.qmd Co-authored-by: Christophe Dervieux <cderv@posit.co>
we need a cross-format way to handle this. And `color` args was not one of them until now (#23)
- type solid is the default in this extension, which is not for typst package - size can be one of the known CSS class id which are converted to `em`
|
This is great. Thank you for picking up the PR and running with it! |
|
So @gordonwoodhull explained me why this works without having the font path. This is because we do use fontawesome in Quarto CLI for callout, and for that we do already provide the FA v6 fonts in Typst font path. So there is no need to handle font directly in this extension. However, there is a topic of using this extension with callouts as two different version of the typst package will be loaded... 🤔 |
closes #31
closes #36
This builds on #36 and work by @elipousson
This PR
emconversion in typst. Values from the CSS are usedsolidtype. Typst package default to regular so this is changed.This PR seems to be ok and produce this PDF
example-typst.pdf
However, I am puzzled because we're missing font handling.
Also, while doing
quarto renderI don't see warning. but addingkeep-typ: trueand callingquarto typst compiledoes show expected messageSo we need a way to provide new font in Typst font path from an extension. Probably related to
quarto.doc.use_typst_package()quarto-dev/quarto-cli#13518So maybe Typst support needs to wait for 1.9 ?