LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Sun, 7 Sep 2008 21:32:02 +0100
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Subject: Re: Spaces
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=ISO-8859-1
From: Joseph Wright <[log in to unmask]>
Parts/Attachments: text/plain (34 lines)
Frank Mittelbach wrote:
> Will Robertson writes:
>  > This is weird:
>  > 
>  >    \err_warn:nn{\temp~stuff~stuff}{}
>  > 
>  > Only the second tilde causes a space.
> 
> why would that be weird?
> 
> in plain TeX
> 
>   \errwarn{\temp stuff stuff} 
> 
> and only
> 
>   \errwarn{\temp\space stuff stuff}
> 
> in expl3 ~ is a space token and not an active char expanding to \space.

It took me a little while to realise this, but of course you are right.
 So that was not what confused me.

> It is a bitof a pity that space tokens are so deep down within the TeX engine
> behavior and that sometimes they get gobbled if explicit.
> 
> Interesting question if it would be possible to do ~ -> \space instead but my
> guess is that this would break a lot of the current code

I was rather expecting \c_space_token to save the day, but it didn't.
Hence my confusion: \space isn't a LaTeX3 name.
-- 
Joseph Wright

ATOM RSS1 RSS2