Skip to content

Latest commit

 

History

History
137 lines (96 loc) · 2.02 KB

README.md

File metadata and controls

137 lines (96 loc) · 2.02 KB

Quick Sip - Typst QRH Template

Creates aviation style checklists like Quick Reference Handbooks.

Features:

  • Index
  • Section
  • Conditions
  • Objective
  • Step (When/If)
  • Sub Step
  • Caution
  • Note
  • Choose One
  • Go to step
  • End section now

Start with

#import "@preview/quick-sip:0.1.0": *
#show: QRH.with(title: "Cup of Tea")

Then add a section:

#section("Cup of Tea preparation")[
  #step("KETTLE", "Filled to 1 CUP")
  #step([*When* KETTLE boiled:], "")
  #step([*If* sugar required], "")
    //.. Rest of section goes here
]

Index

An index with an entry for each section in the document.

#index()

Section

A section title, forces capitalisation.

#section("Cup of Tea preparation")[
    //.. Rest of section goes here
]

Conditions

Conditionals for this section.

#condition[
    - Dehydration
    - Fatigue
    - Inability to Concentrate
]

Objective

An objective for this section (optional).

#objective[To replenish fluids.]

Step

A numbered step in the checklist. The first parameter is to the left of the dotted line, the second is to the right. If the second parameter is "" then there is no dotted line.

#step("KETTLE", "Filled to 1 CUP")
#step([*When* KETTLE boiled:], "")
#step([*If* sugar required], "")

Tab

Indents contents by one tab.

#tab(goToStep("9"))
#tab(tab("Large mugs may require more water."))

Caution

Adds a caution element.

#caution([HOT WATER #linebreak()Adult supervision required.])

Note

Adds a note.

#note("Stir after each step")

Choose One

A numbered step with options.

 #chooseOne[
    #option[Black tea *required:*]
    #option[Tea with MILK *required:*]
  ]

Go to step

Two right facing arrow heads followed by Go to step step number. Links to step in pdf.

#goToStep("9")

End now

Ends the section now with 4 dots.

#endNow()