[texhax] unexplained space

Adam ENDRODI borso at vekoll.saturnus.vein.hu
Thu May 17 10:59:03 CEST 2007

On Tuesday 08 May 2007 2:23 pm, Toby Cubitt wrote:
> Philip G. Ratcliffe wrote:
> > So, just add end-of-line comments until you're happy.
> Out of curiosity, I've always wondered whether there are any
> circumstances where this would hurt (beyond the obvious one when a
> newline is breaking two separate words)?

Yesterday I was hit by the following (then my head hit the desk, hard):


\somemacro being:


i.e. \somemacro gobbled {blahblah} as it should, and by intention let the
processing of {http://somewhere} to the url package.  Poor \Url did his
usual tricks with catcodes and looked for a delimiter---and found what?
A percent character.  Satisfied, it searched for the next percent, screwing
the layout in interesting ways.

It may be worth noting that plain \url in place of \begingroup\Url would
not find the url, even when I removed the percent characters; it is only
\Url which skipped the following whitespace.


More information about the texhax mailing list