Sign up ×
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.

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

1 Answer 1

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.