1 | | \newcommand{\G}{\mathbf{G}} |
2 | | \newcommand{\A}{\mathbf{A}} |
3 | | \newcommand{\F}{\mathbf{F}} |
4 | | \newcommand{\T}{\mathbf{T}} |
5 | | \newcommand{\Q}{\mathbf{Q}} |
6 | | \newcommand{\Z}{\mathbf{Z}} |
7 | | \newcommand{\R}{\mathbf{R}} |
8 | | \newcommand{\FF}{\mathbf{F}} |
9 | | \renewcommand{\AA}{\mathbf{A}} |
10 | | \newcommand{\GG}{\mathbf{G}} |
11 | | \newcommand{\TT}{\mathbf{T}} |
12 | | \newcommand{\QQ}{\mathbf{Q}} |
13 | | \newcommand{\CC}{\mathbf{C}} |
14 | | \newcommand{\sS}{\mathbf{S}} |
15 | | \newcommand{\sM}{\mathbf{M}} |
16 | | \newcommand{\ZZ}{\mathbf{Z}} |
17 | | \newcommand{\RR}{\mathbf{R}} |
18 | | \newcommand{\PP}{\mathbf{P}} |
19 | | \newcommand{\Qp}{\mathbf{Q}_p} |
20 | | \newcommand{\Zp}{\mathbf{Z}_p} |
21 | | \newcommand{\Zpx}{\mathbf{Z}_p^{\times}} |
22 | | \newcommand{\Zpn}{\mathbf{Z} / p^n \mathbf{Z}} |
23 | | \newcommand{\OK}{\mathcal{O}_K} |
24 | | |
25 | | \newcommand{\eps}{\varepsilon} |
26 | | \newcommand{\con}{\equiv} |
27 | | \newcommand{\nothing}[1]{} |
28 | | |
29 | | |
30 | | % Thanks to Joe Wetherell for pointing out that one should use xspace. |
31 | | \usepackage{xspace} % to allow for text macros that don't eat space |
32 | | |
33 | | \newcommand{\by}[1]{\par\noindent{\bf AUTHOR:} #1\par} |
34 | | |
35 | | |
36 | | %\def\SAGE{{\tt SAGE}\,\, } |
37 | | %\def\SAGE{SAGE\xspace} |
38 | | |
39 | | %\newcommand{\SAGE}{{\fontsize{10}{12}\usefont{OT1}{phv}{c}{n}\selectfont{SAGE}\normalfont}\xspace} |
40 | | %\newcommand{\SAGE}{{\usefont{OT1}{phv}{c}{n}\selectfont{SAGE}\normalfont}\xspace} |
41 | | |
42 | | % Computer Algebra Systems |
43 | | |
44 | | \newcommand{\Latex}{\LaTeX\xspace} |
45 | | |
46 | | \newcommand{\sage}{\SAGE} |
47 | | \newcommand{\Sage}{\SAGE} |
48 | | \newcommand{\SAGE}{{\sf Sage}\xspace} |
49 | | |
50 | | \newcommand{\Singular}{\textsc{Singular}\xspace} |
51 | | \newcommand{\SINGULAR}{\Singular} |
52 | | |
53 | | \newcommand{\PolyBoRi}{\textsc{PolyBoRi}\xspace} |
54 | | \newcommand{\POLYBORI}{\PolyBoRi} |
55 | | |
56 | | \newcommand{\MAGMA}{{\sf MAGMA}\xspace} |
57 | | \newcommand{\Magma}{\MAGMA} |
58 | | |
59 | | \newcommand{\GAP}{{\sf GAP}\xspace} |
60 | | \newcommand{\PARI}{{\sf PARI}\xspace} |
61 | | |
62 | | \newcommand{\MAXIMA}{{\sf Maxima}\xspace} |
63 | | \newcommand{\Maxima}{{\sf Maxima}\xspace} |
64 | | |
65 | | % ---- SHA ---- |
66 | | \DeclareFontEncoding{OT2}{}{} % to enable usage of cyrillic fonts |
67 | | \newcommand{\textcyr}[1]{% |
68 | | {\fontencoding{OT2}\fontfamily{wncyr}\fontseries{m}\fontshape{n}% |
69 | | \selectfont #1}} |
70 | | \newcommand{\Sha}{{\mbox{\textcyr{Sh}}}} |
71 | | |
72 | | \usepackage{amsmath} |
73 | | \DeclareMathOperator{\acos}{acos} |
74 | | \DeclareMathOperator{\asin}{asin} |
75 | | \DeclareMathOperator{\atan}{atan} |
76 | | \DeclareMathOperator{\acosh}{acosh} |
77 | | \DeclareMathOperator{\asinh}{asinh} |
78 | | \DeclareMathOperator{\atanh}{atanh} |
79 | | \DeclareMathOperator{\Gal}{Gal} |
80 | | \DeclareMathOperator{\Pic}{Pic} |
81 | | \DeclareMathOperator{\SL}{SL} |
82 | | \DeclareMathOperator{\Sym}{Sym} |
83 | | \DeclareMathOperator{\Spec}{Spec} |
84 | | \DeclareMathOperator{\Nr}{Nr} |
85 | | \DeclareMathOperator{\Tr}{Tr} |
86 | | \DeclareMathOperator{\GF}{GF} |
87 | | \DeclareMathOperator{\End}{End} |
88 | | \DeclareMathOperator{\Hom}{Hom} |
89 | | |
90 | | \newcommand{\algorithm}[1]{ALGORITHM: #1} |
91 | | %\renewcommand{\comment}[1]{} |
92 | | |
93 | | \addtolength{\headheight}{2.5pt} % need to add extra space for pdfdest in header |
94 | | |
95 | | % We override a couple of definitions from python.sty to fix up some |
96 | | % minor spacing issues: |
97 | | %\makeatletter |
98 | | %\renewcommand{\py@itemnewline}[1]{% |
99 | | % \@tempdima\linewidth% |
100 | | % \advance\@tempdima \leftmargin\makebox[\@tempdima][l]{\hskip\labelsep#1}% |
101 | | %} |
102 | | |
103 | | %\renewenvironment{fulllineitems}{ |
104 | | % \begin{list}{}{\labelwidth \leftmargin % \labelsep 0pt |
105 | | % \rightmargin 0pt \topsep -\parskip \partopsep \parskip |
106 | | % \itemsep -\parsep |
107 | | % \let\makelabel=\py@itemnewline} |
108 | | %}{\end{list}} |
109 | | %\makeatother |