Skip to content

A Typst package for Traffic Light Protocol (TLP) markings (v2.0)

License

Notifications You must be signed in to change notification settings

teismar/typst-ampelmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TLP (Traffic Light Protocol) Package for Typst

A Typst package to easily add Traffic Light Protocol (TLP) markings to your documents, fully compliant with TLP v2.0 Standards (CISA/FIRST).

features

  • Standard Colors: Exact RGB matches for TLP 2.0 Red, Amber, Green, Clear.
  • Correct Styling: Black background labels with colored text.
  • Header/Footer Support: Easily mark every page of your document.
  • Content Blocks: Distinct boxes for sensitive sections.

Installation

Import the package:

#import "@preview/tlp:0.1.0"

Usage

1. Document-Wide Marking (Recommended)

To mark the header and footer of every page (as required by standard for TLP documents):

#import "@preview/tlp:0.1.0"

// Set the whole document to TLP:AMBER
#show: tlp-setup.with("amber")

= My Sensitive Document
Content...

2. Specific Content Blocks

If you need to mark specific sections:

#tlp-red[
  This is highly sensitive TLP:RED info.
]

#tlp-green[
  This is TLP:GREEN info.
]

3. Inline Labels

This paragraph refers to #tlp-label("red") material.

Available Levels

The following string keys are supported:

  • "red" -> TLP:RED
  • "amber" -> TLP:AMBER
  • "amber-strict" -> TLP:AMBER+STRICT
  • "green" -> TLP:GREEN
  • "clear" -> TLP:CLEAR

License

MIT

About

A Typst package for Traffic Light Protocol (TLP) markings (v2.0)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages