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

learn more… | top users | synonyms

4
votes
1answer
744 views

How to close the (local) Debug window/palette

I have this local debug window that is so annoying How can I hide it? What is the purpose of it?
2
votes
1answer
809 views

How to set default save directory for notebooks?

Based on certain previous questions, I figured that if my NotebookBrowseDirectory looked like this ...
1
vote
0answers
176 views

Annoying window. How to remove it?

Bug introduced in 10.0 and persisting through 10.1.0 or later How do I remove this window from my Mathematica? Unchecking the Debugger menu item as described in How to close the (local) Debug ...
15
votes
2answers
228 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
424 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 ...
14
votes
1answer
1k views

How to find out available fonts from within Mathematica?

How to find out available fonts on the system from within Mathematica? When I do Style["foobar", FontFamily -> "Foobar"] how do I know which font the ...
15
votes
5answers
932 views

Using DynamicModule variables outside the DynamicModule

Take the following example for hiding/showing a notebook through a Checkbox: ...
14
votes
1answer
171 views
+500

Is it possible to maintain user-defined shortcuts in a web-installable package?

There are various posts here on this site about how to add user defined extra keyboard shortcuts for the front end. The problem is how to put them into a better maintable and properly documented ...
9
votes
2answers
210 views

How can I make Which format its output?

Functions like Piecewise have cool, easy-to-read formatting. In the same vein, I think it would be wonderful if the Which ...
14
votes
3answers
649 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
2answers
351 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: ...
17
votes
0answers
519 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. ...
15
votes
1answer
201 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, ...
13
votes
2answers
617 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, ...
15
votes
3answers
786 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.
11
votes
1answer
328 views

What is the complete list of valid FrontEnd Packet types?

In response to my question How can I get the unchanged Box form of an arbitrary expression? John Fultz answered with a method using the hilariously named ...
11
votes
3answers
281 views

How to sort cells in a notebook based on cell tags?

Suppose I have a notebook with cells tagged with both numbers and words with numbers always list first, and some cells without cell tags e.g.: ...
9
votes
1answer
145 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
3answers
587 views

Opening new notebooks with a non-default window size

I'd like to set Mathematica (8.0.4.0) up so it opens new notebooks with the "NaturalColor" stylesheet and with a window size like {800,770}. I tried to change ...
9
votes
4answers
971 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 ...
7
votes
2answers
400 views

Adapting “Find and Replace” functionality to work with Patterns

I was thinking if there is something like Find and Replace (Crtl+F) functionality adapted to work with patterns. Probably not, but it seems possible to create this with some effort and skills in ...
14
votes
1answer
434 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, ...
9
votes
1answer
295 views

SubTitle and SubSubTitle do not group by default

For some reason, the SubTitle and SubSubTitle cell formats do not group automatically on my machine any more, and I cannot ...
7
votes
2answers
249 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 ...
4
votes
3answers
341 views

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

Button[] beguiles me. A simple example follows: ...
12
votes
1answer
286 views

Automatically execute command after save

I want to run some code automatically after saving my notebook. Is there a $ variable or setting for this?
11
votes
2answers
423 views

How can I make a cell that contains an image which can be shifted?

When you're looking at some help pages, they may have cells containing images which can be shifted within the cell by left-clicking and dragging the mouse. Here is a sample: ...
10
votes
1answer
224 views

Mouse gestures or keyboard shortcuts for navigating forward/backward in the documentation center

Is there any way to get gestures (e.g. trackpad- or Magic-Mouse-swiping left/right) to work for navigating forward and backward in the Mathematica help browser, particularly on a Mac? If not, what are ...
9
votes
1answer
147 views

Tracking Initialization

How to track Initialization step by step? Any tricky solution is ok. One condition, x should be ...
7
votes
5answers
1k views

How to enter textual subscripts and superscripts?

When I add a sub- or superscript to a letter in a "Text" cell using the "Writing Assistant" palette this letter becomes Italic: ...
6
votes
1answer
976 views

Manipulate (Linux version of Mathematica)

I'm runnning Mathematica 9 on Ubuntu 11.10. After installing CDF player I still have problem (most of time) with Manipulate. Only way I'm able to change value of a ...
4
votes
2answers
376 views

Custom (physics) dictionary for mathematica (used for word-processing, spell checking)

Is there a dictonary available that contains physics slang like spinor, vacua, gauge etc.?? How would one integrate such a file (or a simple text file containing the words) into the front-end without ...
4
votes
1answer
363 views

Running a package automatically when it's saved

When developing some new code (eg. a function to analyse something) I usually make a .m and .nb file. The code goes in to .m is then called from the .nb. But sometimes I forget to run the package ...
4
votes
2answers
459 views

Close subgroup of cells and keep them closed

Styles can be used to give your calculation a book-like structure; with chapters, sections and paragraphs. Closing those subgroups of cells you don't want to see is then very powerful to create visual ...
11
votes
2answers
352 views

Memory leak in FE?

A very abridged example of what was originally a major leak ...
10
votes
1answer
401 views

Predictive interface eats my Esc key

After updating to version 9, I found the predict interface very helpful except there is a small problem always annoying me: Consider this: I have a list ...
10
votes
1answer
285 views

How can I change the style of every newly opened notebook?

I'd like to make Mathematica open a new notebook using the Natural Color template (under the Creative category) by default. Is that possible? If so, how?
7
votes
2answers
330 views

Revert FullForm-ed text to prettyprinted

Sometimes strings in a notebook/package file end up garbled due to some unknown/unintentional conversion of the expression/cell/notebook. I could not find a way to revert such unreadable text to its ...
6
votes
1answer
154 views

How to let output and message be print to two separate external files?

How to let output and message be print to two separate external files? Also, I'd like the content print out to have similar look as when it's print inside the notebook, i.e. it should be in ...
4
votes
2answers
235 views

How to work around Column cutting off a pixel row from images?

I have a problem where Column will occasionally cut off a single pixel from the top of images. To reproduce the problem, evaluate this: ...
3
votes
1answer
308 views

Use different kernels for different Notebooks

I know that the command LaunchKernels[] starts up four kernels on my machine: ...
3
votes
1answer
237 views

Autocomplete short symbol names in non-global context

Is it possible in v9 to autocomplete the short symbol names when one is operating in a context other than Global`? I.e. after evaluating the following: ...
10
votes
4answers
299 views

Why do quote marks appear in output when saved with Save Selection As?

Update #2: This behavior has been confirm across platforms and in multiple versions. Therefore: Is this a bug or a feature? Can I disable this "feature" so that copying a selection of Cell contents ...
7
votes
1answer
366 views

Making cells group

After reading rcollyer's post I'm still not able to understand how grouping rules work. Here is a problem I'm facing. What I want is to create a new title, section and subsection styles. I want the ...
5
votes
1answer
230 views

Why does the Front End group backslashes into pairs?

What is \\ for? Help finds nothing on it. An odd number of backslashes greater than one are grouped by two and the last one is displayed with a different color. ...
4
votes
2answers
322 views

How to rotate 3D graphics in ListAnimate … without making a mess?

Manipulate is, of course, wonderful … but there are LOTS of examples that are simply far too computationally intensive to use live real-time animations for. In such ...
4
votes
2answers
831 views

Why isn't autosave enabled by default?

While I've come across several ways to implement/enable autosave (see: Is there a notebook autosave frequency configuration?, Saving my code before cell evaluations: Insurance against front end ...
3
votes
2answers
191 views

Difference between double quotes

I have a notebook and I enter something like PlotLabel->"my label with dynamic number "<>ToString[strange] and I get errors like However, the double ...
3
votes
1answer
187 views

Prevent Mathematica from “romanizing” a string of letters?

When I'm authoring in text style (Alt-7), I'll often include inline math. Whenever I enter two or more consecutive letters (e.g., $ax^2$), Mathematica will automatically "romanize" (or "un-italicize") ...
3
votes
1answer
308 views

How to configure two Mathematica in different places with different settings

For some reasons, I should use two language versions Mathematica. The most reason is I want to see the comparison of Help page(English version and Chinese version) to improve my English, both are ...