Tag Info

New answers tagged

0

thelist=ReadList["/tmp/foo", "Number"] Partition[Drop[thelist, 1], 2] Will give you a list of re/im pairs (I just tried it, it works).


0

One very robust way to do such things is using the BoxLanguage of Mma. Your task for example is solved by the construct: SubsuperscriptBox["\[Epsilon]", "2.4", "-"] // DisplayForm placed just where you enter the desired AxesLabel. It can be, however, styled in addition, for example, as follows: StyleBox[SubsuperscriptBox["\[Epsilon]", "2.4", "-"], ...


0

I just wanted to provide this with a complete answer, since I had this very same question. There are two ways to enter both a sub and a superscript, one using the Subsuperscript command (as noted by @Pinguin Dirk), and one using shortcut keys, which is described in the help: To enter a subsuperscript in a notebook, use either Ctrl+_ to begin a regular ...


2

You aren't doing anything wrong, it's just that Mathematica uses a linear form for the units in Quantity expressions. As mfvonh commented, the expression Power[Quantity["ElectricConstant"], -1] is evaluated to Quantity[1, Power["ElectricConstant", -1]] i.e. a Quantity with a magnitude of 1 and units of "reciprocal electric constants". The unit ...


2

This is not yet a real answer as I offer no solution, only observations. Attempting to answer this by spelunking Quantity formatting is like falling down the rabbit hole. One internal function leads to another ad infinitum. I shall stop for now with the observation that the Box formatting comes from this function: ...


2

Pardon me if this is unjustifiably curt but I don't see how this problem is different from many others that result from placing Dynamic too deep within an expression. Move the Dynamic to the outside and the element in question updates just fine: on = True; Row@{Checkbox@Dynamic@on, Spacer@10, ExpressionCell[ Dynamic@RawBoxes@ RowBox@{"Block", ...


2

The last three locals are actually String, i.e. "\"local\"" at the box level. The fourth from the end, however, should be due to lacking of syntax highlight at the FrontEnd. For this problem, I guess you'll have to force the FrontEnd re-render the ExpressionCell after each update of the on. Usually this can be done by changing an option of the cell (like ...



Top 50 recent answers are included