\documentclass[twoside]{MATH77} \usepackage{multicol} \usepackage[fleqn,reqno,centertags]{amsmath} \begin{document} \begmath 8.7 Your Title (With Correct Number to the left) \silentfootnote{$^\copyright$\thisyear \ Math \`a la Carte, Inc.} \subsection{Purpose} Whatever the purpose of the routine is. You could look at other subprogram documents to get an idea of what goes here. You can request the \TeX for other documents to see how certain things are done. \subsection{Usage} \subsubsection{Program Prototype, Single Precision} \begin{description} \item[REAL] \ {\bf X1, X2, ??, \ldots} \item[INTEGER] \ {\bf ??, \ldots} \end{description} Assign values to X1 ???. $$ \fbox{\bf CALL YOUR\_CODE(X1, X2, \ldots)} $$ Indicate what to expect when done. Especially for long chapters use \label{...} and \ref{...}, \pageref{...}, or \eqref{...}. A table of contents is also desirable for really long chapters. \subsubsection{Argument Definitions} \begin{description} \item[X1] \ [inout] (or [in] or [out] or [scratch]) Describe it. \item[X2 \ [inout] Etc. \end{description} \subsubsection{Modifications for Double Precision} For double-precision usage change the name SNAME to DNAME, and change the REAL declaration to DOUBLE PRECISION. One can also declare things to be DOUBLE PRECISION, and change this to be "Modifications for Single Precision", with SNAME and DNAME interchanged, etc. \subsection{Examples and Remarks} The program DRDNAME illustrates the use of DNAME to xxx. Output is shown in ODDNAME. \subsection{Functional Description} Your description or how things get done. Please make an effort to bold face vectors. Use features from amstex.sty to typeset mathematics such as \begin{xxx} ... \end{xxx} where xxx might be equation, align, multline, bmatrix, ... . (Follow names with '*' if you get equation labels you don't want. If possible avoid built up fractions inside ordinary text as it leads to fonts that are too small. If you cite anything in the document, you will need the following two lines, and will need to download math77.bib and math77.bst from the same place you got this document. \bibliography{math77} \bibliographystyle{math77} \subsection{Error Procedures and Restrictions} Indicate what they are, or say there are none. \subsection{Supporting Information} The source language is ANSI Fortran~77. \begin{tabular}{@{\bf}l@{\hspace{5pt}}l} \bf Entry & \hspace{.35in} {\bf Required Files}\vspace{2pt} \\ DNAME & \parbox[t]{2.7in}{\hyphenpenalty10000 \raggedright AMACH, DNAME, \ldots \rule[-5pt]{0pt}{8pt}}\\ SNAME & \parbox[t]{2.7in}{\hyphenpenalty10000 \raggedright AMACH, SNAME, \ldots}\\ \end{tabular} Algorithm and code due to you. Plus additional comments on changes. Then give the date as e.g.\ November 2005. \begcodenp \lstset{language=[77]Fortran,stringspaces=false} \lstset{indent=.8in} [For testing on your machine, you will need to change the macros codeloc and outputloc referenced below. These macros are defined in MATH77.cls. You may find it most to comment these out in \TeX documents you get from us, and in your own documentation.] \centerline{\bf \large DRDNAME}\vspace{10pt} \lstinputlisting{\codeloc{dname}} \vspace{30pt}\centerline{\bf \large ODDNAME}\vspace{10pt} \lstset{language={}} \lstinputlisting{\outputloc{dname}} \end{document}