增加以下两行之间的间距

增加以下两行之间的间距

如何增加以下两行之间的间距?

输出

以下是我尝试过的:

\documentclass{beamer}
\usepackage[T1]{fontenc}
%-----
\usepackage{amsmath,amssymb,amsfonts} 
\usepackage{pifont}
\usetheme{Madrid}
\begin{document}
    \begin{frame}
        \centerline{\ding{45} $\mathcal{N}(T)$ is called the null space of $T$.}
        \ding{43} The range of $T$ is given by
    \end{frame}
\end{document}

答案1

\vspace{1cm}之前尝试过添加吗?根据需要\ding{43}更改值...1cm

请参阅以下 mwe

\documentclass{beamer}

\usepackage[T1]{fontenc}

\usepackage{amsmath,amssymb,amsfonts} 
\usepackage{pifont}
\usetheme{Madrid}


\begin{document}
\begin{frame}
  \centerline{\ding{45} $\mathcal{N}(T)$ is called the null space of $T$.}
  \vspace{1cm} % <======================================================
  \ding{43} The range of $T$ is given by
\end{frame}
\end{document}

及其结果:

生成的 pdf

答案2

有两种方法:如果您要\centerline在整个演示过程中频繁使用,那么我建议将其重新定义为:

\renewcommand{\centerline}[1]{\null\hfill#1\hfill\null~\\[2ex]}

第二种方法是在 之后立即使用 ~\ \centerline{...}IE, \centerline{...}~\\

输出

\documentclass{beamer}
\usepackage[T1]{fontenc}
%-----
\usepackage{amsmath,amssymb,amsfonts} 
\usepackage{pifont}
\usetheme{Madrid}
\renewcommand{\centerline}[1]{\null\hfill#1\hfill\null~\\[2ex]} % Need this!
\begin{document}
    \begin{frame}
        \centerline{\ding{45} $\mathcal{N}(T)$ is called the null space of $T$.}
        % Or just use the following and you don't need to redefine the command:
        % \centerline{\ding{45} $\mathcal{N}(T)$ is called the null space of $T$.}~\\
        \ding{43} The range of $T$ is given by
    \end{frame}
\end{document}

相关内容