### Author Topic: ^ = superscript , _ = subscript , what key go back to normal  (Read 13871 times)

#### lookang

• Hero Member
• Posts: 1772
• http://weelookang.blogspot.com
##### ^ = superscript , _ = subscript , what key go back to normal
« on: August 13, 2007, 02:32:16 pm »
The common way in Latex to have super- subscript is to use ^ and _ in math mode.

^ = superscript , _ = subscript , what key go back to normal ?

i tried \$  \$ also can't do it

i know now %  % store the value in the variable

what key go back to normal

i look for the answer in the net for a long time still can't find any good tips?

chance to help . thanks!

« Last Edit: December 19, 2008, 10:31:30 am by lookang »

#### lookang

• Hero Member
• Posts: 1772
• http://weelookang.blogspot.com
##### Re: ^ = superscript , _ = subscript , what key go back to normal
« Reply #1 on: August 13, 2007, 02:57:06 pm »
i did it!!!

{s_y} versus s_x

causes

this!!

cool, i solve the problem

#### Fu-Kwun Hwang

• Hero Member
• Posts: 3062
##### Re: ^ = superscript , _ = subscript , what key go back to normal
« Reply #2 on: August 13, 2007, 03:26:23 pm »
That is the standard TeX/LateX syntax.
You can check out LaTeX mathematic equation related document about those syntax.
There are some html which explain those syntax for equations displayed in EJS. However, it was all written in Chinese (my Chinese version of physics discussion forum.).

Actually, the equation displayed used in EJS was originally from HotEqn - Equation Viewer

#### lookang

• Hero Member
• Posts: 1772
• http://weelookang.blogspot.com
##### Re: ^ = superscript , _ = subscript , what key go back to normal
« Reply #3 on: August 13, 2007, 04:57:38 pm »
good information prof hwang

thanks

#### lookang

• Hero Member
• Posts: 1772
• http://weelookang.blogspot.com
##### Re: ^ = superscript , _ = subscript , what key go back to normal
« Reply #4 on: December 19, 2008, 11:01:43 am »
i am having problem displaying

m1 , m2 , m3, m4 ....... on the mass balls on the newtons cradle applet.

i use

for (int j=0; j < n; j++) {
l_m[j]="m"+(j+1);
}

but the display is m 1 , m 2 , ..... and so on.

i tried looking up the HotEqn - Equation Viewer http://www.atp.ruhr-uni-bochum.de/VCLab/software/HotEqn/HotEqn.html

but the example there seems to be for a static subscript say {v_x} where x is not changing.

now my display subscript changing from 1 to 2 to 3 ..... to 7

any idea what syntax to use?

thanks!
« Last Edit: December 19, 2008, 11:27:02 am by lookang »