我创建了一个表格:
\documentclass[10pt, aspectratio=169]{beamer}
\usefonttheme{serif}
\title{Title}
\date{Nov. 17, 2023}
\author{}
\usetheme{quito-light}
\usepackage{booktabs} % package for table
\usepackage{amsmath}
\usepackage{siunitx} % package for units and numbers
\usepackage{mathtools}
\usepackage[singlelinecheck=false]{caption}
\usepackage{tabularray}
\UseTblrLibrary{amsmath,booktabs}
\begin{document}
\begin{frame}{title}
\begin{table}
\tiny
\caption{table title}
\begin{+array}{delimiter = {right=\rbrace, left=.},column{2} = {mode={imath}}}
\midrule
a & a \sim \qty{10}{m}\\
b & b \sim \qty{5}{s^{-1}}\\
c & c \sim \qty{10}{m.s^{-1}}\\
\bottomrule
\end{+array}
Description
\end{table}
\end{frame}
\note{}
\end{document}
我如何调整表格位置?表格左侧应位于标题正下方。
答案1
beamer 中环境的唯一实际效果table
是将表格居中。如果您不想要这个,请不要使用环境table
,表格将自动与周围文本对齐:
\documentclass[10pt, aspectratio=169]{beamer}
\usefonttheme{serif}
\title{Title}
\date{Nov. 17, 2023}
\author{}
%\usetheme{quito-light}
\usepackage{booktabs} % package for table
%\usepackage{amsmath}
\usepackage{siunitx} % package for units and numbers
\usepackage{mathtools}
\usepackage[singlelinecheck=false]{caption}
\usepackage{tabularray}
\UseTblrLibrary{amsmath,booktabs}
\begin{document}
\begin{frame}
\frametitle{title}
\begingroup
\tiny
\captionof{table}{table title}
\begin{+array}{delimiter = {right=\rbrace, left=.},column{2} = {mode={imath}}}
\midrule
a & a \sim \qty{10}{m}\\
b & b \sim \qty{5}{s^{-1}}\\
c & c \sim \qty{10}{m.s^{-1}}\\
\bottomrule
\end{+array}
Description
\endgroup
\end{frame}
\end{document}