%% verbatim-package-demo.tex
%% Bent E. Petersen
%% Oct 23, 2000

\documentclass[11pt]{article}
\usepackage{verbatim}

\setlength{\parindent}{0pt}
\setlength{\parskip}{10pt plus 6pt minus 4pt}

\title{\jobname.tex}
\author{Bent Petersen}
\date{Oct 23, 2000}

\begin{document}
\maketitle

This document demonstrates the \verb=verbatim= environment
and \verb=\verbatiminput= command. It also demonstrates the 
\verb=comment= environment, but you have to look at the TeX 
source to see that (of course).

Here is a short piece of Maple code to demonstrate the
the \verb=verbatim= environment:
\begin{verbatim}
> eqn:=diff(y(t),t,t)+4*y(t)=0:
> inits:=y(0)=1,D(y)(0)=-1:
> dsolve({eqn,inits},y(t));
\end{verbatim}
$$
\mathrm{y}(t)= - \frac{1}{2}\,\sin(2\,t) + \cos(2\,t)
$$

\begin{comment}
Put a few paragraphs you have not decided about yet here for future
work. They will not appear in the output. You can also put comments
or reminders here. For example, you may want to remind yourself that 
Maple has a nice LaTeX export feature which may be more convenient
than the by-hand approach used above.
\end{comment}

To demonstrate the \verb=\verbatiminput= command this file will
input itself, which is pretty cool. To make sure
this file can find itself to input, we use the \verb=\jobname=
command in the argument to \verb=\verbatiminput=. Thus everything
will work even if you rename this file.

Normally of course, you would use the name of the file you wish 
to include. 

To TeX this demo do a {\sffamily latex verbatim-package-demo}, where
{\sffamily verbatim-package-demo} is replaced by whatever name you gave 
to this \LaTeXe{} file.

\section*{Here's the \LaTeXe{} source}

\verbatiminput{\jobname.tex}

\end{document}