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 want to have an enumerate item which is surrounded by brackets. Something like this

  1. [Initialization]

but surrounding text with [ and ] makes it center aligned.

share|improve this question
up vote 13 down vote accepted

I don't know why that would center it, but you really should write


in order for LaTeX not to think you have an optional argument for \item.

share|improve this answer

I don't know what you mean by centered, but [..] following an \item is interpreted as optional parameter to the \item.

You could use \item{} [Initialization].

It should not be centered. Unless you put \[ and \] around it, which makes it a math formula and the letters are interpreted as variables and not text.

share|improve this answer

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.