-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcag.sty
More file actions
90 lines (79 loc) · 3.5 KB
/
cag.sty
File metadata and controls
90 lines (79 loc) · 3.5 KB
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
\RequirePackage{latexsym,amsmath,amssymb,makeidx}
%\RequirePackage[dvipsnames,usenames]{color}
%\RequirePackage[colorlinks=true,urlcolor=Blue,citecolor=Green,linkcolor=BrickRed]{hyperref}
\hyphenation{co-or-din-ate co-or-din-ates half-plane half-space stereo-iso-mers
stereo-iso-mer Round-table homol-ogous homol-ogy pre-factor}
% ----------------------------------------------------------------------
% Common abbreviations and words with accents
% ----------------------------------------------------------------------
% ---- LATIN ----
\def\etal{\emph{et~al.}} % and others
\def\ie{\emph{i.e.}} % that is
%\def\ie{\textcolor{red}{that is}}
\def\eg{\emph{e.g.}} % for example
%\def\eg{\textcolor{red}{for example}}
\def\vitae{vit\ae{}}
\def\apriori{\emph{a~priori}}
\def\aposteriori{\emph{a~posteriori}}
\def\etc{\emph{etc.}}
% ---- FRENCH ----
\def\naive{na\"{\i}ve}
\def\Naive{Na\"{\i}ve}
\def\naively{na\"{\i}vely} % Okay, I know, this isn't French.
\def\Naively{Na\"{\i}vely}
\def\cafe{caf\'e}
% ---- PROPER NAMES (because I'm lazy) ----
\def\Erdos{Erd\H{o}s} \def\Pal{P\'al}
\def\Hanoi{Hano\"\i} % Tower of...
\def\Mobius{M\"obius} % ... strip/transformation/function
\def\Poincare{Poincar\'e} % ... duality/halfplane
% Other
\newcommand{\Cplusplus}{C\nolinebreak\hspace{-.05em}\raisebox{.4ex}{\tiny\bf +}\nolinebreak\hspace{-.10em}\raisebox{.4ex}{\tiny\bf +}}
\newcommand{\indexentry}[1]{#1\index{#1}}
% ----------------------------------------------------------------------
% Simple math stuff
% ----------------------------------------------------------------------
% ---- SYMBOLS ----
\let\e\varepsilon % a ``real'' epsilon
%\def\Integer{\mathsf{Z\hspace{-0.4em}Z}}
%\def\Natural{\mathrm{I\!N}}
%\def\Real{\mathrm{I\!R}}
%\def\Proj{\mathrm{I\!P}} % projective space
%\def\Hyper{\mathrm{I\!H}} % hyperbolic space
%
%%
%% These two look okay in Computer Modern 11pt, or Concrete Roman
%% 12pt, but they need serious work in other sizes. I need to figure
%% out how to draw a vertical bar, or better yet a shallow arc, inside
%% the bowls. Or maybe I need to learn METAFONT. Or maybe I should just
%% hold my nose and use \mathbb.
%%
%\def\Complex{\mathrm{\,\raise 0.33ex\hbox{\scriptsize\bf(}\!\!\!C}}
%\def\Rational{\mathrm{\,\raise 0.33ex\hbox{\scriptsize\bf(}\!\!\!Q}}
%
% I give up. These are in the wrong font, but my kludged versions
% LOOK like kludges, especially \Z, \Q, and \C.
%
\def\Real{\mathbb{R}}
\def\Proj{\mathbb{P}}
\def\Hyper{\mathbb{H}}
\def\Integer{\mathbb{Z}}
\def\Natural{\mathbb{N}}
\def\Complex{\mathbb{C}}
\def\Rational{\mathbb{Q}}
\let\N\Natural
\let\Q\Rational
\let\R\Real
\let\Z\Integer
\def\Rd{\Real^d}
\def\RP{\Real\Proj}
\def\CP{\Complex\Proj}
\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\sinr}[1]{\sin\!\left(#1\right)}
\newcommand{\cosr}[1]{\cos\!\left(#1\right)}
\newcommand{\tanr}[1]{\tan\!\left(#1\right)}
\newcommand{\Oh}[1]{\mathcal{O}\!\left(#1\right)}
%----------------------------------------------------------------------
% Creative Commons license
%----------------------------------------------------------------------
\def\CCLicense#1{\vfill\vbox to 0pt{\centering\tiny\sffamily \textcopyright\ Copyright \number\year\ Jeff Erickson. \quad Released under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License (\url{http://creativecommons.org/licenses/by-nc-sa/3.0/}).\\ Free distribution is strongly encouraged; commercial distribution is expressly forbidden.\quad See {#1} for the most recent revision.\vss}}