/
scipy.sty
88 lines (72 loc) · 2.19 KB
/
scipy.sty
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
% These preamble commands are from build_paper.py
% DRAFT
\usepackage{status}
% PDF Standard Fonts
\usepackage{mathptmx}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
% Make verbatim environment smaller
\makeatletter
\g@addto@macro\@verbatim\footnotesize
\makeatother
% Do not indent code sections
\renewcommand{\quote}{}
% Provide AMS mathematical commands such as "align"
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{bm}
% Define colours for hyperref
\usepackage{color}
\definecolor{orange}{cmyk}{0,0.4,0.8,0.2}
\definecolor{darkorange}{rgb}{.71,0.21,0.01}
\definecolor{darkblue}{rgb}{.01,0.21,0.71}
\definecolor{darkgreen}{rgb}{.1,.52,.09}
% allow line breaks on hyphens for long urls
\PassOptionsToPackage{hyphens}{url}
\usepackage{hyperref}
\hypersetup{pdftex, % needed for pdflatex
breaklinks=true, % so long urls are correctly broken across lines
colorlinks=true,
urlcolor=blue,
linkcolor=darkblue,
citecolor=darkgreen,
}
% Include graphics for authors who raw-inlined figures
% (then docutils won't automatically add the package)
\usepackage{graphicx}
\usepackage{longtable}
\ifthenelse{\isundefined{\longtable}}{}{
\renewenvironment{longtable}{\begin{center}\begin{tabular}}%
{\end{tabular}\end{center}\vspace{2mm}}
% Another brittle table fix. Have a look at this if problems crop
% up with tables again.
\renewcommand{\endfirsthead}{}
\renewcommand{\endlastfoot}{}
\renewcommand{\endhead}{}
\renewcommand{\endfoot}{}
}
\usepackage{multirow}
\newlength{\tablewidth}
\setlength{\tablewidth}{\linewidth}
% Packages required for code highlighting
% textcomp and upquote make single quotes non-curly in literal blocks
\usepackage{textcomp}
\usepackage{upquote}
\usepackage{fancyvrb}
% Make single quotes non-curly in inline literal text (\texttt)
% and in code-block directives (which use Pygments; patch Pygments macro).
% Also fix backtick in inline literal text.
\AtBeginDocument{%
\let\scipyoriginaltexttt\texttt
\def\texttt#1{%
\begingroup
\scantokens{%
\catcode`\'=\active
\catcode`\`=\active
\let'\textquotesingle
\let`\textasciigrave
\scipyoriginaltexttt{#1}\noexpand}%
\endgroup}%
\def\PYZsq{\textquotesingle}%
}