Skip to content

Notebooks

Teemu Säilynoja edited this page Feb 3, 2025 · 6 revisions

Put .qmd after the link to download the qmd file.

Quarto tricks

Wrap code and output in PDF

A github discussion, suggest adding this to the YAML header of the quarto document. It seems to work.

---
format:
  pdf:
    keep-tex: true
    include-in-header: 
      text: |
        \usepackage{fvextra}
        \DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,commandchars=\\\{\}}
    include-before-body:
      text: |
        \RecustomVerbatimEnvironment{verbatim}{Verbatim}{
          showspaces = false,
          showtabs = false,
          breaksymbolleft={},
          breaklines
        }
---
Clone this wiki locally