I use the following commands:
\usepackage{moreverb}\def\verbatimtabsize{4\relax}to include the package and to set the amount of white space for tab characters to 4 (default is 8). Next define
\newcommand{\listscript}[1]{{\textbf{#1}\footnotesize\verbatimtabinput{#1}}}to have a new command for including e.g. Matlab scripts. Use it as
\listscript{cp19.m}to have the file cp19.m in your document.
No comments:
Post a Comment