\documentclass [twocolumn] {article}
\usepackage{verbatim}
%
\topmargin=-0.75in
\textheight=9.0in \vsize\textheight
\textwidth=6.5in \hsize\textwidth
\parindent=0.0in
%
\renewcommand{\insert}[2]{
\newpage
\begin{flushleft}
\framebox{{\bf Source file:} {\tt #2}}
\end{flushleft}
\verbatiminput{#1}
}

\newcommand{\nnpinsert}[2]{
\begin{flushleft}
\framebox{{\bf Source file:} {\tt #2}}
\end{flushleft}
\verbatiminput{#1}
}

\begin{document}
%
{\scriptsize

%-----------------------------------------------------------------------
% Lecture 2 
\insert{../ex2/fdemo1.f}{fdemo1.f}
\insert{../ex2/Makefile.txt}{Makefile}
\insert{../ex2/fdemo1-output}{fdemo1-output}
%-----------------------------------------------------------------------
% Lecture 3 
\newpage
\nnpinsert{../ex3/fdemo2.f}{fdemo2.f}
\nnpinsert{../ex3/fdemo2-output}{fdemo2-output}
\nnpinsert{../ex3/first100-generate}{first100-generate}
\nnpinsert{../ex3/mysum.f}{mysum.f}
\nnpinsert{../ex3/mysum-s.f}{mysum-s.f}
\newpage
\nnpinsert{../ex3/mysum-output}{mysum-output}
\nnpinsert{../ex3/dvfrom.f}{dvfrom.f}
\nnpinsert{../ex3/tdvfrom.f}{tdvfrom.f}
\nnpinsert{../ex3/tdvfrom-output}{tdvfrom-output}
\nnpinsert{../ex3/dvto.f}{dvto.f}
\nnpinsert{../ex3/tdvto.f}{tdvto.f}
\nnpinsert{../ex3/tdvto-output}{tdvto-output}
\nnpinsert{../ex3/Makefile.txt}{Makefile}
\newpage
\nnpinsert{make-output}{make-output}
%-----------------------------------------------------------------------
% Lecture 4 
%-----------------------------------------------------------------------
% Lecture 4 
\newpage
\nnpinsert{../ex4/trand.f}{trand.f}
\newpage
\nnpinsert{../ex4/trand-output}{trand-output}
\newpage
\nnpinsert{../ex4/tsavedata.f}{tsavedata.f}
\newpage
\nnpinsert{../ex4/tsavedata-output}{tsavedata-output}
\newpage
\nnpinsert{../ex4/tsub.f}{tsub.f}
\newpage
\nnpinsert{../ex4/tsub-output}{tsub-output}
\newpage
\nnpinsert{../ex4/texternal.f}{texternal.f}
\vspace{0.2in}
\nnpinsert{../ex4/texternal-output}{texternal-output}
\newpage
\nnpinsert{../ex4/tcommon.f}{tcommon.f}
\nnpinsert{../ex4/coma.inc}{coma.inc}
\nnpinsert{../ex4/tcommon1.f}{tcommon1.f}
\nnpinsert{../ex4/tcommon-output}{tcommon-output}
\nnpinsert{../ex4/Makefile.txt}{Makefile}
\newpage
~
\vspace{0.35in}
\nnpinsert{../ex4/make-output}{make-output}
%-----------------------------------------------------------------------
% Lecture 5 
\newpage
\nnpinsert{../ex5/arraydemo.f}{arraydemo.f}
\nnpinsert{../ex5/arraydemo-output}{arraydemo-output}
\nnpinsert{../ex5/nth-output}{nth-output}
%-----------------------------------------------------------------------
% Lecture 6 
\newpage
\nnpinsert{../ex6/meps.f}{meps.f}
\nnpinsert{../ex6/meps-sgi-output}{meps-sgi-output}
\newpage
\nnpinsert{../ex6/meps-pclinux-output}{meps-pclinux-output}
\newpage
\nnpinsert{../ex6/catprec.f}{catprec.f}
\nnpinsert{../ex6/catprec-output}{catprec-output}
\newpage
\nnpinsert{../ex6/dmroutines.f}{dmroutines.f}
\newpage
\nnpinsert{../ex6/tdm.f}{tdm.f}
\nnpinsert{../ex6/tdm-output}{tdm-output}
\nnpinsert{../ex6/Makefile.txt}{Makefile}
%
}
\end{document}
