LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Will Robertson <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Fri, 24 Apr 2009 19:17:58 +0930
Content-Type:
multipart/signed
Parts/Attachments:
text/plain (777 bytes) , smime.p7s (2446 bytes)
Thanks Heiko!

On 24/04/2009, at 6:51 PM, Heiko Oberdiek wrote:

> %%% begin of fixed definition %%%
> \def\in@#1#2{%
>  \def\in@@##1#1##2\in@@{%
>    \def\in@@{##2}%
>    \ifx\in@@\@empty
>      \in@false
>    \else
>      \in@true
>    \fi
>  }%
>  \in@@#2\@nil#1\in@@
> }
> %%% end of fixed definition %%%

This looks good to me. It seems that the old documentation for the  
command was also written incorrectly:

%    |\@in| is a utility macro with two arguments.  It determines
%    whether its first argument occurs in its second (after expanding
%    it) and sets the switch |\if@in| accordingly.

Unless I'm mistaken, there was no expanding going on in the old  
version; I'm going to change this accordingly.

Any objections to changing the definition to that proposed by Heiko  
above?

Cheers,
Will

ATOM RSS1 RSS2