-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnatops_blurb.sty
47 lines (37 loc) · 1.32 KB
/
natops_blurb.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{natops_blurb}[2021/05/22 NATOPs blurbage]
\RequirePackage{etoolbox}
\RequirePackage{tikz}
\usetikzlibrary{shadows,decorations}
\usetikzlibrary{decorations.pathmorphing}
\newenvironment{_natops_generic_blurb}[1][]{%
\ifblank{#1}{}{
\begin{samepage}\begin{center}#1\end{center}}\nopagebreak
\begin{quote}}{%
\end{quote}\end{samepage}}
\newcommand{\warninglight}[1]{%
\begin{tikzpicture}
\node [copy shadow={fill=black,shadow xshift=1ex,shadow yshift=-1ex},
fill=white,draw=black,thick,font=\bfseries\sffamily,
minimum width=1.25in, minimum height=1cm
] {#1};
\end{tikzpicture}}
\newcommand{\WARNING}{\warninglight{WARNING}}
\newenvironment{warning}{%
\begin{_natops_generic_blurb}[\WARNING]}{%
\end{_natops_generic_blurb}}
\newcommand{\cautionlight}[1]{%
\begin{tikzpicture}
\node [fill=white,draw=black,line width=0.5mm,font=\bfseries\sffamily,
decorate, decoration={bent,snake,amplitude=0.5mm,segment length=1mm},
minimum width=0.75in, minimum height=1cm
] {#1};
\end{tikzpicture}}
\newcommand{\CAUTION}{\cautionlight{CAUTION}}
\newenvironment{caution}{%
\begin{_natops_generic_blurb}[\CAUTION]}{%
\end{_natops_generic_blurb}}
\newcommand{\Note}{\sffamily\bfseries Note}
\newenvironment{note}{%
\begin{_natops_generic_blurb}[\Note]}{%
\end{_natops_generic_blurb}}