4  The _quarto-slides.yml file

Author
Affiliation

Dr. Devan Becker

Wilfrid Laurier University

Published

June 4, 2024

project:
  output-dir: Slides
format: 
  beamer:
    theme: Madrid
    colortheme: PrimaryBullets
    aspectratio: 169
    toc: false
    include-in-header: "defs_beamer.tex"
    execute:
      echo: false
      fig-width: 7
      fig-height: 3.5
      code-line-numbers: false

For include-in-header: defs_beamer.tex, I use two special commands to make sure that I can control spacing in the slides and the book separately. In slides, I want to add spacing between lists. The \lspace command is defined as \newline if the file is executed without profile --book, and it’s defined as nothing if the profile is set to book. Similarly, \pspace adds a space between paragraphs if the book is rendering to slides and does nothing for the book.