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} \documentclass[11pt]{article}
\usepackage[sans]{myctex} \usepackage[sans]{xenotes}
\usepackage{algo} \usepackage{algo}
\usepackage{metalogo} \usepackage{metalogo}

View File

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