Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

behaviour of functions like \str_if_eq:nnTF if interrupted by \endinput #813

Closed
u-fischer opened this issue Oct 4, 2020 · 4 comments
Closed
Assignees

Comments

@u-fischer
Copy link
Member

The following document

\documentclass{article}
\begin{document}
\ExplSyntaxOn
\begingroup
\aftergroup\endinput\endgroup\str_if_eq:nnTF{env}{file}{blub}{blub} \show\x
\ExplSyntaxOff
\end{document}

gives when compiled with pdflatex or xelatex

> \x=undefined.
l.29 ..._if_eq:nnTF{env}{file}{blub}{blub} \show\x

but with lualatex and the new luacall implementation one gets a missing number error:

! Missing number, treated as zero.
<to be read again> 
=
l.29 ...\endinput\endgroup\str_if_eq:nnTF{env}{file}
                                                  {blub}{blub} \show\x
? x

This is a problem for the standalone package which issues an \aftergroup\endinput, and so now fails with lualatex
https://sourceforge.net/p/standalone/tickets/2/

@josephwright
Copy link
Member

Isn't the issue here that inserting \endinput where anything is on the same line is always an issue?

@u-fischer
Copy link
Member Author

well the issue is imho that normally if you issue \endinput the commands on the same line are still processed (it goes to the \show\x for pdflatex) but in luatex it ends somewhere in the middle of a command. That is rather unpredicatable behaviour isn't it?

(I don't think that exactly this is happening in standalone, only that the error is due to a similar problem with \endinput/code order).

@FrankMittelbach
Copy link
Member

FrankMittelbach commented Oct 4, 2020 via email

@josephwright
Copy link
Member

One for @zauguin I guess

@zauguin zauguin self-assigned this Oct 4, 2020
@zauguin zauguin closed this as completed in 0142720 Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants