4

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/

Torbjørn T.
  • 206,688

1 Answers1

12

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

Update

Another option, using this time tcolorbox:

\documentclass{article}
\usepackage[many]{tcolorbox}
\usetikzlibrary{shadows}

\newtcolorbox{shadedbox}{ drop shadow southeast, breakable, enhanced jigsaw, colback=white, }

\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

Gonzalo Medina
  • 505,128