-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcplexmac.tex
35 lines (35 loc) · 966 Bytes
/
cplexmac.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
\newcommand{\docdate}[3]{
\newcommand{\Year}{#1}
\newcommand{\Mo}{#2}
\newcommand{\Dy}{#3}
}
% cpp environment for C++-specific text
\ifthenelse{\boolean{hidecpp}}
{\let\cpp=\comment
\let\endcpp=\endcomment
\newcommand{\nocpp}[1]{#1}
\newcommand{\yescpp}[1]{}
}
{\newenvironment{cpp}
{\sffamily\slshape[C++:}
{]}
\newcommand{\nocpp}[1]{}
\newcommand{\yescpp}[1]{#1}
}
% Prefixed names
\newcommand{\prefix}{cplex}
\newcommand{\pfx}[1]{\tcode{\prefix{}\_#1}}
\newcommand{\pfxdefn}[1]{\pfx{#1}\indextext{\idxcode{#1}}}
%% Paragraph numbering
\newcounter{Paras}
\counterwithin{Paras}{clause}
\counterwithin{Paras}{sclause}
\counterwithin{Paras}{ssclause}
\counterwithin{Paras}{sssclause}
\counterwithin{Paras}{ssssclause}
\counterwithin{Paras}{sssssclause}
\makeatletter
\def\pnum{\addtocounter{Paras}{1}\noindent\llap{{%
\scriptsize\raisebox{.7ex}{\arabic{Paras}}}\hspace{\@totalleftmargin}\quad}}
\renewcommand{\definition}[2]{\@defcl{#1}\index{#1} #2}
\makeatother