{\surname=surname,\fnames=fnames}
to give me surname and forenames. By using
{\fnames\ \surname\\
}
I can print out the list of names. All good so far
However, sometimes, I want to be able to show initials instead of forenames. As the manual says,
\DTLinitial{Mary
} gives M.However, it appears that while \DTLinitials can read a straight forward string (e.g., Mary), it cannot read the variable that \fnames contains at each row.
How can I pass the value of \fnames to \DTLinitials, please?
Have tried the following varieties:
\DTLinitials{\fnames}
\DTLinitials{fnames}
\DTLinitials\fnames
\DTLinitials{{\fnames}}
without success.
Thanks for any advice or help.
Cross-posted from Stack Exchange.