source: trunk/docs/Guide.tex @ 1025

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

Mucking around with bibliography. Also some of the way to fixing the hints chapter.

File size: 7.1 KB
Line 
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% -----------------------------------------------------------------------
28%\documentclass[11pt,a4paper]{article}
29\documentclass[10pt,a4paper]{article}
30%\documentclass[12pt,a4paper]{report}
31
32%%%%%% LINE SPACING %%%%%%%%%%%%
33\usepackage{setspace}
34\singlespacing
35%\onehalfspacing
36%\doublespacing
37
38%Define a test for doing PDF format -- use different code below
39\newif\ifPDF
40\ifx\pdfoutput\undefined\PDFfalse
41\else\ifnum\pdfoutput > 0 \PDFtrue
42     \else\PDFfalse
43     \fi
44\fi
45
46%\textwidth=165 mm
47%\textheight=245 mm
48%\topmargin=0 mm
49%\oddsidemargin=0 mm
50%\parindent=6 mm
51
52\usepackage{amsmath}
53\usepackage{amsfonts}
54\usepackage{xspace}
55\usepackage[sort]{natbib}
56\bibpunct[,]{(}{)}{;}{a}{}{,}
57%\usepackage{biblabelurl}
58
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
67\newcommand{\version}{1.2}
68
69\newcommand{\eg}{e.g.\ }
70\newcommand{\ie}{i.e.\ }
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}
76\newcommand{\diff}{{\rm d}}
77\newcommand{\entrylabel}[1]{\mbox{\texttt{#1:}}\hfil}
78\newenvironment{entry}
79        {\begin{list}{}%
80                {\renewcommand{\makelabel}{\entrylabel}%
81                        \setlength{\leftmargin}{33mm}%
82                        \setlength{\labelwidth}{33mm}%
83                        \setlength{\labelsep}{0pt}%
84                        \setlength{\itemsep}{3pt}%
85                        \setlength{\parsep}{2pt}%
86                }%
87        }%
88{\end{list}}
89
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}
104                   \setlength{\itemsep}{3pt}%
105%                  \setlength{\leftmargin}{25mm}%
106%                  \setlength{\itemindent}{0mm}%
107%                  \setlength{\listparindent}{0mm}%
108                   \setlength{\labelsep}{0mm}%
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
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{}
143
144% If we are creating a PDF, use different options for graphicx, hyperref.
145\ifPDF
146  \usepackage[pdftex]{graphicx,color}
147  \usepackage[pdftex,bookmarks]{hyperref}
148  \hypersetup{colorlinks=true,%             
149              citecolor=red,%
150              filecolor=red,%
151              linkcolor=red,%
152              urlcolor=red,%
153              }
154\else
155  \usepackage[dvips]{graphicx}
156  \usepackage[dvips]{hyperref}
157\fi
158
159\usepackage{lscape}
160\usepackage[dvips]{rotating}
161%\rotdriver{dvips}
162
163\pagestyle{headings}
164\begin{document}
165
166\ifPDF
167\pdfbookmark[2]{Title Page}{title}
168\fi
169\newlength{\centreoff}
170\setlength{\centreoff}{-0.5\oddsidemargin}
171\addtolength{\centreoff}{0.5\evensidemargin}
172\thispagestyle{empty}
173\vspace*{\stretch{1}}
174\noindent\hspace*{\centreoff}%
175\makebox[0pt][l]{\begin{minipage}{\textwidth}
176\flushright
177{\Huge\bfseries Source Detection with \duchamp\\[2ex]}
178{\huge\bfseries A User's Guide
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]}
192Duchamp version~\version\\
193July 31, 2012
194\end{minipage}}
195
196\begin{figure}[!h]
197%\begin{center}
198\includegraphics[width=\textwidth]{cover_image}
199%\end{center}
200\end{figure}
201
202%\newpage
203\ifPDF
204\pdfbookmark[2]{Contents}{contents}
205\fi
206\tableofcontents
207
208\newpage
209\input{intro} %Introduction and getting going quickly
210\newpage
211\input{userInputs} %User Inputs
212\newpage
213\input{executionFlow} %What \duchamp is doing
214\newpage
215\input{outputs} %Outputs
216\newpage
217\newpage
218\input{hints} %Notes and hints on the use of \duchamp
219\newpage
220\input{future} %Future developments
221
222\newpage
223\ifPDF
224\pdfbookmark[1]{References}{references}
225\fi
226\bibliographystyle{plainnat}
227%\bibliographystyle{plainnaturl}
228%\bibliographystyle{mn2e}
229\bibliography{mnemonic,MasterBibliography}
230%\bibliography{Guide-new}
231
232%\newpage
233%\ifPDF
234%\pdfbookmark[1]{References}{references}
235%\fi
236%\ifPDF
237%\input{Guide-URL-bib}
238%\else
239%\input{Guide-noURL-bib}
240%\fi
241
242\appendix
243\newpage
244\input{app-install} %Obtaining and installing \duchamp
245\newpage
246\input{app-param} %Available parameters
247\newpage
248\input{app-paramEx} %Example parameter files
249\newpage
250\input{app-resultsEx} %Example results files
251\newpage
252\input{app-VOTable} %Example VOTable output
253\newpage
254\input{app-Karma} %Example Karma annotation file output
255\newpage
256\input{app-stats} %Robust statistics for a Normal distribution
257\newpage
258\input{app-waveletNoise} %How Gaussian noise changes with wavelet scale
259
260
261\end{document}
Note: See TracBrowser for help on using the repository browser.