2
% Simple example program for testing `lgrind' additions
3
% MATLAB/QBASIC/C/MASM/LaTeX
4
% Note: Matlab,qbasic, masm are registered trademarks.
6
% John Leis, 18 June 1996
7
% University of Southern Queensland
10
\documentclass[a4paper]{article}
16
\title{ Example of the `LGrind' Package }
27
Language & Command in DOS batch file \\
29
C & \verb+ lgrind -i -v subst %1.c > %1.lg + \\
30
MASM & \verb+ lgrind -i -lmasm %1.asm > %1.lg + \\
34
\caption{Commands for lgrind'ing source file into \LaTeXe\ format}
39
\lagrind{egcprog.lg}{Example `C' language program.}{fig:egcprog}
43
\textbf{\large This is a multi-page listing} \\
45
Used for Appendices etc. \\
48
\lgrindfile{egmasm.lg}