Quantcast
Channel: Defining a new environment extending a verbatim environment - TeX - LaTeX Stack Exchange
Browsing all 5 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Answer 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 Article

Answer 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 Article

Image may be NSFW.
Clik here to view.

Answer 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 Article

Defining 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

Browsing all 5 articles
Browse latest View live




Latest Images