Path: utzoo!attcan!uunet!mcsun!unido!ira.uka.de!ifistg!ifi!geuder From: geuder@informatik.uni-stuttgart.de (Uwe Geuder) Newsgroups: comp.text.tex Subject: Re: Macro argument problem: ^^M^^M != \par Message-ID: Date: 20 Jul 90 06:18:51 GMT References: <1887@murdu.oz> Sender: news@ifistg.uucp Organization: IPVR, Universitaet Stuttgart, Fed. Rep. of Germany Lines: 31 In-reply-to: duty@murdu.ucs.unimelb.edu.au's message of 18 Jul 90 05:57:51 GMT In article <1887@murdu.oz> duty@murdu.ucs.unimelb.edu.au (Duty Programmer) writes: I have a macro for typesetting references, which has two arguments: the volume number and page number. Originally, I had the macro defined as \def\mac #1 #2\par{#1, #2.\par} and used as: \mac 10 102 \mac 30 867 and so on. This was fine, except that the second argument was always followed by a before the trailing period. On reading the TeXbook carefully, I realised that in fact two returns are NOT the same as \par: they are translated to \par by TeX. OK fine, so I get rid of the \par in the definition (making the second parameter undelimited, so that TeX throws away the for me), only now the second argument is set to the first digit of the second number! [ ... ] What about \def\mac #1 #2 \par{#1, #2.\par} ? Or did I get it wrong? -- Uwe Geuder, geuder@informatik.uni-stuttgart.de (SMTP) geuder@ipvr.informatik.uni-stuttgart.dbp.de ("X.400")