I'm using hyperref \CheckBox command to add checkboxes to a document for use on screen and in print.

I'm specifying the size of the \CheckBox (as part of command definition):


However, when the document is compiled with pdflatex the exact height specified is not used (the width does take effect). So, some of the checkboxes are square and some are not, which looks ugly.

I've tried changing the order of parameters, using absolute dimensions (e.g. 3mm) and relative (0.5\baselineskip) without success.

  • 5
    please give a complete example to see what exactly you did.
    – user2478
    Jan 20, 2011 at 19:21

2 Answers 2


Just enclose the CheckBox in an mbox.


That will prevent the height from being set by other things in the same vbox as the CheckBox.

If you want to get into the hairy details of how these heights are set, you might consider reading Knuth's TeX book.

  • +1 Nice. I didn't think of that, and apparently neither did anyone else until you came along. :)
    – Alan Munn
    Dec 24, 2012 at 21:47

If you have another field (not necessarily another checkbox) in the same paragraph as your checkbox with a different height, all the fields will be the height of the largest one.


% These checkboxes will all have different heights.




%These checkboxes will all have the same (1in) height.




You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .