summaryrefslogtreecommitdiff
path: root/support/lgrind/example/lgrindeg.tex
blob: 5de9f4592f683bf1afec727075d222cb729a7b79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
% lgrindeg.tex
% Simple example program for testing `lgrind' additions
% MATLAB/QBASIC/C/MASM/LaTeX
% Note: Matlab,qbasic, masm are registered trademarks.
%
% John Leis, 18 June 1996
% University of Southern Queensland
% leis@usq.edu.au

\documentclass[a4paper]{article}

\usepackage{lgrind}

\begin{document}

\title{ Example of the `LGrind' Package }
\author{ John Leis }
\date{ 15 June 1996 }
\maketitle

\clearpage

\begin{figure}
	\begin{center}
		\begin{tabular}{ll}
			\hline\hline 
			Language & Command in DOS batch file \\
			\hline 
			C       & \verb+ lgrind -i -v subst %1.c > %1.lg  + \\
			MASM    & \verb+ lgrind -i -lmasm %1.asm > %1.lg  + \\
			\hline \\
		\end{tabular}
	\end{center}
	\caption{Commands for lgrind'ing source file into \LaTeXe\ format}
	\label{fig:commands}
\end{figure}


\lagrind{egcprog.lg}{Example `C' language program.}{fig:egcprog}

\clearpage
\begin{center}
	\textbf{\large This is a multi-page listing} \\
	It has no caption. \\
	Used for Appendices etc. \\
\end{center}

\lgrindfile{egmasm.lg}

\end{document}