I have the following code which I put inside the preamble of my LaTeX documents:
In this case, that means that when I'm writing my lecture notes I can just use
\modulecode to refer to the module code. I'm trying to create a style file to use for my lecture notes, and want to have some way that I can define what the module code is (that is, some way of setting the variable) in each document, so that I can then refer to it as above using
I can't seem to find how to do this through Google, but I'm sure it must be a fairly simple request. Any ideas?