Questions related to the Mathematica front-end (graphical user interface).
4
votes
0answers
69 views
How to convert a notebook cell to a string retaining all formatting, colorization of identifiers etc?
I have an opened Mathematica notebook containing several cells. Suppose, I am interested in one of them -- it may contain a complete or incomplete expression (e.g. with syntax errors, highlighted ...
2
votes
2answers
115 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 ...
1
vote
1answer
103 views
Why isn't autosave enabled by default? [closed]
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 ...
6
votes
3answers
115 views
How to add rows to a Grid in front end?
I created a grid g1 with Grid[] and then a separate grid g2. ...
2
votes
2answers
83 views
Character display color
I'm looking to cause the front end to display individual characters in a specific color, just in general, as a default sort of thing. For instance, the character "1" would always display as a red 1, ...
4
votes
2answers
57 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 ...
5
votes
1answer
79 views
Using NotebookDirectory in batch-mode
I am running Mathematica via the terminal (Linux) and my .m-script contains the command:
...
6
votes
1answer
128 views
Combine InputAlias with InputString to parse expressions from a string
My knowledge of low-level notebook programming is very limited so I would be very grateful for any input regarding the following issue:
I would like to define an input alias (via ...
2
votes
1answer
164 views
Emulate Powerpoint behavior: Show additional cell content with each click
Is it possible to emulate powerpoint animation behavior during a presentation with Mathematica?
Considering a notebook with cell of numbered items or even several cells, is it possible to display a ...
3
votes
1answer
60 views
Question about usage of Style as Dynamic object
I saw a Dynamic snippet in this answer, which wrote
...
3
votes
1answer
65 views
undisputed FrontEndTokenExecute
Thanks to that great topic, I've found FrontEndToken i was looking for:
"DeleteGeneratedCells". Well it is also written in ...
9
votes
1answer
105 views
Cell brackets on left side?
Is it possible to have the cell brackets on the left? I looked through the options and couldn't find anything, but maybe it's some kind of esoteric style setting or something.
The reason I'm looking ...
3
votes
1answer
34 views
Combination of CellPrint and PrintTemporary, or DisplayForm for Cells
I'm programmatically generating some formatted output that generates a cell in the form of a Cell[] expression. For instance, the output might be
...
1
vote
0answers
63 views
How to SystemOpen Mathematica only one time?
Here is my prevous question
When I'm trying solve that question:Reset-$Language— each time open a Mathematica.
Because If I open one English-Version-Mathematica, ...
1
vote
0answers
75 views
How to configure two Mathematica Language Version in two places with different setting
I've installed two Mathematica 9 with different language version.
One in Disk D English Version
One in Disk E ChineseSiplified Version
How to configure two different settings ?
because they ...
3
votes
1answer
49 views
Use Initialization Cells to open a CellGroup
I would like to use "Evaluate Initialization Cells" to open a CellGroup in a notebook. However, the following code doesn't work if placed in an initialization cell:
...
7
votes
3answers
152 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 ...
4
votes
0answers
64 views
ShowSelection color
The color of a selection is controlled by the operating system. E.g., enter the following code in separate cells.
...
8
votes
1answer
103 views
Is it possible to make v9 ignore case when completing names?
In v8, I could type, say, fulls or texf to get FullSimplify or ...
1
vote
0answers
58 views
Frontend dims out, then freezes while writing output (jpeg)
The frontend dims out and then freezes while Mathematica (9.0.1) exports plots (in jpeg). If I minimize the frontend window and then I bring it back to the front, the window appears grey with not text ...
5
votes
1answer
95 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, ...
12
votes
1answer
117 views
Predictive code completion and custom functions in contexts
Suppose I work for organisation PQR, and have been developing a suite of packages, PQRUtilities, PQRVisualization etc, all of ...
2
votes
1answer
66 views
Use different kernels for different Notebooks
I know that the command LaunchKernels[] starts up four kernels on my machine:
...
1
vote
1answer
59 views
Autocomplete not working on Mma9 on Linux
I started using Mathematica 9 on Ubuntu 12.10 and, sometimes, autocomplete doesn't work. The suggestions window shows up for just a fraction of second, and quickly disappears.
Do you have any idea on ...
1
vote
0answers
70 views
Is there a keyboard shortcut for Centered Math Cell?
I've been typesetting in mathematica and would like to know if it is possible to use a keyboard shortcut to place a centered math cell or equation symbol aligned math cell in my document without ...
3
votes
0answers
129 views
Cannot save file
Hello I have a problem in saving files in Mathematica. I can't save not only notebooks but also figures. When I choose to save the notebook it open a window that says:
Mathematica could not find ...
5
votes
1answer
78 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 ...
8
votes
0answers
103 views
Help bogged down at first query
When I open help at the first time in a mathematica session and I submit a query it always get bogged down for many seconds until a message appears as in the picture. Then I select continue waiting, I ...
8
votes
2answers
145 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 ...
5
votes
3answers
196 views
Storing data in the Notebook in readable form
The common problem in my theretical work is a need to import some experimental data to work with. This means that my notebook depends on some external files which makes it difficult to share it with ...
3
votes
3answers
103 views
How to create a button that colors a selected piece of text in a cell?
I use Mathematica 9.0.1 and I want change the color of a selection in a text cell using a button. But when I use this code it changes the color of the entire cell.
...
18
votes
1answer
178 views
What's the internal command for entering a fraction?
I'm looking for the FrontEnd`Foo[...]-like command that's triggered when pressing Ctrl + /.
Are there any discoverability ...
1
vote
2answers
127 views
Aligning Text Using Spaces While Maintaining Pretty Print
To help illustrate my problem, consider the following cell:
First thing to notice is that there is syntax highlighting. Second, I can pretty print mathematics; that is, I see $x^2$ instead of ...
2
votes
1answer
46 views
Change “Format type of new input cells” to InputForm
In Preferences -> Evaluation there is a menu to change "Format type of new input cells" and the only options available are: StandardForm, TraditionalForm, and Raw InputForm.
Is it possible to set ...
3
votes
1answer
107 views
Can one optimize AutomaticNumbering feature?
If one wants to use the automatic numbering feature of Mathematica, he has to make tags for cells of the type he wants to be referenced to. Then, as soon as he needs to make a reference to the tagged ...
0
votes
0answers
57 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:
...
2
votes
0answers
34 views
Does an equivalent of marks in vim exist for navigating notebooks quickly? [duplicate]
Is it possible in the Mathematica front-end to associate a keyboard shortcut with a cursor location in the notebook (kind of like marks in vim) so that one can return to them quickly later?
(Just ...
2
votes
1answer
91 views
Looking for documentation on code editor's color/style highlighting
Where can I find reference documentation (as opposed to, e.g., tutorials, etc.) on the meanings of the various color/style highlightings that Mathematica automatically assigns to code as one types it?
...
2
votes
1answer
66 views
Is there a convenient way to localize all variables in a new notebook? [duplicate]
I often digress to test some others’ code when working on my own problems. Usually, I have to check if there are conflict variables. Of course, it is not a wise way. By contrast, all the variables in ...
4
votes
1answer
57 views
How can I get the style of selected cells?
How can I get the style such as Input, Text, Code, etc., of a selected cell? If a group of cells is selected, how can I get styles of all the cells in the group?
9
votes
2answers
134 views
Can anyone explain this strange behavior of InputForm?
In Mathematica 9.0.0, when to display the input form of two numbers, I come across maybe a puny problem. In order to focus on the problem, I will put up a simplified version.
...
1
vote
0answers
142 views
Manipulate (linux version of Mathematica)
I'm runnning Mathematica 9 on Ubuntu linux 11.10. After installing CDF player I still have problem (most of time) with Manipulate. Only way I'm able to change value ...
2
votes
0answers
80 views
How to change Mathematica cursor globally?
I usually use my OS with negative colors (to keep my eyes calm...). I had seen a function called MouseAppearence that changes the cursor. I would like configure ...
4
votes
1answer
143 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 ...
2
votes
0answers
77 views
Why FrontEnd`KernelExecute doesn't work in KeyEventTranslations.tr?
Which commands can you put in KeyEventTranslations.tr ?
There is an extensive list of FrontEndTokens, but what else can you use? Why something like this doesn't ...
8
votes
1answer
125 views
How can I add a background to a stylesheet?
In version 9 we can set the background to an image, however I'd like to save this into a stylesheet that can be installed.
2
votes
2answers
112 views
Copy last/second last (etc.) input from history into current cell
I like to use terminals (e.g. gnome-terminal) where you can use the up key to copy the last command into the current input 'field'. For example, to repeat the last ...
4
votes
1answer
67 views
How to prevent output truncation when importing large Graphics?
The Evaluation Preferences in Mathematica specify a maximum output size of 1048576 Bytes before truncation occurs. That makes a ...
7
votes
2answers
134 views
How can I style a cell frame with rounded corners?
I'd like use rounded rectangles for my cell style, but I'm not sure if this is possible. Perhaps it can be faked with an image as a background for it?
1
vote
0answers
90 views
How to activate the collapsed template list on V9
Is there way to activate the collapsed template list?
By "collapsed template list", I mean the little arrow which appears when ones types the name of an built-in function, as shown on this video.
...








