Pascal
Pascal

Reputation: 1093

Subscripted 'y' in unicode

I have to display $CₓH\subscript{y}$.

Is there any chance to display a subscripted 'y' in Unicode?

\u2093 represents the subscripted 'x'

Upvotes: 4

Views: 8440

Answers (3)

aless80
aless80

Reputation: 3332

In Sublime Text this subscripted y works: ᵧ. Copied from here: https://lingojam.com/SubscriptGenerator

EDIT This is actually the greek letter gamma

Upvotes: 4

Joey
Joey

Reputation: 354734

Usually you do this with formatting. Unicode's selection of superscript and subscript characters doesn't stem from the need or desire to cover whole alphabets but rather to enable specific use cases, e.g. writing IPA. Furthermore, if you're using a good OpenType font it can also support proper subscripts for arbitrary characters at the font level (where a glyph isn't simply scaled down by the layout engine, but rather a specifically-designed subscript glyph from the font is used).

In fact, since you're already using TeX or something vaguely similar to it, just let one of the many implementations render it. There are lots of things you simply cannot do in plain text without formatting, and this is one of them.

Upvotes: 6

devio
devio

Reputation: 37215

The subscript and superscript characters in Unicode do not cover the whole alphabet.

See the Wiki article on this topic or this answer on SO.

Upvotes: 1

Related Questions