Tag Info

Hot answers tagged


The problem appears to be due to a v10.2 bug in the Dataset visualization code that generates the box form of a dataset. It is not correctly distinguishing between Dataset being used as a constructor function and Dataset being used as the head of a constructed dataset. It assumes the latter case unconditionally, giving the exhibited messages for the former ...


A work around seems to be to not have Dataset as the first Head encountered... toDataset[table_List]:=Dataset@@{Association/@(Function[r,Thread[First[r]->#]&/@Rest[r]]@table)}; So the first Head the parser sees is Apply and not Dataset.


The workaround is to put an \[InvisibleSpace] between the degree symbol and the C. Plot[x, {x, 0, 1}, FrameLabel -> {"x", "temperature / \[Degree]\[InvisibleSpace]C"}, Frame -> True] Note that the ImagePadding isn't very good in this case, but the C does indeed have the right baseline.


You can control this using the LineIndent option: Grid[tableText[[All, 7 ;; 9]], (* smaller table for example *) Frame -> All, ItemStyle -> {FontSize -> 10, LineIndent -> 0, {Bold}}, ItemSize -> {{5, 15, {6}}} ] Related: How to make a style for paragraphs with hanging indents




You can specify upvalues for any symbol. Try defining one on h as follows: h /: D[h[r_], r_] := 0 UpValues[h] As a result D[h[x], x]==0 (* True *)

Only top voted, non community-wiki answers of a minimum length are eligible