1

I have similar problem as There's a bump in the implies glyph. I have no issues with \implies when using default font: enter image description here

But when using an non-default font I have a misaligned \implies: enter image description here

A MWE is

\documentclass{article}
\usepackage{amsmath}
\usepackage{
    xeCJK,                   % Chinese for XeTex
    fontspec,                % customize font
}
\setmainfont{NotoSerif-Regular} % from noto-fonts arch package
\setsansfont{NotoSans-Regular} % from noto-fonts arch package, use in \textsf
\setmonofont{FiraCode-Regular} % from ttf-fira-code arch package, used in \texttt
\setCJKmainfont{SourceHanSansCN-Regular} % from adobe-source-han-sans arch package, for chinese and japanese
\begin{document}


A $\implies$ B

Above is using custom font

\end{document}

I use xelatex (Version 3.141592653-2.6-0.999995 (TeX Live 2023/Arch Linux) (preloaded format=xelatex)).

By reading There's a bump in the implies glyph I realize that this is caused by \implies uses two different symbols. But are there ways to fix such problems for custom fonts?

1 Answer 1

0

I guess you want to use notomath.

\documentclass{article}
\usepackage{amsmath}
\usepackage{
    xeCJK,                   % Chinese for XeTex
    fontspec,                % customize font
}
\usepackage[scale=1.1156]{notomath}

\setmainfont{NotoSerif-Regular}
\setsansfont{NotoSans-Regular}
\setmonofont{FiraCode-Regular}
%\setCJKmainfont{SourceHanSansCN-Regular}

\begin{document}

$A \implies B$

Above is using custom font

\end{document}

enter image description here

I commented out the Chinese font, because I don't have it and it's irrelevant for the issue.

1
  • Perfect! This solved my problem!
    – Chris XU
    Commented Feb 14 at 9:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .