我正在用 制作海报beamer
。部门的打印机有一个特定的可打印区域,我必须停留在这个区域内,但我想让背景图案逐渐淡出。
当我到达这个可打印区域时,怎样才能淡出为纯白色?(假设有一个.5in
长边距和一个1in
短边距,纵向方向。)
有关的:如何为图像添加渐变淡入淡出效果?
平均能量损失
\documentclass{beamer}
\usetheme{Rochester}
\beamertemplategridbackground[.05in]
\begin{document}
\begin{frame}
\frametitle{MWE}
\begin{block}{Title}
Test
\end{block}
\end{frame}
\end{document}
涂鸦
答案1
在我找到解决方案后,我注意到您想要将其用于投影仪海报而不是投影仪框架,但我无论如何都会提交它。
我没有将背景淡化为白色,而是在每个边缘上绘制了白色矩形,然后将其淡化为透明。这些矩形用作背景模板,因此位于每个框架的标题栏后面。长度灵活,因此应该很容易适应纵向布局。您可能需要构建文档两次才能获得正确的定位。
\documentclass{beamer}
\usetheme{Rochester}
\usepackage{tikz}
\usetikzlibrary{fadings}
%\beamertemplategridbackground[.05in]
\newlength{\mylongedgemargin}
\setlength{\mylongedgemargin}{1in}
\newlength{\myshortedgemargin}
\setlength{\myshortedgemargin}{2in}
\usebackgroundtemplate{%
\begin{tikzpicture}[remember picture,overlay]
\draw[step=.05in,gray,very thin] (current page.south west) grid (current page.north east);
\fill [white,path fading=east] (current page.south west) rectangle ++(\mylongedgemargin,\paperheight);
\fill [white,path fading=west] (current page.south east) rectangle ++(-\mylongedgemargin,\paperheight);
\fill [white,path fading=north] (current page.south west) rectangle ++(\paperwidth,\myshortedgemargin);
\end{tikzpicture}
}
\begin{document}
\begin{frame}
\frametitle{MWE}
\begin{block}{Title}
Frame 1
\end{block}
\end{frame}
\end{document}
編輯:與beamerposter
\documentclass{beamer}
\usepackage[orientation=portrait,size=a4]{beamerposter}
\usetheme{Rochester}
\usepackage{tikz}
\usetikzlibrary{fadings}
\newlength{\mylongedgemargin}
\setlength{\mylongedgemargin}{1in}
\newlength{\myshortedgemargin}
\setlength{\myshortedgemargin}{2in}
\usebackgroundtemplate{%
\begin{tikzpicture}[remember picture,overlay]
\draw[step=.05in,gray,very thin] (current page.south west) grid (current page.north east);
\fill [white,path fading=east] (current page.south west) rectangle ++(\mylongedgemargin,\paperheight);
\fill [white,path fading=west] (current page.south east) rectangle ++(-\mylongedgemargin,\paperheight);
\fill [white,path fading=north] (current page.south west) rectangle ++(\paperwidth,\myshortedgemargin);
\end{tikzpicture}
}
\begin{document}
\begin{frame}
\frametitle{MWE}
\begin{block}{Title}
Test
\end{block}
\end{frame}
\end{document}