update isl for change in isl_hash_table_foreach
[barvinok.git] / doc / mydefs.sty
blob9af006d90281d0dc6602050945f64af9c73e0657
1 \usepackage{amsmath,amsfonts,amssymb,makeidx}
2 \usepackage{glosstex}
4 \glxitemorderdefault{acr}{l}
6 \def\indac#1{%
7 \ac{#1}%
8 \expandafter\ifx\csname GLX@term@@#1\endcsname\relax%
9 \else%
10 \index{\csname GLX@term@@#1\endcsname\space%
11 (\csname GLX@term@#1\endcsname)}%
12 \fi}
14 \def\andindex{%
15 \@ifnextchar[{\@ndindex}%
16 {\@ndind@x}}
17 \def\@ndindex[#1]#2{%
18 {#1#2}\index{#2@{#1#2}}}
19 \def\@ndind@x#1{%
20 {#1\index{#1}}}
21 \def\defindex#1{%
22 {{\em #1}\index{#1|bold}}}
24 \let\ai=\andindex
26 \newcount\prefcount
27 \newcount\rpage
29 \def\pref#1{%
30 \global\advance\prefcount by 1%
31 \edef\foo{pref\the\prefcount}%
32 \label\foo%
33 \rpage=\simple@pageref\foo%
34 \advance\rpage by -\simple@pageref{#1}%
35 \ref{#1}%
36 \ifnum\rpage=0%
37 \else\ifnum\rpage=1%
38 \ on the previous page%
39 \else\ifnum\rpage=-1%
40 %\ on the next page%
41 \else%
42 \ on page~\pageref{#1}%
43 \fi\fi\fi%
46 \def\npref#1{%
47 \global\advance\prefcount by 1%
48 \edef\foo{pref\the\prefcount}%
49 \label\foo%
50 \rpage=\simple@pageref\foo%
51 \advance\rpage by -\simple@pageref{#1}%
52 \ref{#1}%
53 \ifnum\rpage=0%
54 \else\ifnum\rpage=1%
55 \ on the previous page%
56 \else\ifnum\rpage=-1%
57 %\ on the next page%
58 \else%
59 \ op bladzijde~\pageref{#1}%
60 \fi\fi\fi%
63 \def\sindex#1#2{\index{#2!#1|see{#1 #2}}}
64 \def\ssindex#1#2{\index{#2!#1|see{#1#2}}}
65 \def\tindex#1#2{\index{#2@{\tt #2}!{\tt #1::}|see{{\tt #1\discretionary{}{}{}::\discretionary{}{}{}#2}}}}
67 \newtheorem{theorem}{Theorem}
68 \newtheorem{definition}[theorem]{Definition}
69 \newtheorem{proposition}[theorem]{Proposition}
70 \newtheorem{lemma}[theorem]{Lemma}
71 \newtheorem{corollary}[theorem]{Corollary}
72 \newtheorem{example}[theorem]{Example}
73 \numberwithin{theorem}{section}
75 \let\c@equation\c@theorem
76 \let\c@figure\c@theorem
77 \renewcommand{\theequation}{\arabic{section}.\arabic{equation}}
78 \renewcommand{\thefigure}{\arabic{section}.\arabic{figure}}
80 \def\NN{\mathbb{N}}
81 \def\ZZ{\mathbb{Z}}
82 \def\QQ{\mathbb{Q}}
83 \def\RR{\mathbb{R}}
84 \def\CC{\mathbb{C}}
85 \def\lb{\left\{}
86 \def\rb{\right\}}
87 \def\nc{\nomenclature}
89 \def\convhull{\mathop{\rm conv}\nolimits}
90 \def\affhull{\mathop{\rm aff}\nolimits}
91 \def\linhull{\mathop{\rm lin}\nolimits}
92 \def\poshull{\mathop{\rm pos}\nolimits}
93 \def\inthull{\mathop{\rm int.hull}\nolimits}
94 \def\lexmin{\mathop{\rm lexmin}}
95 \def\lexmax{\mathop{\rm lexmax}}
96 \def\dcone{\mathop{\rm dcone}\nolimits}
97 \def\rank{\mathop{\rm rank}\nolimits}
98 \def\Ker{\mathop{\rm Ker}\nolimits}
99 \def\Im{\mathop{\rm Im}\nolimits}
100 \def\argmax{\mathop{\rm argmax}}
102 \def\bold#1{{\bf #1}}
104 \providecommand{\abs}[1]{\left|#1\right|}
105 \providecommand{\norm}[1]{\left\lVert#1\right\rVert}
106 \providecommand{\floor}[1]{\left\lfloor#1\right\rfloor}
107 \providecommand{\ceil}[1]{\left\lceil#1\right\rceil}
108 \providecommand{\fractional}[1]{\left\{#1\right\}}
109 \providecommand{\cractional}[1]{\left\{\left\{#1\right\}\right\}}
110 \providecommand{\Iverson}[1]{\left[#1\right]}
111 \DeclareMathOperator{\cone}{cone}
112 \DeclareMathOperator{\diag}{diag}
113 \DeclareMathOperator{\sgn}{sgn}
114 \DeclareMathOperator{\vol}{vol}
115 \DeclareMathOperator{\todd}{td}
116 \DeclareMathOperator{\Todd}{Todd}
117 \DeclareMathOperator{\width}{width}
119 \def\sm#1{
120 \left[
121 \begin{matrix}
123 \end{matrix}
124 \right]
127 \def\VR{{\cal V}}
128 \def\sp#1#2{\langle\vec #1,\vec #2\rangle}
129 \def\sps#1#2{\langle #1, #2\rangle}
130 \def\T{{\scriptscriptstyle T}}
131 \def\f#1#2{f(#1; \vec #2)}
132 \def\ff#1#2{f(#1; #2)}
134 \def\indf#1{\left[#1\right]}
136 \def\LattE/{\ai[\tt]{LattE}}
137 \def\LattEmk/{\ai[\tt]{LattE macchiato}}
138 \def\PolyLib/{\ai[\tt]{PolyLib}}
139 \def\Omegalib/{\ai[\tt]{Omega}}
140 \def\isl/{\ai[\tt]{isl}}
141 \def\barvinok/{\ai[\tt]{barvinok}}
142 \def\piplib/{\ai[\tt]{piplib}}
143 \def\psp/{piecewise step-poly\-no\-mi\-al}
144 \def\rgf/{rational generating function}
145 \def\vm#1{\underline{\vec #1}}
147 \newcommand{\R}{\ensuremath{{\mathcal R}}}
148 \newcommand{\reuse}[2]{\ensuremath{\textrm{\sf reuse}_{#1}^{#2}}}
149 \newcommand{\ADS}[2]{\ensuremath{\textrm{\sf ADS}_{#1}^{#2}}}
150 \newcommand{\BRD}[2]{\ensuremath{\textrm{\sf BRD}_{#1}^{#2}}}
151 \let\from\leftarrow
153 \def\vec#1{\mathchoice{\mbox{\boldmath$\displaystyle\bf#1$}}
154 {\mbox{\boldmath$\textstyle\bf#1$}}
155 {\mbox{\boldmath$\scriptstyle\bf#1$}}
156 {\mbox{\boldmath$\scriptscriptstyle\bf#1$}}}
158 \def\DP{\mbox{\sl DP\/}}
159 \def\DD{\mbox{\sl DD\/}}
160 \def\DF{\mbox{\sl DF\/}}
162 \def\Rd{R_{\rm d}}
163 \def\rd{r_{\rm d}}
165 \@ifpackageloaded{hyperref}{%
166 \def\eqdeclaration#1{, see Equation\nobreakspace(#1)}%
167 \def\pagedeclaration#1{, page\nobreakspace\hyperpage{#1}}%
168 \def\addcontentsline#1#2#3{% toc extension, type, tag
169 \begingroup
170 \let\label\@gobble
171 \let\textlatin\@firstofone
172 \ifx\@currentHref\@empty
173 \Hy@Warning{%
174 No destination for bookmark of \string\addcontentsline,%
175 \MessageBreak destination is added%
177 \phantomsection
179 \expandafter\ifx\csname toclevel@#2\endcsname\relax
180 \begingroup
181 \def\Hy@tempa{#1}%
182 \ifx\Hy@tempa\Hy@bookmarkstype
183 \Hy@WarningNoLine{bookmark level for unknown #2 defaults to 0}%
184 \else
185 \Hy@Info{bookmark level for unknown #2 defaults to 0}%
187 \endgroup
188 \expandafter\gdef\csname toclevel@#2\endcsname{0}%
190 \edef\Hy@toclevel{\csname toclevel@#2\endcsname}%
191 \Hy@writebookmark{\csname the#2\endcsname}%
192 {#3}%
193 {\@currentHref}%
194 {\Hy@toclevel}%
195 {#1}%
196 \ifHy@verbose
197 \typeout{pdftex: bookmark at \the\inputlineno:
198 {\csname the#2\endcsname}
199 {#3}
200 {\@currentHref}%
201 {\Hy@toclevel}%
202 {#1}%
205 \addtocontents{#1}{%
206 \protect\contentsline{#2}{#3}{\protect\hyperpage{\thepage}}{\@currentHref}%
208 \endgroup