fira math have some contour intersection issues. try lato

This commit is contained in:
2025-07-28 17:03:12 +08:00
parent 1ffa1954d6
commit cd850b1132
4 changed files with 15 additions and 15 deletions

View File

@@ -1 +1 @@
<img width=100% alt="main" src="https://github.com/user-attachments/assets/41884c36-cfcc-4ea0-a921-9a751766f156" />
<img width=100% alt="example-sans" src="main.png" />

BIN
main.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 KiB

View File

@@ -2,21 +2,19 @@
\usepackage[sans]{myctex}
\usepackage{algo}
\usepackage{metalogo}
\title{思源黑体 + FiraGO}
\title{Template for \XeLaTeX }
\author{丛宇}
\date{\today}
\usepackage{bm}
\begin{document}
\maketitle
\begin{center}
{\Large{\bfseries Test of the font {\scshape Fira Math}.}}\bigskip\\
{\Large\verb|\usepackage[fira]{fontsetup}|}
%\medskip\\
%{\verb|\usepackage[romanfamily=bright-osf]{lucimatx}|} if you want old-style figures (like this: \oldstylenums{1695})\\
\end{center}
\begin{algo}
sans $\to$ lato + 思源黑体\\
serif $\to$ charter + 思源宋体
\end{algo}
The default math mode font is $Math\ Italic$. This should not be
confused with ordinary \emph{Text Italic} -- notice the different spacing\,!

View File

@@ -12,15 +12,17 @@
% Now use the conditional
\ifmyctex@sans
\setCJKmainfont{Source Han Sans SC}
\setCJKmainfont{Source Han Sans SC}[BoldFont=*, ItalicFont=*]
\setCJKsansfont{Source Han Sans SC}
\setCJKmonofont{Source Han Sans SC}
\RequirePackage[fira]{fontsetup}
\RequirePackage{FiraMono}
\setmathfont{Fira Math}[range=\setminus]
% \RequirePackage[fira]{fontsetup}
% \RequirePackage{FiraMono}
% \setmathfont{Fira Math}[range=\setminus]
\usepackage[default]{lato}
\usepackage{lete-sans-math}
\else
\setCJKmainfont{Source Han Serif SC}
\setCJKmainfont{Source Han Serif SC}[BoldFont=*, ItalicFont=*]
\setCJKsansfont{Source Han Serif SC}
\setCJKmonofont{Source Han Serif SC}
\RequirePackage[charter]{mathdesign} % math font only for serif mode
@@ -29,7 +31,7 @@
% \setCJKmainfont{SourceHanSerifSC-Regular.otf}[BoldFont={SourceHanSerifSC-Bold.otf}, ItalicFont=SourceHanSerifSC-Regular.otf]
\RequirePackage[margin=1in]{geometry}
\RequirePackage{latexsym,amsmath}
\RequirePackage{amsmath}
\RequirePackage[dvipsnames]{xcolor}
\RequirePackage[colorlinks=true,urlcolor=Blue,citecolor=Green,linkcolor=BrickRed,unicode]{hyperref}