10

I want to add a simple two-column text within framed frame. I tried multicols as

\begin{mdframed}
\setlength{\columnsep}{10pt}
  \begin{multicols}{2}
    \begin{itemize}
     TEXT
    \end{itemize}
  \end{multicols}
\end{mdframed}

The problem is that when the text is long, it will start from the next page to fit the text within a page, though the frame is started from the current page.

Googlebot
  • 4,035

1 Answers1

3

Since you only want a simple two-column text within a framed environment, try the following:

\documentclass[12pt]{article} %
\usepackage{framed,multicol}
\begin{document}
\begin{framed}
\setlength{\columnsep}{10pt}
  \begin{multicols}{2}
    \begin{itemize}
     \item test
     \item test
     \item test
     \item test
     \item test
     \item test
     \item test
     \item test
     \item test
     \item test
    \end{itemize}
  \end{multicols}
\end{framed}
\end{document}

enter image description here

Note that the above still does not resolve the issue but it does break paragraphs beautifully.

azetina
  • 28,884
  • I think the OP wants this to be able to work when there is longer text that spans multiple pages as mdframed allows for page breaks, but don't think that the framed allows for them. – Peter Grill Jun 01 '12 at 19:56
  • @PeterGrill I would suppose so but I understand what the @ali is saying. I have the same problem with an mdframed environment of mine but haven't bothered to address it. If the answer is inappropriate or the if @ali does not agree with the answer I will delete it. – azetina Jun 01 '12 at 20:03
  • 1
    I would just suggest that you add a note that this won't work if the text needs to span a page break. – Peter Grill Jun 01 '12 at 20:07