投影仪演示文稿中的书法 \mathcal 字体

投影仪演示文稿中的书法 \mathcal 字体

我在使用投影仪演示时遇到了一个问题\mathcal,并且无法使针对类似情况提出的解决方案都起作用。

presentation这是我的.sty 文件的内容:

% --- Fonts ---
\usefonttheme{professionalfonts}
\usepackage[english]{babel}
\usepackage[round,authoryear]{natbib} 
\usepackage{sourcesanspro}
\usepackage{sourcecodepro}
\usepackage[T1]{fontenc}
\usepackage{amsmath,
amssymb, amsthm, 
eucal, bbold, bm
}
\usepackage{gensymb}
\usepackage{arydshln}

\newcommand*\dif{\mathop{}\!\textnormal{\slshape d}}
\usepackage[italic,eulergreek,symbolmisc]{mathastext}
\usepackage{url}

% Microtypography
\usepackage{microtype}
\DisableLigatures[f]{encoding = *, family = * }

% Correct spacing around letters in math
\MTsetmathskips{f}{\thinmuskip}{0mu} 
\MTsetmathskips{y}{\thinmuskip}{0mu}
\MTsetmathskips{p}{\thinmuskip}{0mu}
\MTsetmathskips{l}{0mu}{\thinmuskip}
\MTsetmathskips{j}{\thinmuskip}{\thinmuskip}

% --- Beamer theme ---
\usetheme{Boadilla}
\usecolortheme[]{seagull}
\setbeamercovered{transparent}
\setbeamertemplate{navigation symbols}{}

% --- Font sizes and shapes ---
\setbeamerfont{title}{size=\huge, series=\scshape}
\setbeamerfont{author}{size=\large}
\setbeamerfont{frametitle}{series=\scshape}
\setbeamertemplate{frametitle}{\MakeLowercase{\insertframetitle}}
\setbeamerfont{itemize/enumerate subbody}{size=\normalsize}
\setbeamerfont{button}{size=\footnotesize}

% --- Spacing ---
\usepackage[onehalfspacing]{setspace}
\setbeamertemplate{title page}[default][left,leftskip=-8pt]
\addtobeamertemplate{frametitle}{\vskip3mm}{}
\setbeamersize{text margin left=5mm,text margin right=5mm}

% --- Color ---
\colorlet{myblack}{black!85!}
\colorlet{mygray}{gray!60!}
\setbeamercolor{title}{fg=myblack}
\setbeamercolor{frametitle}{fg=myblack}
\setbeamercolor{normal text}{fg=myblack}
\setbeamercolor{itemize item}{fg=mygray}
\setbeamercolor{itemize subitem}{fg=mygray} 
\setbeamercolor{enumerate item}{fg=mygray} 
\setbeamercolor{enumerate subitem}{fg=mygray}
\setbeamercolor{footline}{fg=mygray}
\setbeamercolor{button}{fg=mygray, bg=white}


% --- Title slide ---
\let\oldtitle\title
\renewcommand{\title}[1]{\oldtitle[]{\MakeLowercase{#1}\vspace{-5mm}\\\color{myblack}{\rule{\textwidth}{2pt}}\vspace{1cm}}}

% Paper information
\usepackage{xparse}
\NewDocumentCommand{\information}{o g g}{%
\author[]{#2%
\IfValueT{#3}{\vspace{5mm}\\#3}%
\IfValueT{#1}{\vspace{5mm}\\\color{mygray}{\footnotesize \url{#1}}}%
}\date[]{}}

以下是 MWE:

\documentclass[11pt,xcolor={dvipsnames,table},hyperref={pdftex, pdfpagemode=UseNone, hidelinks, pdfdisplaydoctitle=true},usepdftitle=false]{beamer}

\usepackage{presentation}
\hypersetup{pdftitle={Presentation Title}}
\newcommand{\pdf}{figures.pdf}

\begin{document}

\title{presentation title}
\information
{first-name last-name}
{place and date}
\frame[plain]{\titlepage}

\begin{frame}{This is a math slide}
    \begin{itemize}
    \item Function: $\mathcal{g}: \mathcal{X} \mapsto \mathcal{y}$
\end{itemize}
\end{frame}

\end{document}

我在 overleaf (pdfLatex) 上对其进行了编译,其显示内容如下:

在此处输入图片描述

如果您能给我一些提示来解决这个问题,我将非常感激。

答案1

您需要一种包含小写\mathcal字母的字体。Beamer 的默认字体(Computer Modern Sans)没有小写字母。(编译日志中也会提到这一点。)

很少有字体有小写字母\mathcal。之前关于这个问题的一些问题包括

并包括一些具有此范围的字体的建议以及如何加载它们。

相关内容