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

learn more… | top users | synonyms

6
votes
1answer
76 views

Why does NotebookDelete fail on cells with Copyable set to False? Bug?

Bug introduced in 9.0 or earlier and fixed in 10.3 Consider this: ...
10
votes
0answers
154 views

Autocomplete of non-global functions

In Mathematica 9 and 10 they added autocompletion. Out of the box this works great, but when I set the CellContext to "Notebook" ...
24
votes
1answer
461 views

How to export a Mathematica notebook into Markdown?

Is there a way to export a Mathematica notebook into Markdown? I'm sure it's possible to implement rules for converting each Mathematica cell subexpression into Markdown, but I'm also sure that I ...
24
votes
2answers
1k views

How do I extract the contents of a selected cell as plain text?

My aim is to extract the contents of an Input cells as plain text. Ideally I would like to be able to select one or more Input cells and press a button which would then extract the text from these ...
4
votes
1answer
173 views

How to hide inline Cells

By giving a cell the simple option CellOpen -> False, it can be hidden from view. But for inline cells (cell within a cell) this does not work. An option ...
4
votes
0answers
79 views

“ClosingActions” option for FrontEnd`AttachCell [duplicate]

I'm looking to find the possible values for the ClosingActions options FrontEndAttachCell. I have found ...
28
votes
3answers
378 views

How to create a dynamic expanding DisplayForm's styled like the ones in v10?

The display forms for objects like ClassifierFunction are nice clickable boxes I like this, and now I'm trying to create my a custom version of this for my ...
15
votes
1answer
275 views

Why is SparseArray and InterpolationFunction always grayed out?

In the front end of Mathematica version 10, a new feature was implemented which dims output cells that no longer correspond to its input cells. So when you type ...
2
votes
1answer
66 views

How do I make those nice summary boxes like Dispatch and SparseArray do? [duplicate]

Dispatch and SparseArray have nice output forms that summarise their contents: The contents even manage to be retained fully ...
9
votes
1answer
137 views

How do I turn off the little display icons for `SparseArray`, `InterpolatingFunction` and so on? [duplicate]

As noted elsewhere, in Mathematica 10.x, many functions that return "opaque" objects display them as cute little icons: ...
15
votes
1answer
291 views

Are formal characters like \[FormalA] to be used differently than other symbols?

I noticed that Mathematica has a set of special 'Formal' characters such as \[FormalA], \[FormalB] , etc.. In the front end, it ...
9
votes
3answers
1k views

Where can I find a dark stylesheet for mathematica?

The default white is very tiring for the eye after some hours.
13
votes
1answer
723 views

High Contrast Syntax-Highlighting

I have a neurological disorder which causes me to have migraines if I look at a white computer screen. To combat this, I have put the following at the top of all of my Mathematica notebooks: ...
2
votes
0answers
74 views

How can I add shortcut to StyleBox [duplicate]

How can I add shortcut to StyleBox?. We can Ctrl+B to overstrike font. i.e. strong or **strike**. Can I add one new shortcut ...
3
votes
2answers
329 views

Create custom shortcut to change font color

Just wondering if I can create a custom shortcut key to change the font color of the notebook text. I've created a custom shortcut (in dkyeventtransactions.tr) to bring up the font color dialog, as ...
1
vote
0answers
46 views

Is it possible to maintain the cursor position within a cell following evaluation?

It is possible to evaluate a cell and for the cursor to remain in its position within the code in the current cell? For example, when I evaluate: ...
5
votes
1answer
108 views

How to set different background, input and output colors

I want to create a notebook where the background is one color, the input cells are another color, and the output cells are white. I have tried messing around with Option Inspector and creating a ...
9
votes
1answer
163 views

Evaluating a notebook programmatically with -ne

I am running Mathematica 10.2 on an Ubuntu workstation. I would like to be able to evaluate a notebook through the command line, and save its final state so that I can launch evaluation remotely ...
5
votes
1answer
72 views

Toggle close all input cells in a notebook, keeping output cells open

For presentations, can all input cells in a notebook be toggled open/closed, while keeping output cells open? Either through menu or palette. Probably would not work well programmatically. Related ...
6
votes
0answers
58 views

Front end hasn't crashed yet, but is unresponsive. Is there any way to get my unsaved definitions?

The front-end isn't responding, the only thing I can do is force quit it. Essentially, I can select any window (I have a few open), and I can move the windows, but I can't scroll or anything. There ...
5
votes
2answers
274 views

How to use FontWeight options in Mathematica 10.x

Bug introduced in OSX v10.0.0 and persisting through v10.3.0 I‘m using stylesheets to create customized styles for course materials. That includes using fonts like Gill Sans, and Helvetica (Neue). ...
18
votes
1answer
296 views

Color degrades when using Copy As Bitmap

I have discovered a problem that affects my use of Mathematica. When I use the menu command Edit > Copy As > Bitmap the colors in the copy are subtly degraded. To make this more apparent I copied ...
2
votes
0answers
62 views

Long delays before showing the result in a notebook

I'm new to Mathematica. I have Version 10.3.0 running under Windows 10, 64-bit. If I open the 10.3.0 kernel and type 2 + 2 Shift Return I get an immediate answer. If I open the main program and ...
12
votes
0answers
87 views

Control Front End in “mathlink” mode

Note: This question was already posted in the Wolfram community. In a terminal math session, we can start a front end (FE) easily by launching it though ...
6
votes
1answer
173 views

Problems creating CDF via .NET DLL

I have read several posts at SE and googled a lot, but I still have difficulties to create a CDF via .NET. My first try was the Wolfram example MathKernelApp.exe ...
63
votes
3answers
2k views

Syntax highlighting for your own functions

Mathematica has a useful feature that for functions and special constructs getting passed local variables (for example Minimize or ...
4
votes
0answers
56 views

Bug: quote signs with parentheses followed by superscripts in same cell

(x + 1)^2 where ^2 should be a superscript that I do not know how to display here. If you type in a pair of quote signs ...
8
votes
1answer
81 views

On an existing notebook, how to transform all “double brackets” into “DoubleBracket”

Sometimes, having all double brackets [[...]] transformed into \\[LeftDoubleBracket] ... \\[RightDoubleBracket] can really ...
6
votes
2answers
189 views

How can you resize all the images in a notebook section?

I've pasted a large number of photos and they are too big which makes scrolling hard. Is there a way to automatically have Mathematica size them to 10% or something reasonable without have to click on ...
5
votes
0answers
46 views

Triggering events based on choices made inside of system dialogs (e.g. window close)

I'm trying to arrange for Mathematica to perform a certain action every time a notebook is saved or closed (with or without saving). The obvious way to do this would be through event handling. So, ...
22
votes
1answer
3k views

Why are some function names red?

I need to evaluate Needs["GraphUtilities`"] before I can use functions such as GraphPath[]. When I do so, some functions get ...
0
votes
0answers
35 views

What causes the insertion point to move independently in a notebook?

I have a notebook with mostly procedural code (not the best) I am translating from FORTRAN 77. When attempting to add more code, the "insertion point" moves independently. Once this happens, I can ...
9
votes
1answer
458 views

How to restrict the mouse cursor to stay within a box?

I'm trying to use Mathematica to write small games, and I find that it would help to restrict the player's mouse into the game window (just like other games do). Is there any way to achieve this? ...
2
votes
1answer
371 views

Borked Find Window in OS X

I've been having this happen to me on a daily basis with the Find & Replace window on OS X: No text can be typed into the red regions, so all find & replace functionality is gone when this ...
13
votes
1answer
162 views
9
votes
2answers
219 views

How to assemble and disassemble a function into steps

I've watched many programmers (both novice and expert) write functions in Mathematica and have observed a common behavioral pattern. This pattern has many elements that would be automated and thus ...
15
votes
2answers
2k views

Failure to export graphics by right-click when Notebook magnification is changed

Bug introduced in 9.0.1 or earlier and persisting through 10.3.0 or later When I try to export graphics as PNG, JPG and other rasterized formats using the right-click and choosing ...
2
votes
1answer
115 views

How to set up margins in Mathematica to write a paper

I'm trying to do a problem write-up for my quantum mechanics class and would like use Mathematica, since I'm going to be using matrix mechanics, and it seems like the best way to write a lot of ...
11
votes
2answers
541 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 ...
0
votes
1answer
45 views

How to set zoom and screen environment from GenerateDocument?

GenerateDocument does not have any options for settings on the notebook it creates. How do I generate a document with ...
0
votes
1answer
90 views

Can one upgrade versions directly from Mathematica front end?

The copy of Mathematica I use I get through work. Upgrading this copy is always I time-consuming, pointless chore. I think all of it could be automated. Which makes me wonder: Is there any way to ...
3
votes
1answer
64 views

Unique frontend identifier

I'm hoping to find (or assign at startup) an identifier code that corresponds to the frontend session that's running. It should behave like \$SessionID, except ...
14
votes
1answer
191 views

How do I create annotations for functions?

In 10.3, Mathematica starts captioning symbol-names into foreign languages if your Interface preferences are set to have Mathematica in a foreign language. I poked around the ...
2
votes
0answers
95 views

Mathematica's GUI menus look bad on Linux

I installed Mathemaica on Arch Linux several days ago. Everything is well, except for the fact that menus in the GUI look real bad. I have things set up in a way that Qt apps (such as Mathematica) ...
17
votes
0answers
176 views

Front ends gone wild with named slots

Bug introduced in version 10, persisting through 10.3 Assume the following simple expression {#"Test"}& Now go in front of the ...
15
votes
0answers
332 views

Colored marks appearing in notebook input text?

Bug introduced in 10, persisting through 10.2 What is the causing these colored marks to appear in my Mathematica notebook? I'm particularly annoyed with the black ovals that occasionally obscure ...
13
votes
0answers
91 views

Floating highlighting bug [duplicate]

Bug introduced in 10.0 and not fixed up to 10.2 At some random point in time the highlighting does not disappear any more. By highlighting I mean transparent boxes appearing for find feature ...
1
vote
0answers
68 views

notebooks not opening in mathematica 10 (still, 15 months later)

Many of my students have Mathematica notebooks that they cannot open. I think that it's for the same reason identified in the other post with this title from July 2014. If you open a file, DON'T SAVE ...
5
votes
1answer
76 views

Why NotebookDynamicExpression freezes Mathematica on this particular application?

Why does this simple expression freezes Mathematica? (version 10.3.0, Windows 7 64) ...
34
votes
2answers
2k views

Mathematica 10 Notebook Fonts Look Bad

Bug introduced in 10.0.0 and persisting through 10.3.0 or later I've upgraded my home installation of Mathematica from version 9 to 10 today on a Windows 8.1 machine, and I'm getting a weird font ...