Awesome Open Source
Awesome Open Source

title: "Readme as an example document" author: "Mika Rautio" date: "06.02.2021" year: "2021" lang: en-GB orientation: "Business Information Technology 'n' stuff" hhtemplatetype: "long" # "short" and "thesis" supported also course: "ICT1TA001-1234 Orientaatio parempiin tekstinksittelyratkaisuihin" abstract: "Here's some abstract text.\par Let's see how it ends up..." hhdocumentkeywords:

  • LaTeX
  • Markdown
  • pandoc
  • Haaga-Helia
  • report templates glossaries:
  • name: PDF description: Portable Document Format
  • name: MD description: Markdown references:
  • id: agilemanifesto2001 title: Manifesto for Agile Software Development issued: year: 2001 author:
    • family: Beck given: Kent
    • family: Beedle given: Mike
    • family: van Bennekum given: Arie
    • family: Cockburn given: Alistair
    • family: Cunningham given: Ward
    • family: Fowler given: Martin type: webpage URL: '' accessed: year: 2021 month: 02 day: 06

Haaga-Helia pandoc/LaTeX document templates

Build and test status{#fig:id}

This project's aim is to provide common Haaga-Helia University of Applied Sciences Microsoft Word document templates as pandoc LaTeX templates so that reports may be written in Markdown or LaTeX formats instead of Microsoft Office. At least the author prefers to do school assignments over processes and tools just like in the good ol' agile manifesto [@agilemanifesto2001]!

Haaga-Helia University of Applied Sciences report logo{#fig:id}

Supported templates

Templates are intended to be as close to original templates as possible. Feel free to contribute with formatting improvements.

Supported languages

Variable (in Markdown file YAML header): lang

  • Finnish: fi-FI
  • English: en-GB

Supported templates

Variable: hhtemplatetype

  • Short (SFS 2487) report template: short
  • Long report template: long
  • Thesis template: thesis

Arial font support

Haaga-Helia templates use Arial as the default font. It is a Microsoft proprietary font and not commonly available outside Windows and Office systems.

Docker image does not have Arial font installed. FreeSans is used as Docker image default font instead of Arial. If you need Arial font outside Windows then at least Debian/Ubuntu has the font available in the package 'ttf-mscorefonts-installer'.


This README file is an example that can be rendered to Haaga-Helia document template PDF, check the raw file contents for details.

Markdown to PDF with Docker

Convert report Markdown to a PDF that is using the long report template format:

docker run --rm --volume host-path-to-report-data:/report --tty mrautio/hh-templates --output /report/report.pdf /report/ --variable=hhtemplatetype:long

Convert report Markdown and attachments Markdown file to a PDF that is using the long report template format:

docker run --rm --volume host-path-to-report-data:/report --tty mrautio/hh-templates --output /report/report.pdf /report/ /appdata/ /report/ --variable=hhtemplatetype:long

More secure Markdown to PDF with Docker

In general the container image is attempted to be kept up-to-date and relatively secure. Unfortunately LaTeX and related components require extensive amounts of dependencies. To decrease risk to your data, you may sandbox the container operations further by disabling networking and using read-only volumes.

  • --network none disables network access. Container does not require networking unless you refer to Internet resources (like Internet URLs for images) in your input documents.

  • Read-only volumes with :ro suffix ensure that the container can only read the volume data, not write to it. Container does not require write access to mount volume with the report data. However this requires reports to be written to STDOUT or another write accessible volume mount. Direct use of PowerShell should be avoided as it corrupts the STDOUT data. Output to STDOUT may hide potential document conversion errors.

docker run --rm --network none --volume host-path-to-report-data:/report:ro --attach stdout mrautio/hh-templates --to=pdf --output - /report/ > report.pdf

You can use cosign to validate the container image release authenticity.

cosign verify --key mrautio/hh-templates

Markdown to PDF with pandoc

Note: Filters are not mandatory but some features depend on them

pandoc --from markdown --template hhtemplate.tex --filter pandoc-tablenos --filter pandoc-fignos --filter pandoc-citeproc --filter pandoc-plantuml --pdf-engine=xelatex --listings --csl= -o report.pdf --variable=hhtemplatetype:long

Report functionality

Here you can find some examples beyond this README that illustrate how to format a report.

Figures and tables

  • Example of adding a table and referring to it
  • Example of adding a figure and referring to it


References are included in the YAML header of the document. See the example of various references and citations. References will be by default printed in the end of the document. Add a blank # References chapter or include /appdata/ file in the conversion command.


Attachments are created in a separate Markdown file. See for an example.

Haaga-Helia reference Citation Style Language (CSL) configuration

Haaga-Helia reference style CSL configuration is available from You can use the style with CSL supporting reference management software like Papers, RefWorks or Zotero. Check the contributing guide, if you want to improve the style.


Templates/code/examples are released as public domain. Any graphical assets or other school's IPR belong to their corresponding copyright holders and are not covered by repository's license agreement.

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Markdown (28,207
Tex (19,365
Latex (10,061
Pandoc (2,321