Questions tagged [mathematica-frontend]

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

66 questions
5
votes
3 answers

What is the minimal difference in RGB color values which Mathematica renders and exports as different colors?

I was amazed when I found that Mathematica gives True for the following code (on 32 bit Windows XP with Mathematica 8.0.1): Rasterize[Graphics[{RGBColor[0, 0, 0], Disk[]}]] === Rasterize[Graphics[{RGBColor[0, 0, 1/257], Disk[]}]] What is the…
5
votes
1 answer

Uncaught Throw generated by JLink or UseFrontEnd

This example routine generates two Throw::nocatch warning messages in the kernel window. Can they be handled somehow? The example consists of this code in a file "test.m" created in C:\Temp: Needs["JLink`"]; $FrontEndLaunchCommand =…
Chris Degnen
  • 8,443
  • 2
  • 23
  • 40
5
votes
2 answers

Making customized InputForm and ShortInputForm

I often wish to see the internal representation of Mathematica's graphical objects not in the FullForm but in much more readable InputForm having the ability to select parts of the code by double-clicking on it and easily copy this code to a new…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
5
votes
2 answers

Mathematica Help Browser from Mathematica 5 in new versions of Mathematica

I remember that someone from WRI stated in the official newsgroup that Mathematica 7 still has a working old-fashioned Mathematica Help Browser from Mathematica 5 for compatibility purposes. But I can not find the post where the code for invoking it…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
5
votes
1 answer

Command-line arguments of Mathematica Kernel and FrontEnd

I still know nothing on usage of such command-line options of MathKernel as -lmverbose -run cmd -password "pw" -pwfile "file" How are they working and what they are needed for? Are there other potentially useful command-line options of the…
5
votes
1 answer

How to redefine FrontEndEventActions?

Good day, This question comes from the question on aborting evaluation of the full sequence of inputs. I think it is probably possible to achieve the desired behavior by redefining FrontEndEventActions for two events: "EvaluateCells" (or pressing…
5
votes
1 answer

Write below keyboard shortcut

It used to be Ctrl+= in Mathematica 7, but in Mathematica 8 instead of writing below this shortcut starts free-form input. The documentation at tutorial/KeyboardShortcutListing hasn't been updated. Which shortcut is now used for writing below?
Max
  • 19,654
  • 13
  • 84
  • 122
4
votes
2 answers

How to Autonumber Cell Tags in Mathematica Notebooks?

I tried to follow the directions on autonumbering cells in a Mathematica-8 notebook, here http://reference.wolfram.com/mathematica/tutorial/AutomaticNumbering.html I created a tiny notebook with four text cells foo qux blancmange bar Placing the…
Reb.Cabin
  • 5,426
  • 3
  • 35
  • 64
4
votes
4 answers

Controlling the Rasterize[] width for notebook-related expressions

Update Mr Wizard's answer gives pixel-perfect results, but it is Windows-only and destroys the clipboard contents. My answer should work on any platform, but it's less precise: e.g. it omits In/Out labels. It does allow setting the rasterization…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
4
votes
3 answers

How to align first column and first row in Grid independently from others?

How to specify separate alignments for the first column (excluding first row in this column), first row (excluding first element in this row) and all other elements in the Grid? It is preferable to do this just with Alignment option of Grid…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
4
votes
1 answer

Why doesn't running ClearAll["Global`*"] from a custom Palette update local variables colors?

I created a custom palette, with an ActionMenu that executes ClearAll["Global`*"]. It performs the desired action, but the frontend doesn't instantly update the colors from black to blue (standard), as it happens when ClearAll["Global`*"] is…
P. Fonseca
  • 549
  • 4
  • 12
4
votes
2 answers

Is it possible to create MakeBoxesStop wrapper?

It is known that output expressions are passed through MakeBoxes to turn the graphics expressions into the box language which the front end uses to represent graphics (when $Output has default option FormatType->StandardForm). For example, if we…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
4
votes
3 answers

TableForm with TableHeadings aligned to Left but the content of table aligned to Right

TableForm with TableHeadings option is a quick and easy way to display good-looking classical table in Mathematica FrontEnd. The only problem is that it is common to display such a table with headings aligned to the left but the content of the table…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
4
votes
1 answer

Problem with Message styling

Consider the following: printMessage[cellexpr_]:=CellPrint@Cell[cellexpr,"Message", CellLabel->"(slave Kernel)",ShowCellLabel->True, CellFrameMargins->0,Background->LightBrown, …
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
4
votes
3 answers

How to abort evaluation of a sequence of inputs?

By default pressing Alt+. or calling Abort[] within the evaluation causes abort of the currently evaluating input. But when working in the FrontEnd we usually send to the kernel a sequence of inputs. For example, if we type the following three…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93