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

learn more… | top users | synonyms

15
votes
4answers
1k views

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 ...
29
votes
2answers
860 views

How can I set an image to be the Notebook's background?

Is it possible to set a notebook's background to a nonscrolling image?
14
votes
4answers
471 views

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 ...
8
votes
2answers
300 views

Restrict Sensitivity of Locators in LocatorPane

We can restrict the movement of locators in a LocatorPane as follows: In the following example, the first locator's movement is confined to the x-axis and the ...
7
votes
2answers
236 views

Close programmatically all cell groups in Mathematica?

Is it possible to collapse all cell groups in the current notebook? I tried ...
10
votes
1answer
398 views

How to pipe a stream to another notebook?

Can I pipe an OutputStream object created by OpenWrite (or similar) to a notebook instead of a file? I am aware that I can use ...
8
votes
1answer
322 views

Shortcut to insert CounterBox

Is there a shortcut to inserting a CounterBox as you type in text mode? I haven't yet made extensive use of them but I can foresee them in my near future and the ...
10
votes
1answer
424 views

Poor anti-aliasing in Rotated text with ClearType on

There is a problem on my system that occurs when text is rotated 90 degrees as it is in frame labels. This only happens when ClearType is turned on, and only around 90 degrees of rotation. I am ...
7
votes
1answer
884 views

How to zoom and pan a ListLinePlot?

I'm using ListLinePlot inside a Manipulate function to display some data. I've seen that Mathematica allows zooming and panning ...
8
votes
1answer
276 views

No Syntax Highlighting of Package Functions

Lately, my installation of Mathematica has decided not to highlight any symbols loaded from packages. The picture below is a good representation of this: where after loading both ...
36
votes
8answers
8k views

How can I improve Mathematica's resolution on a macbook retina display?

Mathematica looks a bit fuzzy on the retina screen, how can I increase the resolution? Here another screenshot showing a direct comparison between the browser and Mathematica
29
votes
3answers
1k views

Automatically check student answers in tests

I am a physics teacher and I am looking for a way to create homework assignments within Mathematica so that each problem has an input field that students can use to check their answers. For example, ...
26
votes
2answers
657 views

Special Mathematica Cell to work with R code

I have enjoyed working with R inside Mathematica. But it would be nice If I could have a special R cell. For example, instead of typing ...
25
votes
2answers
681 views

Template completion

In version 8, if one evaluates test::usage="test[x,y]"; then types test, then shift-cmd-k (or shift-ctrl-k), a template ...
14
votes
1answer
453 views

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 ...
14
votes
4answers
346 views

Prevent graphics render inside held expression

Assuming each odd line is input I would like the even lines to be the output of the following lines. In the above the Graphics are inside ...
14
votes
2answers
257 views

How can I access a variable in one evaluator from another evaluator?

I have two notebooks, each with a different kernel. Is there a way to grab the value of a variable in KernelA from KernelB?
11
votes
2answers
679 views

Start Mathematica without the menu bar?

Is there any way to start Mathematica without the main menu bar? To be precise: Sometimes I make standalone mini-applications that I would like to just have in their own little windows without the ...
10
votes
2answers
394 views

Is there a way to interactively read a point from a Graphics3D?

Suppose I have a tesselation, e.g. the Stanford bunny: bunny = Import["http://graphics.stanford.edu/~mdfisher/Data/Meshes/bunny.obj", "OBJ"] I'd like to be ...
14
votes
1answer
494 views

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 ...
16
votes
2answers
392 views

Are later versions of the Front-End compatible with older Kernels?

At my graduate school, all of the clusters still use version-6, and I only have version-7 and version-8 installed on my computer. I would like to use those machines remotely. Are either of the ...
12
votes
1answer
622 views

Finding a Specific Line in a Package

In a package I am developing, I accidentally left this line Protect[ uncompleted prior to running the package. Mathematica produced this error message ...
12
votes
3answers
1k views

Collapse a section of a huge function

Is there an elegant way of hiding/collapsing/folding only a portion of a function? If functions could span multiple cells, this would have been straight-forward!
11
votes
1answer
893 views

How to specify default style in Mathematica 9

In Mathematica 8, I can use GraphicsBoxOptions->{DefaultBaseStyle->{"Graphics", FontFamily -> "Helvetica", FontSize -> 14}} to specify the default font ...
11
votes
1answer
238 views

Implementing bookmarks in the front end when editing a package

Sometimes when working on larger pieces of code or on a larger package I really miss the option to bookmark the current line/position in the code. Since the front-end is quite extendable my question ...
9
votes
2answers
248 views

Listing all celltags in a notebook

Is there a command to obtain all the CellTags and the style of the cell they are in? This question is derived from this question which was answered by jVincent. ...
8
votes
4answers
597 views

Is there a notebook autosave frequency configuration?

I've had Mathematica crash on me a number of times, and have had to recreate notebook contents from the last save point. I was looking for something in the preferences like an autosave frequency ...
11
votes
2answers
256 views

Is it possible to create Evaluatable cell which will be automatically overwritten?

Am trying to generate an Evaluatable cell which itself is an output cell which will be overwritten when the original Input cell ...
11
votes
3answers
597 views

Is it possible to insert an animated image into Mathematica notebook?

I find it very convenient to use Mathematica notebooks to organise the codes + results. I was wondering if it is possible to insert an animated image (say an animated gif) in the middle of a ...
10
votes
3answers
489 views

Programmatically quitting the FrontEnd or running without one?

I have a conundrum. I use an iMac's OS X 10.6.8 settings to start and stop the machine at the specific times that I need a particular notebook to run. I've done this because it has worked more ...
13
votes
1answer
224 views

Why does GridLines option fail with Function?

Bug introduced in 10.0.0 and fixed in 10.0.1 The Plot option GridLines can be specified either as a list of explicit values ...
10
votes
3answers
240 views

Intermediate display similar to PrintTemporary

Using MMA we often come across situations like the following cityLIST = CityData[#, "Name"] & /@ CityData[]; This code if you evaluate will emit some display ...
2
votes
1answer
659 views

How to set default save directory for notebooks?

Based on certain previous questions, I figured that if my NotebookBrowseDirectory looked like this ...
14
votes
2answers
214 views

What is the complete sequence of evaluations/transformations from submitting a cell to actual evaluation?

This question is inspired by that one. Reading it, I noticed that while (I think) I know what happens when entering an expression directly to the kernel (i.e. after typing ...
11
votes
2answers
410 views

How can I overload autocompletion to work with full contexts?

I would like for the autocomplete feature to search through contexts, for example if I have a symbol named A`B`C`MyFunction, when I type A` and press "cmd + shift + k" it will complete it. Edit To ...
13
votes
5answers
817 views

Using DynamicModule variables outside the DynamicModule

Take the following example for hiding/showing a notebook through a Checkbox: ...
9
votes
2answers
334 views

What is the simplest way to set the toolbar of a notebook to an image?

For custom stylesheets, it's nice to have a graphic banner in the Docked Cell. According to the doc page tutorial/IntroductionToToolbars, this is how you do it, but it seem a bit overkill: ...
19
votes
4answers
1k views

Mathematica 10 'Formatting Notebook Contents'

Mathematica 10 freezes while 'Formatting notebook contents'. This happens already during the startup of Mathematica and it takes a long time for Mathematica to recover. It can also happen when I am ...
16
votes
0answers
464 views

How to improve these WASD + mouse look 3D controls?

Insipred by this question and the corresponding answer I've written a code for full-screen exploration of 3D scenes using standard WASD and mouse look controls. Here it is. ...
12
votes
1answer
440 views

Manipulate slider unresponsive after suspend in Linux

I've tested Linux Mathematica versions 7-9 on various Linux distributions, with identical problem: after suspend/resume cycle my Manipulate controls (i.e. sliders&buttons) appear unresponsive, ...
11
votes
2answers
545 views

Take screenshot of the entire desktop using Mathematica

Is it possible to get a screenshot of the entire desktop directly in Mathematica? I am on Ubuntu running Mathematica 8. For some reason GUIScreenShot[] fails. But ...
9
votes
1answer
238 views

Preserving indentation when creating a new line (when editing in a package)

Background: This is the third question in a row of questions about how to make editing packages in the front-end much more bearable (the other two are here and here). It seems that the front end is ...
15
votes
1answer
170 views

File-name completion for custom functions

Mathematica 10 has introduces file name completion. It works only with certain built-in functions such as Import, SetDirectory, ...
15
votes
3answers
751 views

Opening a context menu (with the Menu key)

Is it by any chance possible to make the Menu key work as one would expect in Mathematica: opening a context menu? The Menu key does nothing in version 7 or 8 on Windows.
15
votes
1answer
501 views

How to work with characters from CJK Unified Ideographs Extension B correctly?

Background: Recently I'm trying to deal with some Chinese characters which belongs to the CJK Unified Ideographs Extension B block. The motive comes from some further interest following a former ...
9
votes
1answer
133 views

How does AutoStyleWords work?

The title says it all. I assume it provides some way of automatically applying a certain style, or a list of options, to certain words written, just like other options of the sort like ...
9
votes
4answers
878 views

Create shortcut in Mathematica for “Equal Symbol Aligned Math Cell”

How do I create a new shortcut for creating a "Equal Symbol Aligned Math Cell" in Mathematica 8? Update I meant a keyboard shortcut. An "Equal Symbol Aligned Math Cell" is exactly what @Heike ...
14
votes
1answer
353 views

What is the real default CellEvaluationFunction?

The default CellEvaluationFunction is Identity but one can quickly see that this is handled specially as an equivalent function, ...
7
votes
2answers
192 views

Evaluate Initialization Cells of another notebook

Although there may be better ways to get data and definitions from another notebook (packages, read/write dumps, ...), sometimes it is convenient to just evaluate the initialization cells from another ...
3
votes
3answers
273 views

Can Button[] generate output without using Print[]?

Button[] beguiles me. A simple example follows: ...