I am trying to write a new class using the report class. In my custom class I have used a custom \maketitle. But it is not working. But it works, if I use article class as my base. My class file is



\ProcessOptions \relax


Hello World

Hello World Again

and my TeX file is

\title{My report Title}
\author{My Name}


My output is enter image description here

When I replace article with report in the class file, the output changes to

enter image description here

  • What does "not working" mean when using report? What does "it works" mean when using article? What kind of error message(s) do you get? – Werner Sep 19 '13 at 4:21
  • In addition to Werner's questions, which is the actual definition of \@maketitle? – Gonzalo Medina Sep 19 '13 at 4:27
  • @Werner When report is used normal title comes. When article is used, my custom title comes. – tex Sep 19 '13 at 4:36
  • Hard to provide help if you don't provide the information that has been requested. Please, let us see your actual definition of \@maketitle and a complete, minimal example document showing the problem. – Gonzalo Medina Sep 19 '13 at 5:02
  • 1
    @user3984 \PassOptionsToClass{notitlepage}{report}, perhaps. – egreg Sep 19 '13 at 8:47

in the class will help to solve that problem. Thanks @egreg for the answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.