TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

The subfigure caption uses []. Because of that, I am unable to use [] in its caption.

\subfigure[ This [] is important]

How do I use the brackets in the caption of the subfigure?

share|improve this question
The problem is that LaTeX views the closing bracket as the end of the short title (optional argument). As suggested by David Carlisle, you can hide the square bracket in a brace pair: {]} should do the trick. (David put the entire optional argument in braces, but this is not needed.) – Marc van Dongen Sep 14 '12 at 8:53

For (almost) any latex optional argument you can use {} as in

\subfigure[{This [] is important}]

To hide the inner [] from the argument scanning.

share|improve this answer

Your Answer


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