如何在投影仪的块下方获得更多空间?

如何在投影仪的块下方获得更多空间?

我正在创建一个beamer演示文稿。这是我的代码:

\documentclass{beamer}

\usetheme{Berlin}
\useoutertheme{miniframes} %Titelbalken
\setbeamertemplate{blocks}[rounded][shadow=true]

%Packages
\usepackage{amsmath, amssymb, amsthm}

\newenvironment{te bewijzen}[1][]
{\textbf{Te bewijzen:} #1}

\newenvironment{bewijs}[1]{
    \pushQED{\qed}
    \textbf{Bewijs:} #1}
{\popQED}

\begin{document}

\section{Deelvraag 1}

\subsection{Bewijs}
\frame{\frametitle{Bewijs}
    \begin{block}{Block}
        some text in my block
    \end{block}
    \begin{te bewijzen}
        this is what I have to prove
    \end{te bewijzen}
    \begin{bewijs}
        \begin{align*}
                               & line 1\\
            \Longrightarrow~    & line 2\\
            \Longrightarrow~    & line 3\\
            \Longrightarrow~    & line 4
        \end{align*}
\end{bewijs}
}

\end{document}

如您所见,块和下面的文本靠得太近了,我不太喜欢这样。我怎样才能在它们之间留出更多空间?

答案1

不要在演示文稿中的每个块后添加命令,而是\medskip将以下内容添加到序言中:

\addtobeamertemplate{block end}{}{\medskip}

梅威瑟:

\documentclass{beamer}

\usetheme{Berlin}
\useoutertheme{miniframes} %Titelbalken
\setbeamertemplate{blocks}[rounded][shadow=true]

\addtobeamertemplate{block end}{}{\medskip}

%Packages
\usepackage{amsmath, amssymb, amsthm}

\newenvironment{te bewijzen}[1][]
{\textbf{Te bewijzen:} #1}

\newenvironment{bewijs}[1]{
    \pushQED{\qed}
    \textbf{Bewijs:} #1}
{\popQED}

\begin{document}

\section{Deelvraag 1}

\subsection{Bewijs}
\frame{\frametitle{Bewijs}
    \begin{block}{Block}
        some text in my block
    \end{block}
    \begin{te bewijzen}
        this is what I have to prove
    \end{te bewijzen}
    \begin{bewijs}
        \begin{align*}
        & line 1\\
        \Longrightarrow~    & line 2\\
        \Longrightarrow~    & line 3\\
        \Longrightarrow~    & line 4
        \end{align*}
    \end{bewijs}
}

\end{document}

在此处输入图片描述

答案2

正如 karlkoeller 提到的,你可以使用\vspace或来做到这一点\bigskip。例如:

\documentclass{beamer}

\usetheme{Berlin}
\useoutertheme{miniframes} %Titelbalken
\setbeamertemplate{blocks}[rounded][shadow=true]

%Packages
\usepackage{amsmath, amssymb, amsthm}

\newenvironment{te bewijzen}[1][]
{\textbf{Te bewijzen:} #1}

\newenvironment{bewijs}[1]{
    \pushQED{\qed}
    \textbf{Bewijs:} #1}
{\popQED}

\begin{document}

\section{Deelvraag 1}

\subsection{Bewijs}
\frame{\frametitle{Bewijs}
    \begin{block}{Block}
        some text in my block
    \end{block}

    \bigskip

    \begin{te bewijzen}
        this is what I have to prove
    \end{te bewijzen}
    \begin{bewijs}
        \begin{align*}
                               & line 1\\
            \Longrightarrow~    & line 2\\
            \Longrightarrow~    & line 3\\
            \Longrightarrow~    & line 4
        \end{align*}
\end{bewijs}
}

\end{document}

相关内容