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
I want to thank those members who interacted with me a couple of years ago in two Optics Forum threads. They were @Drakkith, @hutchphd, @Gleb1964, and @KAHR-Alpha. I had something I wanted the scientific community to know and slipped a new idea in against the rules. Thank you also to @berkeman for suggesting paths to meet with academia. Anyway, I finally got a paper on the same matter as discussed in those forum threads, the fat lens model, got it peer-reviewed, and IJRAP...
About 20 years ago, in my mid-30s (and with a BA in economics and a master's in business), I started taking night classes in physics hoping to eventually earn the science degree I'd always wanted but never pursued. I found physics forums and used it to ask questions I was unable to get answered from my textbooks or class lectures. Unfortunately, work and life got in the way and I never got further the freshman courses. Well, here it is 20 years later. I'm in my mid-50s now, and in a...
Back
Top