-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.tex
145 lines (122 loc) · 4.37 KB
/
commands.tex
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
%% \newenvironment{packedEnum}{
%% \begin{enumerate}
%% \setlength{\itemsep}{0pt}
%% \setlength{\parskip}{0pt}
%% \setlength{\parsep}{0pt}
%% }{\end{enumerate}}
%% \newenvironment{packedItem}{
%% \begin{itemize}
%% \setlength{\itemsep}{0pt}
%% \setlength{\parskip}{0pt}
%% \setlength{\parsep}{0pt}
%% }{\end{itemize}}
%% \def\bul{$\bullet$}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Confidential Border %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newlength\classifiedTextHeight
\setlength\classifiedTextHeight{27pt} %% sigh...just...don't ask...
\newlength\classifiedRtStart
\setlength\classifiedRtStart{\paperwidth-0.25in-\classifiedTextHeight}
%% Default arguments for the border
\makeatletter
\define@key{borderArgs}{leftText}{\def\leftText{#1}}
\define@key{borderArgs}{rightText}{\def\rightText{#1}}
\define@key{borderArgs}{borderOpacity}{\def\borderOpacity{#1}}
\define@key{borderArgs}{borderColor}{\def\borderColor{#1}}
\setkeys{borderArgs}{%%
leftText=Classified,
rightText=Classified,
borderOpacity=0.25,
borderColor=red
}
\makeatother
\newcommand{\textBorder}[1][]{
\setkeys{borderArgs}{#1}
\begin{textblock*}{-3.1415in}(.25in, 0in)
\begin{turn}{90}
\parbox{\paperheight}{
\begin{center}
{\Huge
\bf
\transparent{\borderOpacity}
\color{\borderColor}
\leftText}
\end{center}
}
\end{turn}
\end{textblock*}
\begin{textblock*}{-3.1415in}(\classifiedRtStart, 0in)
\begin{turn}{-90}
\parbox{\paperheight}{
\begin{center}
{\Huge
\bf
\transparent{\borderOpacity}
\color{\borderColor}
\rightText}
\end{center}
}
\end{turn}
\end{textblock*}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Basic Block Quote %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{blockquote}{
\begin{adjustwidth}{\quoteIndent}{\quoteIndent}
}{%
\end{adjustwidth}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Possessive Acronyms %%
%% %%
%% Thank you hcbrown: %%
%% https://latex.org/forum/viewtopic.php?t=9592 %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\newcommand*{\acpos}{\AC@starredfalse\protect\@acpos}%
\WithSuffix\newcommand\acpos*{\AC@starredtrue\protect\@acpos}%
\newcommand{\@acpos}[1]{%
\ifAC@dua
\ifAC@starred\aclpos*{#1}\else\aclpos{#1}\fi%
\else
\expandafter\ifx\csname ac@#1\endcsname\AC@used
\ifAC@starred\acspos*{#1}\else\acspos{#1}\fi%
\else
\ifAC@starred\acfpos*{#1}\else\acfpos{#1}\fi%
\fi
\fi}
\newcommand*{\acspos}{\AC@starredfalse\protect\acspaos}%
\WithSuffix\newcommand\acspos*{\AC@starredtrue\protect\acspaos}%
\newcommand*{\acspaos}[1]{%
\texorpdfstring{\protect\@acspos{#1}}{#1's}}
\newcommand*{\@acspos}[1]{%
\acsfont{\AC@acs{#1}'s}%
\ifAC@starred\else\AC@logged{#1}\fi}
\newcommand*{\aclpos}{\AC@starredfalse\protect\@aclpos}%
\WithSuffix\newcommand\aclpos*{\AC@starredtrue\protect\@aclpos}%
\newcommand*{\@aclpos}[1]{%
\AC@aclos{#1}'s%
\ifAC@starred\else\AC@logged{#1}\fi}
\newcommand*{\acfpos}{\AC@starredfalse\protect\acfpaos}%
\WithSuffix\newcommand\acfpos*{\AC@starredtrue\protect\acfpaos}%
\newcommand*{\acfpaos}[1]{%
\texorpdfstring{\protect\@acfpos{#1}}{\AC@acl{#1}'s (#1's)}}
\newcommand*{\@acfpos}[1]{%
\ifAC@footnote
\acsfont{\AC@acs{#1}'s}%
\footnote{\AC@placelabel{#1}\AC@acl{#1}'s{}}%
\else
\acffont{%
\AC@placelabel{#1}\AC@acl{#1}'s%
\nolinebreak[3] %
\acfsfont{(\acsfont{\AC@acs{#1}'s})}%
}%
\fi
\ifAC@starred\else\AC@logged{#1}\fi}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% General Utility %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\derX{{\bf \CIRCLE}}