在 Beamer 海报的标题中对齐标题、作者和日期

在 Beamer 海报的标题中对齐标题、作者和日期

我正在使用 beamer 包,并在页面顶部设置了标题,但我想将标题左对齐。到目前为止,标题部分如下:

\documentclass[final]{beamer}
\usepackage[scale=1.24]{beamerposter}
\usepackage{graphicx}       
\usepackage{tikz}

\newlength{\sepwid} \newlength{\onecolwid} \newlength{\twocolwid}
\setlength{\paperwidth}{48in} \setlength{\paperheight}{36in}
\setlength{\sepwid}{0.02\paperwidth} \setlength{\onecolwid}{0.22\paperwidth}
\setlength{\twocolwid}{0.464\paperwidth} \setlength{\topmargin}{-0.5in}
 \usetheme{confposter}
  \usepackage{array,booktabs,tabularx}
  \graphicspath{{figures/}}

  \title{\begin{flushleft} TITLE \end{flushleft}}
  \author{ \begin{flushleft}NAME\end{flushleft}  }
  \institute{ \begin{flushleft} INSTITUTE \end{flushleft} }

  \begin{document} %% \end{document}

编译没问题,但显示结果却如此,我不知道如何修复它。有什么建议吗? 在此处输入图片描述

答案1

我假设你正在使用来自http://www.njohnston.ca/2009/08/latex-poster-template/如果是这种情况,只需重新定义headline要使用的模板\raggedright,而不是默认模板\centering

原始定义

 \setbeamertemplate{headline}{
 \leavevmode
  \begin{columns}
   \begin{column}{\linewidth}
    \vskip1cm
    \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}
   \vspace{1cm}
  \end{columns}
 \vspace{0.5in}
 \hspace{0.5in}\begin{beamercolorbox}[wd=47in,colsep=0.15cm]{cboxb}\end{beamercolorbox}
 \vspace{0.1in}
}

修改后的完整示例:

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

\setbeamertemplate{headline}{
 \leavevmode
  \begin{columns}
   \begin{column}{\linewidth}
    \vskip1cm
    \raggedright
    \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}
   \vspace{1cm}
  \end{columns}
 \vspace{0.5in}
 \hspace{0.5in}\begin{beamercolorbox}[wd=47in,colsep=0.15cm]{cboxb}\end{beamercolorbox}
 \vspace{0.1in}
}

\title{TITLE}
\author{NAME}
\institute{INSTITUTE}

\begin{document}
 test
\end{document}

结果:

在此处输入图片描述

相关内容