答案1
正如 Урош 和 Bernard 在评论中所说,原文很可能已经设定Utopia
,因此你可以使用fourier-otf
(实际上是Erewhon
,基于Heuristica
,而又基于Utopia
)与 XeLaTeX:
\documentclass[a5paper]{article}
\usepackage{fourier-otf}
\usepackage{amsmath}
\usepackage{unicode-math}
\usepackage{parskip}
\begin{document}
\textbf{Example 1}\\
Let \((s_n)\) be the sequence defined by \(s_n = n^2(-1)^n\). The
positive terms of this sequence comprise a subsequence. In this case,
the sequence \((s_n)\) is
\[(-1, 4, -9, 16, -25, 36, -49, 64,...)\]
and the subsequence is
\[(4, 16, 36, 64, 100, 144,...).\]
More precisely, the subsequence is \((s_{n_k})_{k\in\mathbb{N}}\) where
\(n_k =2k\) so that \(s_{n_k} =(2k)^2 (-1)^{2k}=4k^2\). The selection
function \(\sigma\) is given by \(\sigma(k)=2k\).
\end{document}
答案2
如果您确实想使用 OpenType 字体,可以尝试一下。可能有更好的方法,但这是我多年来一直使用的模板的基础。只需将“Adobe Garamond Pro”替换为您选择的字体名称即可。
\documentclass[11pt, a4paper]{article}
% For setting the section heading fonts
\usepackage[raggedright]{titlesec}
% For specifying environment fonts
\usepackage{fontspec}
% Choose the main and mono fonts:
\setmainfont[Ligatures=TeX,Numbers={OldStyle,Proportional}]{Adobe Garamond Pro}
\setmonofont[Ligatures=TeX, Numbers={OldStyle,Proportional}]{Adobe Garamond Pro}
% Use ligatures via fontspec:
\defaultfontfeatures{Ligatures=TeX}
% Set the font for the math environment:
\usepackage{unicode-math}
\setmathfont[StylisticSet=1]{Garamond-Math} % This loads Garamond-Math as the main math font...
\setmathfont[range = up/num,Numbers={OldStyle,Monospaced}]{Adobe Garamond Pro}%...and then everything except the numerals get switched for Adobe Garamond Pro (because Adobe Garamond Pro doesn't have math symbols)
\title{The title}
\author{The author}
\date{18 November 2020}
\begin{document}
\maketitle
\section{A section}
Hello world.
$n^2$
\end{document}