投影机有淡出淡入效果吗?

投影机有淡出淡入效果吗?

在我的某些幻灯片中,尤其是技术幻灯片,我希望将上一张幻灯片的底部(最好是稍微褪色)保留为下一张幻灯片的底部顶部,以便我开始介绍新材料,以便读者能够看到想法和符号的流动。从某种意义上说,就像一个人在黑板上写字一样。然后一次擦除一行……

例如,类似于以下内容的自动化版本...

\documentclass[xcolor=dvipsnames,professionalfonts]{beamer}
\usepackage{xcolor}
\begin{document}
\begin{frame}
This is an important theorem due to Euler:

\pause
\bigskip
\begin{block}{Theorem}
If $n$ and $a$ are coprime positive integers, then
$$
    a^{\varphi (n)} \equiv 1 \pmod{n}
$$
where $\varphi(n)$ is Euler's totient function
\end{block}
\end{frame}
\begin{frame}
There is a direct proof: Let $R = \{x_1, x_2, ..., x_{\varphi(n)}\}$ be a reduced residue system
(mod $n$) and let $a$ be any integer coprime to $n$. The proof hinges on the fundamental fact that
multiplication by $a$ permutes the $x_i$:

\only<1>{
\textcolor{lightgray}{\begin{block}{Theorem}
\textcolor{lightgray}{If $n$ and $a$ are coprime positive integers, then
$$
    a^{\varphi (n)} \equiv 1 \pmod{n}
$$
where $\varphi(n)$ is Euler's totient function}
\end{block}}}
\only<2>{
in other words if $ax_j ≡ ax_k (\pmod n)$ then $j = k$. That is, the sets $R$ and $aR = \{ax_1, ax_2, ..., ax_{\varpi(n)}\}$,
considered as sets of congruence classes $(\pmod n)$, are identical
so the product of all the numbers in $R$ is congruent $(\pmod n)$ to the product of all the numbers in $aR$:
$$
    \prod_{i=1}^{\varphi(n)} x_i \equiv \prod_{i=1}^{\varphi(n)}
    ax_i \equiv a^{\varphi(n)}\prod_{i=1}^{\varphi(n)} x_i \pmod{n},
$$
and using the cancellation law to cancel the $x_i$'s gives Euler's theorem:
$$
    a^{\varphi(n)}\equiv 1 \pmod{n}.
$$}
\end{frame}
\end{document}

答案1

一些观点:

  • 您可以使用\usebackgroundtemplatepdfpages插入幻灯片作为背景。
  • 表明透水滑梯\beamer@startpageofframe很有用。
  • 使用mdframedtikz阻挡先前渗透的滑道。
  • 由于将 pdf 插入到其自身中很危险,因此我创建了两个文件199832-main.tex199832-material.pdf。它们几乎完全相同,只是以199832-material.pdf开头的行\usebackgroundtemplate被注释掉了。

所以第10页如下:

以下是代码

\documentclass[t]{beamer}
\usetheme{Berkeley}
\beamertemplatenavigationsymbolsempty

\usepackage{pdfpages}
\usepackage[hidealllines=true,backgroundcolor=white,framemethod=tikz]{mdframed}
\newmdenv[settings={\tikzset{every picture/.style={opacity=0.95}}}]{mymdframed}

\begin{document}

    \begin{frame}\begin{mymdframed}
        \only<+->{AAAAAAAA AAAAAAAA AAAAAAAA AAAAAAAA \\ AAAAAAAA AAAAAAAA AAAAAAAA AAAAAAAA \\}
        \only<+->{AAAAAAAA AAAAAAAA AAAAAAAA AAAAAAAA \\ AAAAAAAA AAAAAAAA AAAAAAAA AAAAAAAA \\}
        \only<+->{AAAAAAAA AAAAAAAA AAAAAAAA AAAAAAAA \\ AAAAAAAA AAAAAAAA AAAAAAAA AAAAAAAA \\}
        \only<+->{AAAAAAAA AAAAAAAA AAAAAAAA AAAAAAAA \\ AAAAAAAA AAAAAAAA AAAAAAAA AAAAAAAA \\}
    \end{mymdframed}\end{frame}

\makeatletter
\newcount\my@frameendprev
\usebackgroundtemplate{\vbox{\my@frameendprev\beamer@startpageofframe\advance\my@frameendprev by-1\includepdf[pages={\the\my@frameendprev}]{199832-material.pdf}}}
\makeatother

    \begin{frame}\begin{mymdframed}
        \only<+->{BBBBBBBB BBBBBBBB BBBBBBBB BBBBBBBB \\ BBBBBBBB BBBBBBBB BBBBBBBB BBBBBBBB \\}
        \only<+->{BBBBBBBB BBBBBBBB BBBBBBBB BBBBBBBB \\ BBBBBBBB BBBBBBBB BBBBBBBB BBBBBBBB \\}
        \only<+->{BBBBBBBB BBBBBBBB BBBBBBBB BBBBBBBB \\ BBBBBBBB BBBBBBBB BBBBBBBB BBBBBBBB \\}
        \only<+->{BBBBBBBB BBBBBBBB BBBBBBBB BBBBBBBB \\ BBBBBBBB BBBBBBBB BBBBBBBB BBBBBBBB \\}
    \end{mymdframed}\end{frame}

    \begin{frame}\begin{mymdframed}
        \only<+->{CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC \\ CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC \\}
        \only<+->{CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC \\ CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC \\}
        \only<+->{CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC \\ CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC \\}
        \only<+->{CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC \\ CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC \\}
    \end{mymdframed}\end{frame}

    \begin{frame}\begin{mymdframed}
        \only<+->{DDDDDDDD DDDDDDDD DDDDDDDD DDDDDDDD \\ DDDDDDDD DDDDDDDD DDDDDDDD DDDDDDDD \\}
        \only<+->{DDDDDDDD DDDDDDDD DDDDDDDD DDDDDDDD \\ DDDDDDDD DDDDDDDD DDDDDDDD DDDDDDDD \\}
        \only<+->{DDDDDDDD DDDDDDDD DDDDDDDD DDDDDDDD \\ DDDDDDDD DDDDDDDD DDDDDDDD DDDDDDDD \\}
        \only<+->{DDDDDDDD DDDDDDDD DDDDDDDD DDDDDDDD \\ DDDDDDDD DDDDDDDD DDDDDDDD DDDDDDDD \\}
    \end{mymdframed}\end{frame}

\end{document}

相关内容