
我一定是被淹沒在一杯水中了,但我正在用頭撞牆。我安裝了 emerald 套件以獲得我想在我的投影機演示中使用的新字體。
請看下面的程式碼,它使用 pdflatex 編譯沒有任何問題。我可以在簡報幻燈片中設定 Augie 字體以及研究所名稱等...,但我無法在例如以 \begin{frame} 開頭的幻燈片中執行相同的操作。我看了一下
但我並沒有走多遠。我 99% 確定該解決方案一定是一句簡單的話,因此我們將不勝感激!
乾杯
################################################### ## ###########\documentclass[12pt]{beamer}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage{emerald}
\usetheme{default}
\beamertemplatenavigationsymbolsempty
\hypersetup{pdfpagemode=UseNone} % don't show bookmarks on initial view
% named colors
\definecolor{offwhite}{RGB}{249,242,215}
\definecolor{foreground}{RGB}{255,255,255}
\definecolor{background}{RGB}{24,24,24}
\definecolor{title}{RGB}{107,174,214}
\definecolor{gray}{RGB}{155,155,155}
\definecolor{subtitle}{RGB}{102,255,204}
\definecolor{hilight}{RGB}{102,255,204}
\definecolor{vhilight}{RGB}{255,111,207}
\definecolor{lolight}{RGB}{155,155,155}
%\definecolor{green}{RGB}{125,250,125}
% use those colors
\setbeamercolor{titlelike}{fg=title}
\setbeamercolor{subtitle}{fg=subtitle}
\setbeamercolor{institute}{fg=gray}
\setbeamercolor{normal text}{fg=foreground,bg=background}
\setbeamercolor{item}{fg=foreground} % color of bullets
\setbeamercolor{subitem}{fg=gray}
\setbeamercolor{itemize/enumerate subbody}{fg=gray}
\setbeamertemplate{itemize subitem}{{\textendash}}
\setbeamerfont{itemize/enumerate subbody}{size=\footnotesize}
\setbeamerfont{itemize/enumerate subitem}{size=\footnotesize}
% Now try to set te Augie font everywhere
\setbeamerfont{my frametitle}{series=\ECFAugie}
\setbeamerfont{framesubtitle}{series=\ECFAugie}
\setbeamerfont{title}{series=\ECFAugie}
\setbeamerfont{caption}{series=\ECFAugie}
\setbeamerfont{author}{series=\ECFAugie}
\setbeamerfont{institute}{series=\ECFAugie}
\setbeamerfont{date}{series=\ECFAugie}
% page number
\setbeamertemplate{footline}{%
\raisebox{5pt}{\makebox[\paperwidth]{\hfill\makebox[20pt]{\color{gray}
\scriptsize\insertframenumber}}}\hspace*{5pt}}
% add a bit of space at the top of the notes page
\addtobeamertemplate{note page}{\setlength{\parskip}{12pt}}
% a few macros
\newcommand{\bi}{\begin{itemize}}
\newcommand{\ei}{\end{itemize}}
\newcommand{\ig}{\includegraphics}
\newcommand{\subt}[1]{{\footnotesize \color{subtitle} {#1}}}
\title{Blockchain: Traceability, Provenance and Applications for My
Unknown Institute}
\framesubtitle{A researcher's perspective}
\author{ {John Doe}}
\institute{Unknown Institute}
\begin{document}
\frame{
\titlepage}
\begin{frame}
\frametitle{What is a Blockchain}
% \framesubtitle{Test Frame}
% \subt{An optional subtitle}
A distributed data structure which is
\begin{enumerate}
\item very difficult to tamper with
\item if tampered with, the tampering is easy to spot
\end{enumerate}
And who invented it?
\end{frame}
\end{document}
答案1
\usepackage{graphicx}
而且\usetheme{default}
都是多餘的您
\AtBeginDocument{\ECFAugie}
可以變更普通文字的字體\setbeamerfont{my frametitle}{series=\ECFAugie}
應該\setbeamerfont{frametitle}{series=\ECFAugie}
\framesubtitle{A researcher's perspective}
在序言中沒有任何影響,你的意思是\subtitle{A researcher's perspective}
?像
\newcommand{\bi}{\begin{itemize}} \newcommand{\ei}{\end{itemize}} \newcommand{\ig}{\includegraphics}
這不是一個好主意——它們只會混淆你的程式碼,讓除了你之外的任何人都很難閱讀。您還會失去功能。如果您想節省時間,請使用具有自動完成和/或巨集的編輯器
\documentclass[12pt]{beamer}
%\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage{emerald}
%\usetheme{default}
\setbeamerfont{frametitle}{series=\ECFAugie}
\setbeamerfont{framesubtitle}{series=\ECFAugie}
\setbeamerfont{title}{series=\ECFAugie}
\setbeamerfont{caption}{series=\ECFAugie}
\setbeamerfont{author}{series=\ECFAugie}
\setbeamerfont{institute}{series=\ECFAugie}
\setbeamerfont{date}{series=\ECFAugie}
\AtBeginDocument{\ECFAugie}
\title{Blockchain: Traceability, Provenance and Applications for My Unknown Institute}
\subtitle{A researcher's perspective}
\author{John Doe}
\institute{Unknown Institute}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{What is a Blockchain}
A distributed data structure which is
\begin{enumerate}
\item very difficult to tamper with
\item if tampered with, the tampering is easy to spot
\end{enumerate}
And who invented it?
\end{frame}
\end{document}
請仔細考慮您使用這種字體的場合。