Preventing Square Brackets from Italicizing in Mathematical Expressions

  • Thread starter Thread starter Stephen Tashi
  • Start date Start date
AI Thread Summary
To prevent the forum editor from italicizing array indices within square brackets in mathematical expressions, users can add a space before the index, such as in A[\ i][j] = \beta. This workaround, while effective, is seen as slightly inconvenient. Alternative solutions include using variations like [i], [^{}i], or [FONT=Courier New]\left[ i \right]. The issue arises from a lack of compatibility between MathJax and XF BBcode. Overall, users have identified multiple methods to achieve the desired formatting without italics.
Stephen Tashi
Science Advisor
Homework Helper
Education Advisor
Messages
7,864
Reaction score
1,602
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<i>[j] = \beta </i> doesn't.
 
Physics news on Phys.org
[plain][i][/plain]
[i[b][/b]]
[^{}i]

Choose your favorite one. They all work:
##[i]
[i]
[^{}i]##
 
The is an unfortunate problem with MathJax and XF BBcode not communicating with each other.
 
mfb said:
[plain][i][/plain]
[i[b][/b]]
[^{}i]

Choose your favorite one. They all work.

Also \left[ i \right].

\left[ i \right].
 
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 ]##
 
  • Like
Likes DrGreg
Back
Top