-
-
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
\newcommand in latexrelease.sty #295
Comments
Looks to me more like a bug in the logic: if we have the following sequence of
And we are asking for reverting to 2020-02-02 and the current format is 2020-10-01 then it contains the 2019/10/01 patch already and so we should not "reapply" it (but we do). In contrast if we ask for 2018-01-01 we skip the 2019/10/01 code but execute the 0000/00/00 code. In other words, if we move backwards I need to skip the first patch (because that is only there for forward patching).
|
Oh... I guess so too. I wasn't aware of that, thanks |
well, both really. @davidcarlisle correctly pointed out to me that we need to take care of the newcommands nevertheless because if something is changed twice and both use newcommand it still breaks even if we skip over the last patch which is equal to what is in the format. So I will go and fix that first. The logic part is not so important, eg reapplying definitions is then not a problem and burning a few registers is not a problem either given that we have enough these days. |
…ce will probably stay; fixed ltexpl3 because that also loaded expl3 during rollback and that dies ...(may need refinement)
Added the necessary |
About |
@PhelypeOleinik I'm not sure it is necessary as it should never get loaded other than in the format or in a rollback situation (or should it?), but please feel free to check in an improved version into that branch. It would certainly be safer. |
@FrankMittelbach Yes, that file should only be loaded by the format and |
@FrankMittelbach looks Ok to me and worked with works with some additional simple tests, merge back to develop? |
@PhelypeOleinik wanted to make it reload safe. Not sure it is really needed but it doesn't hurt either. So I guess we'll wait until he is done with that. No urgency . |
@FrankMittelbach That I do at the |
the false branch has \@gobbletwo to remove this, so it's Ok I think
…On Mon, 2 Mar 2020 at 20:47, Phelype Oleinik ***@***.***> wrote:
Just a small thing: shoudn't this line:
https://github.com/latex3/latex2e/blob/743b9a75a3a92b7d8e931a77277372636ba52504/base/ltexpl.dtx#L97
be in the true branch of \IfFileExists? Or is the error intentional, in
case
expl3.ltx does not exist?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#295?email_source=notifications&email_token=AAJVYAXH7WELVDOF4P7EHW3RFQLORA5CNFSM4K5VZXA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENQ5GEI#issuecomment-593613585>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVYASXLB6HPM2OTD7L5KTRFQLORANCNFSM4K5VZXAQ>
.
|
@davidcarlisle Yeah, I noticed this right after commenting :-) |
Brief outline of the bug
I guess
\newcommand
should not be used inside latexrelease.sty. With 'develop' branch, I get the following error when processing the MWE:Currently there are four:
Minimal example showing the bug
Log file (required) and possibly PDF file
The text was updated successfully, but these errors were encountered: