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 am trying to typeset a block of text in shadowbox. The text is quite long, therefore I would like it to span across two pages where necessary. TeX will not perform a pagebreak, though.

Here is my code:

\begin{centering}
\shadowbox{%
\begin{minipage}[c]{5in}
\sf
Data warehousing seems to be a big trend these days, and is very interesting to me. 
I'm trying to acquaint myself with its concepts, and am having a problem "seeing 
the forest through the trees" because all of the data warehouse models descriptions 
I can find online are theoretical, but don't gives examples with actual technologies 
being used. I'm a contextual learner, so abstracted, theoretical explanations don't 
really help me out all that much. \linebreak 
...
\end{minipage}}
\end{centering}
\vspace{10pt}

I reckon minipage is the problem. I have experimented with mdframed, lstset and also lstinputlisting with no desired results. Any proposed solution that will look like this output will be welcome:

http://postimage.org/image/8645fzlyx/

share|improve this question
2  
Have a look at the package mdframed. –  Marco Daniel Apr 14 '12 at 20:46
    
Which problems did you have with mdframed? –  Marco Daniel Apr 14 '12 at 21:01
    
Possible duplicate: Breaking framed boxes across pages - or, a better design for a homework problem set? after adding the xcolor package and the option shadow=true. Does this help? –  Werner Apr 14 '12 at 21:01
    
See also: tex.stackexchange.com/questions/43207/… –  Marco Daniel Apr 14 '12 at 23:01

1 Answer 1

up vote 9 down vote accepted

The mdframed package does what you need (after loading the shadows library for TikZ):

\documentclass{article}
\usepackage[framemethod=tikz]{mdframed}
\usetikzlibrary{shadows}

\newmdenv[shadow=true,shadowcolor=black,font=\sffamily,rightmargin=8pt]{shadedbox}

\begin{document}


\begin{shadedbox}
Data warehousing seems to be a big trend these days, and is very interesting to me. 
I'm trying to acquaint myself with its concepts, and am having a problem "seeing 
the forest through the trees" because all of the data warehouse models descriptions 
I can find online are theoretical, but don't gives examples with actual technologies 
being used. I'm a contextual learner, so abstracted, theoretical explanations don't 
really help me out all that much.
\end{shadedbox}

\end{document}

enter image description here

share|improve this answer

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.