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

learn more… | top users | synonyms

7
votes
2answers
239 views

automatic coloring of function names

Usually, when I define a function and then use it later, the function name is colored in black. But every once in a while, the function color is blue, both in its definition and when I use it later. ...
7
votes
3answers
522 views

How to get rid of Panel margins?

I have a feeling that there is something wrong in general with Mathematica's way of dealing with margins and spaces among/around objects in Graphics, ...
7
votes
2answers
369 views

Detecting double click events

Is there a way to detect double click events? I did not find anything on the doc page of EventHandler. Use case: I want to re-implement the ...
7
votes
1answer
257 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 ...
7
votes
1answer
1k views

How to add more levels to Outline notebooks

The Outline stylesheet only seems to cover 6 levels of depth. Is there any way to increase that? Here's an example. Hitting tab on the last level just indents its content, but doesn't add another ...
7
votes
1answer
153 views

Inlining calculations in a notebook

Context In $\LaTeX$, I can write something like: Thus, we have $x = \sqrt{2}$, ... the $ ... $, as opposed to $$ ... $$, inline the LaTeX symbols. Now, with ...
7
votes
1answer
251 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 ...
7
votes
1answer
135 views

Understanding FullForm in front end

I want to understand the following effect better (In Mathematica 9) .. Or, maybe, is it a bug? Running the following line FullForm[Subscript[α,β_]] gives as ...
7
votes
2answers
204 views

Using mouse back/forward buttons in Mathematica's help system

I have a generic mouse with back/forward buttons. Those buttons are recognized by the system - I can use xev to see that they generate events for buttons number 8 ...
7
votes
1answer
183 views

How to add an entirely new menu

Is it possible to add an entirely new menu, say menu "CustomApp" on the fly? For example a CustomApp package could add its own menu "CustomApp" with submenus, ect, once Needed. Former examples I ...
7
votes
1answer
125 views

Bug in handling backslashed Cyrillic symbols in v.10.0.0?

Consider: "\бвгд" // FullForm "\\бвгд" // FullForm In v.8.0.4 I get this: ...
7
votes
1answer
181 views

ScheduledTask with scoped variables. Working with timed evaluation

I guess I have to try harder and focus more but timed evaluation always frustrates me. I will show the issue on simple example of delayed trigger. ...
7
votes
3answers
259 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 ...
7
votes
1answer
100 views

Refreshing the Palettes menu

How can the contents of the Palettes menu be refreshed (preferably programmatically) without restarting the Front End? When droppping a new palette notebook into ...
7
votes
1answer
241 views

Mathematica 10 crashes on copy/paste

Mathematica 10 crashes in the following (simple) situation: FormulaLookup["gas"] This command will produce a long list of possible formulas. Then I type the ...
7
votes
1answer
134 views

After modifying expression, new result doesn't replace old one

After I modify and re-evaluate an expression, the new result doesn't replace the old one. Rather, what happens is that the old result gets pushed down and Mathematica displays the current result at ...
7
votes
3answers
271 views

Making large tables easy to read with frozen headings and scrollbars [duplicate]

I would like to represent a table containing a large amount of information in such a way that I can (a) use scrollbars and (b) have table headings that don't scroll off the screen [just like the Free ...
7
votes
1answer
213 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 ...
7
votes
1answer
282 views

How make AddMenuCommands work in an init.m

I want to add some items to the Mathematica 8.0.4 Help menu (under Mac OS X). In [$UserBaseDirectory]/Autoload/FrontEnd/init.m I have the following cell: ...
7
votes
2answers
271 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 ...
7
votes
1answer
124 views

What should I call the messages that appear when the mouse moves over failed graphics output?

I attempted to evaluate the following Plot[x^2, {x, 1, 2}, PlotStyle -> {RGBColor[a]}] which, of course, failed. After the failure, putting my mouse over the ...
7
votes
2answers
120 views

Appearance in Checkbox does not work

I'm experiencing strange behavior in Checkbox with Appearance: ...
7
votes
2answers
247 views

Creating a TeXForm/TraditionalForm/etcForm - like function

How could we go about creating a function that behaves like those? After a while thinking, my best try is with CellPrint printing an ...
7
votes
1answer
333 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 ...
7
votes
1answer
115 views

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

The notebook expression resulting from ... ...
7
votes
1answer
176 views

FontSubstitutions: how do they work?

I'm puzzled by FontSubstitutions. The help says this: FontSubstitutions is an option for Style and Cell that gives a list of substitutions to try for font ...
7
votes
1answer
157 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.: ...
7
votes
1answer
235 views

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

In the non-printing characters documentation, I see two named characters that are largely undocumented: \[InvisiblePrefixScriptBase] and ...
7
votes
1answer
573 views

Creating and editing new stylesheets

I'm trying to create a stylesheet, but the process has become painful. I'm sure that this has to do something with resetting something in Mathematica everytime I make changes to the stylesheet. To ...
7
votes
0answers
277 views

Can I modify line-break behavior of inline cells?

When I insert an InlineCell into a TextCell that is too long for the whole InlineCell to fit ...
7
votes
0answers
149 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 ...
7
votes
0answers
369 views

How can I export aligned equations to $\LaTeX$?

Using Palettes -> Writing Assistant -> Math Cells, you can enter aligned equations such as: ...
6
votes
3answers
155 views

Use Slider2D to add data points to a list

This bit of code sets up a list with the first entry already in it -- {{1,1}} ...
6
votes
4answers
163 views

How to select only NotebookObjects that are referring to ordinary notebooks? (not palettes etc.)

There is of course function Notebooks[] But, unfortunatelly it hasn't got useful options in this context. My question is how to pick ...
6
votes
2answers
162 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 ...
6
votes
1answer
193 views

undisputed FrontEndTokenExecute

Thanks to this great topic, I've found the FrontEndToken that I was looking for: "DeleteGeneratedCells" (well, it is also ...
6
votes
2answers
431 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: ...
6
votes
2answers
186 views

Can individual locators in LocatorPane be temporarily disabled?

This follows up on another question about the sensitivity of Locators in a a LocatorPane. I would like to be able to enable/disable individual locators in a LocatorPane. In the simplified version of ...
6
votes
1answer
96 views

How to suppress automatically generated header in packages?

At the top of the .m file which is automatically generated from initialization cells in a notebook there appears a header: ...
6
votes
1answer
160 views

Unable to save changes in Option Inspector from one session to another for the Documentation Center

I wanted to change the global option "WindowsSize" to the "large" value using the Option Inspector. It works well for the current session. But then I realize the "Apply" button was greyed and not ...
6
votes
3answers
167 views

How to add rows to a Grid in front end?

I created a grid g1 with Grid[] and then a separate grid g2. ...
6
votes
2answers
299 views

Using NotebookDirectory in batch-mode

I am running Mathematica via the terminal (Linux) and my .m-script contains the command: ...
6
votes
1answer
175 views

On Reverting Code that Mma Switches to Raw Input Form Back to Standard Form

I experienced a similar issue to what is described in this post while editing formatted usage messages (that contained italics) in the declaration section of a package that I'm developing in the ...
6
votes
2answers
241 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 ...
6
votes
2answers
179 views

How to access off-cell mouse position inside an EventHandler?

Consider the following example. First, I print the dynamically updated value of the actual position of the mouse, then I print pt, which is the same but is only ...
6
votes
1answer
139 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 ...
6
votes
1answer
159 views

How to edit a HYPERLINK once created inside a notebook?

When a hyperlink is created in a notebook, there does not seem to be an easy way to actually edit the hyperlink (maybe to correct the URL). To make some text HYPERLINK, one selects the text using the ...
6
votes
1answer
419 views

How to execute kernel command from Front End?

Documentation for Yuri E. Kandrashkin's OptionsExplorer package says to add the following menu commands in MenuSetup.tr: ...
6
votes
1answer
299 views

Accessing data on local machine from remote kernel

I have a remote kernel on a server that I would like to use to process some data. The connection works, i.e, I'm able to use the local front end and the remote kernel. However, I cannot figure out how ...
6
votes
1answer
124 views

Keyboard shortcut for moving to last edit location/cell

When you have long notebook with hundreds of cells, you sometimes need to scroll/jump manually to your last edited cell. I dind't find any shortcut for doing that. Any ideas?