Skip to content

[Typst] How to configure the font-size for tables (ideally inherit the global fontsize setting) #12759

Answered by gordonwoodhull
chumbert2 asked this question in Q&A
Discussion options

You must be logged in to vote

We don't currently have any way (that I know) to pass down fonts and font sizes from Quarto to table packages running in Quarto. This could be addressed by implementing brand.yml for Great Tables.

For now, you'll have to set the corresponding options for GT:

---
title: "[Typst] How to set the font-size in the PDF table?"
format:
  typst:
    keep-typ: true
    papersize: a4
    mainfont: Roboto
    fontsize: 10pt
engine: jupyter
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt

```{python}
import polars as pl
data = [
     {
	"c1": "Lorem ipsum dolor sit amet",
  	"c2": "consectetur adipiscing elit",
  	"c3": "sed do eiusmod tempor incididunt"…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chumbert2
Comment options

Answer selected by chumbert2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
tables Issues with Tables including the gt integration typst
2 participants