WeBWorK: sidebyside - #3053
Conversation
|
Are you bypassing the determination of implied widths when the layout parameters are formed? Shouldn't every such parameter be looked up in For example, line 1598 of will get widths directly from whatever the author writes, instead of whatever comes out of I can imagine a day when a common width for all the panels gets converted into a long list of identical values in |
|
I'm not sure I understood all that is possible with a I changed it to loop through the |
|
Thanks, @Alex-Jordan . It'll be great to have Review coming from Claude Code in a minute. My (cursory) visual review last night suggested something was up with Seeds: do we allow authors to set a @seed, so their static versions do not drift, like we are seeing here. I think it would be worthwhile to hard-code a @seed for each existing problem, so we don't get commits like this with spurious changes. It'd be an easy task for Claude, which I could knock off quickly. |
|
Reviewed at Schema still forbids what the XSL now emitsThe deprecation is removed and the templates are in place, but with no Building So the exercise added in the second commit does not validate. An
|
|
Working on |
|
For PG to return valid PTX here, the PG version will need to be 2.21 or higher. What is the right way/place to document or enforce that? Documented only in the guide somewhere? If enforced, what stage of processing? |
|
Trying to support
|
|
I think I should explain more about the fundamental issue here. In PG, there is such a thing now as a layout table. A layout table could have one row or more than one. When it comes to translating PG to PTX, I can convert a layout table to either a When we start with PTX,
For class 1, there's really no counterpart in a PG layout table. So I'm not even trying to preserve those. For class 2, I foresee no issue with preserving those. For class 3, there will be no issue preserving those when translating a I guess I am talking myself into doing that. |
|
OK, this is both ready for review and not yet ready for review.
I'll mark this as draft, since we at least need to wait for PG 2.21. |
I'm not versed in the subtleties, but in most other conversions, a
Which means it is not ready. And I just saw this is now a draft! ;-).
I really do not like the idea that PreTeXt source is valid or depending on which version or which server is in use. So one answer is we do not support this construction until 2.21 is the minimum supported version. The server version is reported in the Python. I guess you can scan each problem with lxml tools for a |
|
Commentary (nothing to act on): If the changes here were in place for PTX, then PTX is indeed producing valid PG for PG 2.19 and later. The problem will be that PG 2.19 and PG 2.20 were broken. They did not have the needed code to produce valid static PTX for a layout table. They produce perfectly good HTML and TeX, and no one noticed the bug because there was no cause in those versions for PG to produce static PTX for a layout table. So it's just a perspective, but PTX would be producing valid PG for all those versions. Some PG versions would have bugs with what they send back. (Bugs that break PTX schema, not that break XML validity.) |
This lets
sidebysidebe used in awebwork.The first commit carries the templates needed to make it happen. As well as removes the deprecation that was in place for a
sidebysidein awebwork.The second commit adds an example to the sample chapter. This has the effect of changing all seeds for representations of subsequent exercises, so a lot of files get trivial changes.