希望我的桌子之间有足够的空间,并且能够处理溢出的单词。谢谢
\documentclass{article}
\usepackage{rotating}
\usepackage{booktabs,tabularx,caption}
\usepackage[table]{xcolor}
\begin{document}
\begin{sidewaystable}
\captionsetup{font={footnotesize}}
\caption{Selected Ebola Epidemic Compartmental Models, Analyses and Problem Formulations with References}
\small
\centering
\renewcommand\arraystretch{1.5}
\renewcommand\tabcolsep{0.75pt}
\begin{tabularx}{\textheight}{lll>{\raggedright}Xlc}
\rowcolor{cyan}
\specialrule{.2em}{.1em}{.1em}
\textbf{Compartmental} & \textbf{Analysis} & \textbf{Problem} & \centering
\textbf{Objective} & \textbf{Control Intervention} & \textbf{Reference} \\
\rowcolor{cyan}
\textbf{Model} & & \textbf{Formulation} & & & \\
\specialrule{.1em}{.05em}{.05em}
SEIT & Sensitivity & Differential & \mbox{}\par\vspace{\dimexpr-\baselineskip-\topsep-\partopsep\relax}%
\begin{itemize} \setlength{\itemsep}{-5pt}
\item Evaluate various intervention strategies
\item Determine model parameters by least square method
\end{itemize} & Vaccination & Sideman et al [1] \\ [-2ex] %
\end{tabularx}
\end{sidewaystable}
\end{document}
答案1
也许你也可以稍微重新格式化一下表格,使其(几乎)适合一行。在我看来,这样会让它更美观一些。
\documentclass{article}
\usepackage{lipsum}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\lipsum[1]
\begin{table}[h]
\centering
\caption{Selected Ebola Epidemic Compartmental Models, Analyses and Problem Formulations with References}
\small
\noindent\makebox[\textwidth]{%
\begin{tabularx}{1.4\linewidth}{XlXXXl}
\toprule
Compartmental\newline Model & Analysis & Problem\newline Formulation & Objective & Control\newline Intervention & Reference \\
\midrule
SEIT & Sensitivity & Differential & Evaluate various intervention strategies & Vaccination & [1] \\
& & & Determine model parameters by least square method &\\
\end{tabularx}
}
\end{table}
\lipsum[1]
\end{document}
答案2
如果您希望列与列之间有合理的间距,请不要减少列与列之间的间隔。您可以使用enumitem
和minipage
将项目化环境与基线对齐。
\documentclass{article}
\usepackage{rotating}
\usepackage{booktabs,tabularx,caption,enumitem,ragged2e}
\usepackage[table]{xcolor}
\begin{document}
\begin{sidewaystable}
\captionsetup{font={footnotesize}}
\caption{Selected Ebola Epidemic Compartmental Models, Analyses and Problem Formulations with References}
\small
\centering
\renewcommand\arraystretch{1.5}
\begin{tabularx}{\textheight}{lll>{\RaggedRight}Xlc}
\rowcolor{cyan}
\specialrule{.2em}{.1em}{.1em}
\textbf{Compartmental} & \textbf{Analysis} & \textbf{Problem} & \centering
\textbf{Objective} & \textbf{Control Intervention} & \textbf{Reference} \\
\rowcolor{cyan}
\textbf{Model} & & \textbf{Formulation} & & & \\
\specialrule{.1em}{.05em}{.05em}
SEIT & Sensitivity & Differential &
\begin{minipage}[t]{\linewidth}\RaggedRight
\begin{itemize}[nosep]
\item Evaluate various intervention strategies
\item Determine model parameters by least square method
\end{itemize}
\end{minipage} & Vaccination & [1] \\
\end{tabularx}
\end{sidewaystable}
\end{document}
另一种可能的结果可能会更加平衡:
\documentclass{article}
\usepackage{rotating}
\usepackage{booktabs,tabularx,caption,enumitem,ragged2e}
\usepackage[table]{xcolor}
\begin{document}
\begin{sidewaystable}
\captionsetup{font={footnotesize}}
\caption{Selected Ebola Epidemic Compartmental Models, Analyses and Problem Formulations with References}
\small
\centering
\renewcommand\arraystretch{1.5}
\begin{tabularx}{\textheight}{lll>{\RaggedRight}Xlc}
\rowcolor{cyan}
\specialrule{.2em}{.1em}{.1em}
\textbf{Compartmental} & \textbf{Analysis} & \textbf{Problem} & \centering
\textbf{Objective} & \textbf{Control} & \textbf{Reference} \\
\rowcolor{cyan}
\textbf{Model} & & \textbf{Formulation} & & \textbf{Intervention} & \\
\specialrule{.1em}{.05em}{.05em}
SEIT & Sensitivity & Differential &
\begin{minipage}[t]{\linewidth}\RaggedRight
\begin{itemize}[nosep]
\item Evaluate various intervention strategies
\item Determine model parameters by least square method
\end{itemize}
\end{minipage} & Vaccination & [1] \\
\end{tabularx}
\end{sidewaystable}
\end{document}