Questions tagged [front-end]

Questions related to the Mathematica front-end (graphical user interface).

Mathematica is divided into two pieces: the kernel which performs all the calculations and the front-end with which the user interacts. The front-end is responsible for displaying and styling the notebook interface, and launching the kernel when a calculation needs to be performed.

Since the front-end is a vast system, please consider using some more specific tags too. Use this tag (with the appropriate specific tag) for questions on customizing the front-end options or modifying *.tr files (), creating keyboard shortcuts (), creating stylesheets (), syntax coloring (), etc. Questions relating to nootebooks, their structure and behaviour, dialog and normal notebook windows should use the tag . Questions relating to palettes should use the tag .

Useful links:

Example questions:

1909 questions
126
votes
2 answers

Implementing efficient multiple undo

At the time this question was asked, version 10 was not out yet. The Front End of Mathematica 10 does have multiple undo, see the answer by John Fultz. The Mathematica Front End's built-in Undo command can only undo a single editing step. Has…
Rojo
  • 42,601
  • 7
  • 96
  • 188
35
votes
5 answers

Is there a shortcut to select all cells above the current cursor position?

Is there a command / menu entry / keyboard shortcut to evaluate all cells above / up to the current cursor position? I have the feeling I am missing something elementary here... Addendum: In fact, it is more about selection of those cells,…
Yves Klett
  • 15,383
  • 5
  • 57
  • 124
32
votes
2 answers

Do you really want to quit the kernel? Yes!

When I have entered some bad code and hit shift+enter before thinking about the perils of finite RAM my computer obviously starts suffering. I have found two options that usually lets me recover without rebooting or in other ways lose the entire…
ssch
  • 16,590
  • 2
  • 53
  • 88
25
votes
2 answers

What is the FrontEnd?

Can anyone sort out what the Front-End is, how it is structured and what its relationship to the Kernel is. The FrontEnd is mentioned quite often but elusively avoids to be caught and clearly defined. I think I understand that a notebook is a…
MathLind
  • 1,697
  • 1
  • 13
  • 22
23
votes
1 answer

Programmatically move the cursor to a desired location on the screen

Is it possible to set/move the mouse pointer's location directly from Mathematica without using external tools like Run["xdotool mousemove x y"]?
my account_ram
  • 2,158
  • 11
  • 25
20
votes
2 answers

Obtaining the number in CounterBox

Is there a way of obtaining the current number of a counterbox? Say for instance that in a new notebook you create 3 section cells. Then by evaluating the command: CellPrint[Cell[TextData[CounterBox["Section"]]]] You can see now many cells with the…
jmlopez
  • 6,470
  • 4
  • 28
  • 48
20
votes
1 answer

What's the internal command for entering a fraction?

I'm looking for the FrontEnd`Foo[...]-like command that's triggered when pressing Ctrl + /. Are there any discoverability features in Mathematica that would have helped in this case? E.g., in Emacs I could have just pressed Ctrl + h k Ctrl + /…
ens
  • 591
  • 3
  • 8
19
votes
2 answers

Creating a cross referencing shortcut

I believe I have gather all the pieces of information I need to create what I want but yet I cannot make the connection. Let me start with the goal. Simple Cross referencing Let us start by creating a new notebook. Here we create a…
jmlopez
  • 6,470
  • 4
  • 28
  • 48
19
votes
4 answers

How to select and delete all Output cells?

How to select and delete all Output cells in multiple notebooks programmatically without needing to (manually) opening them? How to define a hot key for deleting all Output cells within a notebook from that notebook?
user13253
  • 8,666
  • 2
  • 42
  • 65
19
votes
2 answers

Custom Mathematica Shortcut: Copy as $\LaTeX$

If you edit the Wolfram Research\Mathematica\8.0\SystemFiles\FrontEnd\TextResources\Windows\MenuSetup.tr file you can make Ctrl+Shift+C copy not plain but in $\LaTeX$ format. Very useful. Look for the line in the file that says "&LaTeX" and the…
Zlatko-Minev
  • 677
  • 4
  • 14
19
votes
1 answer

Strategies to compensate for lack of multi-document interface?

I use Mathematica (Home Edition) to manage notes which live in a large number of different notebooks. In my case the notebooks (hundreds) are just organized using document names and file system folders (topic based or date based). My most dreamed…
billc
  • 684
  • 5
  • 16
18
votes
1 answer

Running some code every time a new notebook is opened

Is it possible to automatically execute some code every time a new notebook is opened? So for example I would like to print a message "New notebook" every time a new notebook is opened. This question was prompted by this answer about fixing…
Ajasja
  • 13,634
  • 2
  • 46
  • 104
18
votes
2 answers

Changing default window appearance

Since every single time I start Mathematica, my first action is aligning the windows properly (Notebook on the left for $2/3$ of the screen, help on the right for the other $1/3$), I was wondering whether this could be done automatically. This is…
David
  • 14,911
  • 6
  • 51
  • 81
17
votes
5 answers

Easy button or hot key to switch between `Working` and `SlideShow` Screen Environments to avoid trip to menu

When I edit a slide show it easy to copy whole slides in Working Screen Environment but nice to preview slides in SlideShow Screen Environment. Mathematica has convenient interactive buttons to go to Full Screen mode and change slides. Is it…
Vitaliy Kaurov
  • 73,078
  • 9
  • 204
  • 355
17
votes
1 answer

How to Print to the Console

Background: Using the settings under Edit-> Preferences->Evaluation I can redirect all the Print statments to the console. What I'd really like to do is redirect just some specific Print statements to the console. I know I can print to another…
Ajasja
  • 13,634
  • 2
  • 46
  • 104
1
2 3
13 14