XimeraProject / ximeraLatex

Author tools for creating Ximera activities
LaTeX Project Public License v1.3c
40 stars 35 forks source link

Shuffle and filters implemented #61

Closed xronosuf closed 7 years ago

xronosuf commented 7 years ago

Rewrote shuffle to do (almost) everything it was originally intended to do. It will now take an optional argument (default 1 for backward compatibility) and randomly choose (up to) the optional argument number of the question environments within the shuffle environment to list. It then randomizes their orders and prints them out (maintaining numbering). Still remains to add some sort of iterative feature in presentation (The "give me another"). That would have to be done client side however. It would likely not be too difficult to suppress questions from being displayed after a certain question number, then let them click the "give me another" to step that counter and get a new question. This may raise some grading concerns however.

Known issues: Currently shuffle will overwrite the environment types in shuffle (problem, question, exploration, etc) with just "Problem". It will still compile/work fine, but the name of the type will change. This had to be a choice between backward compatibility and preserving the question environment type.

Also removed obsolete files from the UF filter code, and rewrote some of that code to be vastly more efficient using latex 3.

I pulled the most recent OSU code to merge it to ensure a smooth merge as of this pull request.