Answer by egreg for Defining a new environment extending a verbatim environment
The problem is the timing where the \tiny command is issued. It can't go before \verbatim without a preceding \par, but it can't go after it either.So you have to change the definition of...
View ArticleAnswer by Steven B. Segletes for Defining a new environment extending a...
An answer can be found here Command for special text with reserved LaTeX symbols or, if you don't mind the result in boxes (I mean LaTeX box, not a bordered box), you can use the verbatimbox package...
View ArticleAnswer by David Carlisle for Defining a new environment extending a verbatim...
It doesn't work because after\documentclass{article}\newenvironment{myverbatim}{\tiny\begin{verbatim}}{\end{verbatim}}\begin{document}\begin{myverbatim} test\ is no longer an escape character it acts...
View ArticleAnswer by Werner for Defining a new environment extending a verbatim environment
The main problem with using your definition of myverbatim can be defined in terms of a combination of scope and macro replacement. That is, something that starts with\begin{<some-env>}is expected...
View ArticleDefining a new environment extending a verbatim environment
Why is it not possible to define a new environment that extends a verbatim environment?Consider,...
View Article
More Pages to Explore .....