![将表格向左移动/更改特定框架的左边距](https://linux22.com/image/264703/%E5%B0%86%E8%A1%A8%E6%A0%BC%E5%90%91%E5%B7%A6%E7%A7%BB%E5%8A%A8%2F%E6%9B%B4%E6%94%B9%E7%89%B9%E5%AE%9A%E6%A1%86%E6%9E%B6%E7%9A%84%E5%B7%A6%E8%BE%B9%E8%B7%9D.png)
我试图将我的桌子向左移动,但没有成功。我找到了\hspace
,但似乎不起作用。这是我的幻灯片:
\begin{frame}
\frametitle{Test slide}
\vspace{-0.4cm}
\hspace{-1cm}
\begin{tabular}[t]{p{5.4cm}p{5.8cm}}
\vspace{0pt} \includegraphics[scale=0.25]{eleanor_scriven_2429776k.jpg} &
\begin{enumerate}[<+->]
\item This is test text This is test text
\item This is test text This is test text
\item This is test text This is test text
\item This is test text This is test text
\item This is test text This is test text
\end{enumerate}
\end{tabular}
\end{frame}
答案1
您可以将其装箱然后移动;例如:
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Test slide}
\hspace*{-8pt}\makebox[\linewidth][c]{%
\begin{tabular}[t]{p{5.4cm}p{5.8cm}}
\vspace{0pt} \includegraphics[width=5.3cm]{ctanlion} &
\begin{enumerate}[<+->]
\item This is test text This is test text
\item This is test text This is test text
\item This is test text This is test text
\item This is test text This is test text
\item This is test text This is test text
\end{enumerate}
\end{tabular}%
}
\end{frame}
\end{document}
但是,我建议您不要将表格向左移动,而是考虑一些替代方法:减少列间距、减小字体或调整表格大小;最后一种方法可以使用以下方法完成\resizebox
:
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Test slide}
\resizebox{\textwidth}{!}{%
\begin{tabular}[t]{p{5.4cm}p{5.8cm}}
\vspace{0pt} \includegraphics[width=5.3cm]{ctanlion} &
\begin{enumerate}[<+->]
\item This is test text This is test text
\item This is test text This is test text
\item This is test text This is test text
\item This is test text This is test text
\item This is test text This is test text
\end{enumerate}
\end{tabular}%
}
\end{frame}
\end{document}
CTAN 狮子绘画由 Duane Bibby 绘制。