投影仪幻灯片的垂直间距不同

投影仪幻灯片的垂直间距不同

在此处输入图片描述我正在用投影仪准备一些幻灯片。

问题是,该\frame命令似乎以不同的方式处理事物。也就是说,如果后续内容是普通文本或项目化环境,则间距是可以的。如果后续内容是columns环境,它会以不同的方式将文本向上移动。

我说得对吗?该怎么做才能避免这种行为?

%% document class
\documentclass[mathserif, t]{beamer}
\mode<presentation>{
\usetheme{Dresden}
\setbeamercovered{transparent}
}

\mode<handout>{
% tema simples para ser impresso
\usepackage[bar]{beamerthemetree}
% Colocando um fundo cinza quando for gerar transparências para serem impressas
% mais de uma transparência por página
\beamertemplatesolidbackgroundcolor{black!5}
}

\begin{document}
\frame{
\frametitle{Transfer Matrix Method TMM}
\begin{columns}
    \column[t]{0.55\textwidth}
    \begin{itemize}
        \item Assuming a wave equation:
        \begin{equation*}
        \psi_j(x) = A_j \cdot e^{p_j(x)} + B_j \cdot e^{-p_j(x)}
        \end{equation*} 
        \item Having a \emph{continuous} and \emph{smooth} curve requires boundary conditions.
        \item For each \emph{slice} the subsequent $A_{j+1}$, $B_{j+1}$ parameters will be identified by the current $A_{j}$, $B_{j}$ parameters through:
        {\scriptsize
            \begin{equation*}
            \begin{bmatrix}
            A_{j+1} \\
            B_{j+1}
            \end{bmatrix}
            =
            M_j \cdot
            \begin{bmatrix}
            A_{j} \\
            B_{j}
            \end{bmatrix}
            \end{equation*}
        }
    \end{itemize}
    \column[t]{0.45\textwidth}
    \begin{itemize}
        \item Concatenating the different slices, one obtains:
    \end{itemize}
    {\scriptsize
        \begin{equation*}
        \begin{bmatrix}
        A_{N-1} \\
        B_{jN-1}
        \end{bmatrix}
        =
        M_{N-1}  \ldots     M_{1} \cdot     M_{0}
        \begin{bmatrix}
        A_{0} \\
        B_{0}
        \end{bmatrix}
        \end{equation*}
    }
\end{columns}
}
\frame{ %The shifted up columns occurs here
 \frametitle{Transfer Matrix Method TMM}
    \begin{columns}
        \column[t]{0.5\textwidth}
        \textcolor{unibored}{This leads to tunnelling probability $T_x(E)$ which leads to knowing the current density $J(V)$.} %<- This is shifted up!
        \column[t]{0.5\textwidth}
        \begin{figure}[htbp]    
            \centering
            \includegraphics[width= 0.8\textwidth]{}
            \caption{Comparison between WKB and TMM transmission probabilities.}
        \end{figure}
    \end{columns}
    \begin{columns}[t]
        \column[]{0.5\textwidth}
        \begin{block}{Benefits}
            \begin{itemize}
                \item Ability to simulate multi insulator structure.
                \item Better mathematical accuracy.
            \end{itemize}
        \end{block}
        \column[]{0.5\textwidth}
    \begin{block}{Drawbacks}
        \begin{itemize}
            \item More complicated
            \item Contains some try \& error options for into its details.
            \end{itemize}
        \end{block}
    \end{columns}   
}
\end{document}

抱歉,代码太长了,你可以删除任何你认为不必要的代码。

答案1

借助valign选项(由包引入adjustbox)和包\captionof中的命令caption

在此处输入图片描述

%% document class
\documentclass[t]{beamer}
\mode<presentation>{
\usetheme{Dresden}
\setbeamercovered{transparent}
}

\mode<handout>{
% tema simples para ser impresso
\usepackage[bar]{beamerthemetree}
% Colocando um fundo cinza quando for gerar transparências para serem impressas
% mais de uma transparência por página
\beamertemplatesolidbackgroundcolor{black!5}
}

\usepackage[export]{adjustbox}
\usepackage{caption}
\begin{document}

\frame{ %The shifted up columns occurs here
 \frametitle{Transfer Matrix Method TMM}
    \begin{columns}
        \column[t]{0.5\textwidth}
        \textcolor{blue}{This leads to tunnelling probability $T_x(E)$ which leads to knowing the current density $J(V)$.} %<- This is shifted up!
        \column[t]{0.5\textwidth}
        %\begin{figure}[htbp]    
            \centering
            \includegraphics[width= 0.8\textwidth,valign=t]{example-image}
            \captionof{figure}{Comparison between WKB and TMM transmission probabilities.}
        %\end{figure}
    \end{columns}
    \begin{columns}[t]
        \column[]{0.5\textwidth}
        \begin{block}{Benefits}
            \begin{itemize}
                \item Ability to simulate multi insulator structure.
                \item Better mathematical accuracy.
            \end{itemize}
        \end{block}
        \column[]{0.5\textwidth}
    \begin{block}{Drawbacks}
        \begin{itemize}
            \item More complicated
            \item Contains some try \& error options for into its details.
            \end{itemize}
        \end{block}
    \end{columns}   
}
\end{document}

相关内容