New answers tagged formatting
1
If you have a more powerful box available, you could install Mathematica there, and run it from the netbook using X forwarding over SSH (ssh -X). The UI should be responsive as long as you have a good network connection and you aren't displaying large graphics or plots.
Some documentation for setting up an SSH server:
...
4
Not quite tested
embeddedNotebookForm/:
MakeBoxes[embeddedNotebookForm[nb:Notebook[cells_List,___]],StandardForm]:=
MakeBoxes@DocumentNotebook[{TextCell@"tag"}]/.{
{{Cell["tag"]}}:>Block[{},List/@
Replace[cells,
Cell[CellGroupData[{cs__Cell},_]]:>cs, {1}]
/;True],
...
5
As excellently described by andre the problem is that style is applied to the row vectors rather than the array elements themselves, and TableForm is not written to handle this situation. For ease of use you may wish to write a variant of Style that automatically threads over lists:
style[args__] := Thread[Style[args], List, 1]
Now:
m = ...
10
Here is a solution :
m = RandomInteger[{-5, 5}, {10, 10}];
m /. {x__, y_ /; y > 0} :> (Style[#, Red] & /@ {x, y});
% // TableForm
Explanation about TableForm[]
TableForm[] accepts as argument only a List[] of List[].
m /. {x__, y_ /; y > 0} ->
Style[{x, y}, Red] seems to be a List[] of List[] :
but in fact the red lines have ...
2
Jens's answer provides a good idea, but for some users (with v7 or older versions), "ket", "bra" and "braket" are not built-in Mathematica input aliases. To define these aliases in Mathematica, one may execute the following code:
SetOptions[$FrontEnd,
InputAliases ->
Join[{"ket" ->
TemplateBox[{"\[Placeholder]"}, "Ket",
...
3
Accidentally coming across this post, so here I just want to add some supplements about the slanted $\mu$.
There is indeed no Mathematica fonts containing upright $\mu$, but the system does offer method for invoking external fonts. For example using a Windows built-in font Symbol:
ToString[Style[Row[{
Style["m", FontFamily -> "Symbol"],
...
4
It appears that it only works once because it messes up the cell expressions it modifies the first time it is evaluated.
I started with a notebook with several kinds of cells but only one text cell, which had the cell expresion
Cell["Some text", "Text"]
I evaluated
nb = EvaluationNotebook[];
Scan[(CurrentValue[#, StyleNames] = "Section") &, ...
1
I think the automaticaNumbering is not perfect, I found a way to use AutomaticaNumbering.
That is :Create Your Own Stylesheet. You can search StyleData in Help,
And the SectionNumbered gives good example when see the CellExpression, and we can modifiy it in our personal-stylesheet.nb
If you want to remove AutomaticaNumbering of some stylesheet, just ...
0
I think the coding you are seeing is the pdf encoding of the image, not a property of the cell. If you take an image (like a png) and do a "Save Image As" to the pdf format, then when you drag it back in, it can be moved with the mouse.
I guessed this by looking at the FullForm of one of the images in the tutorial page, which starts out:
...
1
Here is code I have used for similar purposes.
resetPrecision[(a_List | a_Plus), prec_] :=
Map[resetPrecision[#, prec] &, a]
resetPrecision[a_?NumberQ*b_., prec_] := SetPrecision[a, prec]*b
resetPrecision[a_, prec_] := a
That example:
equations =
2.0799361919940695` x[1] + 3.3534325557330327` x[1]^2 -
4.335179297091139` x[1] x[2] + ...
1
I'd recommend rethinking your data structure a bit. How about defining lists like:
data[[i]] = {{DataSetName1, m1, m2, m3,m4},{DataSetName2, m1, m2, m3, m4},...}
for i=1 to however many pieces of data you have. Then the corresponding
time[[i]] =[5, 10, 20, 1440]
and etc for all the different items. Now you can just index through the i, instead of ...
1
I am not certain where your trouble lies, but since you mention ToString and ToExpression you're surely making this harder than it needs to be. Let me show you a couple of methods to format your data in the way I think you intend. Sample data:
dat = {{"cat", 8, 18, 9, 1}, {"dog", 19, 15, 15, 7}, {"fox", 7, 10, 9, 20},
{"bird", 17, 10, 1, 5}, ...
Top 50 recent answers are included




