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

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

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

    Choose your favorite one. They all work:
    ##[i]
    [i]
    [^{}i]##
     
  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

    DrGreg

    User Avatar
    Science Advisor
    Gold Member

    Also \left[ i \right].

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

    mfb

    User Avatar
    2016 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 ]##
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook