Questions tagged [mathematica-frontend]

Programming the FrontEnd Notebook interface component of Wolfram Mathematica. Dedicated Mathematica SE site: https://mathematica.stackexchange.com/

66 questions
8
votes
1 answer

Is it possible to invoke Mathematica's diff functionality from the command line?

TortoiseSVN (as well as other Tortoise clients) include a script to diff notebook files in Mathematica. Diff functionality for Mathematica is implemented in the AuthorTools package (perhaps there is something better?) The script currently works by…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
8
votes
2 answers

Paste Mathematica code so that's it's broken into separate input cells

I often copy Mathematica code from websites (such as SO) to a notebook. The code usually gets pasted as a single input cell. I'm looking for a simple way to paste it as several input cells for convenient step-by-step evaluation. For example, a =…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
8
votes
2 answers

How to run initialization code for a palette?

Occasionally it would be preferable to have some initialization code for palettes (of buttons). For example, it could define some functions that are used by palette buttons. What is the easiest and preferable way to define/run initialization code…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
8
votes
2 answers

Overlapped Mesh lines in ContourPlot3D

I have a problem with rendering of Mesh lines on a 3D surface produced by ContourPlot3D in Mathematica 7.0.1: p=ContourPlot3D[x^4+y^4+z^4-(x^2+y^2+z^2)^2+3(x^2+y^2+z^2)==3, {x, -2,2}, {y, -2, 2}, {z,-2,2}, …
7
votes
2 answers

Creating robust real-time monitors for variables

We can create a real-time monitor for a variable like this: CreatePalette@Panel@Row[{"x = ", Dynamic[x]}] (This is more interesting and useful if x happens to be something like $Assumptions. It's so easy to set a value and then forget about…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
7
votes
2 answers

how to align comments in Mathematica notebook?

I do not know if this was asked before or not. Simple formating issue. I noticed it is sometimes hard to align comments (----) on top of each others. Must be a font type issue. It just looks a little better on the screen if I can get things to…
Nasser
  • 12,849
  • 6
  • 52
  • 104
7
votes
4 answers

Conversion of expressions by the FrontEnd

As I learned recently there are some types of expressions in Mathematica which are automatically parsed by the FrontEnd. For example if we evaluate HoldComplete[Rotate[Style[expr, Red], 0.5]] we see that the FrontEnd does not display the original…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
6
votes
1 answer

Temporarily disabling all input cells in a section of a notebook

Is there a way to disable all input cells in a cell group / section, in a way that is easily reversed later? My aim is to keep a section of a notebook intact, but prevent it from being evaluated when "Evaluate Notebook" is selected in the front…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
6
votes
1 answer

Dangerous symbol names that begin with a lowercase letter

I am looking for a full list of dangerous symbol names that begin with a lowercase letter in Mathematica. At this moment I know three such names: min, max and lim. These names appear in the LimitsPositioningTokens list and are being treated as…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
6
votes
3 answers

Convenient way to add inline formatting to usage Messages

Usage Messages of built-in functions have embedded in-line formatting. For example: In[1]:= ActionMenu::usage // FullForm Out[1]//FullForm= "\!\(\*RowBox[{\"ActionMenu\", \"[\", RowBox[{StyleBox[\"name\", \"TI\ \"], \",\", RowBox[{\"{\",…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
6
votes
2 answers

Context unique to each group at a specified level

Recent versions of Mathematica provide the option of having a unique $Context for each cell group, via: Evaluation > Notebook's Default Context > Unique to Each Cell Group This is an appealing concept, but I find it unusable, as my code spans…
Mr.Wizard
  • 24,179
  • 5
  • 44
  • 125
5
votes
1 answer

How to fill in CellFrameLabels in Mathematica Notebook Styles?

I have been working on getting numbered cell-frame labels following the great advice in these other answers Extending cell definition to CellFrameLabels definition How to Autonumber Cell Tags in Mathematica Notebooks? and I'm almost there. I wanted…
Reb.Cabin
  • 5,426
  • 3
  • 35
  • 64
5
votes
4 answers

Times and NonCommutativeMultiply, handing the difference automatically

I've got some symbols which should are non-commutative, but I don't want to have to remember which expressions have this behaviour whilst constructing equations. I've had the thought to use MakeExpression to act on the raw boxes, and automatically…
Dr Joe
  • 718
  • 5
  • 19
5
votes
2 answers

Change the equation background color in text style

In Mathematica when your writing to a Text styled cell, if you create an formatted equation, for example pressing "x ctrl_ a", the background color changes while the equation is selected. Does anyone know what this equation format area is called,…
dmikalova
  • 454
  • 7
  • 16
5
votes
2 answers

How to modify the default stylesheet?

Each time I create a new notebook, I have to set the magnification to 150% and modify the output color to blue. Is there a way to automate this using stylesheets or other features?
user342552