7

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?

11

\relax FTW:

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

This also works:

\documentclass{article}

\begin{document}

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


\end{document}

Enumeration

| improve this answer | |
  • @tohecz You're right - it's gone... Thanks! – cfr Apr 21 '14 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 '14 at 22:30
  • And I would use \myhellomacro\ bird or \myhellomacro\@ bird ;) – yo' Apr 22 '14 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 '14 at 15:29
  • See tex.stackexchange.com/a/22564/11002 – yo' Apr 22 '14 at 15:45
4

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}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.