[Solved] Strange result using subscript GG

Discuss the formula editor
Post Reply
Valdas
Posts: 2
Joined: Sun Apr 27, 2008 8:11 pm

[Solved] Strange result using subscript GG

Post by Valdas »

Hello,

i want get letter "k" with subscript "GG". So i enter "k_GG", but i get strange formula: "k" with flipped "?" in subscript. So i must write "k_{G G}".
Is it a bug?
Last edited by MrProgrammer on Wed Feb 12, 2020 9:59 pm, edited 2 times in total.
Reason: Changed title, was: Strange result
User avatar
Hagar Delest
Moderator
Posts: 32667
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Strange result

Post by Hagar Delest »

Why not k_"GG"?

Thanks to add '[Solved]' at beginning of your first post title (edit button) if your issue has been fixed.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
keme
Volunteer
Posts: 3705
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Strange result

Post by keme »

Valdas wrote:Hello,

i want get letter "k" with subscript "GG". So i enter "k_GG", but i get strange formula: "k" with flipped "?" in subscript. So i must write "k_{G G}".
Is it a bug?
GG is a binary operator in math (much greater than, displayed as ">>"), and if binary operators don't have an operand on either side, it's considered a syntax error. Syntax errors in Math are displayed as an inverted red question mark.

To ensure text is displayed verbatim (not interpreted as operators or named symbols), quote it.
Hence Hagar's solution.
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
Valdas
Posts: 2
Joined: Sun Apr 27, 2008 8:11 pm

Re: [solved] Strange result

Post by Valdas »

Thank for explanation!
Post Reply