In the message body, this would produce the sought result: \$\text{I}^2\text{C}\$

How about in the title?

Works as well. Great.


You can also do this with the HTML <sup> superscript tag, which is generally preferred because it renders more quickly and reduces page size:




This (like Markdown) does not work in the question title.

  • 2
    \$\begingroup\$ I tried it and doesn't work in the title. \$\endgroup\$ – clabacchio Apr 11 '12 at 7:14
  • \$\begingroup\$ @clabacchio - Oops, looks like you're right. Edited! \$\endgroup\$ – Kevin Vermeer Apr 11 '12 at 15:53

You can also use Unicode: I²C

I have an AutoHotkey Hotstring to do this automatically:


(and also many other things)

  • \$\begingroup\$ ALT+2 isn't easier? It works with the international keyboard layout (at least to me). And I think it's cleaner than LaTeX, because it changes the font. \$\endgroup\$ – clabacchio Apr 11 '12 at 7:14
  • \$\begingroup\$ @clabacchio: Not sure what you mean by that. ALT+2? Changing the font? \$\endgroup\$ – endolith Apr 11 '12 at 14:42
  • \$\begingroup\$ Sorry, I was meaning ALT GR+2 or CTRL+ALT+2 \$\endgroup\$ – clabacchio Apr 11 '12 at 14:52
  • \$\begingroup\$ @clabacchio: Well, typing i2c is certainly going to be easier than typing <Shift>+I <Ctrl>+<Alt>+2 <Shift>+C. Ctrl+Alt+2 doesn't do anything for me anyway. Still don't know what you mean by changing font. \$\endgroup\$ – endolith Apr 11 '12 at 15:24
  • \$\begingroup\$ Well yes, but since it works in the PC I'm using, I find easier to press ALTGr+2 than using a script...²²²²²²²²²²²²²²²²²²²²²²²²²²²² :) \$\endgroup\$ – clabacchio Apr 11 '12 at 15:27
  • \$\begingroup\$ @clabacchio: Typing things naturally and having them autocorrected is much easier than memorizing keyboard combinations. :) I guess if you have to type lots of superscript 2s in a row, that would be better, though. \$\endgroup\$ – endolith Apr 11 '12 at 15:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .