Configurando família de fontes no Beamer Frame

Configurando família de fontes no Beamer Frame

Devo estar me afogando em um copo d'água, mas estou batendo a cabeça na parede. Instalei o pacote emerald para ter novas fontes que gostaria de usar na minha apresentação do beamer.

Por favor, dê uma olhada no código abaixo, que compila com pdflatex sem nenhum problema. Posso definir a fonte Augie no slide da apresentação com o nome do instituto etc..., mas não consigo fazer o mesmo dentro, por exemplo, de um slide que começa com \begin{frame}. eu dei uma olhada

Defina uma fonte separada para títulos de slides no Beamer

Alternar famílias de fontes beamer em geral

mas não fui muito longe. Tenho 99% de certeza de que a solução deve ser de uma linha, então qualquer ajuda será apreciada!

Saúde

################################################# ##################a
\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}

Responder1

  • \usepackage{graphicx}e \usetheme{default}são supérfluos

  • com \AtBeginDocument{\ECFAugie}você pode alterar a fonte do texto normal

  • \setbeamerfont{my frametitle}{series=\ECFAugie}deveria estar\setbeamerfont{frametitle}{series=\ECFAugie}

  • \framesubtitle{A researcher's perspective}não tem nenhum efeito no preâmbulo, você quis dizer \subtitle{A researcher's perspective}?

  • Coisas como

    \newcommand{\bi}{\begin{itemize}}
    \newcommand{\ei}{\end{itemize}}
    \newcommand{\ig}{\includegraphics}
    

    não são uma boa ideia - eles apenas ofuscam seu código e dificultam a leitura para qualquer pessoa além de você. Você também perderá funcionalidade. Se quiser economizar tempo, use um editor com preenchimento automático e/ou macros


\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}

insira a descrição da imagem aqui

Considere cuidadosamente em quais ocasiões você usa essa fonte.

informação relacionada