筆記

筆記

我一直在使用 Beamer 進行專業演示,我也打算將其用於我的博士論文演示。我有一個問題。我目前使用的模板如下:

\documentclass[17pt]{beamer}
\usetheme{Malmoe}

它非常實用,而且工作得非常好。但我想要一個更簡單的框架設置,並帶有馬爾默主題的輪廓。這是我正在尋找的內容的一個簡短範例,但這裡沒有概述:

    % compile with lualatex or xelatex:
\documentclass[svgnames, 17pt]{beamer}

\usepackage{booktabs,etoolbox,fontspec,microtype,ragged2e}
\usefonttheme{professionalfonts,serif,structuresmallcapsserif}
 \setmainfont[Numbers=OldStyle,SmallCapsFeatures={Kerning=Uppercase}]{Minion Pro}
 \usepackage{fontspec}
 \usepackage[applemac]{inputenc}    
 \usepackage[frenchb]{babel}
 \linespread{1.0344}
 \usepackage{graphicx}
 \usepackage{caption}
 \usecolortheme[named=Maroon]{structure}
 \beamertemplatesolidbackgroundcolor{Snow}
 \setbeamertemplate{navigation symbols}{}
 \setbeamertemplate{itemize items}[circle]
 \apptocmd{\frame}{\justifying}{}{}  
 \addtobeamertemplate{block begin}{}{\justifying}
 \definecolor{alert}{HTML}{347941}
  \setbeamercolor{alerted text}{fg=alert}
 \setbeamercovered{transparent=2}
 \title{My title}
 \author{My name}
 \subtitle[A subtitle]{A subtitle}
 \institute{My institution}
 \setbeamertemplate{caption}[numbered]
\setbeamertemplate{navigation symbols}{} 

 \begin{document}



\begin{frame}
\titlepage
\end{frame}


\begin{frame}
\frametitle{{\small A title}}
This is a place for some text.
\begin{enumerate}
\item 
\item 
\end{enumerate}
\end{frame}




 \end{document}

答案1

我仍然不確定你想要什麼,但也許你可以用這個做點什麼:

\documentclass[svgnames, 17pt]{beamer}
\usepackage{booktabs,etoolbox,fontspec,microtype,ragged2e}
\usefonttheme{professionalfonts,serif,structuresmallcapsserif}
\setmainfont[Numbers=OldStyle,SmallCapsFeatures={Kerning=Uppercase}]{Minion Pro}
\linespread{1.0344}
\usepackage{graphicx}
\usecolortheme[named=Maroon]{structure}
\colorlet{othercolour}{Snow}
\beamertemplatesolidbackgroundcolor{othercolour}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{itemize items}[circle]
\apptocmd{\frame}{\justifying}{}{}
\addtobeamertemplate{block begin}{}{\justifying}
\definecolor{alert}{HTML}{347941}
\setbeamercolor{alerted text}{fg=alert}
\setbeamercovered{transparent=2}
\title{My title}
\author{My name}
\subtitle[A subtitle]{A subtitle}
\institute{My institution}
\setbeamertemplate{caption}[numbered]
% based on Malmoe and the whale colour theme
\useoutertheme{split}
\mode<presentation>
\setbeamercolor*{palette primary}{use=structure,fg=othercolour,bg=structure.fg}
\setbeamercolor*{palette quaternary}{fg=othercolour,bg=black}
\mode
<all>
\setbeamercolor*{titlelike}{parent=structure}
\begin{document}

  \begin{frame}
    \titlepage
  \end{frame}

  \begin{frame}
    \frametitle{{\small A title}}
    This is a place for some text.
    \begin{enumerate}
      \item
      \item
    \end{enumerate}
  \end{frame}

\end{document}

栗色主題

筆記

  • 不是inputenc如果您使用 Xe/LuaTeX,請載入。您的序言告訴 TeX 您的文件使用該applemac編碼。如果是這樣,那就是 Xe/LuaTeX 的問題僅有的處理 UTF8 編碼的檔案。如果您的檔案確實是 UTF8 編碼,只需刪除該行即可。如果確實使用applemac,則必須刪除該行並使用 UTF8 編碼儲存檔案。
  • 載入caption什麼也沒做。它不會重新定義,\caption因為beamer已經重新定義了它。 (控制台輸出和/或日誌檔案會告訴您這一點。)
  • 盡量避免兩次載入包和發出命令。它會導致後來的混亂(“但是我已經改變了定義!為什麼它沒有任何效果?”,“我已經從序言中刪除了該包,但 LaTeX 仍在加載它!為什麼?”)。在這種情況下,navigation symbols不管你多麼不喜歡它們,清除一次就足夠了,加載fontspec一次也完全足夠了。 (載入中使用\setmainfont等似乎特別沒有意義。
  • 如果你在某個地方期待小型股,你很可能會得到它們。我沒有 Minion 小號大寫字母,因此 LaTeX 取代了常規的直立形狀。對於老式人物也是如此 - 我在小小兵中沒有這些,所以這些設置只會給我警告。
  • 襯線體、小型大寫字母和老式數字的組合可能不是幻燈片的最佳選擇。這可能會使您的簡報更難以閱讀。印刷文件或線上文字(例如文章)的最佳排版選擇通常不是 LCD 投影的最佳排版選擇。

[我刪除babel只是為了測試,因為你的 MWE 沒有使用任何法語。

相關內容