views:

66

answers:

1

I know two environments, lstlisting and verbatim but both behave difficult in my case.

Is there a Latex environment which allows pre-formatted text, conserving my white space characters (most important the indentation)?

I do not want to use verbatim or lstlisting for two reasons: I try to use lstlisting in a macro:

\newcommand*{\fdescription}{}
\newenvironment{efeature}[1]
{
  \renewcommand*{\fdescription}{#1}
  \begin{lstlisting}[escapechar={\%}]
  %\fdescription%
  \end{lstlisting}
}
{
  % ...
}

That gives the error message:

! TeX capacity exceeded, sorry [save size=5000].

I do not know what the Tex capacity means and I do not think it is related at all. Also, if I can make lstlisting work it is annoying since I do want to use math and macros inside of it. I would end up escaping most of the text.

/ruben

A: 

Perhaps you should try again using \newenvironment.

dmckee
Where? I do use `\newenvironment` for my macro.
rumo