Zoltan King
Zoltan King

Reputation: 2292

How can I make the document title bold and larger in size?

I have this LaTeX code and I was wondering how can I make the document title bold and larger in size than the default size.

\documentclass{article}

\title{Document Title}
    
\begin{document}

\maketitle

The content of the document goes here.    

\end{document}

I've noticed that \maketitle renders the content that is specified above in the preamble.

Upvotes: 1

Views: 4348

Answers (1)

You could redefine \@maketitle:

\documentclass{article}

\title{Document Title}

\makeatletter
\def\@maketitle{%
  \newpage
  \null
  \vskip 2em%
  \begin{center}%
  \let \footnote \thanks
    {\Huge\bfseries\@title \par}%
    \vskip 1.5em%
    {\large
      \lineskip .5em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
    \vskip 1em%
    {\large \@date}%
  \end{center}%
  \par
  \vskip 1.5em}
\makeatother
    
\begin{document}

\maketitle

The content of the document goes here.    

\end{document}

enter image description here

Upvotes: 1

Related Questions