用于偶数和奇数信号的 Latex

用于偶数和奇数信号的 Latex

我的文本使用不同的字体来表示给出函数偶数部分和奇数部分的高阶函数。如何在 Latex 中编写这些内容?

图片来自教科书

答案1

我认为您的问题是关于如何使用数学书法字体写“Ev”和“Od”。

对于大写字母“E”和“O”,只需分别输入\mathcal{E}\mathcal{O}

Computer Modern 是几乎所有 TeX 安装中的默认文本和数学字体系列,它不提供真正的书法小写字母。事实上,很少有数学字体提供真正的小写书法字母。下表列出了 11 种可能性;请注意,必须使用 LuaLaTeX 才能使用\usepackage{Unicode-math}和各种\setmathfont指令。

在此处输入图片描述

% !TEX TS-program = lualatex
\documentclass{article}
\newcommand\test{$\mathcal{Ev}\{x(t)\} \quad \mathcal{Od}\{x(t)\}$}

\usepackage{unicode-math}
%% Load various math fonts:
\setmathfont{Latin Modern Math}[version=LM]
\setmathfont{Stix Math}[version=Stix]
\setmathfont{XITS Math}[version=XITS]
\setmathfont{Stix Two Math}[version=Stix2]
\setmathfont{Cambria Math}[version=Cambria]
\setmathfont{Asana Math}[version=Asana]
\setmathfont{Asana Math}[Alternate,version=AsanaAlt]
\setmathfont{TeX Gyre Pagella Math}[version=Pagella]
\setmathfont{TeX Gyre Termes Math}[version=Termes]
\setmathfont{TeX Gyre DejaVu Math}[version=DejaVu]
\setmathfont{Libertinus Math}[version=Libertinus]

\begin{document}
\renewcommand\arraystretch{1.5}
\begin{tabular}{@{}ll@{}}
Latin Modern   & \mathversion{LM}      \test \\
Stix           & \mathversion{Stix}    \test \\
XITS           & \mathversion{XITS}    \test \\
Stix Two       & \mathversion{Stix2}   \test \\
Cambria        & \mathversion{Cambria} \test \\
Asana          & \mathversion{Asana}   \test \\
Asana Alt      & \mathversion{AsanaAlt}\test \\
Pagella        & \mathversion{Pagella} \test \\
Termes         & \mathversion{Termes}  \test \\
DejaVu         & \mathversion{DejaVu}  \test \\
Libertinus Math& \mathversion{Libertinus} \test
\end{tabular}
\end{document} 

相关内容