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

Adjustments to PGbasicmacros.pl for compatibility with MathBook XML #288

Merged
merged 1 commit into from
Dec 11, 2016

Conversation

Alex-Jordan
Copy link
Contributor

Two things are done here.

One puts harmless LaTeX comments into hardcopy output for a problem that designate the beginning and ending of any solution, any hint, and the problem preamble that the beginproblem macro creates. These comments are going to be used by MathBook XML to parse a problem into chunks: preamble, statement(s), hint(s), solution(s).

The preamble is largely ignored, although PGML preamble content is put into the document preamble of MBX latex output.

Statement(s), hint(s), solution(s) are each handled separately by MBX in different ways depending on processing flags.

The other thing that is done here is that $envir->{setNumber}) ne 'not defined' is added to the conditions for the beginproblem macro to refrain from printing a header. This is the condition in play when a problem is accessed as outlined at http://michaelgage.blogspot.com/2015/06/whether-writing-full-text-book-or-just.html.

@mgage
Copy link
Member

mgage commented Dec 11, 2016

These work fine. Adding the comments can only make the TeX output clearer.

@mgage mgage merged commit 47583ef into openwebwork:master Dec 11, 2016
@Alex-Jordan Alex-Jordan deleted the MBX-mods-to-PGbasicmacros branch January 4, 2023 17:33
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

Successfully merging this pull request may close these issues.

2 participants