Compdigitec Labs

Archive for February, 2016

LaTeX macros ending in numbers

Saturday, February 13th, 2016

Only letters are directly permitted in macro names, but by using csname to create definitions along with a variable command, we can simulate them. First, define the macros with numbers using \csname: Now, create a command which takes in one variable argument, and simply expands it to call the appropriate macro (“xR” + variable) defined […]