Thank you Manfred and Werner. Now I must admit that I am a bit ashamed. I should have noticed my errors in the brackets. I have been relearning LaTeX since 2006 when I started writing my lessons and a physics text book in LaTeX + PStricks. I have enjoyed the process tremendously, but my main focus has been on creating content. As a result, I have been a bit of a slow learner in visualising and learning the code.   <div>
<br></div><div>I really did learn a lot from your kind advice. I tried so solve the problem several hours by myself, and had started feeling very frustrated.</div><div>It was especially helpful to learn about the differences between \def and \newcommand commands, and how to use them properly. </div>
<div><br></div><div>Best regards,</div><div>  Kari<br>-- <br>**************************************************************<br>Kari Eloranta<br>Ketunpolku 1<br>40400 JYVÄSKYLÄ FINLAND<br>Tel: +358 40 586 7654<br>
</div>