fira math have some contour intersection issues. try lato
This commit is contained in:
		@@ -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" />
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										14
									
								
								main.tex
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								main.tex
									
									
									
									
									
								
							@@ -2,21 +2,19 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
\usepackage[sans]{myctex}
 | 
					\usepackage[sans]{myctex}
 | 
				
			||||||
\usepackage{algo}
 | 
					\usepackage{algo}
 | 
				
			||||||
 | 
					\usepackage{metalogo}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					\title{Template for \XeLaTeX }
 | 
				
			||||||
\title{思源黑体 + FiraGO}
 | 
					 | 
				
			||||||
\author{丛宇}
 | 
					\author{丛宇}
 | 
				
			||||||
\date{\today}
 | 
					\date{\today}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\usepackage{bm}
 | 
					\usepackage{bm}
 | 
				
			||||||
\begin{document}
 | 
					\begin{document}
 | 
				
			||||||
\maketitle
 | 
					\maketitle
 | 
				
			||||||
\begin{center}
 | 
					\begin{algo}
 | 
				
			||||||
{\Large{\bfseries Test of the font {\scshape Fira Math}.}}\bigskip\\
 | 
					sans $\to$ lato + 思源黑体\\
 | 
				
			||||||
{\Large\verb|\usepackage[fira]{fontsetup}|}
 | 
					serif $\to$ charter + 思源宋体
 | 
				
			||||||
%\medskip\\
 | 
					\end{algo}
 | 
				
			||||||
%{\verb|\usepackage[romanfamily=bright-osf]{lucimatx}|} if you want old-style figures (like this: \oldstylenums{1695})\\
 | 
					 | 
				
			||||||
\end{center}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
The default math mode font is $Math\ Italic$. This should not be
 | 
					The default math mode font is $Math\ Italic$. This should not be
 | 
				
			||||||
confused with ordinary \emph{Text Italic} -- notice the different spacing\,!
 | 
					confused with ordinary \emph{Text Italic} -- notice the different spacing\,!
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										14
									
								
								myctex.sty
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								myctex.sty
									
									
									
									
									
								
							@@ -12,15 +12,17 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
% Now use the conditional
 | 
					% Now use the conditional
 | 
				
			||||||
\ifmyctex@sans
 | 
					\ifmyctex@sans
 | 
				
			||||||
\setCJKmainfont{Source Han Sans SC}
 | 
					\setCJKmainfont{Source Han Sans SC}[BoldFont=*, ItalicFont=*]
 | 
				
			||||||
\setCJKsansfont{Source Han Sans SC}
 | 
					\setCJKsansfont{Source Han Sans SC}
 | 
				
			||||||
\setCJKmonofont{Source Han Sans SC}
 | 
					\setCJKmonofont{Source Han Sans SC}
 | 
				
			||||||
\RequirePackage[fira]{fontsetup}
 | 
					% \RequirePackage[fira]{fontsetup}
 | 
				
			||||||
\RequirePackage{FiraMono}
 | 
					% \RequirePackage{FiraMono}
 | 
				
			||||||
\setmathfont{Fira Math}[range=\setminus]
 | 
					% \setmathfont{Fira Math}[range=\setminus]
 | 
				
			||||||
 | 
					\usepackage[default]{lato}
 | 
				
			||||||
 | 
					\usepackage{lete-sans-math}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\else
 | 
					\else
 | 
				
			||||||
\setCJKmainfont{Source Han Serif SC}
 | 
					\setCJKmainfont{Source Han Serif SC}[BoldFont=*, ItalicFont=*]
 | 
				
			||||||
\setCJKsansfont{Source Han Serif SC}
 | 
					\setCJKsansfont{Source Han Serif SC}
 | 
				
			||||||
\setCJKmonofont{Source Han Serif SC}
 | 
					\setCJKmonofont{Source Han Serif SC}
 | 
				
			||||||
\RequirePackage[charter]{mathdesign} % math font only for serif mode
 | 
					\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]
 | 
					% \setCJKmainfont{SourceHanSerifSC-Regular.otf}[BoldFont={SourceHanSerifSC-Bold.otf}, ItalicFont=SourceHanSerifSC-Regular.otf]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\RequirePackage[margin=1in]{geometry}
 | 
					\RequirePackage[margin=1in]{geometry}
 | 
				
			||||||
\RequirePackage{latexsym,amsmath}
 | 
					\RequirePackage{amsmath}
 | 
				
			||||||
\RequirePackage[dvipsnames]{xcolor}
 | 
					\RequirePackage[dvipsnames]{xcolor}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\RequirePackage[colorlinks=true,urlcolor=Blue,citecolor=Green,linkcolor=BrickRed,unicode]{hyperref}
 | 
					\RequirePackage[colorlinks=true,urlcolor=Blue,citecolor=Green,linkcolor=BrickRed,unicode]{hyperref}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user