pgeezer wrote:Ok thanks. I think I understand what a minimal example is now and will work on making one. I'm on the right track, but will make an isolated file to see better.
You're close, but you do need to include at least the \documentclass line so that the sample code can be compiled as is.
Am I limited to nine "\newcommand" s in a row? Here's the list with only the variables and definitions changed:
I don't think there's any limit like that. (Well, there is some upward limit based on brute memory limitations, but it far exceeds nine.)
The only problem I see with your example is that command names must consist of letters only, with no digits, so you cannot use "\COdeg1" "\COdeg2university", etc., since these have digits in them.
Oh, and you missed a closing brace at the end of "University of Central Joeland".
Code: Select all
\documentclass{article}
\newcommand{\CO}{Joe Schmo}
\newcommand{\COposition}{Senior Joe}
\newcommand{\COcompany}{Joe Widgets}
\newcommand{\COaddress}{Jones Street, Joeburg}
\newcommand{\COphone}{1-555-555-5555}
\newcommand{\COemail}{joe.schmo@joe.com}
\newcommand{\COdegone}{Master of Lumber in Termitology}
\newcommand{\COdegoneuniversity}{the University of Central Joeland}
\newcommand{\COdegoneyear}{2003}
\newcommand{\COdegtwo}{Bachelor of Wood with Specialization in Termitology}
\newcommand{\COdegtwouniversity}{the University of East Joeland}
\newcommand{\COdegtwoyear}{1997}
\begin{document}
This is a bunch of text by \CO, \COposition\ of \COcompany, with a \COdegone\ from \COdegoneyear. You can reach him by phone at \COphone, \ldots
\end{document}
This should work. Notice a couple things. First, I moved these definitions up into the preamble. This isn't strictly necessary, but it's a good practice to avoid the linebreaks at the end of the lines from altering your document.
Also, I put an extra slash
after "\COposition\ "; as I mentioned above, the space after a command name is gobbled, and without this you would lose that space "\ " (that is, backslash followed by a space) manually inserts a space back where you need it. (You could get around this with the
xspace package, but let's not try to do too much at once.)