Re: Problem with a \newdimen inside a \def
"Philip Taylor \(RHBNC\) via texhax" <[email protected]> Tue, 3 Feb 2026 20:10:32 +0000
| Newsgroups | gmane.comp.tex.texhax |
|---|---|
| Message-ID | <[email protected]> |
--------------lJtsdz3sqHPgBu6HIOmba0KN Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable On 03/02/2026 18:57, Rodolfo Medina wrote: Please help with the following simple example to be processed by simply `te= x test': you can see the phrase `good day' at the end of the document behavin= g differently in two positions supposed to have to behave the same way: (a) You don't have a a \newdimen inside a \def =E2=80=94 rather, you are pa= ssing a <dimen> variable as parameter rather than a <dimen> literal. (b) you failed to escape the end-of-line after \kern#1 Cure : add a "%" after \kern#1. -- Philip Taylor This email, its contents and any attachments are intended solely for the ad= dressee and may contain confidential information. In certain circumstances,= it may also be subject to legal privilege. Any unauthorised use, disclosur= e, or copying is not permitted. If you have received this email in error, p= lease notify us and immediately and permanently delete it. Any views or opi= nions expressed in personal emails are solely those of the author and do no= t necessarily represent those of Royal Holloway, University of London. It i= s your responsibility to ensure that this email and any attachments are vir= us free. --------------lJtsdz3sqHPgBu6HIOmba0KN Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8"> </head> <body> <p><br> </p> <div class=3D"moz-cite-prefix">On 03/02/2026 18:57, Rodolfo Medina wrote:<b= r> </div> <blockquote type=3D"cite" cite=3D"mid:87o6m5wt7f.fsf@lenovo"> <pre class=3D"moz-quote-pre" wrap=3D"">Please help with the following simpl= e example to be processed by simply `tex test': you can see the phrase `good day' at the end of the document behavin= g differently in two positions supposed to have to behave the same way: </pre> </blockquote> <p>(a) You don't have a a \newdimen inside a \def =E2=80=94 rather, you are= passing a <dimen> variable as parameter rather than a <dimen> = literal.</p> <p>(b) you failed to escape the end-of-line after \kern#1</p> <p>Cure : add a "%" after \kern#1.</p> -- <br> <i>Philip Taylor</i><br> <p>This email, its contents and any attachments are intended solely for the= addressee and may contain confidential information. In certain circumstanc= es, it may also be subject to legal privilege. Any unauthorised use, disclo= sure, or copying is not permitted. If you have received this email in error, please notify us and immediately= and permanently delete it. Any views or opinions expressed in personal ema= ils are solely those of the author and do not necessarily represent those o= f Royal Holloway, University of London. It is your responsibility to ensure that this email and any attach= ments are virus free.</p> <p></p> </body> </html> --------------lJtsdz3sqHPgBu6HIOmba0KN--