Preventing Square Brackets from Italicizing in Mathematical Expressions

  • Thread starter Thread starter Stephen Tashi
  • Start date Start date
Stephen Tashi
Science Advisor
Homework Helper
Education Advisor
Messages
7,864
Reaction score
1,605
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<i>[j] = \beta </i>[/itex] 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].

[tex]\left[ i \right].[/tex]
 
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   Reactions: DrGreg

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K