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
?Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
\@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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis