On Tuesday 02 October 2001 13:42, Myriam Abramson wrote: > Hi! > > I'm trying to put a box around a description (describing an > algorithm with keywords) but I get errors even in the tex file!
\fbox is fragile, if I remember rightly. You can get out of this by using a minipage. Put something like this in your preamble: \newenvironment{myBox}{% \vspace{4mm} \noindent% \begin{lrbox}{\@tempboxa}% \begin{minipage}[c]{0.5\columnwidth}% }{% \end{minipage}% \end{lrbox}% \centering \fbox{\parbox{0.5\columnwidth}{\usebox{\@tempboxa}}}\\% \vspace{4mm} }% This is adapted a little from one of Herbert's bits of LaTeX wizardry - you'll probably want to play with it to get your box the right size and in the right position. Robin