ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change
on this file since bce76d1 was
bce76d1,
checked in by Andrew Beach <ajbeach@…>, 5 years ago
|
cfalab.sty's \newsymbolcmd now accepts commands instead of letters and uses fewer internal macros.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | % Package for CFA Research Lab. |
---|
2 | % |
---|
3 | % Made by combining and updating |
---|
4 | |
---|
5 | % I don't know what the oldest LaTeX2e version with everything needed is. |
---|
6 | \NeedsTeXFormat{LaTeX2e} |
---|
7 | \ProvidesPackage{cfalab}[2020/03/09 v0.1 CFA Laboratory LaTeX Tools] |
---|
8 | |
---|
9 | % Other packages required. |
---|
10 | \RequirePackage{etoolbox} |
---|
11 | \RequirePackage{xspace} |
---|
12 | |
---|
13 | % Symbols: All symbols are zero argument robust commands with special rules |
---|
14 | % about the space following the c.s. token. Normally the space might be |
---|
15 | % re-added according to the rules of the xspace package. They may be followed |
---|
16 | % by a star (which the command will consume) to disable this behaviour. |
---|
17 | |
---|
18 | % \newsymbolcmd{<command>}{<expansion>} |
---|
19 | % Defines <command> to be a symbol that has the given <expansion>. |
---|
20 | \newrobustcmd*\newsymbolcmd[2]{\newrobustcmd{#1}{\cfalab@symbol{#2}}} |
---|
21 | \def\cfalab@symbol#1{\@ifnextchar*{#1\cfalab@eatstar}{#1\xspace}} |
---|
22 | \def\cfalab@eatstar*{} |
---|
23 | |
---|
24 | % Cforall with the forall symbol. |
---|
25 | \newsymbolcmd\CFA{\textsf{C}\raisebox{\depth}{\rotatebox{180}{\textsf{A}}}} |
---|
26 | |
---|
27 | \newcommand\codeC[1]{\texttt{#1}} |
---|
28 | |
---|
29 | \endinput |
---|
Note: See
TracBrowser
for help on using the repository browser.