I know LaTeX just to the point of making simple documents and modifying simple characteristics of a document's layout. Now I'm creating a class for a kind of document in order not to have to copy a huge preamble in every document, and I don't know to achieve what I want to do. First of all, the class inherits from the article class, uses otf fonts so I'm compiling with XeLaTeX, and uses the fancyhdr package.
I want to specify the fancyhdr headers inside the .cls file because they're all going to have the same style, so I would like to include in the .cls file the lines:
\lhead[<even output>]{<odd output>}
\chead[<even output>]{<odd output>}
\rhead[<even output>]{<odd output>}
What's inside, though, would have to be parameters that would be specified in the .tex file, like the document's title, or the author's name, or other stuff. How could I pass this kinds of arguments to the .cls file. If a general solution is given (in order to learn LaTeX besides being able to do what I want), I would very much appreciate it too.
Thank you very much.
EDIT:
As it can be seen in the article class file article.cls the above parameters can be called via \@author, \@title and so on. The below answer by Christian answers what I asked in the comments, and shows how to create different parameters in the class file that could be defined from the .tex file.
article.clsas a starter? – Jun 14 '15 at 08:31\@authorand so on. Is that general? How could I define in the class a "parameter" (I don't know how to call it) so I could access it from the cls via that method? Because the article class doesn't define author and title (I guess they're standard TeX parameters). – MyUserIsThis Jun 14 '15 at 08:39\@authoretc commands are defined using\authoretc. They are no class options – Jun 14 '15 at 09:08