Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
That is not supported. I have no idea how to implement this feature. –  Marco Daniel Jun 1 '12 at 15:32
    
@MarcoDaniel I understand, but I think it is not impossible to find a trick to do so, if not making an adjustment to the mdframed. –  All Jun 1 '12 at 16:28
add comment

1 Answer

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.

share|improve this answer
    
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 1 '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 1 '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 1 '12 at 20:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.