I need to include a code-like material in a document with some of the
lines indented. So I use, e.g.
for $k = 1$ to $n$ do \\
\indent set $x_{k} := k$; \\
end \{for\};%
When I put it into the figure environment (in order to add a caption to
the included code), the \indent command ceases to work. It seems that
\begin{figure} resets the \parindent value to 0. How could I recover
the original value of \parindent?
Thanks for any help on that..
Peter.
Best, Christoph
Best,
Peter.
\newlength{\saveindent}
\setlength{\saveindent}{\parindent}
\newcommand{\restoreindent}{\setlength{\parindent}{\saveindent}}
\begin{figure}
\restoreindent
.....
I think this would work.
Hillevi Gavel
Peter.