我有下表:
\begin{table}[htbp]
\centering
\begin{tabular}{|l|l|}
\hline
\multicolumn{1}{|c|}{\textit{\textbf{Economic school}}} & \multicolumn{1}{c|}{\textit{\textbf{Drivers}}} \\ \hline
Classical & Goverment interfers, market regulates itself \\ \hline
Keynesians & Spending is low \\ \hline
New classical & Exogenous shocks, large crisis \\ \hline
Austrian & Central banks intervent with monetary policies \\ \hline
Endogenous & Innovation and new technology \\ \hline
Others & Some examples are, political cycle, pork cycle, seasons, sun and moon phases or biological cycle \\ \hline
\end{tabular}
\caption{Brief overview of all economic schools and their understanding of cyclical drivers.\cite{BormotovMichael2009}}
\label{table:economicSchools}
\end{table}
但是,它超出了我的页面边框,请参见此处:
有什么建议可以解决这个问题吗?
感谢您的回复!
答案1
有一些选项可以改善这种情况:
使用
p
具有一些宽度规范的列类型是最简单的解决方案。这使用\parbox
并将内容包装在框宽度内。或者使用\newcolumntype
来自array
包的(请注意,p{0.8\linewidth}
在这种情况下仍然太宽)包
tabularx
提供指定类型的单元格宽度的自动适应X
。
我还应用了booktabs
使表格看起来“更好”的功能,但是我不会在表格中使用垂直规则。
\documentclass{article}
\usepackage{booktabs}
\usepackage{tabularx}
\begin{document}
\begin{table}[htbp]
\centering
\begin{tabular}{|l|p{0.8\linewidth}|}
\hline
\multicolumn{1}{|c|}{\textit{\textbf{Economic school}}} & \multicolumn{1}{c|}{\textit{\textbf{Drivers}}} \tabularnewline \hline
Classical & Goverment interfers, market regulates itself \tabularnewline \hline
Keynesians & Spending is low \tabularnewline \hline
New classical & Exogenous shocks, large crisis \tabularnewline \hline
Austrian & Central banks intervent with monetary policies \tabularnewline \hline
Endogenous & Innovation and new technology \tabularnewline \hline
Others & Some examples are, political cycle, pork cycle, seasons, sun and moon phases or biological cycle \tabularnewline \hline
\end{tabular}
\caption{Brief overview of all economic schools and their understanding of cyclical drivers.\cite{BormotovMichael2009}}
\label{table:economicSchools}
\end{table}
\begin{table}[htbp]
\centering
\begin{tabularx}{\linewidth}{|l|X|}
\hline
\multicolumn{1}{|c|}{\textit{\textbf{Economic school}}} & \multicolumn{1}{c|}{\textit{\textbf{Drivers}}} \tabularnewline \hline
Classical & Goverment interfers, market regulates itself \tabularnewline \hline
Keynesians & Spending is low \tabularnewline \hline
New classical & Exogenous shocks, large crisis \tabularnewline \hline
Austrian & Central banks intervent with monetary policies \tabularnewline \hline
Endogenous & Innovation and new technology \tabularnewline \hline
Others & Some examples are, political cycle, pork cycle, seasons, sun and moon phases or biological cycle \tabularnewline \hline
\end{tabularx}
\caption{tabularx-version: Brief overview of all economic schools and their understanding of cyclical drivers.\cite{BormotovMichael2009}}
\label{table:economicSchools2}
\end{table}
\begin{table}[htbp]
\centering
\begin{tabularx}{\linewidth}{lX}
\multicolumn{1}{c}{\textit{\textbf{Economic school}}} & \multicolumn{1}{c}{\textit{\textbf{Drivers}}} \tabularnewline
Classical & Goverment interfers, market regulates itself \tabularnewline \midrule
Keynesians & Spending is low \tabularnewline \midrule
New classical & Exogenous shocks, large crisis \tabularnewline \midrule
Austrian & Central banks intervent with monetary policies \tabularnewline \midrule
Endogenous & Innovation and new technology \tabularnewline \midrule
Others & Some examples are, political cycle, pork cycle, seasons, sun and moon phases or biological cycle \tabularnewline \bottomrule
\end{tabularx}
\caption{tabularx-version with booktabs: Brief overview of all economic schools and their understanding of cyclical drivers.\cite{BormotovMichael2009}}
\label{table:economicSchools3}
\end{table}
\end{document}