This repository is intended to provide templates for Quarto documents, with a consistent UKCEH-specific theme across each output format.
Important
This is a work in progress and all templates should be considered unofficial.
- Basic document template (html, pdf)
- Presentation (revealjs) mirroring official UKCEH powerpoint template
- Report (html, pdf, docx) mirroring offical UKCEH report template
- Manuscript (project template)
- Book (project template)
- Website (project template, including dashboard?)
You will also need a local copy of the _brand.yml
configuration file, which is hosted over at github.com/ukceh-rse/brand-yml.
This file defines colours, typography, logos and layouts for maintaining consistent branding across formats.
For now, the easiest way to proceed is to symlink _brand.yml
and the logos/
directory into the project directory. This should improve in the future - see this issue.
To create a new document or project using a template, run
quarto use template ukceh-rse/quarto-templates/<subdir>
where <subdir>
is the name of the subdirectory of this repository containing an extension and template, or template only.
To render the document or project to a specific format (html
, pdf
, typst
, revealjs
, docx
), run
quarto render <document>.qmd --to <extended-format>
where <extended-format>
is structured as <extension>-<format>
.
For example, if you use the document
extension & template, which implements document-html
and document-typst
, to create a document called test-doc.qmd
, you can render to html using
quarto render test-doc.qmd --to document-html
You can omit the --to <extended-format>
if you want to render to all available formats (in this case html
and typst
), or if there is only one format implemented (e.g. for a presentation).
If you already have a document or project and you only want to download the extension without the template, you can run
quarto add ukceh-rse/quarto-templates/<subdir>
and then manually change the format to an implemented <extended-format>
in your .qmd
file(s).
If the extension has changed upstream, you can run
quarto update ... #TODO