Page 1 of 1

[Solved] I cannot use "i" in the math formula , why?

Posted: Fri Sep 09, 2016 3:59 am
by lilzz
insert object formula.
X=Pint -3

I have P_int so that the int can become subscript but once I have i , it transform into special character.
nt character of int are OK, only i character causes issue.

I want to have subscript.

Re: I cannot have the i character in the math formula , why?

Posted: Fri Sep 09, 2016 4:21 am
by FJCC
Try

Code: Select all

P_"int"

Re: I cannot have the i character in the math formula , why?

Posted: Fri Sep 09, 2016 5:59 am
by MrProgrammer
Hi, and welcome to the forum.
lilzz wrote:I have P_int so that the int can become subscript but once I have i , it transform into special character.
In my version of Open Office, int is an operator which tells the Math component that an integral is to be created. There are several ways to prevent Math from interpreting int as the integral operator. I prefer the %int syntax, which tells Math to use the %int symbol from the catalog. Since there is none, Math uses int as the symbol's value.
Screen Shot 2016-09-08 at 22.54.54 .png
 Edit: 2019-08-07: The technique in the last line, %int, displayed int in OpenOffice 3.2 but displays %int in OpenOffice 4.1.5. Currently the best solution seems to be P_{ital "int"} for int or other names which match Math operators
If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the title. You can select the green checkmark icon at the same time.