[texhax] Defining a command which runs differently based ion input argument

Philipp Stephani st_philipp at yahoo.de
Tue Dec 28 17:08:27 CET 2010

Am 28.12.2010 um 13:07 schrieb Uwe Lueck:

> "Philipp Stephani" <st_philipp at yahoo.de>, 28.12.2010 12:19:02:
>> Am 28.12.2010 um 12:00 schrieb Uwe Lueck:
>>> That is much worse with LaTeX's square brackets for optional arguments, as some scholars use square brackets for ellipsis or redactional insertions (I experienced this several times):
>>>   Title-like\\ % imitating the manuscript's line break and spacing
>>>   [unreadable] ipsum dolor sit amet
>> That would be fixed if \@ifnextchar didn't swallow space tokens. [...]
>    Lorem\\% NOTE: exactly as the manuscript! 
>    [unreadable] dolor sit amet


Lorem\newline % with extra space
[unreadable] ipsum

I know there are many issues with the TeX lexical analyzer and parser, and the extremely complex rules about spaces is one of them, but not ignoring space token would at least fix a small number space-related problems.

More information about the texhax mailing list