Home > Mobile >  Setting code chunk size on Quarto pdf output
Setting code chunk size on Quarto pdf output

Time:12-26

Any idea how to set a small size for code chunks on Quarto pdf output ? I don't want my code to have the same size of my text, but I can't find an argument in the settings in the begining of my document nor in the R code chunk to specify a font size.

CodePudding user response:

You can write an smaller font size for code chunk


CodePudding user response:

You can do this locally with LaTeX font options:

---
title: "chunk-size"
format: pdf
editor: visual
---

\tiny
```{r}
summary(mtcars$mpg)
```
\normalsize

You can use Huge > huge > LARGE > Large > large > normalsize > small > footnotesize > scriptsize > tiny.

  • Related