Text Formattingfancybox | New boxed Environment exceeds Margin

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Jahan
Posts: 2
Joined: Tue Jul 17, 2012 8:58 am

fancybox | New boxed Environment exceeds Margin

Post by Jahan »

Hi,

I have had a great deal of trouble making what should be quite simple, boxed environments. I want to define boxed environments that will allow for enumerated items and also simple text. I found the following solution which I am using and it works with some deficiency:

Code: Select all

\newenvironment{focusq}%
{\noindent\textbf{Focus Questions:}\\ \newline\begin{Sbox} \begin{minipage}{5in}
\begin{itemize} }%
{\end{itemize}\end{minipage}\newline\end{Sbox}\fbox{\TheSbox}\newpage}
I have used the fancybox package for this purpose.

I can not get the box to remain within the margin. I understand that I have give a 5in size for the {minipage}, but that is out of desperation. So I will pose the following question:

How can I define a simple boxed environment or a boxed environment with enumerated items, such that it does not cross the margin?
Last edited by localghost on Tue Jul 17, 2012 10:23 am, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

fancybox | New boxed Environment exceeds Margin

Post by localghost »

Whatever you want to achieve, a more sophisticated packages like mdframed might be interesting for you.


Best regards and welcome to the board
Thorsten
Post Reply