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{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\,!
|
||||
|
14
myctex.sty
14
myctex.sty
@@ -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}
|
||||
|
Reference in New Issue
Block a user