我正在使用现代主题https://github.com/matze/mtheme。当我尝试在一张幻灯片中使用双列时,边距的大小会有所不同。我的代码如下:
\documentclass{beamer}
\usetheme{metropolis} % Use metropolis theme
\begin{document}
\begin{frame}{Introduction: Current Government - Political Change}
\begin{columns}[t]
\begin{column}{0.5\textwidth}
\begin{center}
\textbf{Political Change: Ministry Creation}
{\small \begin{itemize}
\item Ministry of Family, Community, Cooperative and Associative Economy.
\begin{itemize}
\item Work for the multiplication, strengthening, development and promotion of the Small Business of the Family Economy.
\item Focus on: Tourism, gastronomy, handicrafts, production of the family agriculture and services to the tourism.
\end{itemize}
\end{itemize}}
\end{center}
\end{column}
\vrule{}
\begin{column}{0.5\textwidth} %%<--- here
\begin{center}
\textbf{Characteristics of the self-employed workers:}
{\small \begin{itemize}
\item Ministry of Family, Community, Cooperative and Associative Economy.
\begin{itemize}
\item
\end{itemize}
\end{itemize}}
\end{center}
\end{column}
\end{columns}
\end{frame}
\end{document}
我的结果是:
我该怎么做才能获得相同的利润?
此致,
答案1
.5\textwidth
由于列与列之间有一定的距离,所以幻灯片上无法容纳两列。要么使用onlytextwidth
较小的列,要么最好同时使用两者。
\documentclass{beamer}
\usetheme{metropolis} % Use metropolis theme
\begin{document}
\begin{frame}{your frame}
\begin{columns}[t]
\begin{column}{0.5\textwidth}
\rule{\textwidth}{3cm}
\end{column}
\vrule{}
\begin{column}{0.5\textwidth}
\rule{\textwidth}{3cm}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{onlytextwidth}
\begin{columns}[t, onlytextwidth]
\begin{column}{0.5\textwidth}
\rule{\textwidth}{3cm}
\end{column}
\vrule{}
\begin{column}{0.5\textwidth}
\rule{\textwidth}{3cm}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{smaller columns}
\begin{columns}[t]
\begin{column}{0.45\textwidth}
\rule{\textwidth}{3cm}
\end{column}
\vrule{}
\begin{column}{0.45\textwidth}
\rule{\textwidth}{3cm}
\end{column}
\end{columns}
\end{frame}
\begin{frame}
\rule{\textwidth}{3cm}
\end{frame}
\end{document}