subscript

How to find the unicode of the subscript alphabet?

痴心易碎 提交于 2019-11-26 09:07:09
问题 I\'ve found some letters but i need to find others such as \"c\", \"m\", \"p\", is this even possible? 回答1: Take a look at the wikipedia article Unicode subscripts and superscripts. It looks like these are spread out across different ranges, and not all characters are available. Consolidated for cut-and-pasting purposes, the Unicode standard defines complete sub- and super-scripts for numbers and common mathematical symbols ( ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾ ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₊ ₋ ₌ ₍ ₎ ), a

Set superscript and subscript in formatted text in wpf

时光怂恿深爱的人放手 提交于 2019-11-26 06:43:34
问题 How can I set some text as subscript/superscript in FormattedText in WPF? 回答1: You use Typography.Variants: <TextBlock> <Run>Normal Text</Run> <Run Typography.Variants="Superscript">Superscript Text</Run> <Run Typography.Variants="Subscript">Subscript Text</Run> </TextBlock> 回答2: You can use something like <TextBlock>5x<Run BaselineAlignment="Superscript">4</Run> + 4</TextBlock> . However, as far as I know, you will have to reduce the font-size yourself. 回答3: I used a layout transform,

Subscripts in plots in R

為{幸葍}努か 提交于 2019-11-26 04:11:14
问题 I can\'t find a way how to write subscripts in the title or the subtitle in R. How can I write v 1,2 with 1,2 as subscripts? Thanks for your help! 回答1: expression is your friend: plot(1,1, main=expression('title'^2)) #superscript plot(1,1, main=expression('title'[2])) #subscript 回答2: If you are looking to have multiple subscripts in one text then use the star(*) to separate the sections: plot(1:10, xlab=expression('hi'[5]*'there'[6]^8*'you'[2])) 回答3: See ?expression plot(1:10,main=expression(

Subscript and Superscript a String in Android

天大地大妈咪最大 提交于 2019-11-25 23:18:36
问题 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. 回答1: ((TextView)findViewById(R.id.text)).setText(Html.fromHtml("X<sup>2</sup>")); or Common Tasks and How to Do Them in Android 回答2: Example: equation = (TextView) findViewById(R.id.textView1); SpannableStringBuilder cs = new SpannableStringBuilder("X3 + X2"); cs.setSpan(new SuperscriptSpan(), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); cs