I wanted to frame in a box a text which includes tabbing
. Both \framebox
and tabbing
works fine separately but cannot make them work together.
\framebox{
\begin{tabbing}
\textit{Input:} \hspace*{13mm} \= assd \\
\textit{Problem:} \> adas \\
\end{tabbing}
}
Best Answer
You can box the
tabbing
before framing it; in the following example I show two possibilities; the firs one, using a\vbox
and the second one using avarwidth
environment from thevarwidth
package:You seem to be typesetting algorithms; in this case, some dedicated packages such as
algorithmicx
orlistings
could be useful for you.