I have created a custom title page format within the titlepage environment. I'd like to put that in a class or package, and be able to use that format in every document by simply specifying the \title and \author and calling the \maketitle command at the beginning of the document. How could I do it?

  • You don't need to make a new class or package just for this. You can redefine the \maketitle command.
    – user156344
    Mar 23, 2019 at 20:08
  • 2
    \renewcommand{\maketitle}{\begin{titlepage}...\end{titlepage}} using \@title and \@author. This is actually how \maketitle is defined for standard document classses, only the ... part changes. Mar 23, 2019 at 20:15
  • The titling package might be helpful for that.
    – Bernard
    Mar 23, 2019 at 20:18

1 Answer 1


You can use \renewcommand and \@title and \@author (as John Kormylo pointed out). This is one way to do it (you can customize titlepage to anything you want):



            text width=\textwidth-2cm,
            inner xsep=.5cm
        ] (x) {\@title};
        \draw (x.north west) node[
            above right=2cm and 0pt,
            inner sep=.2cm
        ] (y) {\textit{\bfseries By} \textsc{\@author}};
        \draw (y.south west)--($(x.south west)+(0,-2)$);

\author{My name}
\title{Lorem Lipsum}



enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .