To refer to an external file (which has the advantage that you do not need to apply modifications in two places) can be done by using the moreverb package: insert
\usepackage{moreverb}at the beginning of your document. I use the following macro
\newcommand{\listscript}[1]{{\footnotesize\verbatiminput{#1}}}
You can now use
\listscript{ex5.m}in your document if you want to include the source text in the file ex5.m.
No comments:
Post a Comment