• Home
  • About
  • Schedule
  • Sessions
  • Team
  • Mechanics
  • Repos
  • Code of Conduct
  • Acknowledgements

Contents

  • city-guide project
    • Task 1
    • Task 2
    • Task 2.1
    • Task 3
    • Task 4
      • Task 5
  • Slides

Quarto

Session 07

Starts at:

November 29 2024 (10:15 am)

Slides

city-guide project

At the end of this session, you should have accomplished the following:

Task 1

  1. You created a new quarto branch in your city-guide repository and switched to it.

Task 2

  1. You created a new empty Quarto file called city-guide.qmd and saved it in your city-guide repository.
  2. You wrote a short introduction note to your city-guide repository.
  3. You switched between Quarto’s visual and source mode.
  4. You rendered the file to HTML.
  5. You staged and committed your changes.

Task 2.1

Quarto and RStudio might create a bunch of extra files:

.Rproj.user
.Rhistory
.RData
.Ruserdata
/_site/
/.quarto/

The are temporary or user specific files and should therefore not be tracked in Git.

  1. Add any file that is not the .qmd file to your .gitignore file.
  2. Stage and commit the changes to your .gitignore file.

Task 3

  1. You added a new entry to the city-guide.qmd file.
  2. Topic: Interview each other about your favorite cinema or theater.
  3. You formatted the text by applying at least three types of Markdown syntax.
  4. You staged and committed your changes.

Task 4

  1. You added a YAML header to your Quarto file.
  2. You included your name, a title, an output format (e.g., HTML) and a theme.
  3. You staged and committed your changes.

Task 5

  1. You merged your quarto branch into your main branch

Please keep the city-guide folder! We will continue to use it in the following sessions.

Slides

How can I download the slides as PDF?

To print the slides to PDF, do the following:

  1. Toggle into Print View using the E key (or using the Navigation Menu).
  2. Open the in-browser print dialog (CTRL/CMD+P).
  3. Change the Destination setting to Save as PDF.
  4. Change the Layout to Landscape.
  5. Change the Margins to None.
  6. Enable the Background graphics option.
  7. Click Save.

Note: This feature has been confirmed to work in Google Chrome, Chromium as well as in Firefox.

Here’s what the Chrome print dialog would look like with these settings enabled:

Screenshot of Chrome print dialog with the first slide/page of 43 shown on the left, and print options on the right. The Destination print option has Save as PDF selected.

These instructions were copied from the Quarto documentation (MIT License) and slightly modified.

© 2024 – 2025 Dr. Lennart Wittkuhn
  • Acknowledgements
License: CC BY 4.0