有人能帮我把这张表移到 overleaf 的中间吗?我试过在网上到处找,但似乎找不到答案。
如果有帮助的话,这是我的表格的代码:
\begin{table}[h!]
\caption{Variables and Parameters in SIR}
\centering
\begin{tabular}{c c c}
\hline\hline
S & Susceptibility stage for humans and mosquitoes \\
I & Infection stage for humans and mosquitoes\\
R & Recovered stage for humans\\
\alpha & Transmission rate of human becoming infected\\
\beta & Removal rate parasites from human \\
\gamma & The rate which recovered individuals return to the susceptible statue due to loss of immunity\\
\epsilon & Probability of transmission of infection from a infected human to a susceptible mosquito, given that a contact between the two occurs \\
\delta & Probability of transmission of infection from a recovered human
to a susceptible mosquito, given that a contact between the two occurs. \\
\zeta & Transmission rate of mosquito becoming infected\\
\eta & Probability of transmission of infection from an infectious mosquito to a susceptible human, given that a contact between the two occurs.\\
\hline
\end{tabular}
\end{table}
答案1
使表格适合的一种方法\textwidth
是将第二列中的长文本分成多行。例如,如下表所示:
上表的 mwe 为:
\documentclass{article}
\usepackage{booktabs, makecell, tabularx}
\usepackage[skip=1ex]{caption}
\begin{document}
\begin{table}[h!]
\caption{Variables and Parameters in SIR}
\centering
\setcellgapes{2pt}
\makegapedcells
\begin{tabularx}{\linewidth}{>{$}l<{$}X}
\toprule
S & Susceptibility stage for humans and mosquitoes \\
I & Infection stage for humans and mosquitoes\\
R & Recovered stage for humans\\
\alpha & Transmission rate of human becoming infected\\
\beta & Removal rate parasites from human \\
\gamma & The rate which recovered individuals return to the susceptible statue due to loss of immunity\\
\epsilon & Probability of transmission of infection from a infected human to a susceptible mosquito, given that a contact between the two occurs \\
\delta & Probability of transmission of infection from a recovered human
to a susceptible mosquito, given that a contact between the two occurs. \\
\zeta & Transmission rate of mosquito becoming infected\\
\eta & Probability of transmission of infection from an infectious mosquito to a susceptible human, given that a contact between the two occurs.\\
\bottomrule
\end{tabularx}
\end{table}
\end{document}