我想更改标题页的字体使用 Beamer 主题 Lucy.样式文件使用条件
% load font
\ifbtl@usefont@%
\RequirePackage{aurical}%
\RequirePackage[cmintegrals,cmbraces,ebgaramond]{newtxmath}%
\RequirePackage[default]{lato}%
\RequirePackage{mathastext}
\AtBeginDocument{\fontseries{m}\selectfont}%
\def\lfseries{\fontseries{l}\selectfont}%
\else%
\def\lfseries{\selectfont}%
\fi%
标题页是这样的
\newcommand\btl@true{true}
\providecommand{\lucyUseAlternativeTitle}{false}
\ifx\lucyUseAlternativeTitle\btl@true
\defbeamertemplate*{title page}{lucy}[1][] {
\begin{center}
{\Huge\color{cprimary}\inserttitle}
\\[3.5em]
\color{csecondary}\insertauthor
\end{center}
}
\else
\defbeamertemplate*{title page}{lucy}[1][] {
\ifbtl@usefont@\Fontauri\fi%
\begin{center}
{\Huge\color{cprimary}\inserttitle}
\\[3.5em]
\color{csecondary}\insertauthor{} \(\circ\) \insertdate
\end{center}
}
\fi
我想使用 EB Garmond(或任何其他非书法字体)而不是 Fontauri 作为标题。我该如何实现?
答案1
使用选项nofont
% !TeX TS-program = pdflatex
\documentclass[11pt]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{microtype}
\usepackage[english]{babel}
\usetheme[nofont]{lucy} % use option nofont <<<<<<<<<<<
\title{Example Presentation}
\begin{document}
\begin{frame}[plain]
\maketitle
\end{frame}
\begin{frame}
\frametitle{}
\end{frame}
\end{document}