diff options
Diffstat (limited to 'tlp.tex')
-rw-r--r-- | tlp.tex | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +%% SPDX-License-Identifier: CC0-1.0 +%% +%% This LaTeX source is copyright (C) 2024 W. Kosior <koszko@koszko.org> + +\usepackage{xcolor} +\usepackage{fancyhdr} +\usepackage{tikz} + +\definecolor{TLPAMBER}{HTML}{FFC000} +\definecolor{TLPAMBER+STRICT}{HTML}{FFC000} +\definecolor{TLPCLEAR}{HTML}{FFFFFF} +\definecolor{TLPGREEN}{HTML}{33FF00} +\definecolor{TLPRED}{HTML}{FF2B2B} + +\newcommand{\setTLP}[1]{% + \def \currentTLP {#1} +} + +\newcommand{\changeTLP}[1]{% + \newpage + \setTLP{#1} +} + +\newcommand{\useTLPFancyHeader}[1]{% + \setTLP{#1} + \pagestyle{fancy} + \fancyhf{} + \lhead{ + \colorbox{black}{ + \color{TLP\currentTLP} + \begin{tikzpicture} + \draw[fill=TLP\currentTLP](1,1) circle (0.2) node [] {}; + \end{tikzpicture} + \textbf{TLP:\currentTLP} + } + }% +} |