LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show HTML Part by Default
Condense Mail Headers

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

Print Reply
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Mon, 21 Feb 2011 07:07:36 -0500
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Subject:
MIME-Version:
1.0
Message-ID:
In-Reply-To:
Content-Type:
text/plain; charset=ISO-8859-1
From:
Bruno Le Floch <[log in to unmask]>
Parts/Attachments:
text/plain (24 lines)
> I suspect condition (2) is  killer. While assuming "{" is catcode 1 is
> fine for LaTeX-like input, what happens if you're using LaTeX3 with some
> other input syntax (for example XML)?

Ok, the code can be changed so that the condition becomes

(2') There is only one character with catcode 1, and it is known when
the package is loaded.

Would it be enough? It could even be relaxed very slightly. But
something that definitely cannot be coped with entirely robustly is
having two catcode 1 characters at the same time (except if there is
no catcode 2 character ^^): the following unbraces its argument.

\catcode`\(=1\relax
\catcode`\)=2\relax
\def\UntilBrace#1#{\def\a{#1}\show\a}
\UntilBrace((abc)){}
\UntilBrace(abc){}
\UntilBrace abc{}

-- 
Bruno

ATOM RSS1 RSS2