%% Copyright (C) 2003
%% Associated Universities, Inc. Washington DC, USA.
%%
%% This library is free software; you can redistribute it and/or modify it
%% under the terms of the GNU Library General Public License as published by
%% the Free Software Foundation; either version 2 of the License, or (at your
%% option) any later version.
%%
%% This library is distributed in the hope that it will be useful, but WITHOUT
%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
%% FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
%% License for more details.
%%
%% You should have received a copy of the GNU Library General Public License
%% along with this library; if not, write to the Free Software Foundation,
%% Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
%%
%% Correspondence concerning AIPS++ should be addressed as follows:
%%        Internet email: casa-feedback@nrao.edu.
%%        Postal address: AIPS++ Project Office
%%                        National Radio Astronomy Observatory
%%                        520 Edgemont Road
%%                        Charlottesville, VA 22903-2475 USA
%%
%% $Id$
\documentclass{book}
\usepackage{aips2help,html}
\begin{document}
%%
%%--------------------------------------------------------------------------
%%
%% Module template
%%
%%--------------------------------------------------------------------------
%%

   %
   %ahmodule requires three arguments, first is the module name,
   %   and second is a short description of the module
   %
\begin{ahmodule}{mymodule}{shortdescription}

\ahinclude{file to include}

   %
   %ahkeyword registers module keywords with the last declared category
   %
\ahkeyword{key}{label}


\begin{ahdescription}
Text describing module goes here.
\end{ahdescription}

   %
   %with ahexample you'll need to specify the example text inside
   %  the verbatim environment.  I couldn't hide the verbatim enviornment
   %  from the user, sorry.
   %
\begin{ahexample}
\begin{verbatim}
Example of using the module goes here.
\end{verbatim}
\verb!\end{verbatim}!
\begin{verbatim}
\end{ahexample}

\begin{ahcomments}
comments about the module example goes here
\end{ahcomments}

   %
   %ahseealso environment uses the \ahlink command to make a list of
   %   see also links to labels, labels should have the form 
   %   module.function, object.method, module.object, or function
   %
\begin{ahseealso}
\ahlink{some else}{label for something else}
\end{ahseealso}

   %
   % The \ahobjs{} and \ahfuncs{} commands indicate where to put
   % the summary listing of objects and functions.  A seperate
   % program atoms2tex.pl is run to produce the actual text.
   %
\ahobjs{}
\ahfuncs{}

   %
   % We define all objects belonging to the module inside the ahobject
   % environment, here we could use \input{object.help} if we so desired.
   %

\begin{ahobject}
object text goes here.  See object template.
\end{ahobject}

   %
   % We define all functions belonging to the module inside the ahfunction
   % environment, here we could use \input{function.help} if we so desired.
   %
\begin{ahfunction}
function text goes here.  See function template.
\end{ahfunction}


\end{ahmodule}
\end{document}
