rename to xenotes

This commit is contained in:
2025-07-29 15:38:01 +08:00
parent cd850b1132
commit 93f38fa242
2 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
\documentclass[11pt]{article}
\usepackage[sans]{myctex}
\usepackage[sans]{xenotes}
\usepackage{algo}
\usepackage{metalogo}

View File

@@ -1,17 +1,17 @@
\ProvidesPackage{myctex}
\ProvidesPackage{xenotes}
\RequirePackage[fontset=none, scheme=plain]{ctex}
\RequirePackage{fontspec}
\newif\ifmyctex@sans
\myctex@sansfalse % Default is serif
\newif\ifxenotes@sans
\xenotes@sansfalse % Default is serif
% Declare and process options
\DeclareOption{sans}{\myctex@sanstrue}
\DeclareOption*{\PackageWarning{myctex}{Unknown option `\CurrentOption'}}
\DeclareOption{sans}{\xenotes@sanstrue}
\DeclareOption*{\PackageWarning{xenotes}{Unknown option `\CurrentOption'}}
\ProcessOptions\relax
% Now use the conditional
\ifmyctex@sans
\ifxenotes@sans
\setCJKmainfont{Source Han Sans SC}[BoldFont=*, ItalicFont=*]
\setCJKsansfont{Source Han Sans SC}
\setCJKmonofont{Source Han Sans SC}