Skip to content

Latest commit

 

History

History

presentation-template

Quarto presentations

Content

You will find here a Quarto presentations that I have created. The presentations are written in Quarto, a markdown-based document format that supports code execution and rich media. The presentations are rendered as HTML slides using the quarto package.

Presentations

The file needed to render the presentations is presentation.qmd. You can render the presentation by running the following command in the terminal:

quarto render presentation.qmd

The presentations are then rendered as HTML slides in the presentation.html file (you could also easily create a pdf file by changing the output format in the presentation.qmd file).

The sources of the presentations contain the following elements:

  • presentation.qmd: the main file containing the presentation content.
  • meds-slides-styles.scss: the (S)CSS file for the slides.
  • _metadata.yml: the metadata file for the presentation.
  • environment.yml: the environment file for the presentation. You can (you don't have to though if you have a Python env working already) then create a conda environment by running the following command in the terminal:
conda env create -f environment.yml

and then activating the environment by running:

conda activate quarto-prez
conda install jupyter

Then you can run the presentation by running the following command in the terminal:

quarto render presentation-template/slides_intro.qmd

The display is then given in the html file created in the presentation-template folder here. You might need to download the html file and open it in a browser to see the slides (as the link might not work directly in some cases).

Note: the html hence created requires the option embed-resources: true that might alter the rendering of the slides in some cases. If you want to see the slides in a browser, you can change this option to false in header.

Alternatively with VScode you can just open the presentation.qmd file and click on the Quarto: Render button at the top right of the editor or Quarto: Preview to see the slides directly in the editor.

Resources