背景图片有问题?

背景图片有问题?

我正在尝试在我的 LaTeX 文件中插入背景图像,但是当我编写命令并进行编译时,背景图像处于正确的位置,但其余图像却移到了文档的末尾。

我正在使用\begin{figure}[h].....\end{figure}。图像仍然会移位,而当我运行没有背景图像的相同文件时,其余图像会到达其正确的位置。

答案1

您是否想制作海报(或演示文稿)或任何普通的写作文档?我制作了一张海报,在 Beamer 中放置了一个 \usebackgroundtemplate。在这种情况下,我的尝试成功了。在此处输入图片描述如果您正在尝试做这种类型,我可以向您发送我的脚本...或者以简短的形式 -

\documentclass[final, 12pt]{beamer}
\usepackage[size=custom,width=77,height=107,scale=1.4,orientation=portrait]{beamerposter} 
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{wrapfig,xcolor}
\usepackage{array,booktabs,tabularx,amsthm,multirow,amsmath}
\usepackage[absolute,overlay]{textpos}% text under figure
\usepackage{fancybox}%different shape box
\usepackage{mdframed}%framed
\usepackage{tikz}

\usebackgroundtemplate{\centering \includegraphics[width=\paperwidth, height=120cm]{AGC_figure/P-1.jpg}}
\addtobeamertemplate{block begin}{\pgfsetfillopacity{0.85}}{\pgfsetfillopacity{1}}

\newenvironment<>{varblock}[2][\textwidth]{%
  \setlength{\textwidth}{#1}
  \begin{actionenv}#3%
    \def\insertblocktitle{#2}%
    \par%
    \usebeamertemplate{block begin}}
  {\par%
    \usebeamertemplate{block end}%
  \end{actionenv}}
\usecolortheme{rose}
\setbeamercolor{uppercolgreen}{fg=white,bg=green!35}%Using this you can change the box color
\setbeamercolor{lowercolgreen}{fg=black,bg=green!10}
\setbeamercolor{eecks} {bg=white, fg=black}
\setbeamercolor{eecks2}{bg=white, fg=blue}



\setbeamercovered{transparent=80!}

\begin{document}
\begin{frame}

\pgfsetfillopacity{0.85}


\begin{textblock}{}(0.2,1.1)%
\begin{varblock}[35cm]{\textbf{1. Introduction}}


\begin{wrapfigure}[4]{r}{6.8cm}

\centering
\vspace{-2cm}
\includegraphics[height=5cm]{AGC_figure/P-2.pdf} 
\end{wrapfigure}


\end{varblock}
\end{textblock}


\begin{textblock}{}(0.2,3.55)%
\begin{varblock}[34cm]{\textbf{3. Site \& Equipment}}


-------------------------------------------------------------------------------------------------------------------------------------------your text-------------------------------------

\begin{wrapfigure}[7]{l}{10.5cm}
\vspace{-1cm}
\centering
\hspace{-1cm}
\includegraphics[height=7.5cm]{AGC_figure/P-3.pdf} 
\end{wrapfigure}
{conditions.}
\end{varblock}
\end{textblock}


\end{frame}
\end{document}

相关内容