Questions tagged [superscript]

A superscript is a number, figure, symbol, or indicator that is smaller than the normal line of type and is set slightly above the baseline.

A subscript or superscript is a number, figure, symbol, or indicator that appears smaller than the normal line of type and is set slightly below or above it – subscripts appear at or below the baseline, while superscripts are above.

Subscripts and superscripts are perhaps best known for their use in formulas, mathematical expressions, and descriptions of chemical compounds or isotopes, but have many other uses as well.

In professional typography, subscript and superscript characters are not simply ordinary characters reduced in size; to keep them visually similar to the rest of the font, typeface designers make them slightly heavier than a reduced-size character would be. Likewise, the amount that sub- or superscripted text is moved from the original baseline varies by typeface and by use.

n typesetting, such types are traditionally called superior and inferior letters, figures, etc., or just superiors and inferiors. In English, most non-technical use of superiors is archaic.

Superior and inferior figures on the baseline are used for fractions and most other purposes, while lowered inferior figures are needed for chemical and mathematical subscripts.

Source:http://en.wikipedia.org/wiki/Subscript_and_superscript

408 questions
159
votes
16 answers

How can I keep consistent line height with superscript elements?

If I have a element in a multi-line paragraph, the line with the superscript on it has a larger line spacing above it than the other lines, regardless of what line-height I put on the paragraph. It doesn't mean I have lots of paragraphs, each…
Andrew Bullock
  • 36,616
  • 34
  • 155
  • 231
113
votes
15 answers

Subscript and Superscript a String in Android

How can you print a string with a subscript or superscript? Can you do this without an external library? I want this to display in a TextView in Android.
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
46
votes
6 answers

How to show html entity using React?

I am wanting to show the 'cubic' html entity (superscript 3). I am doing like this: const formatArea = function(val){ return val + " ft³"; } where formatArea is being called from inside the component': render(){ return ( …
JoeTidee
  • 24,754
  • 25
  • 104
  • 149
45
votes
8 answers

Set superscript and subscript in formatted text in wpf

How can I set some text as subscript/superscript in FormattedText in WPF?
Firoz
  • 7,224
  • 10
  • 41
  • 56
41
votes
2 answers

Special characters and superscripts on plot axis titles

I am trying to make a y-axis title with both a special character and a superscript. I am able to do this, but I want the closing parentheses not to be superscripted. And that's what I'm having a problem with. I think its just a placing of my…
Valerie S
  • 917
  • 2
  • 7
  • 17
32
votes
13 answers

How do you print superscript in Python?

I am aware of the \xb function in python, but it does not seem to work for me. I am aware that I may need to download a third party module to accomplish this, if so, which one would be best? I am currently writing a binomial expansion solver, to try…
Kage93
  • 411
  • 2
  • 6
  • 6
18
votes
3 answers

Display Superscript in SSRS reports

I m working on SSRS 2008. i want to display date as 1st January 2011.. but "st" should be in superscipt .. not like "1st". is there any way to display "st", "nd","rd" and "th" in superscipt without installing any custom font type(other Font Type).
Touseef
  • 414
  • 1
  • 5
  • 17
16
votes
6 answers

How to create vertically aligned superscript and subscript in TextView

In the example of image below: How can I make both the superscript and subscript numbers to be aligned to produce a common scientific notation like below in TextView? If there is a way using Spannable or ReplacementSpan I would like to see a…
Neoh
  • 15,906
  • 14
  • 66
  • 78
15
votes
3 answers

How do I include a superscript to texts on a plot on R?

I need it to look like this: R^2 = some values And I've tried the code below but it wouldn't work, it came out as "R (expression (^2)) = some values" instead: text (25, 200, paste ("R (expression (^2)) =", round (rsquarelm2, 2)))
Meed
  • 313
  • 1
  • 4
  • 10
14
votes
2 answers

Adding a TM superScript to a string

I need to add the TM(trademark) superscript symbol next to a title in a C# string. is there anyway to possibly do this? Thanks!
twal
  • 6,999
  • 17
  • 48
  • 58
11
votes
4 answers

Adding superscript tags around all trademark and registered trademark symbols

I am trying to add tags around every ™, ®, © in my page. I found this question: CSS superscript registration trademark which helped get me started. The script works in the sense that the tags are being placed in the proper locations, but…
Ty Bailey
  • 2,392
  • 11
  • 46
  • 79
10
votes
1 answer

Unicode characters in string - iphone

I am working on a math app and need to output exponents to the screen. I've found that this code will work: NSLog(@"x\u2070 x\u00B9 x\u00B2 x\u00B3 x\u2074 x\u2075 x\u2076 x\u2077 x\u2078 x\u2079"); it displays: x⁰ x¹ x² x³ x⁴ x⁵ x⁶ x⁷ x⁸ x⁹ This…
RanLearns
  • 4,086
  • 5
  • 44
  • 81
10
votes
1 answer

"Squared" superscript in ggplot2 yaxis label in R

I am plotting a multiple line graph with ggplot2 and am having trouble labeling the y-axis with mile per second squared. I have tried the command: ggplot(data.frame, aes(id)) + labs(y = "Acceleration in m/s^2") and( after searching Stack…
coollikeabreeze
  • 103
  • 1
  • 1
  • 5
10
votes
2 answers

How can I use a super-or-subscript tag in a HTML select option's display text?

I have a dropdown field like this: Can I use a superscript tag like this?