如何在 Beamer 海报中插入两个徽标

如何在 Beamer 海报中插入两个徽标

我想在海报中添加两个徽标,一个在左上角,一个在右上角。这是一个例子,我使用了 tikz 包。要编译此代码,您必须上传“confposter”文件

 \documentclass[final]{beamer}
\usepackage{tikz}
\usepackage[scale=1.15]{beamerposter} % Use the beamerposter package for laying out the poster

\usetheme{confposter} % Use the confposter theme supplied with this template

\setbeamercolor{block title}{fg=ngreen,bg=white} % Colors of the block titles
\setbeamercolor{block body}{fg=black,bg=white} % Colors of the body of blocks
\setbeamercolor{block alerted title}{fg=white,bg=dblue!70} % Colors of the highlighted block titles
\setbeamercolor{block alerted body}{fg=black,bg=dblue!10} % Colors of the body of highlighted blocks
% Many more colors are available for use in beamerthemeconfposter.sty

%-----------------------------------------------------------
% Define the column widths and overall poster size
% To set effective sepwid, onecolwid and twocolwid values, first choose how many columns you want and how much separation you want between columns
% In this template, the separation width chosen is 0.024 of the paper width and a 4-column layout
% onecolwid should therefore be (1-(# of columns+1)*sepwid)/# of columns e.g. (1-(4+1)*0.024)/4 = 0.22
% Set twocolwid to be (2*onecolwid)+sepwid = 0.464
% Set threecolwid to be (3*onecolwid)+2*sepwid = 0.708

\newlength{\sepwid}
\newlength{\onecolwid}
\newlength{\twocolwid}
\newlength{\threecolwid}
\setlength{\paperwidth}{48in} % A0 width: 46.8in
\setlength{\paperheight}{36in} % A0 height: 33.1in
\setlength{\sepwid}{0.024\paperwidth} % Separation width (white space) between columns
\setlength{\onecolwid}{0.22\paperwidth} % Width of one column
\setlength{\twocolwid}{0.464\paperwidth} % Width of two columns
\setlength{\threecolwid}{0.708\paperwidth} % Width of three columns
\setlength{\topmargin}{-0.5in} % Reduce the top margin size
%-----------------------------------------------------------

\usepackage{graphicx}  % Required for including images

\usepackage{booktabs} % Top and bottom rules for tables

%----------------------------------------------------------------------------------------
%   TITLE SECTION 
%----------------------------------------------------------------------------------------
\title{TitleTitleTitleTitleTitleTitleTitleTitleTitleTitleTitleTitleTitle} % Poster title

\author{xxxxx, xxxxx, xxx} % Author(s)

\institute{ Department of xxxxxxxxx,xxxxxxxxxxxxxxxx} % Institution(s)

%----------------------------------------------------------------------------------------

\begin{document}
 \addtobeamertemplate{headline}{} 
 {\begin{tikzpicture}[remember picture, overlay]
      \node [anchor=north east, inner sep=3cm, yshift=-2cm] at (current page.north east)
      {\includegraphics[width=9 cm, height=9cm]{logo1}};
   \end{tikzpicture}}
   {\begin{tikzpicture}[remember picture, overlay]
      \node [anchor=north west, inner sep=3cm, yshift=-4cm] at (current page.north west)
      {\includegraphics[width=10 cm, height=10cm]{example-image-b}};
   \end{tikzpicture}}
%\setbeamertemplate{headline} { \includegraphics[height=2cm]{images/logo} \hfill \includegraphics[height=2cm]{example-image-a}}
\addtobeamertemplate{block end}{}{\vspace*{2ex}} % White space under blocks
\addtobeamertemplate{block alerted end}{}{\vspace*{2ex}} % White space under highlighted (alert) blocks

\setlength{\belowcaptionskip}{2ex} % White space under figures
\setlength\belowdisplayshortskip{2ex} % White space under equations

\begin{frame}[t] % The whole poster is enclosed in one beamer frame
\end{frame}
\end{document}

答案1

您还可以使用以下内容:请在序言中添加此内容。

 \usepackage{tikz}

然后,在文档正文中(紧接着\begin{document})添加以下内容:

%-----------LOGO ADDED TO NORTH EAST----------------%
\addtobeamertemplate{headline}{} 
{\begin{tikzpicture}[remember picture, overlay]
     \node [anchor=north east, inner sep=6.5cm]  at (current page.north east)
     {\includegraphics[height=5cm]{NSERG.png}};
  \end{tikzpicture}}
%-------END LOGO ADDED TO NORTH EAST----------------%

%-----------LOGO ADDED TO NORTH WEST----------------%
\addtobeamertemplate{headline}{} 
{\begin{tikzpicture}[remember picture, overlay]
     \node [anchor=north west, inner sep=6.5cm]  at (current page.north west)
     {\includegraphics[height=5cm]{THALES_RT.jpg}};
  \end{tikzpicture}}
 %-------END LOGO ADDED TO NORTH WEST----------------%

这里inner sep指定到右上角的对角线距离。

请参阅下面的示例。希望这会有所帮助。 在此处输入图片描述

答案2

我会做:

\documentclass[final]{beamer}
\usepackage{tikz}
\usepackage[scale=1.15]{beamerposter} 
\usetheme{confposter}

\title{TitleTitleTitleTitleTitleTitleTitleTitleTitleTitleTitleTitle} 
\author{xxxxx, xxxxx, xxx} 
\institute{ Department of xxxxxxxxx,xxxxxxxxxxxxxxxx} 

\setbeamertemplate{headline}{
 \leavevmode
  \begin{columns}[T]
    \begin{column}{.1\linewidth}
        \vskip1cm
        \hskip1cm
        \includegraphics[width=.9\linewidth]{example-image-a}
    \end{column}
        \begin{column}{.8\linewidth}
         \vskip2cm
         \centering
         \usebeamercolor{title in headline}{\color{jblue}\Huge{\textbf{\inserttitle}}\\[0.5ex]}
         \usebeamercolor{author in headline}{\color{fg}\Large{\insertauthor}\\[1ex]}
         \usebeamercolor{institute in headline}{\color{fg}\large{\insertinstitute}\\[1ex]}
         \vskip1cm
        \end{column}
    \begin{column}{.1\linewidth}
        \vskip1cm
        \includegraphics[width=.9\linewidth]{example-image-b}
        \hskip1cm
    \end{column}        
   \vspace{1cm}
  \end{columns}
 \vspace{0.5in}
 \hspace{0.5in}\begin{beamercolorbox}[wd=47in,colsep=0.15cm]{cboxb}\end{beamercolorbox}
 \vspace{0.1in}
}

\begin{document}

\begin{frame}[t]
\end{frame}
\end{document}

在此处输入图片描述

相关内容