\documentclass[a4paper, 12pt]{article}
\usepackage{amsfonts, amssymb, amsmath, amsthm}
\usepackage{fontspec}
\setmainfont{Latin Modern Roman}[FakeBold=2]
\usepackage{unicode-math}
\setmathfont{latinmodern-math.otf}[FakeBold=2]
\begin{document}
\begin{align*}
v\in\mathbb{V}\\
f\in\mathbb{F}
\end{align*}
\end{document}
\documentclass[a4paper, 12pt]{article}
\usepackage{amsfonts, amssymb, amsmath, amsthm}
\usepackage{pdfrender, xcolor}
\pdfrender{StrokeColor=black,LineWidth=.2pt,TextRenderingMode=2}
%\usepackage{fontspec}
%\setmainfont{Latin Modern Roman}[FakeBold=2]
%\usepackage{unicode-math}
%\setmathfont{latinmodern-math.otf}[FakeBold=2]
\begin{document}
\begin{align*}
v\in\mathbb{V}\\
f\in\mathbb{F}
\end{align*}
\end{document}
我不确定为什么字体会随着 而改变fontspec
。我想在使用 时保留第二种样式(默认的 Latin Modern)fontspec
。
答案1
您想要的字体是 Computer Modern 而不是 Latin Modern。您可以mathbb
像这样重置:
\documentclass[a4paper, 12pt]{article}
\usepackage{amsfonts, amssymb, amsmath, amsthm}
\usepackage{fontspec}
\setmainfont{Latin Modern Roman}[FakeBold=2]
\let\mathbbalt\mathbb
\usepackage{unicode-math}
\setmathfont{latinmodern-math.otf}[FakeBold=2]
\let\mathbb\mathbbalt
\begin{document}
\begin{align*}
v\in\mathbb{V}\\
f\in\mathbb{F}
\end{align*}
\end{document}