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

Use rerunfilecheck to ensure that exercise information is up to date #88

Closed
N-Coder opened this issue Jun 19, 2021 · 2 comments
Closed

Comments

@N-Coder
Copy link
Contributor

N-Coder commented Jun 19, 2021

When making structural changes to the exercise of a document (e.g. adding and removing or reordering), xsim sometimes doesn't pick up all the changes and keeps outdated information, leading to wrong information in the output file - even when using clear-aux (which according to docs only checks the number of exercises).
My recommendation would be to use the rerunfilecheck package to see if the MD5 hash of the document.xsim cache changed and only clear and rerun depending on this information.
The package only works with pdf- and luatex, but that should cover most of the uses.

@muzimuzhi
Copy link

XeTeX has added primitive \mdfivesum in 2016, and latex3 has provided engine-independent functions \file_mdfive_hash:n and \file_get_mdfive_hash:nNTF. So it's possible for xsim to do the MD5 check that works on all the common engines, by itself.

cgnieder added a commit that referenced this issue Jan 5, 2022
@cgnieder
Copy link
Owner

cgnieder commented Jan 5, 2022

I implemented the md5 check for the next version.

@cgnieder cgnieder closed this as completed Jan 5, 2022
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

3 participants