Following this answer I'm trying to customize the cover of a report, which works fine for articles, but doesn't seem to work for reports. For example:
\documentclass[a4paper,12pt]{article}
\usepackage{geometry}
\makeatletter
\def\@maketitle{
\raggedright
\begin{center}
{\Huge \bfseries \sffamily \@title }\\[4ex]
{\Large \@author}\\[4ex]
\@date\\[8ex]
\end{center}}
\makeatother
\begin{document}
\title{Report}
\author{Author}
\date{Septembre 2013}
\maketitle
\end{document}
works, but when I change article to report the custom title page layout is lost. I could manually use e.g. \begin{titlepage} .., but I actually like the idea of having the definition of the title page elsewhere (for example a custom .sty file) and only including title{}, author{}, and date{} in each document.
Can this somehow be done using the report class?

a4paper,12pt, nota4paper12pt. – Apr 26 '19 at 07:31