\documentclass{article}

\usepackage{graphicx}
\usepackage{moreverb}    % Defines {listing} environment.
\usepackage{amsmath, amsthm, amssymb, amsbsy, mathtools}
\usepackage{alltt}
\usepackage{rotating}
\usepackage[TABBOTCAP]{subfigure}
\usepackage{toc}
\usepackage{xspace}
%%\usepackage{makeidx}
\usepackage[section]{placeins}   % For preventing floats from floating to end of chapter.
\usepackage{longtable}  % For splitting long vertical tables into pieces
\usepackage{index}
\usepackage{multirow}
\usepackage{booktabs}   % For table layouts
\usepackage{yhmath}     % For widehat

\usepackage[T1]{fontenc}   % so _, <, and > print correctly in text.
\usepackage[strings]{underscore}    % to use "_" in text
\usepackage[pdftex,colorlinks=true]{hyperref}   % Must be last package!

%----------------------------------------------------------------

\input{macros.tex}

\setlength{\textwidth}{6.25in}
\setlength{\hoffset}{0.0in}
\setlength{\oddsidemargin}{0.25in}
\setlength{\evensidemargin}{0.0in}
%\setlength{\textheight}{8.5in}
\setlength{\topmargin}{0in}

%\makeindex
%\newindex{routine}{rdx}{rnd}{Routine Index}

\begin{document}

%----------------------------------------------------------------

%\renewcommand{\textfraction}{0.1}
%\renewcommand{\topfraction}{1.0}

%----------------------------------------------------------------
%\include{cover-page}

%----------------------------------------------------------------
{
%\setlength{\parskip}{\dPar}
%\setlength{\parindent}{0ex}
%\include{overview}
%\include{introduction}
}

%----------------------------------------------------------------

%\cleardoublepage
%\phantomsection 
%\pdfbookmark[0]{Contents}{Contents}
%\pdfbookmark[1]{Table of Contents}{toc} 
%\tableofcontents

%\cleardoublepage
%\phantomsection 
%\pdfbookmark[1]{List of Figures}{LoF} 
%\listoffigures

%\cleardoublepage
%\phantomsection 
%\pdfbookmark[1]{List of Tables}{LoT} 
%\listoftables

%----------------------------------------------------------------
%\setlength{\parskip}{\dPar}
%\setlength{\parindent}{0ex}

%----------------------------------------------------------------
%\part{Language Reference}
%--------------------------------------------------------------
\setcounter{section}{0}
\section{General Parameters}
\subsection*{\tt lat\_file\_name}
The lattice file, written in BMAD format, describes the injection line and ring layout and lattice. 
\subsection*{\tt  nturns}
The number of turns through which the particles will be tracked.
\section{Muon distribution}
\subsection*{\tt  nmuons}
Integer: The number of muons in the initial distribution. If {\tt nmuons}=1, 
\subsection*{\tt  create\_new\_distribution}
Logical: If true create a new distribution. If false, read the distribution from a file.
\subsection*{\tt  seed}
Integer: Random number seed. If {\tt seed = 0} then random seed. If {\tt seed /= 0} then value of {\tt seed} initiates random number list
\subsection*{\tt   new_file}
Character string: If you create a new distribution, it will be saved for reuse in file {\tt new_file}. If {\tt new_file} = {\tt 'empty'} the distribution is not saved
  \subsection*{\tt muon\_file}
Character string: Name of a file with a phase and spin space distribution. Examples are found in the {\tt g-2/files/muons/ } directory and include 
\begin{itemize}
\item{\tt VDstop_DS_436_12000.dat} - http://gm2-docdb.fnal.gov:8080/cgi-bin/ShowDocument?docid=1811 
\item{\tt particles_Q20EntrC_100.txt} - http://gm2-docdb.fnal.gov:8080/cgi-bin/ShowDocument?docid=3634
\item{\tt particles_Q21EntrC_100.txt} - http://gm2-docdb.fnal.gov:8080/cgi-bin/ShowDocument?docid=3634
\item{\tt particles_endm4m5_100.txt} - http://gm2-docdb.fnal.gov:8080/cgi-bin/ShowDocument?docid=3634
\end{itemize}

  \subsection*{\tt  tdistr}
Character string: Description of temporal distribution of muons.
\begin{itemize}
\item {\tt``flat''} - flat
\item{\tt ``gaus''} - gaussian
\item{\tt ``e821''} - time distribution measured for e821
\item{\tt ``e989''} - 'W'-shaped distribution anticipated for e981
\end{itemize} 
  \subsection*{\tt  tlength}
Real:
  \subsection*{\tt  tsigma}
Real:
 \subsection*{\tt  pzdistr}
Real:
  \subsection*{\tt  pz}
Real:
  \subsection*{\tt  pzsigma}
Real:
  \subsection*{\tt epsdistr}
Real:
  \subsection*{\tt epsx}
Real:
  \subsection*{\tt epsy}
Real:
  \subsection*{\tt twiss}
Real:
  \subsection*{\tt twiss\_ref}
Real:
\section{Ring initialization}
  \subsection*{\tt start\_tracking\_at\_inflector\_exit}
  \subsection*{\tt twiss\_file}
 \subsection*{\tt ring\_twiss}
\section{Injection Channel}
 \subsection*{\tt  inf\_aperture}
 \subsection*{\tt  inflector\_width}
\subsection*{\tt   inflector\_angle}
\subsection*{\tt   inflector\_field}
 \subsection*{\tt  inf\_end\_us}
\subsection*{\tt   inf\_end\_ds}
 \subsection*{\tt  enerloss}
\section{Initial Beam Offset and Angle}
\subsection*{\tt   initial\_offsets}
\subsection*{\tt   opt\_incident}
\subsection*{\tt   inj\_matrix\_tracking}
\subsection*{\tt   ring\_theta }
\section{Kicker}
\subsection*{\tt   kickerPlates}
\subsection*{\tt   kickerCircuit}
\subsection*{\tt   kickerFieldType}
\subsection*{\tt   kicker\_params}
\subsection*{\tt   kicker\_tStart}


%\chapter{Overview}
%\label{c:overview}
%\include{overview}
%\chapter{Injection Channel}
%\label{c:injection-channel}
%\include{injection-channel}
%\label{c:muon_distribution}
%\include{Muon distribution}
%\label{c:electrostatic_quadrupoles}
%\include{Electrostatic quadrupoles}
%\include{attributes}
%\include{methods}
%\include{lines-and-lists}
%\include{superimpose-and-multipass}
%\include{param-statements}
%\include{param-structs}
%\include{lattice-examples}
%%\include{list-of-element-attributes}

%----------------------------------------------------------------
%\part{Conventions and Physics}
%----------------------------------------------------------------
%\include{coordinates}
%\include{physics}
%\include{charged-tracking}
%\include{xray-tracking}
%\include{simulation-modules}

%----------------------------------------------------------------
%\part{Programmer's Guide}
%----------------------------------------------------------------
%\include{programming}
%\include{example-program}
%\include{ele-struct}
%\include{lat-struct}
%\include{reading-and-writing-lattices}
%\include{normal-modes}
%\include{tracking}
%\include{misc-programming}
%\include{ptc}
%\include{opal}
%\include{cpp-interface}
%\include{quick-plot}
%\include{helper-routines}
%\include{subroutines}


%----------------------------------------------------------------
%\part{Bibliography and Index}
%----------------------------------------------------------------

%\cleardoublepage
%\phantomsection
%\addcontentsline{toc}{chapter}{Bibliography}
%\include{bibliography}

%\cleardoublepage
%\phantomsection
%\addcontentsline{toc}{chapter}{Routine Index}
%\printindex[routine]

%\cleardoublepage
%\phantomsection
%\addcontentsline{toc}{chapter}{Index}
%\printindex

\end{document}
