In LaTex, I use \verbatim to add a block of text. But the problem is that the verbatim text doesn't follow the page style, and it exceeds the page boundary if the text is long. The result is shown as below:
As you can see, the example call exceeds the boundary. That's where I use verbatim. The following is my code to set up verbatim text, could anyone tell me how to fix this problem? I will appreciate. I am kind of in a rush to get it done.
% Used by @verbatim ... @endverbatim
\newenvironment{DoxyVerb}{%
\fontencoding{OT1}\fontfamily{cmr}\fontseries{b}\fontshape{n}\fontsize{10pt}{10}\selectfont%
\verbatim%
}{%
\endverbatim%
\normalsize%
}
Best Answer