~ubuntu-branches/ubuntu/oneiric/lgrind/oneiric

« back to all changes in this revision

Viewing changes to example/lgrindeg.tex

  • Committer: Bazaar Package Importer
  • Author(s): Michael Piefel
  • Date: 2002-01-28 11:16:34 UTC
  • Revision ID: james.westby@ubuntu.com-20020128111634-gx07d7rqveysbcc1
Tags: upstream-3.67
ImportĀ upstreamĀ versionĀ 3.67

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
% lgrindeg.tex
 
2
% Simple example program for testing `lgrind' additions
 
3
% MATLAB/QBASIC/C/MASM/LaTeX
 
4
% Note: Matlab,qbasic, masm are registered trademarks.
 
5
%
 
6
% John Leis, 18 June 1996
 
7
% University of Southern Queensland
 
8
% leis@usq.edu.au
 
9
 
 
10
\documentclass[a4paper]{article}
 
11
 
 
12
\usepackage{lgrind}
 
13
 
 
14
\begin{document}
 
15
 
 
16
\title{ Example of the `LGrind' Package }
 
17
\author{ John Leis }
 
18
\date{ 15 June 1996 }
 
19
\maketitle
 
20
 
 
21
\clearpage
 
22
 
 
23
\begin{figure}
 
24
        \begin{center}
 
25
                \begin{tabular}{ll}
 
26
                        \hline\hline 
 
27
                        Language & Command in DOS batch file \\
 
28
                        \hline 
 
29
                        C       & \verb+ lgrind -i -v subst %1.c > %1.lg  + \\
 
30
                        MASM    & \verb+ lgrind -i -lmasm %1.asm > %1.lg  + \\
 
31
                        \hline \\
 
32
                \end{tabular}
 
33
        \end{center}
 
34
        \caption{Commands for lgrind'ing source file into \LaTeXe\ format}
 
35
        \label{fig:commands}
 
36
\end{figure}
 
37
 
 
38
 
 
39
\lagrind{egcprog.lg}{Example `C' language program.}{fig:egcprog}
 
40
 
 
41
\clearpage
 
42
\begin{center}
 
43
        \textbf{\large This is a multi-page listing} \\
 
44
        It has no caption. \\
 
45
        Used for Appendices etc. \\
 
46
\end{center}
 
47
 
 
48
\lgrindfile{egmasm.lg}
 
49
 
 
50
\end{document}
 
51