在 Latex 表格环境中,有没有办法强制总和的限制高于和低于 Sigma?
我确实需要让这个表格变窄,同时不减小字体大小,如果我能做出这样的改变,我认为它将足够减小宽度
\begin{tabular}{cccccc}
\toprule
%\multicolumn{2}{c}{iNaturalist data per species} \\
%\midrule
Year & \begin{tabular}[c]{@{}c@{}}Number of\\ observers\end{tabular} &\begin{tabular}[c]{@{}c@{}}Number of\\observer walks\end{tabular} & \begin{tabular}[c]{@{}c@{}}Expected number\\of individuals\end{tabular} & \begin{tabular}[c]{@{}c@{}}Actual number\\of individuals\end{tabular} & \begin{tabular}[c]{@{}c@{}}Number of\\observations\end{tabular} \\
\midrule
1 & $K_1$ & $W_1 = \sum_{k=1}^{K_1}Pois(E(W^{(k)}))$ & $E(n_1)$ & $n_1 = Pois(E(n_1))$ & $x_1 = \sum_{w=1}^{W_1} bin(n_1,p)$\\
\addlinespace[0.2cm]
2 & $K_2$ & $W_2 = \sum_{k=1}^{K_2}Pois(E(W^{(k)}))$ & $E(n_2) = E(n_1) e^t$ & $n_2 = Pois(E(n_2))$ & $x_2 = \sum_{w=1}^{W_2} bin(n_2,p)$\\
\addlinespace[0.2cm]
$\vdots$ &$\vdots$ &$\vdots$&$\vdots$ &$\vdots$ &$\vdots$\\
\addlinespace[0.2cm]
7 & $K_7$ & $W_7 = \sum_{k=1}^{K_7}Pois(E(W^{(k)}))$ & $E(n_7) =E(n_1) e^{6t}$& $n_7 =Pois(E(n_7))$& $x_7 = \sum_{w=1}^{W_7} bin(n_7,p)$ \\
\bottomrule
\end{tabular}
答案1
像这样?
对于小于和大于和符号的和,可以使用\sum\limits_{...}^{...}
。我还更改tabular
为array
并定义了两个数学运算符:
\documentclass{article}
\usepackage[margin=25mm]{geometry}
\usepackage{mathtools}
\DeclareMathOperator{\Pois}{Pois}
\DeclareMathOperator{\bin}{bin}
\usepackage{booktabs, makecell}
\newcommand\mcc[1]{\multicolumn{1}{c}{\text{\makecell{#1}}}}
\begin{document}
\[
\begin{array}{@{} *{6}{c} @{}}
\toprule
\mcc{Year}
& \mcc{Number of\\ observers}
& \mcc{Number of\\observer walks}
& \mcc{Expected number\\of individuals}
& \mcc{Actual number\\of individuals}
& \mcc{Number of\\observations} \\
\midrule
1 & K_1 & W_1 = \sum\limits_{k=1}^{K_1}\Pois(E(W^{(k)}))
& E(n_1)
& n_1 = \Pois(E(n_1))
& x_1 = \sum\limits_{w=1}^{W_1} \bin(n_1,p) \\
\addlinespace
2 & K_2 & W_2 = \sum\limits_{k=1}^{K_2}\Pois(E(W^{(k)}))
& E(n_2) = E(n_1) e^t
& n_2 = \Pois(E(n_2))
& x_2 = \sum\limits_{w=1}^{W_2} \bin(n_2,p)\\
\addlinespace
\vdots &\vdots &\vdots&\vdots &\vdots &\vdots\\
\addlinespace
7 & K_7 & W_7 = \sum\limits_{k=1}^{K_7}\Pois(E(W^{(k)}))
& E(n_7) =E(n_1) e^{6t}& n_7=\Pois(E(n_7))
& x_7 = \sum\limits_{w=1}^{W_7} \bin(n_7,p) \\
\bottomrule
\end{array}
\]
\end{document}
附录:使用\displaystyle
表中的列定义:
\begin{array}{@{} *{6}{>{\displaystyle}c} @{}}
你可以删除\limits
表体代码中的所有内容。这样表的代码就会短一些。