Using the ESC key produces a named character, not a unit. You can see a full list of named characters and their keyboard shortcuts in the documentation under guide/ListingOfNamedCharacters.
The easiest way to write out quantities is to use natural language input. I often use “Ctrl + =”.
Internally, all Quantities are written that way as “Quantity[number, unit]”. This is the simplest possible representation of a Quantity and the most basic.
Thanks for the answer.
I do not agree that the “esc”-solution cannot make units. When I mouse over the F in the above example it says farads. And when i calculate with different units, the output unit is correct.
For writing units you just need do start the expression with “q” for quantity i think. e.g. [esc]qkv[ecs] for kV (kilovolts).
Actually that Unit palette - brilliant by the way - was the one that made me discover the “esc” solution because it shows up when you mouse over the different units. But doing a lot of electrical engineering I do miss some units.
I wouldn’t recommend this for anything other than a throwaway session where you just want to quickly run some numbers, and definitely not for code that you intend to share with others. Overriding default system behavior can make things messy if you aren’t careful.
Oh. I see now. The shortcuts you see are part of that package. They aren’t part of a regular Mathematica installation. Without knowing that, I didn’t understand your question. Without that package, I’m pretty sure you can’t create quantities with the [esc] key.