If I evaluate the following cell:
Quantity["PlanckConstant"]
I get as an output a very concise format of this quantity:
Also, compare the legibility of these two cells:
I want to find a way to create this:
without first evaluating a cell.
I just assume that the notebook front-end allows the user to achieve such a thing: just as right clicking on Sqrt[2]
and clicking on Convert To -> StandrdForm converts this expression to $\sqrt{2}$.
Style["h", Italic]
? $\endgroup$Style["h", Italic]
is not aQuantity
. $\endgroup$Quantity["PlanckConstant"]
without doing anything, then I do not know how to do that. May be someone else will have an idea. This seems to be builtin the notebook interface itself. Will delete my answer in this case. $\endgroup$Quantity[...]
, then press Ctrl+Shift+Enter (or go to the menu Evaluation > Evaluate in place). This will evaluate just the selected expression and not the whole cell :) $\endgroup$