PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
254 stars 203 forks source link

WeBWorK: when a static tabular cell contains only a fillin, cut the f… #1882

Open Alex-Jordan opened 1 year ago

Alex-Jordan commented 1 year ago

…illin

In the context of a WW exercise, there may be a tabular with some cells that only have answer blanks. As with p that only contain a fillin, it is better in the static version if these fillin were just gone.

Alex-Jordan commented 1 year ago

Do you have thoughts on this one?

Here is a place where it would have an effect (if Oscar rebuilds): Exercise 2 https://runestone.academy/ns/books/published/MATH228-Spring23/sec_propositional.html#exercise-62

The little underlines would go away from the static preview. (Also if Oscar rebuilds, the table will have all its vertical and horizontal lines that separate grid cells, now that the tables overhaul is merged.)

rbeezer commented 1 year ago
Alex-Jordan commented 1 year ago

Hmm, we do have an example here:

https://pretextbook.org/examples/webwork/sample-chapter/html/section-8.html

But when I build it on this branch, with the fillin removed, those cells are so tiny. Without the width from the fillin, they look like this:

Screen Shot 2023-04-02 at 9 01 13 PM

It's not good that the cell no longer displays with the author's intended width.

What if, upon the match from this PR, the fillin gets some sort of pi attribute and that leads to an "empty" fillin (in both HTML and LaTeX)? No underline, no shade, no box. Just the author's horizontal space.

Alex-Jordan commented 1 year ago

Just so I don't lose progress, rebased off master, combined the predicates, and force pushed.

rbeezer commented 1 year ago

some sort of pi attribute

Sure, I think that could work cleanly.