Questions tagged [front-end]

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

Filter by
Sorted by
Tagged with
5
votes
1answer
38 views

What can I do when GenerateDocument fails to work from within in a complex interface?

I have found that when GenerateDocument is called from a button within a complex interface that the function does not work, i.e. nothing happens, and the front end "...
1
vote
1answer
58 views

MouseOver and Speak

I am having an issue where Mouseover doesn't work with Speak and instead returns Null. All ...
1
vote
1answer
66 views

Custom Hotkey Toggle Initialization

In this old stack overflow answer (referring to this even older page) it is shown how to make custom hotkeys by modifying the file KeyEventTranslations.tr. Some ...
0
votes
1answer
65 views

Mathematica keeps turning text cells into inputs

I am using version 11.3 of Mathematica and when I make my notebook files I make sure to convert specific cells into text and deselect "evaluatable", yet when I save and reopen the file, the text cell ...
0
votes
0answers
128 views

Document Center Search is not working in Mathematica 11.3?

If I type "Table" (without the quotes, of course) or any other search term into the Documentation Center search, I get: ...
2
votes
1answer
65 views

Monitor the values of two variables at the same time

Monitor and Dynamic give the possibility to check the value of one variable in a program, but is it possible to monitor the ...
0
votes
0answers
118 views

Mathematica 11.3 on Ubuntu & XFCE crashes

I have recently upgraded from version 10 to 11.3 on my group's server (Ubuntu 16.04 LTS). Up until now, we have all used VNC(Xfce) connections to use the various programs on the server. With the new ...
4
votes
0answers
36 views

Is it possible to set multiple languages for spell check in a mixed-language notebook?

I am working in a notebook that uses a mix of two languages, is it possible to allow for both dictionaries to by used simultaneously? I have tried: ...
3
votes
1answer
58 views

How to use the progress indicator in “open from cloud”?

I like the circular loading indicator seen in the "save to the cloud" dialog: Is there any way to call it programmatically?
0
votes
1answer
147 views

Manipulate within Manipulate

Since the original post of mine, which is below, is too long, too complicated and time-consuming for others, I tried to mimic the same structure with a very simple ...
6
votes
2answers
125 views

How can I implement a listener variable in Mathematica?

I'd like to be able to listen to a variable and know when it's been changed and accept/reject the change as well as use it as an update listener for Dynamic how can ...
7
votes
1answer
77 views

How can I open the Documentation Center window with FrontEndTokenExecute?

FrontEndTokenExecute["Save"] saves the current notebook, but FrontEndTokenExecute["Wolfram Documentation"] does not open the ...
1
vote
2answers
123 views

Input editor does not like my Thread over Circle expression

I am using Mathematica 11.3.0.0, 64 bit. Here is my code: Graphics[Thread[Circle[{{-1, 0}, {0, 0}, {1, 0}}, {0.5, 1.0, 0.5}]]] Here is code as it looks in a ...
6
votes
1answer
97 views

Conditional rendering of items

Let's say I have a column to display and each of its items can be hidden separately. Question: Is there a way to make it work without re-rendering whole column whenever a particular item is hidden? ...
11
votes
1answer
217 views

MousePosition in AttachedCell?

I can't figure out why the following stops working when "WindowAbsolute" is replaced with "Graphics"? ...
3
votes
0answers
43 views

How to make custom attached menubars? [duplicate]

I would like to understand how to build an attached menubar. For example, Image has the following bar - an attached cell that arises when clicked on: ...
2
votes
0answers
118 views

How to render an emoji? [duplicate]

Is there any way to get Mathematica to render emoji's from unicode strings? For instance, ":1F600" should be 😀but it renders as an "oulinded question mark": Also, ...
7
votes
3answers
541 views

Programmatically create a keyboard shortcut to “Align Center” a Text Cell without losing cursor position

I'm attempting to create a keyboard shortcut to center the contents of a text cell exactly as clicking "Align Center" accomplishes in the Format Menu. As far as I can tell, there is no frontendtoken ...
0
votes
0answers
92 views

Solution for multiple cursors to perform multiple simultaneous edits

Is there any good solution available for performing multiple edits simultaneously in a Mathematica notebook? As a workaround, I occasionally paste Mathematica code into a Visual Studio Code editor, ...
0
votes
1answer
48 views

Run a command each time a file is saved [duplicate]

Is there any way to get Mathematica to run a function each time I save a file? So either by ctrl-s or by the 'save' command in the file menu. Then I could, for example, ask it to make a copy of the ...
0
votes
0answers
75 views

How to rasterize huge fonts

If ...
3
votes
1answer
58 views

Prevent Grid from overriding GridBoxItemSize from Stylesheet

I have problems getting the Stylesheet settings for GridBoxOptions/GridBoxItemSize to be applied to ...
1
vote
0answers
43 views

How to automatically add indentation to selected block of code [duplicate]

While editing a package file .wl, I just realized I need to wrap a block of code in Module and other stuff. After doing that, I ...
1
vote
0answers
38 views

Anomalous Notebook Formatting Upon File Closing and Reopening

I've encountered some Front End behavior that I find mystifying. I have created an ordinary Mathematica notebook that consists of a series of cells formatted as Code that each hold an expression that ...
4
votes
0answers
33 views

Get all built-in image files for styling buttons and panels

Mathematica makes use of nine-patch images in styling its resizable interfaces like Panel and Button. Nicer than remaking new ...
4
votes
2answers
140 views

PopupMenu with checkboxes

I am trying to create a popup menu where I can check some boxes to create some plots after the calculation. It is like multiple selections popupmenu. My Frankenstein version, of course, isn't working....
0
votes
0answers
71 views

Dynamic is either fast or correct evaluating slow function on synchronous link

I am working with audio on a data preparation algorithm that detects specific points in an audio file, and making a tool for myself to help me go through a couple hundred files quickly enough to find ...
2
votes
0answers
130 views

How to create a workbook type notebook?

I have some long workflows where the current method of sectioning and expand/collapse is becoming tedious. I would like to create a workbook type notebook; a notebook that owns fully functioning ...
2
votes
0answers
21 views

How to open Details and Options in Help Browser by default? [duplicate]

One of minor inconveniences for me is when I invoke the Help browser for a context symbol (or via search, does not matter), the Details and Options section cell is closed, and I must click to open it. ...
4
votes
1answer
72 views

How to “save as” a notebook programmatically, given a path string? [duplicate]

How to "save as" a notebook programmatically (from within the notebook), given a path string? here is a path string (it specifies the new name and location of the new notebook) ...
3
votes
0answers
160 views

Mathematica not showing normally on high resolution computers [duplicate]

So I have a Windows 10 laptop with 1920*1080 resolution. On this computer it automatically sets the programs running on it to show at 150% size. But however Mathematica does not supports this well, ...
0
votes
0answers
73 views

Close/Open current section

I want to create a keyboard shortcut to open or close the section my cursor is currently in, or in case I am selecting a cell or multiple cells (let's assume not headers (alt 1-6) them self for ...
2
votes
1answer
30 views

Just typing Import[] tries to list folders in a directory, and it is slow over sshfs

It appears that Mathematica tries to list the folder that you're typing into an Import[] statement. Since I'm working with folders mounted over sshfs and they ...
2
votes
0answers
21 views

How to keep a DisplayFormula cell connected to its Input cell? [duplicate]

I am writing up some notes and enter formulas (integrals, products, PDFs, ...) in Input cells to get the formatted result in the Output cell. When I restyle the output cell as a DisplayFormula the ...
10
votes
1answer
974 views

What makes a function ticklish?

The Advanced Dynamic Functionality tutorial informally describes a ticklish function as follows: Every time you evaluate RandomReal[], you get a different answer,...
16
votes
3answers
417 views

How do I get the timing of an evaluation after it has already finished?

Sometimes I forget to add Timing[] to my evaluation and only notice it once it has already finished. Some of my calculations take hours or even days, so I don't ...
4
votes
0answers
67 views

Launching kernels… freezes

I'm running a Mathematica script on a remote machine (via ssh connection). I log on the machine and I execute math -script algorithm.m and this message appears ...
5
votes
0answers
89 views

Problems with Failure in Testing Notebooks

This always fails the test: Failure["General", <|"MessageTemplate" -> "`1`", "MessageParameters" -> {foo}|>] While this passes as expected: ...
7
votes
1answer
126 views

Why Text Cells converted with Alt-7 have different fonts

So I am writing a report in Mathematica and experiencing a problem. First I create an input cell. Then write some text into it. Afterwards convert it to text cell with Alt-7. As a result some cells ...
7
votes
0answers
61 views

Special forms for autocompletion strings

Szabolcs has previously dug up a very useful tool to make custom autocompletions. Here's that in action: ...
4
votes
0answers
73 views

Highlight selected text everywhere?

Notebook++ has a very useful feature which highlights all occurrences of certain text once it has been selected with the mouse cursor in one spot: It is very useful in order to jump between different ...
4
votes
1answer
121 views

Create responsive, resizing, centered DockedCell

I was trying to define the same decorative toolbar as it is pictured here in stylesheet. I succeed to do so. Now, I want to define custom decorative toolbar in the Default stylesheet using the same ...
5
votes
1answer
64 views

Disable the “double-click to collapse cell group” feature in Mathematica?

I'm trying to figure out if there is a way to disable the feature of Mathematica whereby if you double click the brackets to the right of a formula + output, it collapses the output. I want to ...
10
votes
2answers
237 views

Schrödinger's MatrixForm: feature or bug?

Recently I noticed a peculiar behavior of MatrixForm that I failed to find a way to explain. Consider the following example: ...
4
votes
1answer
140 views

How to customize the appearance of the taskbar window?

When a Running notebook in v10.4 is minimalized, on the taskbar it reads Running... Untitled-1.... For v11.3 it reads ...
9
votes
1answer
167 views

How can I suppress the prompt for the execution of initialization cells?

I would like to suppress the following super-annoying prompt that appears each time I exit the kernel and restart my computations: Which menu option do I need to tweak? (I have tried quite a few.)
3
votes
1answer
53 views

How could I detect if a notebook is currently the active window?

How could I detect if a notebook is currently the active window? This is what I have tried, but it does not work as the value of x is never updated: ...
9
votes
1answer
173 views

How to defer creating/displaying boxes in front end until requested?

If the size of an output expression is larger than threshold ByteCount, the front end will display an abbreviated version of it by producing an ...
6
votes
1answer
103 views

How to fix inconsistent font rendering under Windows?

The FrontEnd's font rendering in graphics is inconsistent under Windows (still using Win7). Sometimes small fonts are not antialiased, sometimes they are. See, for instance, the help page for ...
4
votes
1answer
98 views

Hanging in the front end

I'm writing some code and it's getting quite long, and I seem to get a lot of hanging in the front end when I'm trying to move the cursor to certain places with the mouse. I'm starting to think that ...

1 2 3
4
5
31