
물 한 잔에 빠져 익사하고 있는 게 틀림없지만, 벽에 머리를 부딪히고 있습니다. 비머 프리젠테이션에 사용하고 싶은 새 글꼴을 갖기 위해 에메랄드 패키지를 설치했습니다.
아무런 문제 없이 pdflatex로 컴파일되는 아래 코드를 살펴보십시오. 연구소 이름 등을 사용하여 프레젠테이션 슬라이드에서 Augie 글꼴을 설정할 수 있지만, 예를 들어 \begin{frame}으로 시작하는 슬라이드에서는 동일한 작업을 수행할 수 없습니다. 나는 살펴 보았다
Beamer에서 슬라이드 제목에 대해 별도의 글꼴 정의
그러나 나는 그리 멀리 가지 못했다. 나는 해결책이 한 줄짜리여야 한다고 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}
어떤 경우에 그러한 글꼴을 사용하는지 신중하게 고려하십시오.