Skip to content

Strauman/exercisebank

Repository files navigation

Develop build status: Build Status

Check out the bleeding edge version in the releases section. Any testing help is appreciated!

Updated documentation

The latest release is stored in this zip: exercisebank.zip You can download the latest documentation here: release/exercisebank.pdf. This is the documentation for version v0.2.1-prerelease, and might not be the same as for the one on CTAN. If you're using the CTAN version (if you didn't get the package from this repo) then use the CTAN documentation

Versions

Download latest(/github)-version here: exercisebank.zip GitHub at version: v0.2.1-prerelease (2018/09/12) build 94

CTAN at version: v0.2.0 (2018/07/21) build 75

It might take up to 24 hours from CTAN version is uploaded until you can download it, and then even a few more days until it is updated at TeXLive and MiKTeX

A build has no major changes in the core code (could be changes in documentation, or cosmetic changes in the code). Every time a minor version (that is the middle version number) changes, an upload is made to CTAN. If the patch version change (the last version number) is significant, it will also be uploaded to CTAN. The build number (ideally) never resets.

Contributing

TODO list

  • Prefix internal macros with exbank@. E.g. switch all instances of \isTrue with \exbank@isTrue.
  • Add an actual translation module, e.g. the translations pakcage that translates automatically instead of forcing the user to use \translateExBank

Files

Check out documentation-doc.tex for instructions on how to document the code. All the documentation is automatically generated from the comments in the code using a custom perl-script. This file shows examples on how to document the code so that it shows up in the documentation properly. All of the code are distributed within the src-folder. Here is an overview. The src/packaging/ directory only contains info for building the package, but used for "compiling" it down to exercisebank.sty and documenting.

src/:

  • at.tex contains definitions of the \At and \Trigger command
  • envcontrol.tex contains everything to do with controlling environments except from "outsourcing" stuff with \At and \Trigger: Namely deciding whether or not a problem, intro and/or solution should displayed (which is done in setbuilder.tex)
  • helpers.tex contains the definition of the \strif and \isin macro
  • i18n.tex contains everything to do with translation logic.
  • main.tex is the main file for building during development
  • packageoptions.tex contains all the macros that are intended for user configuration
  • packages.tex contains all the external packages used.
  • pathcontrol.tex contains the logic that makes figures available within scope of exercise folder.
  • pointsystem.tex contains the logic and definition of the point system.
  • pplabel.tex contains definition of custom labeling and referring of problems.
  • preamble.tex contains the preamble logic. Mostly including other files.
  • problemoptions.tex contains definition of the \nextproblem-command and it's options.
  • problemstyle.tex contains \At-commands that are responsible for formatting exercise headers and exercise-related styles.
  • setbuilder.tex contains the logic of the set making and set building. It also decides whether or not a problem,intro and/or solution should be built
  • squeeze.tex contains the style for which \sprite applies with \squeeze. It "squeezes" everything so that more stuff fits on the pages
  • (exbankpack.tex) is the file that is built when making all these files into packaging

src/packaging

  • aftercompile.sh is just instructions to perform after the .sty and the documentation is created.
  • packagehead.tex: All the files are compiled into one .sty-file before sent to CTAN. This file contains the top of that .sty-file.
  • README.txt README file for CTAN.
  • texpackvars.ini contains information that is used when "compiling" the package.

docs/

Docs are generated automatically. See documentation-doc.tex for info on how to do documentation.

tests/

Writing tests is also very highly appreciated: The tests/ directory contains multiple things.

See how the tests/sanitycheck/main.tex is made, and you can make similar structures. Exercises are located in tests/exercises. You can read more on how the tests would work here. The best would be if you could clone this git, change stuff and make pull requests to this github with your tests. (Then the tests would actually be run!).

Also: If you have docker installed and are on OS X or Linux, you can use ./runtests.sh to run the tests locally on your computer.