# Prevent [i] from italicizing?

1. Feb 14, 2015

### Stephen Tashi

What's the simplest way to prevent an array index "i" inside square brackets in a mathematical expression from being interpreted as code to italicize text by the forum editor?

My work around is to put a space before the "i" in Latex expressions, but this is slightly inconvenient.

For example $A[\ i][j] = \beta$ displays properly.

and $A[j] = \beta$ doesn't.

2. Feb 14, 2015

### Staff: Mentor

[plain][i][/plain]
[i[b][/b]]
[^{}i]

Choose your favorite one. They all work:
$[i] [i] [^{}i]$

3. Feb 14, 2015

### Greg Bernhardt

The is an unfortunate problem with MathJax and XF BBcode not communicating with each other.

4. Feb 14, 2015

### DrGreg

Also \left[ i \right].

$$\left[ i \right].$$

5. Feb 14, 2015

### Staff: Mentor

Everything that breaks the string [i] in the source code.
I just noted it is as easy as adding spaces (not LaTeX spaces): [ i ] becomes $[ i ]$