[Solved] Change font color and size of formula's subscript & superscript

Discuss the formula editor
Post Reply
MrDeeR
Posts: 6
Joined: Thu Jul 21, 2022 2:09 pm

[Solved] Change font color and size of formula's subscript & superscript

Post by MrDeeR »

I am using formula to create subscript and superscript in the same time because I want them to be vertically aligned. It's easy, by typing 9 sup 4 sub 7 for example in formula.

Now, I would like to change the color of the superscript and also I would like to make the subscript smaller.

I found these commands

A B color green {C D} E

a b size -5 {c d} e

HOWEVER...

When I try to combine them let's say 9 sup color green 4 sub size -5 7 the subscripts and superscripts are no longer aligned and the color green applied to both.

Is there any way I can separately modify them?
Last edited by MrProgrammer on Thu Jul 21, 2022 8:00 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
Openoffice 4.1.6 on Windows 10
FJCC
Moderator
Posts: 9248
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Can you change the color and the font size of the sub & superscript when you are using it in formula?

Post by FJCC »

Does this give you what you want?

9 sup {color green 4} sub {color green size -3 7}
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
MrDeeR
Posts: 6
Joined: Thu Jul 21, 2022 2:09 pm

Re: Change color and font size of formula's subscript & superscript

Post by MrDeeR »

Yessss!!!

Perfect. I am much obliged
Openoffice 4.1.6 on Windows 10
Post Reply