I am writing a document where name of a person A will appear at multiple places section A. Similarly, name of person B will appear at multiple places in section B, etc.
Is there any way by which just before section A, I can define a variable, say, PersonName, assign a value relevant to Person A to it, and use it in section A. Then, redefine PersonName at the beginnig of section B, use it in section B, etc.
If PersonName can not be defined in the body, can I declare it in the preamble and keep assigning different values to it in the body?
\newcommandas defined by the LaTeX-Kernel.\newcommand{\persona}{Persona Alite}and \newcommand{\personb}{Persona Belite}. Or\newcommand{\person}{alite} \renewcommand{\person}{belite}– Johannes_B Mar 23 '14 at 07:48