I'm newbie in making LaTeX classes and this is my first attempt. I'm trying to create a class where I select the font type (Roboto) and its size for different sections of the file. I've tried the following:
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{idletechs}[some text]
\newcommand{\headlinecolor}{\normalcolor}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
\ProcessOptions\relax
\LoadClass[12pt]{report}
\renewcommand{\maketitle}{ \fontsize{72}{80}\fontfamily{phv}\fontseries{b}%
\fontshape{sl}\selectfont\headlinecolor
\@title ]
}
However, this applies the font size on the whole document and not just on the title. Could anyone give me some hints?


\begingroup\fontsize{72}{80}...\@title\endgroup. (Is the]a typo?) – TH. Jun 19 '17 at 07:50\selectfontis the thing that actually changes to the font you've selected using the preceding commands like\fontfamily{phv}. You should ask your follow up questions as new questions though. That way more people will see them. – TH. Jun 19 '17 at 15:19