Take the 2-minute tour ×
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.

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
add comment

2 Answers

up vote 12 down vote accepted

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

\item\relax[Initialization]

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

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.