%% 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: aips2-request@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}
%%
%%--------------------------------------------------------------------------
%%
%% Object template
%%
%%--------------------------------------------------------------------------
%%

\begin{ahobject}{object name}{short description}

\ahinclude{file to include}

   %
   %ahkeyword registers module keywords
   %
\ahkeyword{key}{label}

   %
   % The \ahmethods{} command indicate where to put
   % the summary listing of objects and functions.  A seperate
   % program atoms2tex.pl is run to produce the actual text.
   %
   % N.B you may also use \ahfuncs{} here.
   %
\ahmethods{}


\begin{ahdescription}
% Text describing object 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 object goes here.
\end{verbatim}
\verb!\end{verbatim}!
\begin{verbatim}
\end{ahexample}

\begin{ahcomments}
%comments about the object 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 
   %   package.function, object.method, package.object, or function
   %
\begin{ahseealso}
\ahlink{some else}{label for something else}
\end{ahseealso}


   % Method declarations follow.  You could use \input.

\begin{ahfunction}{name of method}{short description}
\end{ahfunction}

\end{ahobject}
\end{document}
