I am preparing a group report in LaTeX, assembling many parts written by different authors.
I'd like to write the authors name right aligned into the \subsection{} entry in the TOC, right next to the page numbers. Therefore i've tried to \hfill the line. Unfortunately this is resulting in a "messy" order (picture below), it seems like the author names are center aligned in the remaining space?
The minimal reproducible code snippet i've tried:
\subsection{TITLE \hfill \textit{AUTHOR}} \par
Does anybody know how to handle that? Otherwise i have to use \subsection[]{} to write the authors name right next to the title.
