Is there a package or command that can automatically abbreviate names (similar to what bibtex does but not specifically for author names or citations)? The goal is to have a command that generates both, a properly formatted index entry, e.g. "Einstein, A." and a name in the text, e.g. "Albert Einstein". Ideally, the command would take only a single argument (the full name). Also for persons with several first names the command should work.
EDIT
I have a long document which contains many names. I would like them to appear in a unified manner and create an index for them. Right now "A. Einstein" and "Albert Einstein" can both appear. In the index the two versions should of course be merged to one entry. I could write a script that that edits the text file but a latex solution could be flexible enough to change the formatting later and not loose the information contained in the full names.
\newcommand{\myname}[1]{%
\index{\shortname{#1}}%
\longname{#1}%
}%
\myname{Albert Einstein}
should print "Albert Einstein" and add an element "Einstein, A." to the index.
acronym? – Nov 24 '15 at 12:50nameauthpackage: I don't know if it can fully answer your question, but maybe it can help. – LucaD Nov 27 '15 at 10:11