TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
please give a complete example to see what exactly you did. – Herbert Jan 20 '11 at 19:21

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.



share|improve this answer

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.

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.