summaryrefslogtreecommitdiff
path: root/tlp.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tlp.tex')
-rw-r--r--tlp.tex37
1 files changed, 37 insertions, 0 deletions
diff --git a/tlp.tex b/tlp.tex
new file mode 100644
index 0000000..efb18aa
--- /dev/null
+++ b/tlp.tex
@@ -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}
+ }
+ }%
+}