LaTeX style for IB questions

The International Baccalaureate formats the space for candidate responses with “dotted lines in box”.  I was mildly peeved since the change that I couldn’t typeset questions with the exact same format.  Here is a style file for use with the exam class that sets “IB formatted” questions.  This style file sits in the same directory as your .tex and requires the tcolorbox package.  Your preamble would look something like:

\documentclass[a4paper, addpoints]{exam}

The solutions are to be wrapped in a solutionorIB environment:

  % solution goes here

The output:

solutionorIB environment for the exam class
solutionorIB environment for the exam class

I am not yet familiar enough with the tcolorbox package to drop the top down so it can be fully symmetric.

Categories IB, LaTeX

2 thoughts on “LaTeX style for IB questions

    • With pleasure. This is very much a hack though (TeX is not my forte), and the perfectionist in me is not very happy about the fractionally taller first line. If you wish to build on top of this you’re more than welcome.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

zh_HKChinese en_USEnglish