在脚注中对齐文本

在脚注中对齐文本

我是 LaTeX - Beamer 的新手。我正在尝试创建一个模板,并且快完成了。但是,我无法对齐脚注中的文本。

如果我随意摆弄它,hspace vspace它会增加脚注线的宽度,这是我不想要的。我想知道是否有办法将脚注线中的文本垂直对齐到栏的中心。

\newlength\barwidth
\setlength\barwidth{24pt} % width of bars set here
\setbeamercolor*{footline}{fg=orange,bg=black} 
\setbeamertemplate{footline}{%  \begin{beamercolorbox}[sep=2pt,left]{footline}% 
\includegraphics[width=\barwidth,height=\barwidth]{img/GGLogo.png}      
~\hfill \fontsize{12}{14}\selectfont% 
usebeamercolor[fg]{footline}\hspace{0em}\vspace{0em}\textbf\inserttitle%
\end{beamercolorbox} }

答案1

将我的评论放入答案中(并且厚颜无耻地从@samcarter 那里窃取了 MWE;为此表示感谢)

\documentclass{beamer}

\newlength\barwidth
\setlength\barwidth{24pt} % width of bars set here
\setbeamercolor*{footline}{fg=orange,bg=black} 
\setbeamerfont{title in head/foot}{series=\bfseries, size=\fontsize{12}{14}\selectfont}

\setbeamertemplate{footline}{%
    \begin{beamercolorbox}[wd=\paperwidth,sep=2pt]{footline}%
      \parbox[c]{0pt}{\makebox[0pt][l]{% doesn't use any horizontal space
        \includegraphics[height=\barwidth,width=\barwidth]{example-image}%
      }}%
      \hspace{0.1\textwidth}%
      \parbox[c]{0.8\textwidth}{%
        \centering%
        \usebeamerfont{title in head/foot}\inserttitle%
      }%
      \hspace{0.1\textwidth}%
    \end{beamercolorbox}%
}

\title{text}

\begin{document}

\begin{frame}

\end{frame}

\title{This is longer title, which might take up too much space}
\begin{frame}

\end{frame}


\end{document}

enter image description here enter image description here

答案2

基于Beamer:如何在左侧和底部放置徽标?

\documentclass{beamer}

\newlength\barwidth
\setlength\barwidth{24pt} % width of bars set here
\setbeamercolor*{footline}{fg=orange,bg=black} 
\setbeamerfont{title in head/foot}{series=\bfseries, size=\fontsize{12}{14}\selectfont}

\setbeamertemplate{footline}{%
    \begin{beamercolorbox}[wd=\paperwidth,sep=2pt]{footline}%
    \includegraphics[align=c, height=\barwidth]{example-image}%
    \hfill%
    \usebeamerfont{title in head/foot}%
    \inserttitle\hfill\kern1em%
    \end{beamercolorbox}%
}

\usepackage{graphbox}

\title{text}

\begin{document}

\begin{frame}

\end{frame}


\end{document}

enter image description here

相关内容