This is a Quarto Revealjs presentation format that is consistent with the Forwards brand.
It offers the following:
- A Forwards hex on the title slide
- Note that this is a variation of the usual hex. That one has a gradient border, but since that blends into the title slide background, here we use a hex with a solid pink border instead.
- A theme consistent with colours in the Forwards logo (the viridis magma palette), including an inverse class
- The Atkinson Hyperlegible font family. Atkinson Hyperligible Next for body text and headings and the Atkinson Hyperlegible Mono for code
- Custom colours for quarto callouts
- A custom syntax highlighting theme consistent with the theme colours
- Additional convenience classes for sizing and aligning
It is an adaptation of warwickpres (both developed by Ella Kaye)
quarto use template forwards/forwardspresThis will install the extension and create an example .qmd file that you can use as a starting place for your presentation. This also serves as documentation.
Workflow for using this extension in positron
This is my preferred workflow for using the template and forwardspres extension:
- In positron, open a new folder, which is where the template and extension will go
- In the terminal, run
quarto use template forwards/forwardspres- When prompted, type 'Y' to trust the authors of the template
- When prompted, type 'N' to not create a subdirectory
- When prompted, type 'Y' to install the forwardspres extension
I have found it a bit fiddly to get this working with RStudio projects. The following workflow works well for me. There may be a other/better ways.
When you want to start a new project with the template:
- Close the current project (if one is open).
- In the RStudio terminal, navigate to the parent directory in which you want to save the project
- Run the following:
quarto use template forwards/forwardspres- When prompted, type 'Y' to trust the authors of the template
- When prompted, type 'Y' to create a subdirectory, then enter the directory name
- When prompted, type 'Y' to install the forwardspres extension
- In RStudio Files pane (or other file navigator), go to the directory just created
- The directory should contain
"forwardspres.Rproj". Click on that to launch the project.- If you have lots of directories from the same extension, may want to rename the .Rproj file to something unique, e.g. to share the directory name (to make file search easier)
This works in both RStudio and positron, and uses the usethis R package.
Before using this workflow for the first time, check that you have git set up to use 'main' as the default branch.
- Run
usethis::git_sitrep()and check that the default initial branch name is 'main' - If it not 'main', change the configuration by running
usethis::use_git_config(init.defaultBranch = "main")
For each new presentation:
- In the RStudio console, run
usethis::use_git()and follow through the prompts - After restarting as prompted, run
usethis::use_github() - You may want to add a README.md at this point
- Work in the
.qmdfile created in the directory, which will share a name with the directory - Commit, push, etc as often as you wish!
- When the presentation is ready to publish, run
quarto publish gh-pagesin RStudio terminal.- This creates a
gh-pagesbranch, and the website https://USER.github.io/REPO (where USER is your GitHub username and REPO is the name of the repository).
- This creates a
- Keep working in
mainbranch. When ready to publish again, runquarto publish gh-pages. This bringsgh-pagesbranch in sync withmain. Repeat as often as need be. You could also use a GitHub Action to update the published version on each push, as per this quarto documentation.
I have documented an R -> positron/RStudio -> git/GitHub workflow because that's what I use. Quarto also works well in other IDEs, especially VSCode, and with other programming languages, so of course feel free to adapt this workflow for your use case.
In positron, you can also use the built-in 'Source Control' pane to set up git and GitHub (rather than the usethis R package).
Here is the source code for a minimal sample document: template.qmd
And here it is online: https://forwards.github.io/forwardspres
These files together demonstrate what the forwardspres extension offers and how to use it.