我想要一个横向/侧向表格,放在一个包含其他文本的 mdframed 框中。我想在其中插入一个侧向表格。表格太宽,无法适应文档的纵向模式。
这是一个例子。表格变得乱糟糟的,因为不允许在 mdframed 内放置 \begin{sidewaystable}...\end{sidewaystable}。
\documentclass{article}
\usepackage{mdframed,graphicx,caption}
\usepackage{lipsum}
\begin{document}
\begin{mdframed}
\lipsum[4]
\begin{sidewaystable}[htb]
\centering
\begin{tabulary}{\textwidth}{LLL}
Location & Major food crops & Livestock type\\
\hline
Java, Indonesia & Upland rice, & Poultry, fish,\\
& maize, vegetables, & goats, sheep,\\
& coconuts, & cows, water,\\
& fruit trees & buffalo\\
Tabasco, Mexico & Maize, beans & Poultry,\\
& & pigs, sheep\\
& & and goats\\
Grenada, West Indies & Colocasia, & \\
& xanthosoma, yams, & \\
& maize, pigeon peas & \\
\end{tabulary}
\end{sidewaystable}
\lipsum[1-3]
\end{mdframed}
\end{document}