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.

In the enumerate environment, an item begins with "[Co]image is..." LaTex interprets the square bracket as a customized bullet symbol. How can I write [ without this glitch?

share|improve this question

3 Answers 3

up vote 8 down vote accepted

\relax FTW:

\item\relax[Co]image
share|improve this answer

This also works:

\documentclass{article}

\begin{document}

\begin{enumerate}
    \item{}[Co]image
\end{enumerate}


\end{document}

Enumeration

share|improve this answer
    
@tohecz You're right - it's gone... Thanks! –  cfr Apr 21 at 22:03
    
@tohecz FWIW, I'd already voted for your solution. However, I bet I would still use {} here because I'd never think to use \relax in a document - only in code. (Mostly, I want something done but nothing typeset as opposed to nothing done at all and \myhellomacro{} bird! \myhellomacro\relax plane! does right by bird but not by plane.) –  cfr Apr 21 at 22:30
    
And I would use \myhellomacro\ bird or \myhellomacro\@ bird ;) –  tohecz Apr 22 at 15:20
    
@tohecz I used to use \myhellomacro\ bird and then I read about some reason \myhellomacro{} bird is preferable. Although I cannot remember what the reason was. I've never come across \@ - what does that do? –  cfr Apr 22 at 15:29
    
See tex.stackexchange.com/a/22564/11002 –  tohecz Apr 22 at 15:45

You could also simply put a {} around the text. .

enter image description here

Notes:

  • Adding an additional brace group is also a handy technique and useful for cases where you need to pass a parameter containing a [].

Code:

\documentclass{article}

\begin{document}

\begin{enumerate}
    \item {[Co]image}
\end{enumerate}
share|improve this answer

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.