以下是包含此表的幻灯片的代码
\begin{frame}
%\begin{table}[ht]
%\caption{}
\begin{tabular}{|l|c|c|c|c|c|c|c|} \hline
Algebras &{\sf At-can.}&{\sf At. gen}& {\sf El. gen}. & {\sf Can.} & {\sf Str} is el. &{\sf CR} is el.& $\sf VT$\\
\hline
${\sf RCA}_n$, $\sf RRA$ &no&yes&yes&yes&no&no&no\\
\hline
$\bold S{\sf Nr}_n\CA_{n+1}$ &yes&yes&yes&yes&yes&?& ?\\
\hline
$\bold S\Ra\CA_3, \bold S\Ra\CA_4$ &yes&yes&yes&yes&yes&yes& yes\\
\hline
$\bold S{\sf Nr}_n\CA_{n+2}$ &?&yes&yes&yes&?&?&?\\
\hline
$\bold S\Ra\CA_5$ &?&yes&yes&yes&?&yes&yes\\
\hline
$\bold S{\sf Nr}_n\CA_{n+k}$, $\bold S\Ra\CA_m$ &no&yes&yes&yes&?&no&no\\
%\hline
%$\bold S{\sf Nr}_n{\sf D}_{n+k}$ &no&no&yes&?\\
\hline
${\sf D}_n, {\sf G}_n$ &yes&yes&yes&yes&yes&yes&yes\\
\hline
\end{tabular}
\end{frame}
正如标题所述,我使用 beamer documentclass。
我感谢任何帮助。
答案1
一些建议:
降低
\tabcolsep
控制列间空白量的参数 的值,并将相对字体大小切换为\small
。删除所有垂直规则和大部分水平规则。使用
booktabs
包的宏代替\hline
。增加值
\arraystretch
以创建更加“开放”的外观。不要使用 Plain-TeX 命令
\sf
。请根据需要使用\textsf
或\mathsf
。
\documentclass{beamer}
\newcommand\CA{CA} %??
\newcommand\Ra{Ra} %??
\usepackage{booktabs}
\begin{document}
\begin{frame}
\renewcommand\arraystretch{1.33}
\setlength\tabcolsep{1.75pt} % default is 6pt
\small
\begin{tabular}{@{}l *{7}{c}@{}}
\toprule
Algebras &At-can.& At.\ gen & El.\ gen. & Can. & Str is el. & CR is el. & $\mathsf{VT}$\\
\midrule
$\mathsf{RCA}_n$, $\mathsf{RRA}$ &no&yes&yes&yes&no&no&no\\
$\mathbf{S}\mathsf{Nr}_n\CA_{n+1}$ &yes&yes&yes&yes&yes&?& ?\\
$\mathbf{S}\Ra\CA_3, \mathbf{S}\Ra\CA_4$ &yes&yes&yes&yes&yes&yes& yes\\
$\mathbf{S}\mathsf{Nr}_n\CA_{n+2}$ &?&yes&yes&yes&?&?&?\\
$\mathbf{S}\Ra\CA_5$ &?&yes&yes&yes&?&yes&yes\\
$\mathbf{S}\mathsf{Nr}_n\CA_{n+k}$, $\mathbf{S}\Ra\CA_m$ &no&yes&yes&yes&?&no&no\\
%$\mathbf{S}\mathsf{Nr}_n\mathsf{D}_{n+k}$ &no&no&yes&?\\
$\mathsf{D}_n, \mathsf{G}_n$ &yes&yes&yes&yes&yes&yes&yes\\
\bottomrule
\end{tabular}
\end{frame}
\end{document}
附录:如果上述解决方案中的列间空白不够宽,不符合您的口味,则需要将字体大小再缩小一点,即从 改为\small
。\footnotesize
然后,使用\tabular*
环境 而不是tabular
环境 ,让 LaTeX 找出最佳(即最大允许)列间空白量。
\documentclass{beamer}
\newcommand\CA{\mathsf{CA}} %?
\newcommand\Ra{\mathsf{Ra}} %?
\usepackage{booktabs}
\begin{document}
\begin{frame}
\renewcommand\arraystretch{1.33}
\setlength\tabcolsep{0pt} % make LaTeX figure out optimal amount of whitespace
\footnotesize
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l *{7}{c}}
\toprule
Algebras &At-can.& At.\ gen & El.\ gen. & Can. & Str is el. & CR is el. & $\mathsf{VT}$\\
\midrule
$\mathsf{RCA}_n$, $\mathsf{RRA}$ &no&yes&yes&yes&no&no&no\\
$\mathbf{S}\mathsf{Nr}_n\CA_{n+1}$ &yes&yes&yes&yes&yes&?& ?\\
$\mathbf{S}\Ra\CA_3$, $\mathbf{S}\Ra\CA_4$&yes&yes&yes&yes&yes&yes& yes\\
$\mathbf{S}\mathsf{Nr}_n\CA_{n+2}$ &?&yes&yes&yes&?&?&?\\
$\mathbf{S}\Ra\CA_5$ &?&yes&yes&yes&?&yes&yes\\
$\mathbf{S}\mathsf{Nr}_n\CA_{n+k}$, $\mathbf{S}\Ra\CA_m$ &no&yes&yes&yes&?&no&no\\
%$\mathbf{S}\mathsf{Nr}_n\mathsf{D}_{n+k}$ &no&no&yes&?\\
$\mathsf{D}_n$, $\mathsf{G}_n$ &yes&yes&yes&yes&yes&yes&yes\\
\bottomrule
\end{tabular*}
\end{frame}
\end{document}