当我使用图形时,\usebackgroundtemplate
我注意到背景中的图形不会在我的演示文稿中调整。参见下图:
阴影变成白色,背景图形向右移动。此外,我想消除主调色板(蓝色)。
我希望整个图像都位于背景中,没有白色部分。
下面是我的代码:
\documentclass[xcolor=table,10pt,c]{beamer}
\usetheme{Warsaw}
\useoutertheme{infolines}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}
\usepackage{tikz,pgfplots}
\usepackage{xcolor}
\usepackage{pgfpages}
\usepackage{graphicx,color}
%Dados da sua apresentação
\author[Aliano, A. F \& Fulano, G. H]{Angelo Aliano Filho \\ Fulano de Tal}
\title[Título resumido]{Título completo}
%\setbeamercovered{highly dynamic}
\setbeamercovered{transparent=30}
\setbeamertemplate{navigation symbols}{}
\institute[Seu inst.]{\textbf{Universidade Tecnológica Federal do Paraná} \\ Departamento de Matemática}
\date{\today}
\logo{
\includegraphics[scale=0.08]{logoUTFPR.png}
}
\usebackgroundtemplate{
\tikz\node[opacity=0.7] {
\includegraphics[width=\paperwidth,
height=\paperheight]
{lousa.jpg}
};}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\titlepage
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Frame 1}{Subtitle 1}
Contents
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Frame 1}{Subtitle 1}
\begin{block}{Title}
Content of a block...
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
答案1
阴影变白
从 v3.60 或更新版本开始,投影仪阴影(再次)透明
背景图形向右移动
Tikz 默认在节点周围添加一些填充。您可以使用 键inner sep
来调整此
\documentclass[xcolor=table,10pt,c]{beamer}
\usetheme{Warsaw}
\useoutertheme{infolines}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}
\usepackage{tikz,pgfplots}
%\usepackage{xcolor}
\usepackage{pgfpages}
%\usepackage{graphicx,color}
%Dados da sua apresentação
\author[Aliano, A. F \& Fulano, G. H]{Angelo Aliano Filho \\ Fulano de Tal}
\title[Título resumido]{Título completo}
%\setbeamercovered{highly dynamic}
\setbeamercovered{transparent=30}
\setbeamertemplate{navigation symbols}{}
\institute[Seu inst.]{\textbf{Universidade Tecnológica Federal do Paraná} \\ Departamento de Matemática}
\date{\today}
\logo{
\includegraphics[scale=0.08]{example-image-duck}
}
\usebackgroundtemplate{%
\tikz[inner sep=0pt]\node[opacity=0.7] {%
\includegraphics[width=\paperwidth,
height=\paperheight]
{example-image-duck}
};}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\titlepage
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Frame 1}{Subtitle 1}
Contents
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Frame 1}{Subtitle 1}
\begin{block}{Title}
Content of a block...
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}