source: trunk/documents/theses/dstn/preamble.tex @ 12282

Revision 12282, 5.3 KB checked in by dstn, 14 months ago (diff)

review: related astrometric calibration work

Line 
1% from http://mintaka.sdsu.edu/GF/bibliog/latex/floats.html
2% Alter some LaTeX defaults for better treatment of figures:
3% See p.105 of "TeX Unbound" for suggested values.
4% See pp. 199-200 of Lamport's "LaTeX" book for details.
5%   General parameters, for ALL pages:
6\renewcommand{\topfraction}{0.9}        % max fraction of floats at top
7\renewcommand{\bottomfraction}{0.8}     % max fraction of floats at bottom
8%   Parameters for TEXT pages (not float pages):
9\setcounter{topnumber}{2}
10\setcounter{bottomnumber}{2}
11\setcounter{totalnumber}{4}     % 2 may work better
12\setcounter{dbltopnumber}{2}    % for 2-column pages
13\renewcommand{\dbltopfraction}{0.9}     % fit big float above 2-col. text
14%\renewcommand{\textfraction}{0.07}     % allow minimal text w. figs
15%   Parameters for FLOAT pages (not text pages):
16%\renewcommand{\floatpagefraction}{0.7} % require fuller float pages
17% N.B.: floatpagefraction MUST be less than topfraction !!
18%\renewcommand{\dblfloatpagefraction}{0.7}      % require fuller float pages
19% remember to use [htp] or [htpb] for placement
20
21% \afterpage{clearpage}
22
23\usepackage{amssymb,amsmath}
24\usepackage{graphicx}
25\usepackage{multirow}
26\usepackage{natbib}
27\usepackage{xspace}
28\usepackage{dcolumn}
29\usepackage{afterpage}
30
31\newlength{\figunit}
32\setlength{\figunit}{0.48\textwidth}
33
34% Marginal notes
35\newcommand{\note}[1]{\marginpar{{\footnotesize #1}}}
36
37\newcommand{\unit}[1]{\ensuremath{\mathrm{#1}}}
38\renewcommand{\arcmin}{\unit{arcmin}}
39\renewcommand{\mag}{\unit{mag}}
40\newcommand{\nanometers}{\unit{nm}}
41\newcommand{\degrees}{\unit{degrees}}
42\renewcommand{\deg}{\unit{degree}}
43\newcommand{\RA}{\unit{RA}}
44\newcommand{\Dec}{\unit{Dec}}
45\newcommand{\milliseconds}{\unit{ms}}
46
47\newcommand{\scamp}{{\texttt Scamp}\xspace}
48
49\newcommand{\captionpart}[1]{\textbf{#1}}
50
51\newcommand{\metadata}{meta-data\xspace}
52
53\newcommand{\xref}[2]{\mbox{#1 \ref{#2}}\xspace}
54\newcommand{\eqnref}[1]{\xref{equation}{#1}}
55\newcommand{\secref}[1]{\xref{section}{#1}}
56\newcommand{\subsubsecref}[1]{\secref{#1}}
57\newcommand{\Fig}{Figure\xspace}
58\newcommand{\fig}{figure\xspace}
59\newcommand{\figs}{figures\xspace}
60\newcommand{\figref}[1]{\xref{\fig}{#1}}
61\newcommand{\Figref}[1]{\xref{\Fig}{#1}}
62\newcommand{\Chapref}[1]{\xref{Chapter}{#1}}
63\newcommand{\chapref}[1]{\xref{chapter}{#1}}
64
65\newcommand{\squareparens}[1]{\left[ \, #1 \, \right]}
66\newcommand{\expect}[1]{\mathbb{E}\squareparens{#1}}
67\newcommand{\expectover}[2]{\mathbb{E}_{#1}\squareparens{#2}}
68\newcommand{\given}{\,\vert\,}
69
70\newcommand{\aposteriori}{\textsl{a posteriori}}
71\newcommand{\MAP}{maximum \aposteriori}
72
73\newcommand{\abs}[1]{\left\lvert #1 \right\rvert}
74\newcommand{\ngauss}{\mathcal{N}}
75\newcommand{\pgauss}[3]{\ngauss(#1 \, | \, #2,\, #3)}
76\newcommand{\ie}{\textit{i.e.}}
77\newcommand{\viceversa}{vice versa}
78\newcommand{\eg}{eg.}
79\newcommand{\dd}{\mathrm{d}}
80\newcommand{\krondelta}[2]{\delta(#1, #2)}
81\newcommand{\thetamax}{\theta_{\mathrm{max}}}
82
83% KDTREE stuff
84\newcommand{\codecomment}[1]{\# \hackbold{#1}}
85
86
87% VERIFY stuff
88\newcommand{\fg}{\ensuremath{F}}
89\newcommand{\bg}{\ensuremath{B}}
90\newcommand{\data}{\ensuremath{D}}
91
92\newcommand{\fgone}{\ensuremath{F_1}}
93\newcommand{\bgone}{\ensuremath{B_1}}
94\newcommand{\fgsymm}{\ensuremath{F_s}}
95\newcommand{\bgsymm}{\ensuremath{B_s}}
96\newcommand{\bgadapt}{\ensuremath{B_a}}
97\newcommand{\fgtwo}{\ensuremath{F_2}}
98
99%\newcommand{\fgsymm}{\ensuremath{F\!{}_s}}
100%\newcommand{\bgsymm}{\ensuremath{B\!{}_s}}
101%\newcommand{\underr}{\ensuremath{U_r}}
102%\newcommand{\undert}{\ensuremath{U_t}}
103%\newcommand{\underfg}{\ensuremath{U}}
104
105\newcommand{\tableheader}[1]{\multicolumn{1}{|c|}{\textbf{#1}}}
106\newcommand{\mtableheader}[2]{\multicolumn{#1}{|c|}{\textbf{#2}}}
107
108%\newcommand{\an}{\emph{Astrometry.net}}
109\newcommand{\an}{\textsl{Astrometry.net}\xspace}
110\newcommand{\antitle}{Astrometry.net\xspace}
111\newcommand{\kdtreetitle}{KD-tree\xspace}
112\newcommand{\kdtreestitle}{kd-trees\xspace}
113\newcommand{\kdtree}{kd-tree\xspace}
114\newcommand{\kdtrees}{kd-trees\xspace}
115\newcommand{\Kdtree}{Kd-tree\xspace}
116\newcommand{\Kdtrees}{Kd-trees\xspace}
117
118\DeclareMathOperator*{\argmax}{argmax}
119
120\newcommand{\percent}{\%}
121
122\newcommand{\floor}[1]{\ensuremath{\left\lfloor #1 \right\rfloor}}
123\newcommand{\ceil}[1]{\ensuremath{\left\lceil #1 \right\rceil}}
124\newcommand{\half}{\ensuremath{\frac{1}{2}}}
125\newcommand{\smallhalf}{\ensuremath{\textstyle \frac{1}{2}}}
126%\newcommand{\deg}{\ensuremath{^\circ}}
127\newcommand{\latin}[1]{\textit{#1}}
128\newcommand{\etal}{\emph{et al.}~}
129
130\newcommand{\hackbold}[1]{\makebox[0pt][l]{\hspace{0.2pt}#1}#1}
131\newcommand{\class}{\hackbold{class} }
132\newcommand{\func}{\hackbold{def} }
133\newcommand{\spc}{ }
134
135\newcommand{\mindist}{\texttt{mindist}\xspace}
136\newcommand{\maxdist}{\texttt{maxdist}\xspace}
137\newcommand{\trick}[1]{\subsection{#1}}
138\DeclareMathOperator*{\argmin}{argmin}
139\newcommand{\ftt}[1]{{\scriptsize\tt #1}}
140
141\newenvironment{codesize}
142               {\begin{scriptsize}}
143               {\end{scriptsize}}
144
145\newcommand{\tabstops}{123\=123\=123\=123\=123\=\kill}
146
147\newenvironment{pcode}
148               {\begin{center}% \fbox{%
149               \begin{minipage}[c]{\textwidth}%
150               \begin{codesize}%
151                   \tt
152                   \begin{tabbing}
153                     \tabstops
154               }
155               {\end{tabbing}%
156                 \end{codesize}%
157                 \end{minipage}%
158                 \end{center}%
159               }
160
Note: See TracBrowser for help on using the repository browser.