I want to write a new class based on the article class for student home-works that needs a modified title page.
Is it possible to create new macros like \title{} and \author{} that can be used in the modified \maketitle code (e.g. \tutor{} and \dueDate{}) without editing the latex.ltx file?
In the question How to make a new command similar to \author the class that is worked on is memoir.cls while I'm trying to modify the article.cls. Furthermore the best solution given is by adding new information to \author macro and not on how to add new macros that are ready to use in the preamble.
latex.ltxat all. It will probably come down to copying the relevant bits fromarticle.cls/latex.ltxand elsewhere and adding the redefinition to your custom class. – moewe Apr 09 '19 at 12:21\author, namely\director:\newcommand{\director}[1]{\gdef\@director{#1}}% \newcommand{\@director}{\@latex@warning@no@line{No \noexpand\director given}}. You can now use\@directorin your title formatting. – moewe Apr 09 '19 at 12:23