1

I downloaded a class file and starts with the below code, would you be able to tell me what it does please? And would any of the commands become redundant whether XeLaTex/LuaLaTeX is used?

I have added comments to what I think certain lines may be doing but not too sure really, any additional info. would be great thanks!

\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}

0 Answers0