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

Revision 12281, 5.2 KB checked in by dstn, 14 months ago (diff)

review section on astrometric calibration

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\newcommand{\RA}{\unit{RA}}
43\newcommand{\Dec}{\unit{Dec}}
44\newcommand{\milliseconds}{\unit{ms}}
45
46\newcommand{\captionpart}[1]{\textbf{#1}}
47
48\newcommand{\metadata}{meta-data\xspace}
49
50\newcommand{\xref}[2]{\mbox{#1 \ref{#2}}\xspace}
51\newcommand{\eqnref}[1]{\xref{equation}{#1}}
52\newcommand{\secref}[1]{\xref{section}{#1}}
53\newcommand{\subsubsecref}[1]{\secref{#1}}
54\newcommand{\Fig}{Figure\xspace}
55\newcommand{\fig}{figure\xspace}
56\newcommand{\figs}{figures\xspace}
57\newcommand{\figref}[1]{\xref{\fig}{#1}}
58\newcommand{\Figref}[1]{\xref{\Fig}{#1}}
59\newcommand{\Chapref}[1]{\xref{Chapter}{#1}}
60\newcommand{\chapref}[1]{\xref{chapter}{#1}}
61
62\newcommand{\squareparens}[1]{\left[ \, #1 \, \right]}
63\newcommand{\expect}[1]{\mathbb{E}\squareparens{#1}}
64\newcommand{\expectover}[2]{\mathbb{E}_{#1}\squareparens{#2}}
65\newcommand{\given}{\,\vert\,}
66
67\newcommand{\aposteriori}{\textsl{a posteriori}}
68\newcommand{\MAP}{maximum \aposteriori}
69
70\newcommand{\abs}[1]{\left\lvert #1 \right\rvert}
71\newcommand{\ngauss}{\mathcal{N}}
72\newcommand{\pgauss}[3]{\ngauss(#1 \, | \, #2,\, #3)}
73\newcommand{\ie}{\textit{i.e.}}
74\newcommand{\viceversa}{vice versa}
75\newcommand{\eg}{eg.}
76\newcommand{\dd}{\mathrm{d}}
77\newcommand{\krondelta}[2]{\delta(#1, #2)}
78\newcommand{\thetamax}{\theta_{\mathrm{max}}}
79
80% KDTREE stuff
81\newcommand{\codecomment}[1]{\# \hackbold{#1}}
82
83
84% VERIFY stuff
85\newcommand{\fg}{\ensuremath{F}}
86\newcommand{\bg}{\ensuremath{B}}
87\newcommand{\data}{\ensuremath{D}}
88
89\newcommand{\fgone}{\ensuremath{F_1}}
90\newcommand{\bgone}{\ensuremath{B_1}}
91\newcommand{\fgsymm}{\ensuremath{F_s}}
92\newcommand{\bgsymm}{\ensuremath{B_s}}
93\newcommand{\bgadapt}{\ensuremath{B_a}}
94\newcommand{\fgtwo}{\ensuremath{F_2}}
95
96%\newcommand{\fgsymm}{\ensuremath{F\!{}_s}}
97%\newcommand{\bgsymm}{\ensuremath{B\!{}_s}}
98%\newcommand{\underr}{\ensuremath{U_r}}
99%\newcommand{\undert}{\ensuremath{U_t}}
100%\newcommand{\underfg}{\ensuremath{U}}
101
102\newcommand{\tableheader}[1]{\multicolumn{1}{|c|}{\textbf{#1}}}
103\newcommand{\mtableheader}[2]{\multicolumn{#1}{|c|}{\textbf{#2}}}
104
105%\newcommand{\an}{\emph{Astrometry.net}}
106\newcommand{\an}{\textsl{Astrometry.net}\xspace}
107\newcommand{\antitle}{Astrometry.net\xspace}
108\newcommand{\kdtreetitle}{KD-tree\xspace}
109\newcommand{\kdtreestitle}{kd-trees\xspace}
110\newcommand{\kdtree}{kd-tree\xspace}
111\newcommand{\kdtrees}{kd-trees\xspace}
112\newcommand{\Kdtree}{Kd-tree\xspace}
113\newcommand{\Kdtrees}{Kd-trees\xspace}
114
115\DeclareMathOperator*{\argmax}{argmax}
116
117\newcommand{\percent}{\%}
118
119\newcommand{\floor}[1]{\ensuremath{\left\lfloor #1 \right\rfloor}}
120\newcommand{\ceil}[1]{\ensuremath{\left\lceil #1 \right\rceil}}
121\newcommand{\half}{\ensuremath{\frac{1}{2}}}
122\newcommand{\smallhalf}{\ensuremath{\textstyle \frac{1}{2}}}
123%\newcommand{\deg}{\ensuremath{^\circ}}
124\newcommand{\latin}[1]{\textit{#1}}
125\newcommand{\etal}{\emph{et al.}~}
126
127\newcommand{\hackbold}[1]{\makebox[0pt][l]{\hspace{0.2pt}#1}#1}
128\newcommand{\class}{\hackbold{class} }
129\newcommand{\func}{\hackbold{def} }
130\newcommand{\spc}{ }
131
132\newcommand{\mindist}{\texttt{mindist}\xspace}
133\newcommand{\maxdist}{\texttt{maxdist}\xspace}
134\newcommand{\trick}[1]{\subsection{#1}}
135\DeclareMathOperator*{\argmin}{argmin}
136\newcommand{\ftt}[1]{{\scriptsize\tt #1}}
137
138\newenvironment{codesize}
139               {\begin{scriptsize}}
140               {\end{scriptsize}}
141
142\newcommand{\tabstops}{123\=123\=123\=123\=123\=\kill}
143
144\newenvironment{pcode}
145               {\begin{center}% \fbox{%
146               \begin{minipage}[c]{\textwidth}%
147               \begin{codesize}%
148                   \tt
149                   \begin{tabbing}
150                     \tabstops
151               }
152               {\end{tabbing}%
153                 \end{codesize}%
154                 \end{minipage}%
155                 \end{center}%
156               }
157
Note: See TracBrowser for help on using the repository browser.