Skip to content

Instantly share code, notes, and snippets.

@MorpheusH3x
Created January 9, 2024 21:47
Show Gist options
  • Save MorpheusH3x/2d2917cecfbf1591b431ce17cd9a67c0 to your computer and use it in GitHub Desktop.
Save MorpheusH3x/2d2917cecfbf1591b431ce17cd9a67c0 to your computer and use it in GitHub Desktop.
Traffic Light Protocol in LaTeX
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tlp}[2024/01/09 Traffic Light Protocol]
\usepackage{color}
\usepackage{xcolor}
% Colors as defined here:
% https://www.cisa.gov/news-events/news/traffic-light-protocol-tlp-definitions-and-usage
\definecolor{TLPRED}{RGB}{255, 0, 51}
\definecolor{TLPAMBER}{RGB}{255, 192, 0}
\definecolor{TLPGREEN}{RGB}{51, 255, 0}
\definecolor{TLPCLEAR}{RGB}{0, 0, 0}
\newcommand{\TLPRED}{\begin{minipage}{1cm}\color{TLPRED}\colorbox{black}{TLP:RED}\end{minipage}}
\newcommand{\TLPAMBERSTRICT}{\begin{minipage}{1cm}\color{TLPAMBER}\colorbox{black}{TLP:AMBER+STRICT}\end{minipage}}
\newcommand{\TLPAMBER}{\begin{minipage}{1cm}\color{TLPAMBER}\colorbox{black}{TLP:AMBER}\end{minipage}}
\newcommand{\TLPGREEN}{\begin{minipage}{1cm}\color{TLPGREEN}\colorbox{black}{TLP:GREEN}\end{minipage}}
\newcommand{\TLPCLEAR}{\begin{minipage}{1cm}\color{TLPCLEAR}\colorbox{black}{TLP:CLEAR}\end{minipage}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment