在 Beamer 中定义自定义环境

在 Beamer 中定义自定义环境

我想要一个脚本环境,可以在其中为每张幻灯片编写脚本。

我不知道 Beamer 是否有这样的环境,因此我尝试按如下方式创建自己的环境。

我希望这个脚本环境能够:

  • 比 Beamer 的幻灯片更宽
  • 有一些顶部和底部的边距
\documentclass[11pt]{beamer}

\makeatletter
\newenvironment{script}{
\begin{columns}
    \begin{column}{1.1\textwidth}
        \setlength{\parindent}{0.5cm}
        \par\vspace{\baselineskip}\noindent
        \scriptsize
}{
    \end{column}
\end{columns}
\par\vspace{\baselineskip}\noindent\ignorespaces
}
\makeatother

\begin{document}

\begin{script}
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
\end{script}

\end{document}

但是,目前的问题是第一个块的第一个字母前有一个小空格。我希望我们要么完全删除这个空格(最好如此),要么像第二个块一样缩进。

有谁知道如何解决这一问题?

在此处输入图片描述

相关内容