LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Message-ID:
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
Subject:
From:
Arno Trautmann <[log in to unmask]>
Date:
Sun, 19 Sep 2010 23:11:55 +0200
Content-Type:
multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig740B70EF00B4971D26C99678"
MIME-Version:
1.0
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments:
text/plain (1151 bytes) , signature.asc (261 bytes)
Hi all,

I want to ask whether the following behaviour is intended where
ExplSyntax and ExplSyntaxNames differ:

\documentclass{minimal}
\usepackage{expl3}

\begin{document}
\ExplSyntaxOn
\bool_if_p:n{
\intexpr_compare_p:n {2=3} ||
\intexpr_compare_p:n {4=4}
}
\ExplSyntaxOff

%% works fine up to here

\ExplSyntaxNamesOn
\bool_if_p:n{
\intexpr_compare_p:n {2=3} ||
\intexpr_compare_p:n {4=4}
}
\ExplSyntaxNamesOff

\end{document}

In SyntaxNames, I get the error

! Use of \bool_|_0:w doesn't match its definition.
<argument>  \intexpr_compare_p:n {2=3} ||
                                          \intexpr_compare_p:n {4=4}
l.16 }

The use of && is successfull in both cases, though. I guess this is
because the line in ExplSyntax:

\tex_catcode:D 124=11 \tex_relax:D % vertical bar, other

is missing in SyntaxNames.
So is it intended that boolean expressions cannot be fully evaluated in
SyntaxNames? Or didn’t anybody have requested this yet?
I need it because of some TikZ code I’m using at that place. I could
make the boolean test at another place and then use a boolean variable
at the TikZ code, but that wouldn’t be very nice …

Cheers
Arno



ATOM RSS1 RSS2