Questions related to the Mathematica front-end (graphical user interface).
7
votes
2answers
145 views
Difference in integral character heights
Above is an example of what happens. It seems that the first integral is longer than the second because the y-character is longer than the x-character as this doesn't happen with other ...
7
votes
2answers
218 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:
...
7
votes
1answer
276 views
Enhanced “Complete Selection” (dynamic autocomplete) for Text input?
The autocomplete ("Complete Selection") feature Ctrl-K (or F2 on Windows) works fine for functions and code input.
Is there a way to enhance it for text input?
Today’s standard (see e.g. OpenOffice ...
7
votes
1answer
122 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
2answers
153 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
1answer
133 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
200 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
2answers
158 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
156 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
433 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
82 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
2answers
317 views
How to Enable Syntax Coloring of Pattern Match Variable Only (i.e. Without Coloring any Associated Pattern)?
Syntax coloring for the following function definition
foo[x_List] := ...
will color green (and italicize by default) the argument name ...
7
votes
2answers
188 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
3answers
133 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
187 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
2answers
94 views
Appearance in Checkbox does not work
I'm experiencing strange behavior in Checkbox with Appearance:
...
7
votes
1answer
96 views
How to grab output from evaluating input cells in a generated notebook
The notebook expression resulting from ...
...
7
votes
1answer
169 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 ...
7
votes
1answer
206 views
How to suppress undesirable kerning rules in math inline cells?
Update: (11/29/2012) Looks like Mathematica 9 has the same behavior.
The following graphic shows how Mathematica kerns italic characters in an inline math formula cell (first row) where an ...
7
votes
1answer
130 views
Gestures for forward/backward in help browser (particularly on a Mac)
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?
7
votes
2answers
137 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
...
7
votes
1answer
412 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
217 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.
...
7
votes
0answers
106 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
89 views
How to get an adaptive frame which fits auto-wrapped text?
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 ...
7
votes
0answers
306 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
103 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
2answers
161 views
Prevent text from wrapping in a notebook
By default in the Notebook interface the text wraps.
Is it possible to prevent this wrapping?
6
votes
5answers
265 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
2answers
196 views
How do I view initialization (or other invisible) cells in a notebook?
I am looking at someone else's notebook, and when I go to evaluate it, it asks whether I want to evaluate the initialization cells. I would like to look at them first, but "I do not see them here nor ...
6
votes
2answers
149 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. ...
6
votes
3answers
299 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, ...
6
votes
2answers
237 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 ...
6
votes
1answer
259 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 ...
6
votes
2answers
136 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
2answers
286 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
1answer
264 views
Monospaced fonts are not monospaced
I'm using Linux-x86-64 as operating system. Can someone explain this behaviour and maybe give a hint how to resolve it? Here are two lines of exact the same number of letters of a monospaced font:
...
6
votes
2answers
285 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 ...
6
votes
3answers
172 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 ...
6
votes
2answers
148 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
155 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
98 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
110 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
347 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
2answers
99 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 ...
6
votes
1answer
377 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 ...
6
votes
2answers
183 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 ...
6
votes
1answer
189 views
Mathematica Opens Each Session With Beep
First off, I am using Mathematica 8.0 and Mac OS X 10.7.4. Recently, when starting a new Mathematica session, I am confronted with an error beep and message window stating "The file you tried to open ...
6
votes
1answer
110 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.:
...
6
votes
1answer
131 views
Changing the MouseAppearance on the entire notebook front end
Using MouseAppearance one can change the cursor image when passing over an expression.
Is it possible to change the cursor image for the entire notebook front end ...



