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