Thanks, it works, but not with the package \usepackage{verbatim}, which I need to use to be able to input files verbatim (\verbatiminput{}).
Reading the verbatim documentation, it says to redefine the \verbatim@font macro, which is defined as follows:
\def\verbatim@font{\normalfont\ttfamily ...
Search found 2 matches
- Wed Dec 07, 2011 6:02 pm
- Forum: Text Formatting
- Topic: Renew 'verbatim' Environment for smaller Font Size
- Replies: 2
- Views: 5987
- Wed Dec 07, 2011 1:16 am
- Forum: Text Formatting
- Topic: Renew 'verbatim' Environment for smaller Font Size
- Replies: 2
- Views: 5987
Renew 'verbatim' Environment for smaller Font Size
How can I renew the environment verbatim so that it typesets in small font?
I attempted something like this, but can't make it work:
I attempted something like this, but can't make it work:
Code: Select all
\renewenvironment{verbatim}{\small\begin{verbatim}}{\end{verbatim}\normalsize}