-
Notifications
You must be signed in to change notification settings - Fork 200
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
Make \require{bussproofs} work properly. #408
Conversation
…ce they will need to run before the math is processed). This allows \require{bussproofs} to be in the same expression as the bussproof itself. Also, remove dupolication of pre- and post-processors from the register() function.
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.
That doesn't work for me. I have not investigated in detail, why; but without these changes your example with require
works fine.
Upon further investigation: It does work but only after an explicit typeset in the lab. I.e., not on reload. |
This program:
when run in the MathJax-src root directory (making sure to build the |
[Looks like our messages crossed.]
It works for me with reload of the lab, with typeset, and with "keep". What message are you getting in the console? |
Without this PR, I get:
With the PR, everything works as expected for me. |
Oh, I forgot that I had adding some error trapping in my copy of the lab. I added
to the MathJax configuration in order to get better error message reports. |
I've tested it in a standalone file now. And I can confirm that it works with the PR (not without). |
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.
Works fine now.
Which branch (of the |
Are you still using the one in the |
OOPS, I see you have it working now. |
Yes and no. I have a private copy in the |
Do a restart if a package loaded with
\require
has preprocessors (since they will need to run before the math is processed). This allows\require{bussproofs}
to be in the same expression as the proof itself. (The Bussproofs package is the only one that uses preprocessors at the moment.)Also, remove dupolication of pre- and post-processors from the
register()
function, since these are already added during theconfig.config()
call just before that.Without this patch,
would produce an error if the
bussproofs
extension was not loaded and included in the package list initially.