Skip to main content

Questions tagged [front-end]

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

Filter by
Sorted by
Tagged with
24 votes
3 answers
1k views

How can I get the unchanged Box form of an arbitrary expression?

One may observe that MakeBoxes does not give the actual Box form of various expressions: MakeBoxes[{1*^4, 000123, a*b c}] <...
Mr.Wizard's user avatar
  • 272k
37 votes
2 answers
3k 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 ...
Heike's user avatar
  • 35.9k
53 votes
3 answers
2k views

Argument completions for user-defined functions

Mathematica 10 has introduced file name completion for the arguments of certain built-in functions, such as Import, SetDirectory,...
Szabolcs's user avatar
  • 236k
54 votes
2 answers
4k views

Automating Esc [[ Esc formatting?

Is it possible to program the Front End to automatically format double square brackets without having to type Esc[[Esc each time? It's awful to have to type Esc ...
alancalvitti's user avatar
  • 15.1k
38 votes
6 answers
3k views

What is the complete list of valid Front End Tokens?

What is the complete list of valid Front End Tokens? Preferably, by version number. Keywords: FrontEndToken, ...
Mr.Wizard's user avatar
  • 272k
80 votes
2 answers
25k views

Mathematica 10.0.x freezes in Initializing kernels

Bug caused by paclet update and fixed by paclet update. I updated to Windows 10 and have been running Mathematica fine on it for over a month. For some reason, it has just stopped working. I don't ...
mitcheljh's user avatar
  • 1,017
61 votes
4 answers
2k views

How to create expanding summary boxes like the ones displayed for InterpolatingFunction, NearestFunction, etc.?

The display forms for objects like ClassifierFunction are nice clickable summary boxes I like this, and now I'm trying to create my a custom version of this for my ...
M.R.'s user avatar
  • 31.6k
40 votes
3 answers
4k views

Antialiasing in 3D

Is it possible? Is it platform specific? Does it rely on the graphics hardware? Why does the antialiasing slider under Preferences > Appearance > Graphics do nothing? I remember seeing some post-...
István Zachar's user avatar
43 votes
4 answers
11k views

How to Keep Input Cells Hidden After Evaluating Notebook

I've created a notebook for use in an in-class presentation. There is a fair amount of MMA code, and my students know nothing about MMA nor do they need to. I don't want to distract them with the code....
Tim Mayes's user avatar
  • 1,469
20 votes
5 answers
842 views

Prevent graphics from rendering inside a held expression

Assuming each odd line is input I would like the even lines to be the output of the following lines. In the above the Graphics are inside ...
William's user avatar
  • 7,635
40 votes
4 answers
1k views

What is the difference between Dynamic[x] and Dynamic[ h[x] ] for DynamicModule variables?

Bug introduced in 9.0 or earlier and persisting through 12.0 In 11.3 it is even worse. An example from the accepted answer with a Slider is now broken too: ...
Kuba's user avatar
  • 137k
35 votes
1 answer
2k views

Customizing syntax highlighting for private cell styles

Is there any way to set up a cell style with a particular syntax highlighting? For example, I'd like to have a CProgram cell to write in blue the C special words. I have done it by setting ...
Rojo's user avatar
  • 42.7k
33 votes
2 answers
2k 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 ...
Mr.Wizard's user avatar
  • 272k
44 votes
4 answers
2k views

Is there a convenient way to copy/paste text-interspersed SE code snippets into Mathematica?

Is there a way to copy and paste code snippets from SE to Mathematica if these snippets are interspersed with text? Like e.g. in Morphing Graphics, color and location in both the question and answer, ...
Yves Klett's user avatar
  • 15.4k
29 votes
1 answer
849 views

Prompt a set of possible options

Recent versions of Mathematica dynamically prompt a list of possible options. For example, when typing Plot[x, {x,0,1}, PlotStyle-> After typing the arrow, ...
Yi Wang's user avatar
  • 7,367
13 votes
3 answers
934 views

Why do buttons with ChoiceDialog freeze the front end?

Pressing the button below will freeze my front end. An unpainted white dialog box comes up, then it completely freezes, and I need to forcibly kill the front end. CPU usage stays at zero during this....
Szabolcs's user avatar
  • 236k
7 votes
1 answer
704 views

How to customize the package editor interface?

Is there a way to get rid of the unused space on the left of the package editor? What is it's purpose if I configured Mathematica to not show In and ...
Giovanni F.'s user avatar
  • 1,911
45 votes
2 answers
6k views

Is it possible to change the colors of the highlighted code in the Mathematica frontend?

With Format -> Edit Stylesheet... it is possible to adjust text-properties, text-colors, formatting of equations, etc of a notebook and to use this style-definitions again by installing it as ...
halirutan's user avatar
  • 113k
24 votes
2 answers
2k views

Best way to add KeyEvents and faster Quit

Many users have asked how to add KeyEvents to speed/improve keyboard input. This is just a random example. The technique is always the same. It requires that you ...
magma's user avatar
  • 5,290
21 votes
10 answers
8k views

Is there a notebook autosave frequency configuration?

I've had Mathematica crash on me a number of times, and have had to recreate notebook contents from the last save point. I was looking for something in the preferences like an autosave frequency ...
Peeter Joot's user avatar
  • 6,438
52 votes
4 answers
5k 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 ...
acl's user avatar
  • 19.9k
36 votes
3 answers
2k views

How do I add new menuitems to menus?

What are some complete examples of what one would include in a FrontEnd init.m that would make use of FrontEnd`AddMenuCommands ...
murray's user avatar
  • 12k
25 votes
4 answers
914 views

What is the point of Refresh if Dynamic has an UpdateInterval option?

I haven't found an example where I can't get rid of Refresh[]: ...
Tom Wellington's user avatar
45 votes
6 answers
3k views

How to visualize/edit a big matrix as a table?

Is it possible to visualize/edit a big matrix as a table ? I often end up exporting/copying big tables to Excel for seeing them, but I would prefer to stay in Mathematica and have a similar view as in ...
faysou's user avatar
  • 11k
30 votes
1 answer
1k views

Is it possible to maintain user-defined shortcuts in a web-installable package?

There are various posts here on this site about how to add user defined extra keyboard shortcuts for the front end. The problem is how to put them into a better maintable and properly documented ...
Rolf Mertig's user avatar
  • 17.2k
25 votes
1 answer
2k views

Segmentation fault on auto-complete

My front-end freezes as soon as I type more than two letters in a notebook. I think the error occurs, when the auto-complete feature kicks in. If Mathematica was started from a terminal, the following ...
murphy's user avatar
  • 1,249
25 votes
3 answers
8k views

Fontsize is too small

I have this annoyance for a long time now: every Text cell uses the default font size, though it appears too small on my screen. See comparison of same text, same font (Times New Roman), same fontsize ...
István Zachar's user avatar
24 votes
1 answer
839 views

How can I easily eliminate the dependency of a stylesheet on a non-built-in stylesheet?

As per discussion here: User A has a notebook that uses custom definitions from styles.nb. Now user A passes the notebook to user B. The styles do not show up for B because B does not have styles.nb. ...
Mike Honeychurch's user avatar
21 votes
2 answers
5k views

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

Bug introduced in 9.0.1 or earlier and persisting through 11.0.1 or later When I try to export graphics as PNG, JPG and other rasterized formats using the right-click and choosing ...
Rodney's user avatar
  • 211
18 votes
3 answers
2k views

How can one define an infix operator with an arbitrary unicode character?

You can setup "UsefulFunction[a, b]" to use custom infix notation "a ↔ b" as follows: ...
M.R.'s user avatar
  • 31.6k
15 votes
1 answer
577 views

Order/Dependency of Styles in a Stylesheet

How exactly is a custom stylesheet processed? Which style depends on (inherits from) which other style. Consider e.g. setting a font. I would expect that setting the font for ...
NoEscape's user avatar
  • 842
12 votes
1 answer
397 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 ...
B flat's user avatar
  • 5,565
42 votes
3 answers
2k views

How can I set up a versioning system within a notebook?

Since the Frontend crashes a lot, for important work it would be nice to have the notebook automatically branch and save itself every so many minutes. For instance, commands like StartSavingCopies[5]...
M.R.'s user avatar
  • 31.6k
22 votes
3 answers
2k views

How to set focus of a dialog window?

I have a dialog, which, when pops up, requests input from the user. How can I set the window up that the focus is on the InputField of the new window (i.e. the ...
István Zachar's user avatar
16 votes
2 answers
1k views

How to automate generation of image files?

I need to generate a large number of figures as PNG files, and I'm trying to decide whether Mathematica would be the quickest way to do this. All the figures have the same basic structure, and I'm ...
kjo's user avatar
  • 11.7k
16 votes
2 answers
1k 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 ...
Brendan's user avatar
  • 535
15 votes
2 answers
815 views

What is FrontEnd`AttachCell?

Perhaps it's not accessible from the front end, but what is this so-called attached cell? ...
M.R.'s user avatar
  • 31.6k
85 votes
8 answers
20k views

How to add a front-end to the free Wolfram Engine?

https://blog.stephenwolfram.com/2019/05/launching-today-free-wolfram-engine-for-developers/ http://www.wolfram.com/engine/ The Free Wolfram Engine for Developers is available for pre-production ...
Alexey Golyshev's user avatar
70 votes
3 answers
3k views

Is it possible to improve Mathematica's auto-completion feature?

In this answer Brett Champion describes how one can intercept and modify the suggestions used for auto-completion. Question: Is it possible to modify the suggestion for the automatic auto-completion ...
halirutan's user avatar
  • 113k
69 votes
5 answers
5k views

How to disable the small pop-up windows when mouse is over a Mathematica command in V10?

In version 10, when the mouse is over a Mathematica command, a small pop-up window comes up that one can click on for help on the command. Is there an option to disable this feature? Screen shot: I ...
Nasser's user avatar
  • 146k
49 votes
7 answers
20k views

Is there a way to hide or toggle the visibility of code?

Many of my notebooks have a similar repeating structure, which is very convenient and reliable for my workflow: a chunk of code defining a Manipulate for exploring ...
orome's user avatar
  • 12.8k
26 votes
2 answers
426 views

How do I add the infobutton in autocomplete that links to the documentation page for package functions?

When typing the name of a built-in function like Integrate, the button (ℹ︎) appears next to that name in the autocomplete: But I don't get that (ℹ︎) button for my ...
QuantumDot's user avatar
  • 19.7k
23 votes
3 answers
1k views

What is a printer's point?

Bug introduced in 10.4 or earlier and persisting through v11.3 (misleading documentation inconsistency) According to the documentation it is a basic unit for size spec. ...
Kuba's user avatar
  • 137k
21 votes
1 answer
3k views

Opening a notebook from command line in an existing front end instance

I am using Linux, and I would like to be able to programmatically open notebooks in a running Mathematica instance from the command line. Currently, doing something like /opt/Wolfram/Mathematica/8....
Leo Alekseyev's user avatar
11 votes
2 answers
2k views

Exporting plots on a remote machine without display in script mode?

Context I would like to run mathematica scripts on a remote cluster in order to produce some plots. This cluster does not have X11 installed (the job is submitted to a queuing system). Problem I ...
chris's user avatar
  • 23k
11 votes
4 answers
1k views

Set the style of a cell

I know it's possible to programmatically change options on the selection in a notebook. I'd like to create a button that lets me change the style of a cell. It's a style that doesn't have a keyboard ...
Tom De Vries's user avatar
  • 3,780
6 votes
2 answers
1k 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 ...
mitcheljh's user avatar
  • 1,017
77 votes
3 answers
4k 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 ...
celtschk's user avatar
  • 19.2k
50 votes
1 answer
4k 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 ...
M.R.'s user avatar
  • 31.6k
48 votes
5 answers
19k views

Where can I find a dark stylesheet for mathematica?

The default white is very tiring for the eye after some hours.
lagoa's user avatar
  • 835

1
2 3 4 5
15