我正在尝试排版一段文本shadowbox
。文本很长,因此我希望它在必要时跨越两页。但是 TeX 不会执行分页符。
这是我的代码:
\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}
我认为minipage
这就是问题所在。我尝试过mdframed, lstset
,但也lstinputlisting
没有得到想要的结果。任何看起来像这个输出的解决方案都会受到欢迎:
答案1
该mdframed
包可以满足您的需要(在加载shadows
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}
更新
另一个选择是,利用这个时间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}