如何在 Beamer Gemini 模板的标题中包含安全分类

如何在 Beamer Gemini 模板的标题中包含安全分类

我想在 Gemini beamerposter 主题的标题右上角添加安全分类(例如,机密、未分类等),可在此处找到: https://github.com/anishathalye/gemini

在示例文件 poster.tex 中取消注释两个徽标(左和右)后,我得到以下输出: 初步测试

如果我在 beamerthemegemini.sty 中添加以下行(用 ** 标识)以在徽标顶部的右栏中插入分类:

\begin{column}{\maxlogowidth}
        \vskip5ex
        \ifdefined\insertlogoright
        \vspace*{\fill}
        \raggedleft
        **\usebeamerfont{headline author}\usebeamercolor[fg]{headline author}Unclassified\\[1ex]**
        \insertlogoright
        \hspace{10ex}
        \vspace*{\fill}
        \else\fi
      \end{column}

hspace 似乎不再起作用,而且徽标和文本都在右侧被裁剪: 修改模板

我希望右侧保持相同的空间,而左侧则不规则地显示分类和徽标。

以下是 MWE:

\documentclass[final]{beamer}

\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[size=custom,width=120,height=72,scale=1.0]{beamerposter}
\usetheme{gemini}
\usecolortheme{gemini}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}
\usepackage{anyfontsize}

\newlength{\sepwidth}
\newlength{\colwidth}
\setlength{\sepwidth}{0.025\paperwidth}
\setlength{\colwidth}{0.3\paperwidth}

\newcommand{\separatorcolumn}{\begin{column}{\sepwidth}\end{column}}

\title{Some fancy title: followed by some more text}

\author{Alyssa P. Hacker \inst{1} \and Ben Bitdiddle \inst{2} \and Lem E. Tweakit \inst{2}}

\institute[shortinst]{\inst{1} Some Institute \samelineand \inst{2} Another Institute}

\logoright{\includegraphics[height=7cm]{logo1.pdf}}
\logoleft{\includegraphics[height=7cm]{logo2.pdf}}

\begin{document}

Test

\end{document}

标志1 Logo2

答案1

您可以使用类似的东西\parbox来添加您的文本和图像作为徽标:

% !TeX TS-program = lualatex

\documentclass[final]{beamer}

\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[size=custom,width=120,height=72,scale=1.0]{beamerposter}
\usetheme{gemini}
\usecolortheme{gemini}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}
\usepackage{anyfontsize}

\newlength{\sepwidth}
\newlength{\colwidth}
\setlength{\sepwidth}{0.025\paperwidth}
\setlength{\colwidth}{0.3\paperwidth}

\newcommand{\separatorcolumn}{\begin{column}{\sepwidth}\end{column}}

\title{Some fancy title: followed by some more text}

\author{Alyssa P. Hacker \inst{1} \and Ben Bitdiddle \inst{2} \and Lem E. Tweakit \inst{2}}

\institute[shortinst]{\inst{1} Some Institute \samelineand \inst{2} Another Institute}

\logoright{\parbox{13cm}{\raggedleft Unclassified\linebreak \includegraphics[height=7cm]{example-image-duck}}}
\logoleft{\includegraphics[height=7cm]{example-image-duck}}

\begin{document}

Test

\end{document}

在此处输入图片描述

相关内容