[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: 33643
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 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
User avatar
keme
Volunteer
Posts: 3793
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.16 and LibreOffice 25.8, mostly on Ms Windows 10 and 11.
Valdas
Posts: 2
Joined: Sun Apr 27, 2008 8:11 pm

Re: [solved] Strange result

Post by Valdas »

Thank for explanation!
Post Reply