# 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:

The solutions are to be wrapped in a solutionorIB environment:

 123 \begin{solutionorIB}[0.6in]   % solution goes here \end{solutionorIB}

The output:

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

### 2 thoughts on “LaTeX style for IB questions”

1. Thank you Jon! I have been wanting this same IB format box for Latex for some time now.

Rick

• 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.

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