Questions tagged [front-end]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
57 views

Display of nested fractions as products of fractions

How do I get Mathematica to avoid displaying nested fractions in outputs, and instead automatically display them as parenthesized, factored-out terms? For example, I would like ...
Christopher's user avatar
4 votes
1 answer
141 views

How to create a hyperlink to an executable?

I tried the following: Hyperlink["label","file:C:\\Program Files\\ProgramName\\program.exe"] But when I click the generated link the system ...
user13892's user avatar
  • 9,255
3 votes
0 answers
27 views

How do I stop unwanted spaces in Mathematica cells styled as text?

Context: I am working in a Mathematica notebook (I am using 14.0, but the problem to be described was observed in earlier versions. At some time in the past, though, it was not happening.) Problem to ...
PaulCommentary's user avatar
0 votes
0 answers
39 views

Error message in "Copy As Graphics Expression" of graph

Evaluate the following code: Graph[{{1, 2}, {2, 3}, {3, 1}}] Then right-click the graph and choose ...
azerbajdzan's user avatar
  • 13.3k
1 vote
0 answers
22 views

How to add File->Save to Cloud... and Cell->Cell Properties to my customized toolbar?

I'm programming my own DockedCells toolbar. Everything happened ok, the only things beyond my ability to resolve are: (1) adding a button (or an ...
hlediks's user avatar
  • 31
0 votes
0 answers
58 views

Is it possible to do something automatically before opening .nb?

Is it possible to do something before opening .nb ? I mean, When the Mathematica kernel(?) receives a command to open the .nb, ...
imida k's user avatar
  • 3,935
1 vote
0 answers
106 views

Save as custom folder in menu bar in 1 step

I found the solution for myself. For some reasons I decided to write the updated content(=solution) at the top. One important reason is.. that you almost don't need to read after the solution. ...
imida k's user avatar
  • 3,935
0 votes
0 answers
37 views

Button with a certain built-in function makes error [duplicate]

Note that if I execute NotebookSave[InputNotebook[], SystemDialogInput["FileSave", "C:\\myfile.nb"]] will popup ...
imida k's user avatar
  • 3,935
0 votes
0 answers
57 views

Modify save as.. in the menubar (by editing MenuSetup.tr) [duplicate]

I use mathematica V 14.0.0. Is it possible to modify the behavior of Save as.. in the menubar? That is, I want to change the initial full path. We see a window ...
imida k's user avatar
  • 3,935
2 votes
1 answer
106 views

Button : interactive save as + custom initial path

Is it possible to create a button whose action is "save as... in menu bar" with custom initial full path. (custom initial full path is specified by user.) Note that if you click ...
imida k's user avatar
  • 3,935
0 votes
0 answers
51 views

Open multiple instances(=windows) of same .nb? [duplicate]

Is it possible to open multiple instances of the same .nb (on local disk)? First, open c:\test1\test1.nb. After that, can you open another instance(=window) of <...
imida k's user avatar
  • 3,935
1 vote
2 answers
160 views

Change default save path/location of an .nb by code

If I open c:\test1\test1.nb and click Mathematica MenuBar - File - Save as... then a window for Save as... pops up, and the default save path is ...
imida k's user avatar
  • 3,935
6 votes
1 answer
257 views

Hyperlinks that open smoothly in the same window

Suppose that I have test1.nb and test2.nb in my local disk. For simplicity, suppose that ...
imida k's user avatar
  • 3,935
7 votes
0 answers
217 views

ScreenResolutionCompatibilityMode not working in version 14 on Windows 11

I'm facing a problem with the relative scale of fonts and controls in Mathematica. In version 14, the ScreenResolutionCompatibilityMode (in CTRL+SHIFT+O settings) ...
Kirill Belov's user avatar
7 votes
1 answer
278 views

Notebook starts formatting content automatically and then collapses

I am working on a notebook of size 5 MB which contains only data and Plot or ListPlot on WIN64 with MMA13.3. I am experiencing ...
MMA13's user avatar
  • 4,534
3 votes
1 answer
113 views

Notebook key shortcut to move current cell group up/down/in/out?

How would one add (four custom keyboard-based not palette-based) shortcuts for moving the cellgroup containing the cursor up and down and in and out (akin to tab indent) relative to adjacent cells. ...
user5601's user avatar
  • 3,613
1 vote
1 answer
40 views

Why is the form of the expression not copied in PasteButton?

I'm going to make a palette for partial differential and total differential. ...
Milk's user avatar
  • 1,638
12 votes
2 answers
299 views

Turn off keyboard shortcut

Every once in a while when editing a formula, I want to add a parenthesis at the beginning of the line by pressing Shift9 to get (. However, I will accidentally ...
user297024's user avatar
0 votes
0 answers
50 views

No-op front-end token to "unmap" key events

Is there a no-op front-end token that does nothing? The reason I ask this is because on Linux, Mathematica 13.3 produces nonsensical characters (see image below) on pressing ...
B215826's user avatar
  • 101
1 vote
1 answer
45 views

How to maintain the form of the formula when using PasteButton?

I want to make a pallet button that keeps the form of the formula intact. ...
Milk's user avatar
  • 1,638
2 votes
0 answers
57 views

How to apply Esc key as double typing in EventHandler?

I wrote a code to delete the text in InputField with the Esc key. ...
Milk's user avatar
  • 1,638
0 votes
0 answers
18 views

How to strip out Graphics exported using `FrontEnd`ExportPacket[..., "InputText"]`?

I've tried converting 913 Mathematica notebooks I've accumulated over the years into text, and the problem I ran into while using this solution is that some files are over 100MBs because they export ...
Yaroslav Bulatov's user avatar
2 votes
1 answer
72 views

Export Notebook as Text (in 13.3 &14)

What is the best way to export a notebook as readable plaintext - while preserving as much structure as possible? The motivation here is the need to bulk-ingest notebooks and chunk them (for use in ...
user5601's user avatar
  • 3,613
0 votes
0 answers
28 views

Automatically replace all excessively large vector graphs with rasterized versions?

Some of my notebooks are huge because vector graphics are taking unexpectedly large size. This also makes scrolling slow. For instance code below takes a few seconds to generate an image which is 10MB ...
Yaroslav Bulatov's user avatar
4 votes
2 answers
92 views

How to find large cells in a Mathematica notebook?

I occasionally end up with a notebook that is excessively slow in the front-end because of its size. Often it's some animation. How can I use Mathematica to find the large cell responsible for this? ...
Yaroslav Bulatov's user avatar
3 votes
1 answer
85 views

Problems that occur when converting to PDF files using NotebookPrint

I made a string expressed in StandardForm format. ...
Milk's user avatar
  • 1,638
2 votes
3 answers
167 views

How to maintain the input form of InputField?

I created a Manipulate with InputField: ...
Milk's user avatar
  • 1,638
4 votes
1 answer
217 views

How to execute a String code in the form of StandardForm?

How to execute a String code in the form of StandardForm? I want to get execution results for strings of various forms. For this, I used ToExpression. ...
Milk's user avatar
  • 1,638
0 votes
1 answer
28 views

Collapse cell group to only show the output, when there are multiple output cells?

I can double click on Output cell to collapse the input cell, but this doesn't appear to work when there are multiple output cells (due to multiple Print statements)...
Yaroslav Bulatov's user avatar
1 vote
1 answer
49 views

How to force GeneratedCell -> True for non-editable cells?

If I generate an arbitrary non-editable cell: ExpressionCell[1, "Output", Editable -> False, GeneratedCell -> True] And then try to edit it, the ...
swish's user avatar
  • 7,781
3 votes
2 answers
196 views

Are there missing symbols in the FrontEnd's TeX input interface?

I am trying to insert an \hbar into the Front End's interface. but the hbar is missing: I've tried to use character codes and pasting the FrontEnd's [HBar] in directly. Neither work. Does anyone ...
Craig Carter's user avatar
  • 4,250
1 vote
0 answers
85 views

Rainbow Brackets for the Mathematica GUI?

Is there a way to add rainbow bracket-pair colorization to the Mathematica / Wolfram Desktop GUI? If not, how can I request one :) This is one feature that I have grown to love when writing WL or lisp ...
Alec Graves's user avatar
  • 1,058
2 votes
1 answer
93 views

How to write code realizing this manual operation? [closed]

I want to use the output of N[E,15]. However the output is really 2.71828182845904523533978449066641588615`15. if you copy the ...
amon xu's user avatar
  • 31
0 votes
0 answers
39 views

Hiding Initialization Cells

I have seen multiple notebooks with near invisible Initialization Cells, and wish to recreate them myself (see screenshot below). In the screenshot, the first Initialization Cell is expanded, ...
Chloe's user avatar
  • 145
3 votes
1 answer
90 views

Add custom "Copy as" submenu

I would like to add another command to "Save as" menu that is generated by right clicking on selected text. We have there "Plain Text" and after this I would like to add "...
azerbajdzan's user avatar
  • 13.3k
2 votes
3 answers
130 views

Space cannot be used in vertical string with unicode character

To reproduce the issue, use Ctrl+Enter to create 3 placeholders and enter (or ...
Y. zeng's user avatar
  • 537
6 votes
0 answers
185 views

Mathematica Outline View?

Edit the question was reopened because the recipes linked don't work in version 13 Google Docs and Colab, Jupyter notebook all support outline view. IE, you have sections/subsections on the left, and ...
Yaroslav Bulatov's user avatar
10 votes
1 answer
346 views

Connecting Mathematica on Windows to a kernel running on WSL

Suppose I want to run Mathematica on a WSL kernel, but use a Windows installation of Mathematica as its front end. (For any purpose that requires a Mathematica installation on Linux, there are still ...
linkhyrule5's user avatar
3 votes
0 answers
38 views

What's the effect of SyntaxForm option in StandardForm boxes of Superscript?

Consider the following sample: ...
xzczd's user avatar
  • 65.4k
2 votes
0 answers
34 views

Where are user-defined usage messages stored in the front-end for autocomplete stored -- and how can I clear them out?

I am writing some code which automatically sets the usage messages for a function, and I am having some trouble iterating on it, particularly in getting it to work correctly in the autocomplete. At ...
Emilio Pisanty's user avatar
1 vote
1 answer
98 views

How to use NETLink to activate an application window?

I have a excel application COM object for an active workbook. excelApplication=GetActiveCOMObject["Excel.Application"] <<NETObject[Microsoft.Office....
user13892's user avatar
  • 9,255
0 votes
1 answer
64 views

Is it possible to programatically create new notebook without the default top Toolbar (the one introduced in 13.1)?

I know how this can be hide using via the UI. But is there a way to create a New Notebook using CreateDocument[{}] that does not contain the toolbar?
JuanG970's user avatar
  • 456
1 vote
0 answers
99 views

How to make the association's keys viewable by opener in input cell in editable form?

I have an association as follows (the actual association has hundreds of keys): ...
user13892's user avatar
  • 9,255
2 votes
2 answers
105 views

Avoid context mark in Plot labels in package

Minimal example: ...
LittleCat1's user avatar
9 votes
3 answers
388 views

Why do error messages show up when mouse hovers over ListLinePlot in V 13.3?

New bug in V 13.3 Wolfram support: A support case was created with the ID [CASE:5057959] Why in V 13.3 on windows 10, when moving the mouse on top of a plot, it says there is an error? In V 13.2.1 ...
Nasser's user avatar
  • 142k
3 votes
0 answers
109 views

CellLabel alignment issues in version 13.2

I found that when the global magnification is set to 75% and the number on the CellLabel is larger, there will be alignment issues. Below is a comparison to version 12.2 I tried to change some ...
expression's user avatar
  • 5,572
2 votes
1 answer
98 views

Recovering results during front-end hang

When working with large expressions I sometimes mistakenly ask Mathematica to show some output which causes the front end to hang. Sometimes it just needs to format notebook contents but sometimes, it ...
Gert's user avatar
  • 1,480
1 vote
0 answers
51 views

How to generate a tooltip showing the Information of selected symbol?

Other editors/IDEs often provide the tooltip functionality that when hovering over a variable, the information will be popped up. For example, in VSCode. Is it possible to simulate this in ...
Lacia's user avatar
  • 2,233
1 vote
1 answer
42 views

Setting FrontEnd`$ControlActive in EventHandler

Is it possible to emulate the behaviour of ControlActive[] for an ordinary Control[] when implemented by an ...
David Eph's user avatar
1 vote
0 answers
79 views

How to restore LightGray Background to initialization cells?

I am running Mathematica 13.2.1 on a new MacBook Pro M2 with Ventura 13.2.1. I have done something that causes any initialization cells that I create or view to no longer have a LightGray background. ...
Spencer Rugaber's user avatar

1
2 3 4 5
38