Preventing Square Brackets from Italicizing in Mathematical Expressions

  • Thread starter Thread starter Stephen Tashi
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 1K views
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
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