source: trunk/docs/Guide.tex @ 1107

Last change on this file since 1107 was 1107, checked in by MatthewWhiting, 12 years ago

Updating the version number to 1.2.2, and getting the documentation all up to date for the next release.

File size: 7.3 KB
RevLine 
[303]1% -----------------------------------------------------------------------
2% Guide.tex: Base latex file for the User's Guide.
3% -----------------------------------------------------------------------
4% Copyright (C) 2006, Matthew Whiting, ATNF
5%
6% This program is free software; you can redistribute it and/or modify it
7% under the terms of the GNU General Public License as published by the
8% Free Software Foundation; either version 2 of the License, or (at your
9% option) any later version.
10%
11% Duchamp is distributed in the hope that it will be useful, but WITHOUT
12% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13% FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14% for more details.
15%
16% You should have received a copy of the GNU General Public License
17% along with Duchamp; if not, write to the Free Software Foundation,
18% Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
19%
20% Correspondence concerning Duchamp may be directed to:
21%    Internet email: Matthew.Whiting [at] atnf.csiro.au
22%    Postal address: Dr. Matthew Whiting
23%                    Australia Telescope National Facility, CSIRO
24%                    PO Box 76
25%                    Epping NSW 1710
26%                    AUSTRALIA
27% -----------------------------------------------------------------------
[992]28%\documentclass[11pt,a4paper]{article}
29\documentclass[10pt,a4paper]{article}
[158]30%\documentclass[12pt,a4paper]{report}
[18]31
[103]32%%%%%% LINE SPACING %%%%%%%%%%%%
33\usepackage{setspace}
34\singlespacing
35%\onehalfspacing
36%\doublespacing
37
[18]38%Define a test for doing PDF format -- use different code below
39\newif\ifPDF
40\ifx\pdfoutput\undefined\PDFfalse
[703]41\else\ifnum\pdfoutput > 0 \PDFtrue
[18]42     \else\PDFfalse
43     \fi
44\fi
45
[231]46%\textwidth=165 mm
47%\textheight=245 mm
48%\topmargin=0 mm
49%\oddsidemargin=0 mm
50%\parindent=6 mm
[3]51
[231]52\usepackage{amsmath}
[232]53\usepackage{amsfonts}
[258]54\usepackage{xspace}
[18]55\usepackage[sort]{natbib}
56\bibpunct[,]{(}{)}{;}{a}{}{,}
[1023]57%\usepackage{biblabelurl}
[18]58
[158]59%\newcommand{\secA}{\chapter}
60%\newcommand{\secB}{\section}
61%\newcommand{\secC}{\subsection}
62
63\newcommand{\secA}{\section}
64\newcommand{\secB}{\subsection}
65\newcommand{\secC}{\subsubsection}
66
[1107]67\newcommand{\version}{1.2.2}
[158]68
[3]69\newcommand{\eg}{e.g.\ }
70\newcommand{\ie}{i.e.\ }
[258]71\newcommand{\hi}{H\textsc{i}\xspace}
72\newcommand{\hipass}{\textsc{hipass}\xspace}
73\newcommand{\duchamp}{\emph{Duchamp}\xspace}
74\newcommand{\atrous}{\textit{{\`a} trous}\xspace}
75\newcommand{\Atrous}{\textit{{\`A} trous}\xspace}
[3]76\newcommand{\diff}{{\rm d}}
[306]77\newcommand{\entrylabel}[1]{\mbox{\texttt{#1:}}\hfil}
[3]78\newenvironment{entry}
79        {\begin{list}{}%
80                {\renewcommand{\makelabel}{\entrylabel}%
[306]81                        \setlength{\leftmargin}{33mm}%
82                        \setlength{\labelwidth}{33mm}%
83                        \setlength{\labelsep}{0pt}%
84                        \setlength{\itemsep}{3pt}%
[3]85                        \setlength{\parsep}{2pt}%
86                }%
87        }%
88{\end{list}}
89
[306]90%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
91
92\newlength{\MyLen}
93\newcommand{\Lentrylabel}[1]{%
94  \settowidth{\MyLen}{\texttt{#1:}}%
95%  \setlength{\labelwidth}{30mm}%
96  \ifthenelse{\lengthtest{\MyLen > \labelwidth}}%
97    {\parbox[b]{\labelwidth}% term > labelwidth
98      {\makebox[0pt][l]{\texttt{#1:}}\\}}%
99    {\texttt{#1:}}% term < labelwidth
100    \hfil\relax}
101
102\newenvironment{Lentry}%
103               {\renewcommand{\entrylabel}{\Lentrylabel}\begin{entry}
[330]104                   \setlength{\itemsep}{3pt}%
[306]105%                  \setlength{\leftmargin}{25mm}%
106%                  \setlength{\itemindent}{0mm}%
107%                  \setlength{\listparindent}{0mm}%
[330]108                   \setlength{\labelsep}{0mm}%
[306]109               }%
110               {\end{entry}%
111               }
112
113%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
114
115\newcommand{\Mentrylabel}[1]%
116           {\raisebox{0pt}[1ex][0pt]{\makebox[\labelwidth][l]%
117               {\parbox[t]{\labelwidth}{\hspace{0pt}\texttt{#1}}}}}
118\newenvironment{Mentry}
119               {\renewcommand{\entrylabel}{\Mentrylabel}\begin{entry}%
120                   \setlength{\labelwidth}{33mm}%
121                   \setlength{\leftmargin}{35mm}%
122               }%
123               {\end{entry}%
124               }
125%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
126
127
[158]128%%%%%%% FANCY HEADINGS %%%%%%%%%%
129%\usepackage{fancyheadings}
130%\pagestyle{fancyplain}
131%\addtolength{\headheight}{1.6pt}
132%\addtolength{\headwidth}{\marginparsep}
133%\addtolength{\headwidth}{\marginparwidth}
134%\renewcommand{\secAmark}[1]
135%                {\markboth{#1}{}}
136%\renewcommand{\secBmark}[1]
137%                {\markright{\thesection\ #1}}
138%\lhead[\fancyplain{}{\bfseries\thepage}]
139%      {\fancyplain{}{\bfseries\rightmark}}
140%\rhead[\fancyplain{}{\bfseries\leftmark}]
141%      {\fancyplain{}{\bfseries\thepage}}
142%\cfoot{}
[18]143
144% If we are creating a PDF, use different options for graphicx, hyperref.
145\ifPDF
146  \usepackage[pdftex]{graphicx,color}
[158]147  \usepackage[pdftex,bookmarks]{hyperref}
[18]148  \hypersetup{colorlinks=true,%             
[80]149              citecolor=red,%
150              filecolor=red,%
151              linkcolor=red,%
152              urlcolor=red,%
153              }
[18]154\else
155  \usepackage[dvips]{graphicx}
156  \usepackage[dvips]{hyperref}
157\fi
158
[231]159\usepackage{lscape}
160\usepackage[dvips]{rotating}
161%\rotdriver{dvips}
162
[80]163\pagestyle{headings}
[3]164\begin{document}
165
[158]166\ifPDF
[162]167\pdfbookmark[2]{Title Page}{title}
[158]168\fi
169\newlength{\centreoff}
170\setlength{\centreoff}{-0.5\oddsidemargin}
171\addtolength{\centreoff}{0.5\evensidemargin}
[80]172\thispagestyle{empty}
[158]173\vspace*{\stretch{1}}
174\noindent\hspace*{\centreoff}%
175\makebox[0pt][l]{\begin{minipage}{\textwidth}
176\flushright
[231]177{\Huge\bfseries Source Detection with \duchamp\\[2ex]}
178{\huge\bfseries A User's Guide
[158]179
180}
181\noindent\rule[-1ex]{\textwidth}{3pt}
182\end{minipage}}
183
184\vspace{\stretch{1}}
185\noindent\hspace*{\centreoff}%
186\makebox[0pt][l]{\begin{minipage}{\textwidth}
187\flushright
188{\bfseries
189Matthew Whiting\\
190Australia Telescope National Facility\\
191CSIRO\\[3ex]}
[364]192Duchamp version~\version\\
[1107]193October 29, 2012
[158]194\end{minipage}}
195
[80]196\begin{figure}[!h]
[162]197%\begin{center}
[80]198\includegraphics[width=\textwidth]{cover_image}
[162]199%\end{center}
[80]200\end{figure}
201
[158]202%\newpage
[162]203\ifPDF
204\pdfbookmark[2]{Contents}{contents}
205\fi
[3]206\tableofcontents
207
[208]208\newpage
[158]209\input{intro} %Introduction and getting going quickly
[3]210\newpage
[158]211\input{userInputs} %User Inputs
[3]212\newpage
[258]213\input{executionFlow} %What \duchamp is doing
[110]214\newpage
[158]215\input{outputs} %Outputs
[3]216\newpage
[447]217\newpage
[158]218\input{hints} %Notes and hints on the use of \duchamp
[3]219\newpage
[158]220\input{future} %Future developments
[1028]221\newpage
222\input{acknowledgements} %Acknowledgements
[3]223
[964]224\newpage
[992]225\ifPDF
226\pdfbookmark[1]{References}{references}
227\fi
[1030]228%\bibliographystyle{plainnat}
229%%\bibliographystyle{hapj}
230%%\bibliographystyle{plainnaturl}
231%%\bibliographystyle{mn2e}
232%%\bibliography{mnemonic,MasterBibliography}
233%\bibliography{guide}
234%%\bibliography{Guide-new}
[3]235
[1023]236%\newpage
237%\ifPDF
238%\pdfbookmark[1]{References}{references}
239%\fi
240%\ifPDF
[1030]241\input{Guide-URL-bib}
[1023]242%\else
243%\input{Guide-noURL-bib}
244%\fi
245
[158]246\appendix
[3]247\newpage
[158]248\input{app-install} %Obtaining and installing \duchamp
[87]249\newpage
[158]250\input{app-param} %Available parameters
[87]251\newpage
[158]252\input{app-paramEx} %Example parameter files
[231]253\newpage
[158]254\input{app-resultsEx} %Example results files
[231]255\newpage
[158]256\input{app-VOTable} %Example VOTable output
[231]257\newpage
[158]258\input{app-Karma} %Example Karma annotation file output
[24]259\newpage
[1078]260\input{app-DS9} %Example DS9 region file output
261\newpage
[158]262\input{app-stats} %Robust statistics for a Normal distribution
[231]263\newpage
[158]264\input{app-waveletNoise} %How Gaussian noise changes with wavelet scale
[24]265
266
267\end{document}
Note: See TracBrowser for help on using the repository browser.