My question is the following:
is there a way(other than
\maketitle
to show the content of \author
or \title
?\maketitle
to show the content of \author
or \title
?NEW: TikZ book now 40% off at Amazon.com for a short time.
\@author
and the title as \@title
. These can be used before \maketitle
, but are cleared by it (for historical reasons). Depending on what you want to do, you may need to redefine \author
and \title
to save the information somewhere that won't get cleared.Code: Select all
\documentclass{article}
\makeatletter
\def\author#1{\gdef\@author{#1}\gdef\showauthor{#1}}
\makeatother
\title{Some title}
\author{napbaioneta}
\begin{document}
\maketitle
Author is \showauthor
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.