% Package for CFA Research Lab.
%
% Made by combining and updating

% I don't know what the oldest LaTeX2e version with everything needed is.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{cfalab}[2020/03/09 v0.1 CFA Laboratory LaTeX Tools]

% Other packages required.
\RequirePackage{etoolbox}
\RequirePackage{xspace}

% Symbols: All symbols are zero argument robust commands with special rules
% about the space following the c.s. token. Normally the space might be
% re-added according to the rules of the xspace package. They may be followed
% by a star (which the command will consume) to disable this behaviour.

% \newsymbolcmd{<command>}{<expansion>}
%    Defines <command> to be a symbol that has the given <expansion>.
\newrobustcmd*\newsymbolcmd[2]{\newrobustcmd{#1}{\cfalab@symbol{#2}}}
\def\cfalab@symbol#1{\@ifnextchar*{#1\cfalab@eatstar}{#1\xspace}}
\def\cfalab@eatstar*{}

% Cforall with the forall symbol.
\newsymbolcmd\CFA{\textsf{C}\raisebox{\depth}{\rotatebox{180}{\textsf{A}}}}

\newcommand\codeC[1]{\texttt{#1}}

\endinput
