When I try to add subscript(I write O_L and O_R to denote left and right ) in my text all the text after that becomes italicized. Any ideas what might be causing this?
|
What is causing this behavior is the difference between TeX's math mode and text mode. In math mode, each character is a separate entity. Mathematicians, unlike programmmers, don't believe in long expressive names. To a mathematician, a two-character identifier is one character too long. It's not just your subscripted names that are subject to this treatment. Suppose you have some variable named 'foobar' and you want to use this name in some math expression. To you, that 'foobar' is just a multi-character identifier. That is not how TeX views things in math mode. In math mode, TeX views 'foobar' as if it were 'f*o*o*b*a*r', but with implicit rather than explicit multiplication. TeX will insert a small amount of space between each letter to show that each letter is indeed a separate entity and that these entities are connected by implicit multiplication. You need to override this behavior whenever you have a multi-character identifier, a multi-character subscript, a multi-character superscript, or any other multi-character entity and TeX is in math mode. There are lots of ways to accomplish this. All of them temporarily throw TeX back into LR (text) mode. One simple approach is to put the entity in a box. Another, and my personal choice, is to use the |
|||
|
|
|
You can't use the subscripts in text mode but only in math mode, so you have two options: the one suggested by xport or using the specific command given by the
I think it will exist a similar command for your language too! EDIT:It looks like that the
As you can see the positions of subscript and superscript together is a bit different than the one in math mode! |
||||
|
|
|
|||
|
The way I use subscript and superscript in regular text is using the following two commands
Then it's just a matter of using
Of course, you can name those as you want, you don't hate to keep the french names I use :) |
|||
|
|

! Missing $ inserted.that's an unambiguous indication that math mode is being entered as tex tries to recover. the_and what's being subscripted need to be explicitly in math mode to avoid side effects. – barbara beeton Jun 9 '11 at 12:35