Is it possible to read the white space in a very simple \author declaration? I understand that it's dangerous to expect such a thing to work very stably, but for a limited use case, I would like to be able to print the author's last name in the document header, and I'd like to keep the mechanism as simple and standard as possible.
I'd like the user to define the following:
\author{First Last}
The package would then read the text after white space in First Last to define the following automatically:
\lastname{Last}
I understand any solution would likely break if there is a middle name or initial, for example, or if there are multiple authors. My question is now as much about my original use case as it is about what is to me an interesting problem.

stringstringspackage,\getaword{\author}{2}\edef\lastname{\thestring}should do it. – Steven B. Segletes Mar 26 '13 at 22:38Authorwith an optional argument used to the last name. Something like\Author[Last]{Full Name}. – Sigur Mar 26 '13 at 22:39