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

learn more… | top users | synonyms

6
votes
0answers
166 views

Documentation for user-defined functions; undocumented documentation feature?

I stumbled on some strange behaviour when trying out the new function template and documentation features, now purportedly working in v 9.0.1. I defined a function ...
10
votes
3answers
491 views

Multiple notebooks in Mathematica

While working with multiple files in Mathematica, is there a way to have the names of the files appear along with the minimized window of the file. I mean that sometimes I forget which file was places ...
12
votes
3answers
2k views

Collapse a section of a huge function

Is there an elegant way of hiding/collapsing/folding only a portion of a function? If functions could span multiple cells, this would have been straight-forward!
3
votes
0answers
41 views

Is it possible to enclose code into collapsible/expandable regions? [duplicate]

In some programming languages (e.g. C#, Visual Basic) there are language constructs that have no effect on the execution of code whatsoever, but exist solely to allow grouping fragments of code into ...
8
votes
1answer
67 views

How to introduce custom hot keys for the styles of cells?

In the JournalArticle StyleSheet there are useful hot keys Alt+6 for a DisplayFormulaNumbered and Alt+5 for the DisplayFormula. Such hot keys, however, are not present in the Default StyleSheet. Even ...
11
votes
3answers
190 views

How to collect expressions from cells created by Print?

I have a notebook where evaluation of a certain cell produced hundreds of adjacent output cells using Print. I need to create a list containing all expressions from ...
0
votes
0answers
72 views

Setting individual CellContext for each notebook loses autocomplete suggestions

I'm running Mathematica 9.0.1 under OS X. In order to have separate contexts for each of my notebooks, I used the instructions in the last part of the accepted answer from the following link: Is ...
5
votes
0answers
139 views

how to efficiently jump between sections in a notebook?

I have functions defined in some section of the notebook and some cells where I use these functions maaaaany pages below in the same notebook. If I want to go and change the definition of the function ...
29
votes
1answer
795 views

Open two copies of the same notebook

Is there a way to open one notebook in two (or more) different windows? This can be helpful when working with a long notebook and one wants to edit one part of it while looking at a different part. ...
0
votes
0answers
57 views

Can you set up a remote kernel for computation and a local kernel for predictive interface?

I am able to launch remote kernels from my Windows box to our Linux cluster that has the data I need and the capacity to run analysis (numerous & speedy cores, spacious memory, etc.). Works ...
2
votes
2answers
144 views

How can I change mouse hover behavior for hyperlinks in a notebook?

When I create a Hyperlink to a Youtube video in a text cell the link is colored blue like it would be in a browser. However, the mouse cursor does not change when ...
9
votes
1answer
532 views

Workflow in the Mathematica and Workbench IDE

After visiting one of the Wolfram presentations, I started writing code for my number theory research project in Mathematica because I found it to be faster than Sage. I downloaded Workbench and ...
12
votes
1answer
109 views

Is there a callback for notebook exit?

I know that $Epilog is called when Mathematica is exited; is there a callback upon exiting the notebook? If so, what is it?
36
votes
8answers
8k views

How can I improve Mathematica's resolution on a macbook retina display?

Mathematica looks a bit fuzzy on the retina screen, how can I increase the resolution? Here another screenshot showing a direct comparison between the browser and Mathematica
1
vote
1answer
135 views

Looking for a input template for Limit

I'm using v. 8. I'm looking for a limit input template (analogous to the integral template), but I can't seem to find it in any of the palettes. Can anyone help? Edit: I'm looking for a 2D input ...
3
votes
0answers
75 views

Copy string with markup so it looks good on input

How can I copy a string with a bunch of *Box expressions without it blowing up into the raw expression? ...
3
votes
1answer
143 views

Confusing font information from CurrentValue

I'm trying to programmatically get the width of a character in Mathematica's default fixed-width font, Courier. I believe CurrentValue holds the answer but I'm ...
3
votes
1answer
133 views

Time constraints on KernelExecute commands or MenuItems?

I'm trying to use Get to load some pretty substantial packages from a custom menu in the Mathematica toolbar (added via MenuSetup.tr). The problem is, the standard ...
7
votes
1answer
158 views

Understanding FullForm in front end

I want to understand the following effect better (In Mathematica 9) .. Or, maybe, is it a bug? Running the following line FullForm[Subscript[α,β_]] gives as ...
4
votes
0answers
314 views

Ugly font rendering (ubuntu 12, overrides system settings)

Mathematica 9 on Ubuntu 12 renders fonts very poorly. Text is readable, but it makes it very hard to concentrate on programming. Since smoothing on Ubuntu on low DPI screens isn't very good either, ...
11
votes
2answers
406 views

How can I make a cell that contains an image which can be shifted?

When you're looking at some help pages, they may have cells containing images which can be shifted within the cell by left-clicking and dragging the mouse. Here is a sample: ...
3
votes
1answer
113 views

Frontend coloring of Table[x, {x, 0, x}]

I have a small question about how the Mathematica frontend colours in the variables that appear in (wrongly written) iterators. More specifically, I'm intrigued by the colour of the third ...
4
votes
1answer
96 views

How to release $Mathematica$ from the $Pre HoldAllComplete lock

Not sure if posted before, but I'm asking this question from a Mathematica fellow user who tried to load expressions, whose problem soon turned into a prison break game featuring the following code. ...
5
votes
0answers
179 views

Visualizing nested lists for easier human understanding

When interacting with Mathematica, I often find myself staring blankly at waves of curly braces, trying to understand how data is organized hierarchically. For example, the beginning of the result to ...
30
votes
4answers
687 views

Usage of \[InvisibleApplication] and other related invisible characters

From the front end, \[InvisibleApplication] can be entered as Esc @ Esc, and is an invisible operator for @!. By an unfortunate ...
2
votes
0answers
38 views

Syntax for FrontEnd`SelectionSetStyle

I know FrontEnd`SelectionSetStyle is undocumented, but its name suggests it does what I need. What is its syntax? I have already tried several variations of the ...
15
votes
2answers
310 views

MathKernel doesn't return all Messages

In Mathematica I run this command: Plot[Sin[x], {x, 1, 15}, GridLines -> error] It generates a Plot with this error message: A GridLines specification ...
9
votes
0answers
88 views

How to capture implicit fails in Plot or Show? [duplicate]

How can I make a construct similar to C++ functions: try{} catch{} I want to use it to avoid showing a lot of errors in the plot area when for example one of the ...
1
vote
1answer
40 views

Output cell written with NotebookWrite dissappears on whole notebook evaluation, yet remains if I individually evaluate it

Create a new notebook with the following two input cells: NotebookWrite[EvaluationNotebook[], Cell[BoxData[ToBoxes[Manipulator[Dynamic[x]]]], "Output"]] and ...
1
vote
1answer
158 views

keyboard sequence for Magnify in version 8?

It used to be that you could find a Magnify item in the Format menu of the Mathematica front-end, at the very bottom if I remember correctly. You could get at the item in Windows by a keyboard ...
2
votes
2answers
213 views

Make fraction with selection in denominator

Using ctrl/ you can make a fraction. If you have selected something it will appear in the numerator. Does there exist a shortcut to make the selected text appear in the denominator instead? If not, ...
0
votes
1answer
69 views

Manipulate that remembers its own input code and can show it by request

This question is a further question to my previous one. The solution for that question works well as long as the original input Manipulate code is still provided in ...
4
votes
1answer
76 views

Evaluate open cell segments in a notebook

The Evaluate > EvaluateNotebook evaluates the whole notebook. Is it possible to somehow evaluate ONLY the open sections of a notebook?
4
votes
1answer
339 views

How to define a button inside Manipulate that tells Mathematica to re-evaluate the whole Manipulate code?

I have written a Manipulate code carrying out some very complicated tasks. There is no problem for the first run, but if I click the reset button to reset all ...
8
votes
1answer
161 views

FindSelectedFunction for packages - how to make it work?

The Mathematica help menu contains an entry Find Selected Function (Cmd+Shift+F on OSX). If you are working with say Transpose and want to look up its reference ...
2
votes
1answer
134 views

Delay of events detection dependent of “MouseDown” position

Let's say we have a Rectangle with color which depends of CurrentValue["MouseOver"]: ...
2
votes
0answers
110 views

Navigation a la XPath for Mathematica notebooks

In Mathematica, notebooks (in fact all expressions) have a tree-like structure. In this regard, they are similar to XML files. For XML, one can travel through the document structure using tools like ...
10
votes
3answers
504 views

How to anchor a Pane's scroll position to the bottom?

Suppose I have a Pane containing some dynamic text, for example that is being updated by a logging function. ...
4
votes
1answer
115 views

How to expand multiple cells at once?

Is there a simple way to expand multiple cells simultaneously? At the moment I am primarily interested in fully expanding "in one fell swoop" all the cells in a documentation window, although I can ...
2
votes
1answer
138 views

Remove braces, {}, from around DynamicModule output?

Is there a way to remove the braces from the front end output associated with DynamicModule? For instance: ...
6
votes
2answers
186 views

Evaluating selected expression using keyboard shortcut

Imagine that in this toy code I want to evaluate just the selected (blue) expression: To get as output result: {09/14,09/15,09/16,09/17,09/18,09/19,09/20} There is some shortcut to do this? I'm ...
12
votes
1answer
186 views

How to get an adaptive frame which fits auto-wrapped text? [duplicate]

When using the built-in Debugger, the breakpoints and the current step will be framed looks like this: My favorite part is, those frames are adaptive to the text when window width changing makes it ...
4
votes
1answer
107 views

How to copy groups of cells with NotebookWrite?

I'm trying to use: NotebookWrite[nb, NotebookRead[EvaluationNotebook[]]; to copy cells from the EvaluationNotebook[] to a new ...
6
votes
1answer
196 views

undisputed FrontEndTokenExecute

Thanks to this great topic, I've found the FrontEndToken that I was looking for: "DeleteGeneratedCells" (well, it is also ...
6
votes
1answer
102 views

How to suppress automatically generated header in packages?

At the top of the .m file which is automatically generated from initialization cells in a notebook there appears a header: ...
1
vote
1answer
108 views

How to preserve focus on InputField after Print?

If you press Enter in the example below it should become clear that test is being adding to the textbox instead of the current ...
5
votes
1answer
105 views

Maintaining stylesheet information in Cell[]

I am working on formatting a cell for a slideshow presentation format such that a graphics object occupies the left half of the cell and bullets or other items occupy the right. The ancient ...
1
vote
1answer
176 views

Is it possible to use Find with wild cards?

When making global changes to code and variables Find is a great resource. Is there a way to use Find with wild cards to find and replace any non numerical elements or to find and replace only ...
1
vote
1answer
61 views

Problem with indentation with a section having a RegularExpression

I have this line of code (a one-liner to import the Abaqus dispalcements!) ...
4
votes
1answer
95 views

Is it possible to enable syntax highlighting for \[Function]?

This is a bit of a long shot but I am wondering if it is possible to enable syntax highlighting in a function defined with \[Function] without resorting to anything ...