-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Fix for gh1336 #1338
Fix for gh1336 #1338
Conversation
I don't think so I think it's just a limitation of rollback that the rolled back files can't always work in the context of a current installation. graphics-cfg/graphics.cfg has
so if the engine is older than luatex 0.85 the engine has pdftex primitive names and pdftex.def s used by default. It would be possible to try to "roll back" the engine changes and re-enable the pdftex names cf the luatex85 package, but this seems more than expected for a package rollback. |
Not quite getting that. We run in an engine that is current even if we roll back and with one for which the .cfg does work without rollback. So what does rollback do that makes \outputmode undefined? Assuming rollback stops working at date XXX for graphics then perhaps we should not put in 1994-06-01 but XXX+1 with graphics, no? |
I'll trace exactly where it fails, but in general if you roll back graphics That's why I think I prefer 0000/00/00 date we use elsewhere as a general I started to test this but seems we more generally have an issue
fails in lualatex for that or any earlier date
|
If you roll back earlier than 2015 in luatex you do
or rather it's not that adding the luatex prefixed ones makes things fail we go further and do
and undefine all the unprefixed names. which means all the luatex primitives are unavailable without the So either we need to test for that everywhere or (much simpler) just be less agressive with the emulation there and define the prefixed names in addition to the unprefixed ones |
but wouldn't that be resolvable if latexrelease loads simply loads luatex85 if in luatex and a rollback prior to a certain date is requested? |
yes probably, but first we need to fix that you can't roll back before 2015 at all with luatex currently. even luatex85.sty assumes the luatex primitives are available unprefixed |
or we accept that as a cutoffpoint for LuaTeX and put a warning into latexelease that rolling back before 2015 with the luatex engine is not supported (and errors are likely to happen). |
OK to cutoff but shouldn't just make a warning we should make sure that at least it avoids the undefined command error loading latexrelease, but simplest way to do that I think is just remove the lua loop undefining all the primitives. we could undefine them all except \lastcsnamedcs so at least latexrelease.sty gets to the end, but that's starting to be weird. |
Couldn't we just drop the undefining completely? I mean we do that elsewhere too in cases where newer commands are likely to be used in packages that do not roll back. Yes, I know e undefine in case somebody had defined the commands in their code or document, but maybe keeping the primitives here is better overall causing less isses on the whole in the rollback case. |
yes I think removing the entire undefine loop works best (but as I just commented in #1336 it's still not enough to make graphics work in -dev versions) |
I redid tests with a clean build just removing the undefine loop and I think all works as expected, if you roll back far enough you get
but it still works, and that would not be fixable here. @FrankMittelbach I could push that change to this branch? |
Yes please do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some changes already pushed...
# Conflicts: # base/changes.txt # required/amsmath/amsmath.dtx # required/tools/changes.txt
Internal housekeeping
Status of pull request
Checklist of required changes before merge will be approved
\changes
entries in source includedchanges.txt
updatedltnewsX.tex
(and/orlatexchanges.tex
) updatedThere is an issue with rolling back graphics. It fails in
graphics.cfg
for luatex with\outputmode
being undefined. Is this an issue with the graphics code?A second potential issue are the lines
Are those okay?