I'm trying to imitate (not exactly replicate) the titles from the Journal of Political Economy (see e.g. the first page of this example), but have starting to stumble. My problem is that I can't define separate fonts for authors and affiliations. I have posted the result of my attempts thus far using the titling package at the bottom of the post.
I know that I could fix this using the authblk package, but I would prefer not to as it interferes with the hyperref package. I am in no way married to using titling. In fact, I think that it might actually be a better idea to redefine \maketitle altogether.
P.S. I am aware that it might be easier to just hardcode the title myself instead of using \maketitle but I would like to use this in a class eventually.
\documentclass{article}
\usepackage{array}
\usepackage{titling}
\makeatletter
\pretitle{\vspace{-60\p@}\begin{flushleft}\fontsize{22pt}{24pt}\selectfont\sffamily\bfseries}
\posttitle{\par\end{flushleft}\vskip 5em}
\preauthor{\flushleft\rule{\linewidth}{0.5pt}\begin{flushleft}\LARGE\sffamily\begin{tabular}[t]{@{}>{\raggedright}p{\textwidth}@{}}}
\renewcommand\and{%
\end{tabular} \\[1em]%
\begin{tabular}[t]{@{}>{\raggedright}p{\textwidth}@{}}}%
\postauthor{\end{tabular}\par\end{flushleft}}
\predate{\begin{flushleft}\normalsize}
\postdate{\par\end{flushleft}}
\makeatother
\title{On the Origins of the Philosopher's Stone}
\author{Albus Dumbledore \ Hogwarts School of Witchcraft and Wizardry, International Confederation of Wizards, and the Wizengamot \and Nicholas Flamel\Beauxbatons Academy of Magic}
\date{\today}
\begin{document}
\maketitle
\end{document}


\andin another question but would be very interested in finding where it is defined originally – Fredrik P Apr 08 '21 at 11:00