Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Prevent [i] from italicizing?

  1. Feb 14, 2015 #1

    Stephen Tashi

    User Avatar
    Science Advisor

    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 [itex] A[\ i][j] = \beta [/itex] displays properly.

    and [itex] A[j] = \beta [/itex] doesn't.
  2. jcsd
  3. Feb 14, 2015 #2


    User Avatar
    2017 Award

    Staff: Mentor


    Choose your favorite one. They all work:
  4. Feb 14, 2015 #3
    The is an unfortunate problem with MathJax and XF BBcode not communicating with each other.
  5. Feb 14, 2015 #4


    User Avatar
    Science Advisor
    Gold Member

    Also \left[ i \right].

    [tex] \left[ i \right]. [/tex]
  6. Feb 14, 2015 #5


    User Avatar
    2017 Award

    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 ]##
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook