如何避免图形遮挡文字?

如何避免图形遮挡文字?
\documentclass[xcolor={dvipsnames,table}]{beamer}
\mode<presentation>
{  \usetheme{Darmstadt}
  \setbeamercovered{transparent}
}
\addtobeamertemplate{footline}{}{%

\makebox[\paperwidth]{%
    \hspace{0.04\textwidth}\raisebox{2ex}[0pt][0pt]{\includegraphics[width=1.5cm,keepaspectratio]{./figures/1.JPG}}%
    \hfill{}%
    \raisebox{2ex}[0pt][0pt]{\includegraphics[width=1.5cm,keepaspectratio]{./figures/2.JPG}}\hspace{0.04\textwidth}%
}%
}
\begin{document}
\section{ Summary}
\begin{frame}{}
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
\end{frame}
\end{document}

这是我的 latex 文件。您将其复制到 .tex 文件并运行。我的问题是,我正在向投影仪添加两个图形,即 1.JPG 和 2.JPG 作为两个脚图。但我发现脚图遮住了文本。 在此处输入图片描述 我怎样才能在脚部图形前面制作 txet?

谢谢。

答案1

您只需将这些图片添加到背景即可。

\documentclass[xcolor={dvipsnames,table}]{beamer}
\mode<presentation>
{  \usetheme{Darmstadt}
  \setbeamercovered{transparent}
}
\usepackage{tikz}
\defbeamertemplate{background canvas}{my background pic}%
{\tikz[remember picture,overlay]{
\node[inner sep=0pt,outer sep=0pt,anchor=south west] at 
([yshift=2ex,xshift=0.04\textwidth]current page.south west)
{\includegraphics[width=1.5cm,keepaspectratio]{example-image-a}};
\node[inner sep=0pt,outer sep=0pt,anchor=south east] at 
([yshift=2ex,xshift=-1ex]current page.south east)
{\includegraphics[width=1.5cm,keepaspectratio]{example-image-b}};}}
[action]{}

\setbeamertemplate{background canvas}[my background pic]
\begin{document}
\section{ Summary}
\begin{frame}{}
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
    tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt\\
\end{frame}
\end{document}

在此处输入图片描述

相关内容