multiline \fbox latex

1,520 views
Skip to first unread message

Hasan Qunoo

unread,
Jun 3, 2010, 11:36:14 AM6/3/10
to latexus...@googlegroups.com
Dear All,

How to include multi-line \fbox in latex.

Thanks,

Hasan

Peter Flynn

unread,
Jun 4, 2010, 5:06:29 AM6/4/10
to latexus...@googlegroups.com
On Thu, Jun 3, 2010 at 4:36 PM, Hasan Qunoo <has...@gmail.com> wrote:
Dear All,

How to include multi-line \fbox in latex.

\documentclass{article}
\usepackage{url}
\begin{document}
\fboxsep5mm
\fbox{\vbox{\hsize=10cm\noindent
    You received this message because you are subscribed to the Google
    Groups ``\LaTeX\ Users Group'' group.
    To post to this group, send email to
    \url{latexus...@googlegroups.com}.
    To unsubscribe from this group, send email to
    \url{latexusersgro...@googlegroups.com}.
    For more options, visit this group at
    \url{http://groups.google.com/group/latexusersgroup?hl=en}.}}
\end{document}

If the text contains fragile commands, use the fancybox package and typeset the box first, using Sbox, then you can put the result into one of the fancier boxes:

\documentclass{article}
\usepackage{url,fancybox}
\begin{document}
\begin{Sbox}
  \begin{minipage}{10cm}
    You received this message because you are subscribed to the Google
    Groups ``\LaTeX\ Users Group'' group.
    To post to this group, send email to
    \url{latexus...@googlegroups.com}.
    To unsubscribe from this group, send email to
    \url{latexusersgro...@googlegroups.com}.
    For more options, visit this group at
    \url{http://groups.google.com/group/latexusersgroup?hl=en}.
  \end{minipage}
\end{Sbox}
\fboxsep5mm
\shadowbox{\TheSbox}   
\end{document}

///Peter
Reply all
Reply to author
Forward
0 new messages