如何以不同颜色突出显示当前的Beamer子弹/文本?

发布于 2025-02-03 07:32:14 字数 509 浏览 3 评论 0原文

我有下面的代码。我想突出显示当前的红色公式,而其他人则为黑色。非常感谢。

\documentclass{beamer}
\usetheme{default}

\title{Beamer Template}
\author{TeXstudio Team}
\begin{document}
\begin{frame}[plain]
    \maketitle
\end{frame}
\begin{frame}{Frame Title}
    
        \begin{itemize}
        \item bla
        \pause  \item \textcolor{red}{redbla}
        \pause  \item \textcolor{red}{redbla but the I want to see the second redbla in \textcolor{black}{black.}}
    \end{itemize}
    
\end{frame}
\end{document}

I have a code below. And I want to highlight the current formula in red while others are in black. many thanks in advance.

\documentclass{beamer}
\usetheme{default}

\title{Beamer Template}
\author{TeXstudio Team}
\begin{document}
\begin{frame}[plain]
    \maketitle
\end{frame}
\begin{frame}{Frame Title}
    
        \begin{itemize}
        \item bla
        \pause  \item \textcolor{red}{redbla}
        \pause  \item \textcolor{red}{redbla but the I want to see the second redbla in \textcolor{black}{black.}}
    \end{itemize}
    
\end{frame}
\end{document}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌面超妹 2025-02-10 07:32:14

您可以通过使用< alert@+>覆盖规范来突出显示红色的当前项目:

\documentclass{beamer}

\begin{document}

\begin{frame}
\frametitle{Frame Title}
    
        \begin{itemize}[<alert@+>]
        \item bla
          \item redbla
         \item redbla but the I want to see the second redbla in black.
    \end{itemize}
    
\end{frame}
\end{document}

”

You can highlight the current item in red by using the <alert@+> overlay specification:

\documentclass{beamer}

\begin{document}

\begin{frame}
\frametitle{Frame Title}
    
        \begin{itemize}[<alert@+>]
        \item bla
          \item redbla
         \item redbla but the I want to see the second redbla in black.
    \end{itemize}
    
\end{frame}
\end{document}

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文