diff --git a/README.md b/README.md index 2acb70b..b41b523 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -main +example-sans diff --git a/main.png b/main.png new file mode 100644 index 0000000..4cd0ac4 Binary files /dev/null and b/main.png differ diff --git a/main.tex b/main.tex index 455f43d..564f70e 100644 --- a/main.tex +++ b/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\,! diff --git a/myctex.sty b/myctex.sty index 85a7153..83660b6 100644 --- a/myctex.sty +++ b/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}