@@ -12,8 +12,6 @@ jobs:
|
||||
- name: Compile LaTeX using local TeX Live
|
||||
# These commands run directly in your machine's shell
|
||||
run: |
|
||||
echo $HOME
|
||||
fc-list | grep "Source Han Sans"
|
||||
echo "Compiling document..."
|
||||
latexmk -pdf main.tex
|
||||
|
||||
|
12
xenotes.sty
12
xenotes.sty
@@ -1,5 +1,4 @@
|
||||
\ProvidesPackage{xenotes}
|
||||
\RequirePackage[fontset=none, scheme=plain]{ctex}
|
||||
\RequirePackage{fontspec}
|
||||
|
||||
\newif\ifxenotes@sans
|
||||
@@ -12,27 +11,16 @@
|
||||
|
||||
% Now use the conditional
|
||||
\ifxenotes@sans
|
||||
\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]
|
||||
\usepackage[default]{lato}
|
||||
\usepackage{lete-sans-math}
|
||||
|
||||
\else
|
||||
\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
|
||||
\RequirePackage{amsmath}
|
||||
\RequirePackage{eucal}
|
||||
\RequirePackage{microtype}
|
||||
\fi
|
||||
|
||||
% \setCJKmainfont{SourceHanSerifSC-Regular.otf}[BoldFont={SourceHanSerifSC-Bold.otf}, ItalicFont=SourceHanSerifSC-Regular.otf]
|
||||
|
||||
\RequirePackage[margin=1in]{geometry}
|
||||
\RequirePackage[dvipsnames]{xcolor}
|
||||
|
||||
|
Reference in New Issue
Block a user