For documentclass I use memoir, and declare verbatim fonts globally with
\setverbatimfont{\normalfont\ttfamily}
I wonder if it is possible to define for example two commands for
verbatim which differ in used size of fonts, something like \nverb for
normal size fonts and \sverb for smaller size of fonts, both for short
verbatims and equivalently \begin{nverbatim} ... \end{nverbatim}.
Since the most of verbatim texts I have stored as separated files and
call them in main and example text with \verbatiminput{file name}, I
like to have there the same possibilities to adapt font size regarding
from where I call a file.
Thank you in advance for any help!
Regards,
Zarko
You have had no answers, so maybe you should clarify.
Did you look at verbatim environments in regular and \small
sizes, and find them to be the same? They should already match
the prevailing font size!
> \setverbatimfont{\normalfont\ttfamily}
As long as you don't include "\normalsize" it should work fine.
Donald Arseneau
Actually,
meantime I investigate, what is cause to my problem and discover this
morning, that somewhere in my style, where I collect some adjustments of
memoir i have have definition
\setverbatimfont{\ttfamily\small}
which cause, that verbatim text was little bit smaller in normal text
and little bit to big in examples in footnotesize text. Now I
reformulate this command as you suggest and problem disappear
thank you for care and help.
regards,
Zarko