避免在Beamer/latex中透明标题

发布于 2025-01-23 02:26:43 字数 1710 浏览 3 评论 0原文

我正在尝试插入一个数字,但其标题在当前页面中是透明的。如何防止这种情况?非常感谢。

    \documentclass{beamer}
\usetheme{Ilmenau}
\setbeamercovered{transparent}
\setbeamercolor*{item}{fg=blue}

\usepackage{caption}
\captionsetup{font=scriptsize,labelfont=scriptsize}
\usepackage{hyperref}
\hypersetup{urlcolor=blue}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}

\title{DNA - Computing}
\author{Aleyna Acikyol \& Alina Grahic
}
\begin{document}
    \begin{frame}[plain]
        \maketitle
    \end{frame}
    
    %5 FOTO
    \begin{frame}{Probleme heutiger Computer (3)}
        %\begin{enumerate}
        %   \item \textcolor{blue}{Transistoren:}
        \begin{itemize}
            \item \textcolor{blue}{Transistoren:}
            \begin{itemize}
                \item kleiner geht nicht
                \item Ausgleich mit Multicores /Multiprozessorsysteme
            \end{itemize}
        \end{itemize}
        \pause
        \begin{figure}  
            %\begin{itemize}
            \begin{columns}
                \column{0.50\linewidth}
                \centering
                \includegraphics[height=3cm, width=3cm]{./5.jpg}\caption{diverse Datenträger im Privatgebrauch}
                
                \column{0.50\linewidth}     
                \centering
                \includegraphics[height=3cm, width=3cm]{./5.2.jpg}\caption{Data Centre, Cloud}
            \end{columns} 
            %\end{itemize}
        \end{figure}
        %\end{enumerate}    
    \end{frame}
    
\end{document}

它看起来像 “这个”

I am trying to insert a figure but its caption is transparent in the current page. how to prevent this? many thanks in advance.

    \documentclass{beamer}
\usetheme{Ilmenau}
\setbeamercovered{transparent}
\setbeamercolor*{item}{fg=blue}

\usepackage{caption}
\captionsetup{font=scriptsize,labelfont=scriptsize}
\usepackage{hyperref}
\hypersetup{urlcolor=blue}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}

\title{DNA - Computing}
\author{Aleyna Acikyol \& Alina Grahic
}
\begin{document}
    \begin{frame}[plain]
        \maketitle
    \end{frame}
    
    %5 FOTO
    \begin{frame}{Probleme heutiger Computer (3)}
        %\begin{enumerate}
        %   \item \textcolor{blue}{Transistoren:}
        \begin{itemize}
            \item \textcolor{blue}{Transistoren:}
            \begin{itemize}
                \item kleiner geht nicht
                \item Ausgleich mit Multicores /Multiprozessorsysteme
            \end{itemize}
        \end{itemize}
        \pause
        \begin{figure}  
            %\begin{itemize}
            \begin{columns}
                \column{0.50\linewidth}
                \centering
                \includegraphics[height=3cm, width=3cm]{./5.jpg}\caption{diverse Datenträger im Privatgebrauch}
                
                \column{0.50\linewidth}     
                \centering
                \includegraphics[height=3cm, width=3cm]{./5.2.jpg}\caption{Data Centre, Cloud}
            \end{columns} 
            %\end{itemize}
        \end{figure}
        %\end{enumerate}    
    \end{frame}
    
\end{document}

It looks like this

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

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

发布评论

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

评论(1

东走西顾 2025-01-30 02:26:44

标题是透明的,因为您使用的是\ setBeamercovered {透明}。您有两个选项可以避免透明标题:

  1. 立即通过避免在它们前面的\ pause来显示图像和标题

  2. 切换到\ setBeamerCovered {Invisible}临时或为整个演示延迟图像,以延迟图像和下一个覆盖的字幕:

\documentclass{beamer}
\usetheme{Ilmenau}
\setbeamercovered{transparent}
\setbeamercolor*{item}{fg=blue}
\setbeamerfont{caption}{size=\scriptsize}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}

\title{DNA - Computing}
\author{Aleyna Acikyol \& Alina Grahic
}
\begin{document}
    \begin{frame}[plain]
        \maketitle
    \end{frame}
    
    %5 FOTO
    \begin{frame}
      \frametitle{Probleme heutiger Computer (3)}
        %\begin{enumerate}
        %   \item \textcolor{blue}{Transistoren:}
        \begin{itemize}
            \item \textcolor{blue}{Transistoren:}
            \begin{itemize}
                \item kleiner geht nicht
                \item Ausgleich mit Multicores /Multiprozessorsysteme
            \end{itemize}
        \end{itemize}
        {
        \setbeamercovered{invisible}
        \pause
        \begin{figure}  
            %\begin{itemize}
            \begin{columns}
                \column{0.50\linewidth}
                \centering
                \includegraphics[height=3cm, width=3cm]{example-image-duck}\caption{diverse Datenträger im Privatgebrauch}
                
                \column{0.50\linewidth}     
                \centering
                \includegraphics[height=3cm, width=3cm]{example-image-duck}\caption{Data Centre, Cloud}
            \end{columns} 
            %\end{itemize}
        \end{figure}
        %\end{enumerate}    
        }
    \end{frame}
    
\end{document}

其他一些注释:

  • 您不需要\ code> \ usepackage { HyperRef},Be​​amer已经加载了

  • 我要警惕使用\ hypersetup {urlcolor = blue} with beamer,可以导致与精心构造的Beamer颜色主题的奇怪交替,在人们永远不会期望的地方

  • 如果您的tex,则永远不会期望

    分发在过去5年左右的时间内进行了更新,您不需要\ usepackage [utf8] {inputenc},现在是默认值

  • ,如果您只想更改字体标题的大小,您实际上不需要字幕软件包,Beamer有自己的机制来控制字幕的大小

  • 而不是\ \ \开始{frame} {...}我将使用\ frametitle {...}。这更加灵活,强大

  • 如果您指定图像的宽度和高度, ,最终会扭曲。请考虑添加keeppectratio选项以避免此

  • 以避免手动重复相同的帧标题几次(“问题heutiger Computer(3)”)您可以使用覆盖层并将幻灯片添加到框架计数器中到Frametitle

The caption is transparent because you are using \setbeamercovered{transparent}. You have two options to avoid the transparent caption:

  1. immediately show the images and caption by avoid the \pause in front of them

  2. switching to \setbeamercovered{invisible} either temporarily or for the whole presentation to delay the images and caption to the next overlay:

\documentclass{beamer}
\usetheme{Ilmenau}
\setbeamercovered{transparent}
\setbeamercolor*{item}{fg=blue}
\setbeamerfont{caption}{size=\scriptsize}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}

\title{DNA - Computing}
\author{Aleyna Acikyol \& Alina Grahic
}
\begin{document}
    \begin{frame}[plain]
        \maketitle
    \end{frame}
    
    %5 FOTO
    \begin{frame}
      \frametitle{Probleme heutiger Computer (3)}
        %\begin{enumerate}
        %   \item \textcolor{blue}{Transistoren:}
        \begin{itemize}
            \item \textcolor{blue}{Transistoren:}
            \begin{itemize}
                \item kleiner geht nicht
                \item Ausgleich mit Multicores /Multiprozessorsysteme
            \end{itemize}
        \end{itemize}
        {
        \setbeamercovered{invisible}
        \pause
        \begin{figure}  
            %\begin{itemize}
            \begin{columns}
                \column{0.50\linewidth}
                \centering
                \includegraphics[height=3cm, width=3cm]{example-image-duck}\caption{diverse Datenträger im Privatgebrauch}
                
                \column{0.50\linewidth}     
                \centering
                \includegraphics[height=3cm, width=3cm]{example-image-duck}\caption{Data Centre, Cloud}
            \end{columns} 
            %\end{itemize}
        \end{figure}
        %\end{enumerate}    
        }
    \end{frame}
    
\end{document}

Some other comments:

  • you don't need \usepackage{hyperref}, beamer already loads it

  • I'd be wary to use \hypersetup{urlcolor=blue} with beamer, this can lead to strange alternations to the carefully constructed colour themes of beamer in places one would never expect

  • If your tex distribution was updated within the last 5 years or so, you don't need \usepackage[utf8]{inputenc}, that's now the default

  • If you just want to change the font size of the caption, you don't actually need the caption package, beamer has its own mechanism to control the size of captions

  • Instead of \begin{frame}{...} I would use \frametitle{...}. That's much more flexible and powerful

  • If you specify both the width and height of your images, they will end up distorted. Please consider adding the keepaspectratio option to avoid this

  • to avoid manually repeating the same frame title several times ("Probleme heutiger Computer (3)") you could use overlays and add the slide in frame counter to the frametitle

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