\mathbb 和 MnSymbol

\mathbb 和 MnSymbol

我正在对字体进行一些实验,我想使用以下内容MWE来编写一些数学运算:

\documentclass[%
paper=a4,%
fontsize=12bp,%
parskip=half-,%
notitlepage,%
oneside,%
reqno,%
numbers=noenddot,%
listof=totoc,%
bibliography=totoc,%
index=totoc]{scrreprt}
\setkomafont{sectioning}{\sffamily\bfseries\boldmath}
\usepackage[margin=1in,noheadfoot]{geometry}
\usepackage{amsmath}
\usepackage[MnSymbol,quiet]{mathspec}
\setmathsfont(Digits,Latin,Greek)[Numbers={Lining,Proportional}]{Minion Pro}
\setmathrm{Minion Pro} 
\setmainfont[       Ligatures               = {Common,TeX},
                    Numbers                 = {Lowercase, Proportional}, 
                    SmallCapsFeatures       = {Letters     = SmallCaps,
                    Numbers                 = Lowercase,
                    Kerning                 = Uppercase,
                    LetterSpace = 5}]{Minion Pro}
\begin{document}

\title{Something}
\author{Someone}
\maketitle

blah blah blah and $\mathbb{N}$
\end{document}

但是,这会产生错误,因为我没有包含 与 不兼容的\amsfonts或。有什么想法可以克服这个问题吗?我并不拘泥于使用,因此如果其他数学字体规范与 配合良好,那么我想听听您的建议。\amssymbMnSymbolMnSymbolMinionPro

PS 我正在用 进行编译lua

答案1

只需定义\mathbb数学字母表:

\documentclass[
  paper=a4,
  fontsize=12bp,
  parskip=half-,
  notitlepage,
  oneside,
  reqno,
  numbers=noenddot,
  listof=totoc,
  bibliography=totoc,
  index=totoc
]{scrreprt}

\usepackage[margin=1in,noheadfoot]{geometry}

\usepackage{amsmath}
\usepackage[MnSymbol,quiet]{mathspec}

\setmathsfont(Digits,Latin,Greek)[Numbers={Lining,Proportional}]{Minion Pro}
\setmathrm{Minion Pro} 
\setmainfont[
  Ligatures = {Common,TeX},
  Numbers = {Lowercase, Proportional}, 
  SmallCapsFeatures = {
    Letters = SmallCaps,
    Numbers = Lowercase,
    Kerning = Uppercase,
    LetterSpace = 5
  }
]{Minion Pro}

\setkomafont{sectioning}{\sffamily\bfseries\boldmath}

\DeclareMathAlphabet{\mathbb}{U}{msb}{m}{n}

\begin{document}

\title{Something}
\author{Someone}
\maketitle

blah blah blah and $\mathbb{N}$
\end{document}

在此处输入图片描述

相关内容