Group Abstract Group Abstract

Message Boards Message Boards

0
|
1.5K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Display an exponent between parentheses in a label?

Posted 4 years ago

Hello,

I am having issues to display (8^-) ("-" as an exponent) in a label. I have tried different variations using SuperscriptBox[], however I haven't been able to get the second parentheses in the right position.

SuperscriptBox["(8", "-"] SuperscriptBox[")", ""] gives me:  )(8^-

SuperscriptBox[")", ""] SuperscriptBox["(8", "-"] gives me:  )(8^-

SuperscriptBox["(8", ""] SuperscriptBox["", "-"] SuperscriptBox[")", ""] gives me: ^-)(8

It seems that the single exponent comes before the single parentheses, and the single parentheses comes before other characters.

Thank you for your support!

Nikita

POSTED BY: N B
2 Replies
Posted 4 years ago

Hi Rohit,

Yes, exactly! Thank you so much :-)

POSTED BY: N B
Posted 4 years ago

Hi Nikita,

Do you mean this?

Row[{"(", Superscript["8", "-"], ")"}]

enter image description here

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard