Skip to content

ukceh-rse/quarto-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quarto templates for UKCEH

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.

Types of template/extension (planned and implemented)

  • 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?)

Basic usage

Getting _brand.yml

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.

Starting from scratch

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).

Starting from an existing document or project

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).

Updating the extension

If the extension has changed upstream, you can run

quarto update ... #TODO

Inspiration

About

Templates for Quarto documents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published