Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{report}
- \makeatletter
- \newcommand{\supervisor}[1]{%
- \gdef\@supervisor{#1}%
- \g@addto@macro\@author{%
- \ifcsname @supervisor\endcsname
- \\ \@supervisor
- \fi}
- }
- \makeatother
- \title{A title}
- \author{An author}
- \supervisor{A supervisor}
- \begin{document}
- \maketitle
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement