Allow subscript and superscript as text style overrides?

Since a recent release we can already do some text style overrides. While maintaining the connection to a text style we can bold, italic and underline by using keyboard shortcuts.

Example in UI where I made a part bold:

Is there any change we can get the same feature for subscript and superscript? This would enable us to maintain the text style, while entering formulas like:
Formulas

Currently I have to disconnect the text style and then change the position. Which also isn’t the easiest feature to find.

This probably also requires putting making something sub- or superscript under some kind of keyboard shortcut, it currently isn’t:

Note that there is no problem using m³ for example, because I can just enter these as characters using my compose key (on Linux).

1 Like

Thank you very much for the detailed feedback. I’ll share this with our internal team!

1 Like

Looking for a similar solution. I want to include registration and trademark symbols in my text without breaking my text styles!

1 Like

Hi, yes, it is important, because as we are working a lot with emissions regulations, making subscripts/superscripts for all these CO2, NO2, square meters, etc. is always painful — even without styles you always have to click another tab, then scroll down to find the selectors, but with design-system styles support it becomes impossible.

image

Also, it would be nice to have copy-paste to save the subscripts and superscripts status of symbols – right now it is lost and you have to apply it again

I would suggest not to consider subscripts and superscripts as the elements of style — while technically they are defined by HTML tags, semantically (for units and chemicals) they are just additional symbols, like “°” (degrees), it is perceived like a single word. Also, it is odd to imagine the subscript text style used for the whole paragraph or several words.

You can actually already just enter subscript / superscript things like 2, just like I can here: m². But this is limited to a specific amount of characters:

So I can’t use this functionality for the formula’s I commonly need to enter.

On Linux I can use the compose key to input these. Compose key + ^ + 2 gives me ². Compose key + _ + 2 gives me: ₂.

Peter, yes, but it doesn’t solve the principal problem of using styles consistently and using other symbols (as you mentioned, maths formulas, etc.), so workarounds with standard Unicode symbols don’t help that much.

Just wanted to lend my support for this request. The same way styling like bold and italics are able to be added without breaking a style, it would be incredibly helpful for users in the medical field where a lot of references are being cited throughout blocks of paragraphs. Right now we are having to break the styles several times in one block of text.

1 Like