我下载了一个类文件并从下面的代码开始,你能告诉我它是做什么的吗?无论使用 XeLaTex/LuaLaTeX,任何命令都会变得多余吗?
我添加了一些评论,我认为某些线路可能会做,但不是太确定,任何其他信息。非常感谢!
\ProvidesClass{My Class} % Name of the class
[YYYY/MM/DD v1.0 LaTeX document class] % Additional info about the class
\def\baseclass{article} % Defining the command \baseclass as article
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}} % Pass all unknown options to the \baseclass (article class)
\def\@checkoptions#1#2{
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}
\@tempswafalse
\@tfor\@this:=#2\do{
\@expandtwoargs\in@{,\@this,}{,\@curroptions,}
\ifin@ \@tempswatrue \@break@tfor \fi}
\let\@this\@empty
\if@tempswa \else \PassOptionsToClass{#1}{\baseclass}\fi
}
\@checkoptions{11pt}{{10pt}{11pt}{12pt}}
\PassOptionsToClass{a4paper}{\baseclass} % Passing a4paper to the baseclass (article class)
\ProcessOptions\relax % Process the defined options above, and stop looking
\LoadClass{\baseclass} % Load the defined baseclass
\pdfstringdefDisableCommands{\let\\\space}