Skip to content

Help with custom Typst format #10690

Answered by aaronschiff
aaronschiff asked this question in Q&A
Discussion options

You must be logged in to vote

I figured out a way to do this based on studying the "Dept news" template for several days 😅. Not sure if it's the best way but it seems to work. I've put the main parts below in case it's useful to someone else.

In the .qmd file for my document, we can use divs to distinguish the left and right panels:

::: {.leftpanel}
# Heading 1

Hello world.

# Heading 2

Hello again.
:::

::: {.rightpanel}
```{r}
#| echo: false
#| message: false
#| warning: false
library(ggplot2)
ggplot(airquality, aes(Temp, Ozone)) +
  geom_point() +
  geom_smooth(method = "loess", se = FALSE)
```
:::

I created a Typst format extension for Quarto with the template. In the _extension.yml file we specify a filter (asd…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cscheid
Comment options

@aaronschiff
Comment options

@serigra
Comment options

Answer selected by aaronschiff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants