For a course that I sometimes teach, I wrote linear a algebra textbook in PreTeXt, and I also have a collection of homework sets that I've curated over the last few years from the OPL.
I've started adding these problems to the book, but the majority of them are not compatible with PreTeXt as-is.
Most are older problems written in PG, and since the answer is often a vector or a matrix, they used an answer array format that PreTeXt doesn't like. I've re-written the code for these problems to make them PreTeXt-compatible.
This has meant converting the problems from PG to PGML, and changing the way some of the answers are handled. (In most cases I've replaced answer arrays with answer blanks, since my students do some work in Python, and Python matrix syntax is the same as WeBWorK matrix syntax, so I think it's reasonable to expect students to know how to enter a matrix without separate blanks for each entry.)
Now I am trying to decide how to best make the edited problems available, since anyone wanting to compile my book from PreTeXt source won't be able to do so unless they use my WeBWorK server where those problems are locally stored. I want to ensure that I proceed in a way that is respectful to the WeBWorK project and the original problem authors. I have considered:
- Submitting my edits as suggested upgrades to these problems in the OPL. (But since I changed the way answer entry is handled in some cases, this may be an unwelcome change in behaviour.)
- Writing my own problems from scratch in PreTeXt source that are similar. (This would be a lot of extra work.)
- Including a folder with the edited problems in the GitHub repo for my book, and ensuring that my copyright page indicates that most exercises are based on existing problems in the OPL, with individual author attribution in the problem source.
I think the last option is preferable for me, but I'd like to make sure I do attribution correctly. Suggestions are welcome, if anyone has advice. Thanks!