Checklists in LaTeX

1 minute read

Did you ever feel the need for a simple checkbox in a letter? So did I. After searching for a while I did not really come up with a simple copy and pasteable solution to this problem. Most solutions seem to prefer the hyperref package which enables you to put interactive, clickable checkboxes inside your PDF document, but what if you actually need to physically send the document?

As it turns out the solution is actually not that hard, a few mboxes and adjustboxes later I had a solution that did the trick for me.

At the very basic of the box is this block which actually creates the box and centers the text behind it in the middle of the box.

``` latex title:”Basic checkbox in LaTeX” linenos:false \mbox{\adjustbox{stack=cc,fbox}{\makebox(6,6){}} Yes I will.}\


The parameters of the `makebox` command define how big the box to
check will actually be.

If you want to add a place where the future checkbox checker can put
his signature to sign that he checked one of the checkboxes, you can
additionally put something like this into your page, which will render
the supplied text and a slightly subscript line.

``` latex title:"Date and signature line" linenos:false
\mbox{\begin{minipage}[t]{18ex}
        Date and signature
      \end{minipage}
      \hspace{1ex}\rule[-3ex]{12cm}{.5pt}}

Where the value 18ex of the minipage environment controls the width of the box before the line. The parameters of the rule command are the position of the line (-3ex) (which makes it subscript, if you want that superscript make this value positive), the length of the rule (12cm) and the thickness of it (.5pt)

So if you pimp this a little bit the code for a full letter with checkboxes looks like this.

Updated: