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

learn more… | top users | synonyms

37
votes
4answers
2k views

Saving a notebook as PDF, preserving syntax highlighting

Currently, one may save notebooks as PDFs from the menu by Save As... and then selecting PDF (on a Mac, I imagine it is similar on other OSs). However, the ...
8
votes
1answer
133 views

Programming scripts to create and modify stylesheets: problems with contexts

I am trying to emulate the shift and shift+tab feature in the Outline.nb stylesheet that comes with Mathematica. I added the following code to a private ...
4
votes
1answer
36 views

How can I make a resizeable input field

Web pages typically have input areas that can be resized by the user. How can I make something like that in Mathematica?
14
votes
3answers
271 views

How does $CellContext` work?

The only official info about $CellContext` I was able to find is: placeholder for the context of a symbol inside Dynamic ...
7
votes
1answer
111 views

Ways to obtain a BoxObject

Is there any way to get a BoxObject, except with EvaluationBox or ParentBox? So usually one ...
11
votes
2answers
468 views

Is there a way to programmatically set global preferences?

Can I set global preferences that are accessible via "Edit"->"Preferences" programmatically from within a notebook? As learned from this question, turning off anti-aliasing can make a huge difference ...
5
votes
3answers
260 views

preventing TraditionalForm from getting “squished”

TraditionalForm[] does a great job generally speaking, with complex equations like the following, ...
1
vote
0answers
147 views

What's the name of the default font used in Mathematica 10?

I really like the default font in Mathematica 10. So I would like to use it for my other applications. I tried to search for the name of the font, only found that a lot of people is talking on how to ...
9
votes
2answers
169 views

Dynamic cells after Kernel restart/quit:

After quitting the kernel only one Dynamic cell fires. And it does not matter how many are there. ...
5
votes
2answers
103 views

How do I change the color of a hyperlink?

When I create a hyperlink in a notebook, the text is blue, like the user defined variables. (Any word in the title like Graph which is a M function is in black.) How can I change the color to ...
10
votes
3answers
830 views

List of Mathematica glyphs

Context I am using Mathematica to create live documents - documents that are both interactive and show mathematical derivations. Now, I'm aware that there are certain symbols that are available via: ...
11
votes
2answers
217 views

Is mathematica's right click menu customizable to add Simplify tools?

Mathematica provide Algebraic Manipulate palette for simplifying expression. But the palette window will always stay on top, which is quite annoying. Is is ...
9
votes
1answer
206 views

What is FrontEnd`AttachedCell?

Perhaps it's not accessible from the front end, but what is this so-called attached cell? ...
7
votes
0answers
195 views

Help with a Mathematica front end touchscreen problem

I really like using my Windows 10 touchscreen to move around in websites, documents, etc. It doesn't work in Mathematica. Can that be fixed by changing a global notebook setting, or is it something ...
12
votes
2answers
449 views

Prevent 10.2 from creating “Wolfram Mathematica” directory on Linux

Since upgrading to version 10.2.0.0, every time I start the Mathematica front-end it creates a "Wolfram Mathematica" directory under my home directory. (It never seems to put anything in it.) Anybody ...
7
votes
1answer
298 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 hyperlink some text, one selects the text using the ...
4
votes
1answer
51 views

Font size for help drop down menu in input cell

Consider: Where do I go and how do I increase the FontSize in this drop down menu to make it more easy to read?
15
votes
1answer
300 views

How do I programmatically add to contextual menus?

To programmatically add to menus you can do as described here: How do I add to menus? What can I do to programmatically add to contextual menus? Is something similar to ...
3
votes
0answers
494 views

With comma as decimal separator, how do you insert a period in the header/footer?

I have enabled comma as my decimal separator, which means that comma still acts normally and when pressing period it will be converted to a comma. In the header I would like to make a period, so I ...
3
votes
1answer
117 views

Import displays Dicom Image differently in mathematica 9 and 10

Mathematica 9 (windows 10) displays image as: mathematica 10.2 (windows 10:) displays image as: Here is the source file: Import["https://dl.dropboxusercontent.com/u/68983831/46405725"] How to ...
3
votes
0answers
59 views

The first Chinese word always becomes a question mark, what is wrong with my mathematica?

I made a gif to show my problem. You can see, the first word I type always becomes a question mark, what is wrong? I am using version 10.3. At first, there is no such problem, it shows up recently, I ...
0
votes
1answer
84 views

Blank sequences do not display anymore as continuous lines

BlankSequence[] and BlankNullSequence[] "suddenly" do not display anymore as "continuous lines" in my v.10.0.1 (OSX) (of course ...
4
votes
0answers
144 views

Autocomplete not working with tab key on Mathematica 10.3 Linux

when I want to autocomplete a function I can't use TAB key to expand what I typed in. If I press TAB, it escapes the popup suggestion menu. Autocomplete only works if I press ENTER. Furthermore,once ...
8
votes
0answers
85 views

How can autocomplete entries be added for DownValues and Properties?

I'd like to assign DownValues to a symbol like this x["firstvalue"] = 1; x["secondvalue"] = 2; And then have the ...
1
vote
2answers
1k views

Copy and pasted graphics are fuzzy

I have a function that creates a 2D line with filling to the axis. When I copy this graphic into MS Word it is very fuzzy, so much so that the numbers and text are almost unreadable, not to mention ...
9
votes
1answer
279 views

There is a button in the “basic math assistant” which wraps highlighted text in chosen brackets. Is there no keyboard command for this?

This counts as something of a basic question, but one for which I cannot find an answer. I checked the documentation, I checked google, I searched it here, I read a bunch of different things, but ...
8
votes
2answers
111 views

Seeking for method to speedup and get more flexable control Notebook History

When doing calculations in notebook, I modify the code a lot, and there are several versions of similar codes in the same notebook. But I found myself easily forgot which version is the newest, and I ...
11
votes
1answer
159 views

How can I make a stylesheet that counts subcells?

The example cells in the documentation each have count of the cells inside their section: ...
6
votes
1answer
89 views

Update/refresh notebook variable color on clear

By default, Mathematica displays variable names already assigned as black while new variables are displayed in blue. When executing Clear["Global`*"], variables ...
2
votes
0answers
73 views

Docked Cell that scrolls?

I use two finger movement on my trackpad for scrolling a notebook page up and down. Is it possible to make a docked cells that scrolls to the left and right using a two finger movement on the ...
10
votes
1answer
122 views

Use EvaluationCompletionAction to notify me only after long evaluation

Is it possible to use the option EvaluationCompletionAction to notify me (e.g. with a Beep[]) when an evaluation that took ...
12
votes
3answers
790 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 WindowSize like ...
2
votes
0answers
43 views

Add keyboard shortcut without creating a new menu item [duplicate]

I want to some key combination like CtrlShift+ to insert Print[ ]; into a workbook. I used ...
6
votes
1answer
120 views

Make all new cells have a specific style as a function of the Mathematica installation

I would like all new Input and Output cells, in fact all new cells including section headers and such, to have a specific stylistic property (...
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
155 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
500 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 ...
25
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 ...
5
votes
0answers
80 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
399 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
279 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
68 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
140 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
305 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 ...
10
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
739 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
342 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
49 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: ...