\NeedsTeXFormat{LaTeX2e}
%
% sourcelist.cls
%
%   LaTeX2e Class file for Printing program source list
%   by NAKATA Yoshinori(white@d51.net)
%	6 Dec 2000
\ProvidesClass{sourcelist}
  [2000/12/06 v1.00 LaTeX2e class]
\LoadClass[twocolumn,landscape,10pt]{article}
\usepackage{verbatimfiles}
\parsep=0pt
\parskip=0pt
\topmargin=-50pt
\topskip=0pt
\headheight=1em
\headsep=1em
\oddsidemargin=-25pt
\evensidemargin=-25pt
\columnsep=0.9cm
\textheight = 16.8cm
\textwidth  = 25cm
\newbox\filenameBox
\setbox\filenameBox=\hbox{source file}
\def\ps@plain{\let\@mkboth\@gobbletwo
     \def\@oddhead{\kern3pt source file \hfil}\def\@oddfoot{\reset@font\hfil\thepage
     \hfil}\let\@evenhead\@empty\let\@evenfoot\@oddfoot}
\pagestyle{plain}

%
% Usage:    \includesource{source file path}
%        or \includesource[strings print at header]{source file path}
%
% try to use second style if error occurs.
%  (error occurs when you use some character such as '_' in your filename.)
%
\def\includesource{\@dblarg{\@includesource}}
\def\@includesource[#1]#2{%
  \def\@oddhead{\kern3pt #1 \hfil}\footnotesize \verbatimlisting{#2}}
