将表格向左移动/更改特定框架的左边距

将表格向左移动/更改特定框架的左边距

我试图将我的桌子向左移动,但没有成功。我找到了\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 绘制。

相关内容