[texhax] How to make itemized list inside box?
Philip G. Ratcliffe
philipratcliffe at tiscali.it
Sat Dec 17 00:10:50 CET 2005
> I am trying to make an itemized list inside a box. I am working
> with the tetex
> 3.0.4 package on Fedora Core 4.
>
> [snip]
>
> What does not work:
>
> \documentclass[12pt,a4]{article}
> \begin{document}
> \fbox{Hello World\\
> \begin{itemize}
> \item item one
> \item item two
> \end{itemize}
> }
> \end{document}
>
> The code above produces the LaTex error below.
> ! LaTeX Error: Something's wrong--perhaps a missing \item.
>
> If someone could provide some insight on how an itemized list van
> be put inside
> a box, I would be very grateful.
This does work
\documentclass[12pt,a4paper]{article}
\begin{document}
\fbox{
\parbox{3cm}{Hello World\\
\begin{itemize}
\item item one
\item item two
\end{itemize}
}
}
\end{document}
Think about it!
Phil
More information about the texhax
mailing list