Conversation
|
As discussed, loading |
|
So this is just starting to feel out where we want to go with this. This is the most basic approach that resists going further with loading But yes, if this is where we stop, then all of the sample problems should be updated accordingly. |
|
I went ahead and removed |
|
Seems there could be more work done to remove use of PGstandard.pl if this is the route we are going (which I think is good).
|
|
Also left out, many tests load PGstandard, maybe update those tests too, for which it is appropriate. |
|
Yes, there will be more work needed. One of the reasons I proceeded with removing it in the sample problems was to see that it works well with those. The result is that it does for all but those two problems, and it reveals the issues there. One is a macro that is yet needed (a math object match list macro), and one is a current macro with a bad dependency. If we decide that this is the way to go, and that it goes far enough (i.e., that, at least for now, we don't want to go to loading PGML by default, or include the PGcourse.pl loading hack, or go on to removing the need to call |
55747d3 to
5eacb71
Compare
|
I made this a draft for now until we can figure out what we really want to do with this. |
5eacb71 to
b4f6a42
Compare
This is done at the end of the `DOCUMENT` method in `PG.pl`. This means that problems no longer need to load `PGstandard.pl`. The basic functionality that is needed is always there. This does NOT load `PGanswermacros.pl`. That is because that is entirely deprecated functionality. Problems that use it already load what is needed, and must continue to do so. Newly written problems should not use it. This could also load `customizeLaTeX.pl`, but I held off on that. That is an antiquated approach to customization of notation that the rest of PG never followed up on.
…blems. There is one problem in which `PGstandard.pl` was replaced with `PGanswermacros.pl` for now. That is the problem `Misc/Matching.pg`. The problem was using `unionTables.pl` to layout the multiple choice questions and answers. That was replaced with a `niceTables.pl` layout table via its PGML syntax. However, it uses the `PGchoicemacros.pl` match list which is the one case that we still have not created a modern equivalent of. That needs the `str_cmp` method.
b4f6a42 to
d0a8c60
Compare
This is done at the end of the
DOCUMENTmethod inPG.pl. This means that problems no longer need to loadPGstandard.pl. The basic functionality that is needed is always there.This does NOT load
PGanswermacros.pl. That is because that is entirely deprecated functionality. Problems that use it already load what is needed, and must continue to do so. Newly written problems should not use it.This could also load
customizeLaTeX.pl, but I held off on that. That is an antiquated approach to customization of notation that the rest of PG never followed up on.Edit: Also remove
PGstandard.plfrom theloadMacroscalls in most sample problems.There is one problem in which
PGstandard.plwas replaced withPGanswermacros.plfor now. That is the problemMisc/Matching.pg. The problem was usingunionTables.plto layout the multiple choice questions and answers. That was replaced with aniceTables.pllayout table via its PGML syntax. However, it uses thePGchoicemacros.plmatch list which is the one case that we still have not created a modern equivalent of. That needs thestr_cmpmethod. Note that this problem is replaced in #1541.