Skip to content

Select random, shuffled multiple choice questions from latex files, and creates new exams from them.

License

Notifications You must be signed in to change notification settings

oaltun/select_mcq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tex select random MCPs

This code selects random, shuffled questions from tex files that have latex exam package Multiple Choice Questions. Those files should have only Multiple Choice Questions.

This way, you can create your exam db as latex files, then select from them and prepare specific exams.

Requirements

Python and hatch is needed to be installed. Hatch installs the rest of the python packages.

Usage

Download the repo. Run

hatch run yxslx --help

You will see how you can use the program.

Tips

You can edit tex_exam/tpl/main.tex file to your liking. Then re-generate the program.

There is an example file in tex_exam/tpl/db. You can start building your question db from that file.

Caveats and todos

Originally the cli was named yxslx. I will at some point change the cli name.

If your options are complex, it may not work. E.g. if in your options you have multiline content, with tikz graphs, etc. there seems to be a bug that prevents it working. If you can find and solve the bug, you are welcome to submit a PR. The question part can be complex, no problem.

License

MIT License.

Author

Oğuz Altun.

About

Select random, shuffled multiple choice questions from latex files, and creates new exams from them.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published