- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/cfalab.sty
ra049412 rec1c674 1 1 % Package for CFA Research Lab. 2 2 % 3 % This is a collection of commands everyone working on CFA related documents 4 % should find useful. So mostly programming language related tools. 3 % Made by combining and updating various macro files people had made. 5 4 % 6 5 % Internal commands are prefixed with "\cfalab@". … … 18 17 % Automatically adds spaces. 19 18 \RequirePackage{xspace} 19 % Improved reference tools. 20 \RequirePackage[nospace]{varioref} 20 21 21 % Tip for commands that end with \xspace: if the default is not correct then 22 % follow the command with {} to disable \xspace, use '{} ' to force add a 23 % space and '{}<whatever-follows>' to force remove one. 24 % 22 % Symbols: All symbols are zero argument robust commands with special rules 23 % about the space following the c.s. token. Normally the space might be 24 % re-added according to the rules of the xspace package. They may be followed 25 % by a star (which the command will consume) to disable this behaviour. 26 27 % \newsymbolcmd{<command>}{<replacement text>} 28 % Defines <command> to be a symbol that has the given <replacement text>. 29 \newrobustcmd*\newsymbolcmd[2]{\newrobustcmd{#1}{\cfalab@symbol{#2}}} 30 \def\cfalab@symbol#1{\@ifnextchar*{#1\cfalab@eatstar}{#1\xspace}} 31 \def\cfalab@eatstar*{} 32 25 33 % Cforall with the forall symbol. 26 \new robustcmd\CFA{\textsf{C\raisebox{\depth}{\rotatebox{180}{A}}}\xspace}27 % C++ with kerning. You may optionally append a standard number.28 \new robustcmd\Cpp[1][\xspace]{C++#1}34 \newsymbolcmd\CFA{\textsf{C}\raisebox{\depth}{\rotatebox{180}{\textsf{A}}}} 35 % C++ with kerning. (No standard number support.) 36 \newsymbolcmd\Cpp{\textrm{C}\kern-.1em\hbox{+\kern-.25em+}} 29 37 30 38 % This is executed very early in the \begin{document} code, before the … … 116 124 numberstyle=\footnotesize\sf, 117 125 % Replace/adjust listing characters that look bad in sanserif. 118 literate={-}{\makebox[1ex][c]{\raisebox{0. 4ex}{\rule{0.75ex}{0.1ex}}}}1126 literate={-}{\makebox[1ex][c]{\raisebox{0.7ex}{\rule{0.75ex}{0.1ex}}}}1 119 127 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 120 128 {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1
Note: See TracChangeset
for help on using the changeset viewer.