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

learn more… | top users | synonyms

3
votes
2answers
438 views

How to create an executable notebook in Mac OS X

All, I am looking for help to create a notebook to be executed via terminal in MAC OSX. The notebook uses the front end. This is what I have so far ...
4
votes
1answer
172 views

Dynamically link cell content in Mathematica?

Is it possible to dynamically link the content of two cells? For example, can I set up a Notebook with two text cells that display the same value, and if the user types in one the other updates, etc.? ...
7
votes
1answer
303 views

How to get full-screen graphics canvas?

Is it possible to create a full-screen graphics without any front end elements like cell brackets and scrollbars? The zero approximation can be ...
5
votes
0answers
171 views

Multiple windows in Mathematica help

I'm new in Mathematica, and would like to know how can I open multiple help windows at the same time. It's this possible? I'm using Mac OS. I know it works for link in the help page with right mouse ...
14
votes
3answers
900 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 ...
2
votes
1answer
195 views

3D plots wrongly displayed when using GraphicsRow in Linux

I get an incorrect vertical offset in 3D plots when using GraphicsRow in Mathematica 9 (Linux - Ubuntu 12.04). When displayed by itself, the plot is fine. Here's an example: ...
25
votes
2answers
563 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 ...
45
votes
2answers
1k views

Is it possible to improve Mathematica's auto-completion feature?

In this answer Brett Champion describes how one can intercept and modify the suggestions used for auto-completion. Question: Is it possible to modify the suggestion for the automatic auto-completion ...
7
votes
0answers
138 views

How can we extend the predictive interface so it can suggest new operations?

Introduction Mathematica 9 has introduced a new predictive interface. For each output, it suggest possible actions the user might want to take. How can this interface be extended so that it will ...
8
votes
2answers
189 views

Save notebook without including Front End version information

How can a notebook be saved without including the front end version? If you open a .nb file, you'll see something like ...
5
votes
1answer
134 views

How can selection of delimiter matches be disabled?

I often preemptively match delimiters. As a simple example, I'll type Import[], then left arrow, then "filename". The problem ...
2
votes
0answers
134 views

How to print preview a selection?

When printing (file->print...) there's the possibility of printing just the current selection. This is useful for printing just a couple of cells, or some chapters. The file menu also has Print ...
3
votes
3answers
328 views

How to insert a link to a generic file, in the middle of a text style cell/paragraph?

It is easy to insert a Hyperlink to a notebook file, or to an internet address, in the middle of a text style cell (Ctrl+Shift+H or menu: Insert->hyperlink). Trying to create a hyperlink to a file ...
3
votes
2answers
159 views

Subscript and Part: What's going on in this example?

Example I came across the following simple example from A Beginner's Guide to Mathematica, by McMahon and Topa, which I believe was written circa version 5.2. (FWIW, I'm using v9.) ...
4
votes
1answer
150 views

Write-protect documentation for self-written Add-on package

My package works fine so far, and now I want to add some documentation. I have put a file in ...
5
votes
0answers
130 views

some Graphics output do not fully render on the screen until an extra click is made into the notebook

Sometimes when using a command such as Grid and looking at the output, some of the actual lines (frame, gridlines) that make up the display will be missing on the ...
3
votes
1answer
90 views

keeping parentheses size the same in Input cells when using 2D math

I like to group the 2 parts of the If statement and others like it by using () to help me be able to still understand what my ...
3
votes
1answer
215 views

Quick way to invert a fraction

Over the years of using Mathematica, I find myself doing something along the lines of rewriting this: $\frac{[A^-_F]}{[A^-_U] + \frac{[H^+][A^-_U]}{\kappa_1}}$ as this: $\frac{[A^-_U] + ...
5
votes
0answers
115 views

Embed a Microsoft RichEdit 8 control in a Mathematica notebook using .NETLink?

Does anyone know whether or not it's possible to embed a RichEdit 8 control within a Mathematica Notebook using .NETLink? The goal here would be able to both view and edit mathematical text typeset ...
5
votes
0answers
129 views

What are \[InvisiblePrefixScriptBase] and \[InvisiblePostfixScriptBase]?

In the non-printing characters documentation, I see two named characters that are largely undocumented: \[InvisiblePrefixScriptBase] and ...
1
vote
0answers
365 views

How to set default save directory for notebooks?

Based on certain previous questions, I figured that if my NotebookBrowseDirectory looked like this ...
12
votes
1answer
169 views

How to get an adaptive frame which fits auto-wrapped text? [duplicate]

When using the built-in Debugger, the breakpoints and the current step will be framed looks like this: My favorite part is, those frames are adaptive to the text when window width changing makes it ...
14
votes
2answers
353 views

Auto-completion doesn't work as my expectation in version 9.0

When I input the following line in version 8, and press Ctrl+K after Re, I can get a drop-down auto-completion list including ...
8
votes
3answers
215 views

Quickly display a color graphically

When manipulating colors, the output is shown as a textual expression like Hue[1/5], RGBColor[2/3, 1, 1/3], ...
24
votes
2answers
608 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 ...
8
votes
1answer
278 views

Changing default ImageSize in the frontend?

I would like graphs to appear somewhat larger in my notebooks (running v8.0.4 on OSX 10.8.2). Naturally I can specify ImageSize in each individual plot, or drag ...
7
votes
1answer
210 views

How can I add arbitrary code into DefaultKeyTranslations.tr?

The solution to this question on how to get latex code for a text cell (which Mathematica doesn't do correctly) was formulated as a palette but I need it as a keyboard shortcut. How can I add an ...
2
votes
1answer
194 views

Ubuntu global menu bar integration?

Is there a way to integrate the Mathematica menu bar into the Ubuntu Unity global menu bar at the top of the screen? (I'm not looking to run mini-applications.) Thanks!
7
votes
2answers
111 views

Appearance in Checkbox does not work

I'm experiencing strange behavior in Checkbox with Appearance: ...
1
vote
1answer
146 views

How can I create some shorthand notation for a custom control?

Per this question, I have created a custom graphical control object which evaluates to a list of values. I would like to be able to create such an object quickly, rather than typing some command, ...
6
votes
2answers
129 views

Prevent front-end from reformatting long fractions while editing

I am editing an expression containing wide fractions (typeset with fraction boxes): But if, while editing the equation, the fraction exceeds some threshold (seems to be approximately the window ...
3
votes
1answer
179 views

generating pdf using UseFrontEnd

I run mathematica on a remote server and run it in batch mode using /math -noprompt -script 'scriptname.m' & Now, I use ssh -X to connect to the server. The server is linux based and my computer ...
4
votes
1answer
245 views

Pattern matching in subscripted variables

I am trying to use subscripted variables as symbols and provide assumptions elegantly for them, e.g. in order to simplify logs, I'd like to have ...
6
votes
2answers
417 views

How can I convert a formatted text cell to latex code?

I have a formatted text cell, I want to export it as latex. How can I do that? Since copy as LaTeX doesn't work, I thought of pasting it into a string and exporting, but it's a no go: ...
9
votes
3answers
278 views

Typeset unbalanced brackets

In LaTeX, you can typeset expressions containing unbalanced brackets, by balancing them with an invisible delimiter \left. or ...
1
vote
3answers
103 views

Timing display of Graphics (Front End timing)

I want to know how much wall-time it takes to display a Graphics For example this one: ...
7
votes
3answers
243 views

Keep palette visible when Mathematica application loses focus

When the Mathematica application loses focus, palette windows disappear (normal notebooks and dialogs (CreateDialog) stay). This is usually convenient because the ...
5
votes
2answers
183 views

Is it possible to define more than 9 shortcuts for notebook cell styles?

You can define shortcuts for notebook cell styles in the stylesheet editor, by adding MenuCommandKey->"7", etc. to the style definition. That is, you can define ...
12
votes
2answers
223 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?
7
votes
1answer
113 views

How to grab output from evaluating input cells in a generated notebook

The notebook expression resulting from ... ...
6
votes
3answers
381 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 ...
12
votes
4answers
929 views

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 ...
6
votes
2answers
229 views

Select Cells to End of Notebook

I'd like to create a keyboard shortcut that will allow me to select all of the cells from the current cell until the end of the notebook, similar to how ShiftCtrlEnd functions when editing text in ...
0
votes
0answers
124 views

How to set Math text size & line spacing [duplicate]

I have chosen different font for text. Unfortunately this font is larger than the standard Times font. So all math symbols (e.g. greek) are now a little too small. If I could just set the FontSize for ...
4
votes
1answer
348 views

Emulating a button push or a mouse click with Mathematica code

I need to perform a long action with a button. I tried setting the DynamicEvaluationTimeout, but it seems it doesn't work for me. So I want to try using several ...
3
votes
1answer
267 views

Opening a notebook from command line in an existing front end instance

I am using Linux, and I would like to be able to programmatically open notebooks in a running Mathematica instance from the command line. Currently, doing something like ...
11
votes
1answer
288 views

Better Autocompelete for the Front-End

I wonder if it is possible to improve the front-end's autocomplete capability. Compared with some other more sophisticated editors/IDEs, such as eclipse, Mathematica's front-end does not provide a ...
4
votes
1answer
62 views

How can I kill one evaluator from another?

I have a kernel named A in one notebook and other notebook with kernel B, how can I kill B from A?
8
votes
1answer
225 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 ...
15
votes
3answers
332 views

How can I get the unchanged Box form of an arbitrary expression?

One may observe that MakeBoxes does not give the actual Box form of various expressions: MakeBoxes[{1*^4, 000123, a*b c}] ...