beamerposter 中的標題

beamerposter 中的標題

顯然,beamerposter 不會自動產生標題,因此必須手動產生。然而,下面的MWE不起作用!怎麼了?怎麼樣才能讓這張海報設計不那麼痛苦呢?我只想在頂部有一個居中的大標題!

\documentclass{beamer}

\usepackage[size=custom,height=105,width=80,scale=1]{beamerposter}

\begin{document}

\begin{frame}{}
  \begin{block}
    \VERYHuge A Novel Algorithm for #SAT
  \end{block}
  \begin{columns}[t]

    \begin{column}{.45\linewidth}
      \begin{block}{FOOBAR}
        \VERYHuge foobar
      \end{block}
    \end{column}

    \begin{column}{.45\linewidth}
      \begin{block}{FOOBAR}
       \VERYHuge foobar
      \end{block}
    \end{column}

  \end{columns}

\end{frame}

\end{document}

答案1

更改#為 --> \#。主題標籤字元#具有特殊的功能LaTeX和特殊的字元代碼。相反,控制序列(或者如果您願意,可以將其稱為巨集)\#被指派給“排版”字元(因為單獨的#解釋不同。

單獨的#(主要)用在巨集定義內部。最好用一個例子來說明這一點。

說我們有\newcommand\mymacro[2]{Typeset the first argument first, #1\par and then the second argument: #2}。其意義是,當您\mymacro像這樣呼叫巨集時:\mymacro{foo}{bar},則foo第一組大括號內將取代巨集定義中您放置的任何內容#1。同樣,#2被替換為bar.那麼輸出就是Typeset the first argument first, foo\par and then the second argument: bar.方括號旁邊的數字\mymacro[2](數字 2)是告訴 LaTeX 的數字多少參數位於巨集中,因為 LaTeX 無法事先知道需要多少個參數。

要讓字體大小更大,您可以使用\fontsize帶有兩個參數的命令手動控製字體大小。第一個參數與文字的磅值有關,第二個參數與行間距有關。

為了使標題居中,我剛剛使用了center環境。我不認為block真正為你服務...

為了將標題放在海報的頂部,我使用了該\vfill命令,它通過以下方式平衡當前頁面元素:

如果您有兩個由 分隔的頁面元素\vfill,它將最大程度地分隔這兩個元素(它將在\vfill指定的位置「垂直填充」頁面)。如果您使用多個命令,您將在兩側放置等量的填充,可能會將\vfill其前後的特定元素居中。

\documentclass{beamer}

\usepackage[size=custom,height=105,width=80,scale=1]{beamerposter}

\begin{document}

\begin{frame}{}
  \begin{center}
    \protect\fontsize{100pt}{100pt}\protect\selectfont A Novel Algorithm for \#SAT
  \end{center}

  \vfill
  \begin{columns}[t]
    \begin{column}{.45\linewidth}
      \begin{block}{FOOBAR}
        \VERYHuge foobar
      \end{block}
    \end{column}

    \begin{column}{.45\linewidth}
      \begin{block}{FOOBAR}
       \VERYHuge foobar
      \end{block}
    \end{column}

  \end{columns}
  \vfill

\end{frame}

\end{document}

相關內容