以下 MWE 尝试显示 STIX 字体中的两个字符(U+1D61F
和U+2047
)。两者都列在
https://github.com/stipub/stixfonts/blob/master/docs/STIXTwoMath-Regular.pdf
其中一个显示,另一个不显示。
为什么会这样?如何解决?
梅威瑟:
\documentclass[a4paper, 11pt, oneside, final]{article}
\usepackage{unicode-math}
\setmathfontface\StixTwoMath{STIX Two Math}
\usepackage[autostyle]{csquotes}
% Mathematical Alphanumeric Symbols.
\NewDocumentCommand\BCon{}{{\ensuremath{\StixTwoMath{\char"1D61F}}}}
% General Punctuation.
\NewDocumentCommand\BNc{}{{\ensuremath{\StixTwoMath{\char"2047}}}}
\NewDocumentCommand\BNq{}{{\ensuremath{\StixTwoMath{\Question}}}}
\begin{document}
\BCon{}: The \enquote{\BCon{} signifies a double.}
\BNc{}: The \enquote{\BNc{} signifies an arbitrary bid.}
\BNq{}: The \enquote{\BNq{} signifies an arbitrary bid.}
\end{document}
答案1
这里似乎基本上没有数学用途,因此您可以将字体设置为文本字体系列
\documentclass[a4paper, 11pt, oneside, final]{article}
\usepackage{fontspec}
\newfontfamily\StixTwoMath{STIX Two Math}
\usepackage[autostyle]{csquotes}
% Mathematical Alphanumeric Symbols.
\NewDocumentCommand\BCon{}{{\StixTwoMath\char"1D61F}}
% General Punctuation.
\NewDocumentCommand\BNc{}{{\StixTwoMath\char"2047}}
\begin{document}
\BCon{}: The \enquote{\BCon{} signifies a double.}
\BNc{}: The \enquote{\BNc{} signifies an arbitrary bid.}
\end{document}