Tagged Questions

Questions on Notebooks (*.nb, *.ma in earlier versions), structured interactive documents produced by Mathematica that can contain text, graphics, sound, calculations, typeset expressions, and user interface elements.

learn more… | top users | synonyms (1)

2
votes
1answer
36 views

Why TeXForm[] do not display to notebook if followed by OutputForm[] in same cell?

Can someone please explain to me the logic of this: In one cell, when writing ...
6
votes
1answer
168 views

How to prevent notebook from moving/reshuffling code around while one is typing?

Is there a way to configure Mathematica so that the code does not move around while one is typing? It is driving me crazy and I can't see what I am typing as the code is being reformatted while ...
2
votes
1answer
128 views

How can I programmatically specify the positioning of a window at the time of its creation?

CreateDocument[{}, WindowSize -> {100, 100}] always centers the new window.
0
votes
0answers
128 views

Opening a saved notebook in Mathematica 10

I have never had an issue with opening a saved notebook before, but recently installed Mathematica 10 and saved my first notebook with it. It's saved as .nb and is ...
4
votes
1answer
134 views

How to make Mathematica save all open files, or automatically ask to save each file when closing

Here is the scenario: You have number of open notebooks at the same time, and made some changes in all or some of them but have not yet saved the changes. Mathematica does not have something like ...
5
votes
1answer
120 views

How to stop V10 asking to continue with updated styling each time I open a new notebook

Each time I open a new notebook, using File->New->Notebook, I get this message Then I check on the "Do this for all notebooks". But when I repeat this and want to create a new notebook, it asks ...
24
votes
2answers
677 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: ...
2
votes
1answer
63 views

Print notebook with all cells opened

I have a long Mathematica notebook where some cells on multiple levels are closed for clarity. When I export the notebook as a PDF via Print or ...
1
vote
2answers
75 views

Overwrite contents of a cell

I am trying to figure out a way to change the contents of a cell that has previously been evaluated in my notebook. To do this, I'd like to overwrite the cell. I've seen questions like How to pipe ...
3
votes
1answer
66 views

How to control frame thickness in Grid object exported to .pdf?

I would like to export a Grid object to a .pdf document (preferably as part of a notebook). Here's an example: ...
0
votes
0answers
24 views

Clear variables [duplicate]

I'm new in Mathematica and I am working with various notebooks. My problem is that when I run a notebook, it seems taking definitions from the previous notebook. For example in 'notebook1' I make an ...
4
votes
3answers
185 views

How to highlight the whole selected cell

Is there any way to highlight the whole selected cell? some times if I want to delete a certain cell and if the code is long and cells are without output, it is hard to know which cell that you are ...
1
vote
1answer
107 views

Open parent cell groups of selected cell

I wrote a small script for a palette, which allows me to highlight a specific cell in a notebook by using SelectionMove[mycell, All, Cell]. The cell is selected as ...
2
votes
2answers
59 views

How to combine notebook into one cell

I want to have my entire notebook be a conditional while statement. However, I don't want to merge all of my cells together, as it is a long and detailed process. Is there a way to create another cell ...
0
votes
1answer
103 views

Multiple Mathematica notebooks in a tabbed window with line numbers

I have the following questions: Is there a way to open multiple mathematica notebooks in tab group rather that each mathematica notebook opened in separate window? Is there a way to display line ...
0
votes
0answers
86 views

Invisible characters being inserted into the output from FindMaximum

I have been using Mathematica for quite some time but I have never seen anything like this. It started without warning and I am not sure how to fix this. Please have a look at the following example ...
6
votes
1answer
160 views

How to modify font for all text fields?

I know that one can modify the StandardForm style so that all input and output codes (and maybe other things too) follow that style. This makes it tricky to make input code different from output code ...
2
votes
2answers
97 views

Set all output to be of specific form

I want every output expression in a notebook to use //PowerExpand and also to format numbers as scientific. Is there a way to do this without explicitly calling ...
3
votes
1answer
154 views

How can I recover the source code from cdf file?

by a mistake I have deleted the nb file by which the CDF was generated. All required definitions were in one cell. If I remember the code looked like this: ...
1
vote
2answers
78 views

Cell with no form using NotebookWrite

Is there a way to create a cell with no form? Usually a cell is either an input cell or an output cell, for example if you do NotebookWrite[InputNotebook, "test"] ...
1
vote
1answer
56 views

Can tab just mean “insert tab character”?

Is there a way to set the tab key to simply insert the tab character in a notebook? I often find the sometimes mysterious "features" bound to that key detrimental.
3
votes
1answer
47 views

Apply a function to the current selection in place

Say a have the function foo: foo[x_] := x + 2 Like the Evalution ...
0
votes
0answers
51 views

Evaluating expressions stored in notebook from Java

The Mathematica kernel can generally open a notebook and evaluate the functions present in the notebook using UsingFrontEnd Command. Example: ...
9
votes
1answer
493 views

Why is plot legend unsafe?

Every time I open a notebook contains a legend, I get the message warning that it's not safe. The file contains potentially unsafe dynamic content. Why does this happen and how to fix it?
2
votes
1answer
128 views

How to see source code of a demonstration in notebook [duplicate]

I downloaded this demonstration The source code can be previewed here However, when I download the NB file, I cannot get access to this said code. All I can see is the output. I'm obviously missing ...
0
votes
1answer
27 views

Inserting a closed section

Is there a way to insert a closed section? I know in .m files if you do (* ::Section::Closed:: *) and open the .m file using system editor, a closed section will be ...
2
votes
1answer
72 views

Defer parts of the expression

Is there a way to Defer only parts of the expression? For example, I have a=1; and then I want the expression to be shown as...
2
votes
2answers
62 views

How to paste multiple expression using PasteButton?

Is there a way to paste multiple expressions into notebook using PasteButton? For example, I want to do ...
1
vote
1answer
82 views

Merge StyleSheet into a notebook

I have a custom style called style1.nb and I want to install it into a notebook Class01.nb so I can send only the notebook file to my students with the style of style1.nb. Is that possible?
4
votes
1answer
79 views

Saving notebook, excluding output cells, without losing “working notebook” output cells

In order to discuss this, I think it's easiest to start with two definitions. (If there's a standard terminology, please comment.) Working notebook: a notebook that is open and in memory. Disk ...
0
votes
0answers
26 views

How can I automatically name files being exported based on input parameters

I have mathematica notebook that performs some operation say a=2 b=3 c=5 d=4 how do I set the output file after evaluation to be named using the values 2,3,5,.. like "2_3_5_4_" such that the the ...
12
votes
1answer
265 views

How to write documentation in Wolfram Style?

Rather than craft my own stylesheets for documentation, I'd like to emulate (copy? ape? borrow?) the Wolfram style. Here is a very small example (type this in the help-box, which you get by pressing ...
2
votes
1answer
128 views

Wrapping at evaluation for inline cell

I've been playing with inline evaluation and I've came to the conclusion that it's most convenient to put the Dynamic@ inside the inline cell, so I've started to ...
1
vote
1answer
58 views

how to make cells independent with each other in notebook

If we open DocumentationCenter and then run code, we will find that the Cells are independent from each other. For example: ...
4
votes
1answer
158 views

DynamicModule inconsistent behavior; was: DynamicModule persistent UI changes

Update: I'll restate the question in hopefully more terse and clearer terms. To illustrate the issue, run this and save the resulting notebook: ...
1
vote
0answers
62 views

Cells overwritten as “Null” [closed]

Last week an entire section of a notebook was overwritten(?) such that all cells (headers, text, inputs, and outputs) were merely Null. It was in a section of the ...
2
votes
1answer
80 views

Is it possible to auto-load documentation for current function? [duplicate]

As much as Mathematica amazes me with endless variety of integrated functions and packages, inconsistency with functions parameters or finding details about a function takes some time and isn't as ...
3
votes
2answers
124 views

Using MousePosition on the entire screen - Screencast with Linux

In order to record animations more easily while using Mathematica on Linux, I would need to know how to get the position of three clicks. The following picture (main part generated by ...
0
votes
1answer
26 views

How would I enable the Evaluate in place item of the Evaluate menu?

I would like to be able to suppress multiple outputs when a cell is evaluated. Is there a way to enable the "Evaluate in place" menu item of the Evaluate menu?
2
votes
0answers
44 views

$Failed below input area of new cell in notebook

The Mathematica 9 installation on my laptop has developed an odd feature. Just underneath the grey line indicating the input area for a new cell, the expression ...
1
vote
0answers
97 views

How can I make my MM code more compact and readable? Can I put functions in different notebooks?

I'm doing some coding in MM9, but my program is getting quite large. It's mostly a bunch of functions defined at the beginning of it, but it's getting to the point where I have to scroll for a few ...
1
vote
1answer
42 views

expression contained across multiple cells

Is it possible to span one expression across multiple cells? E.g. long if statement or function evaluation. I looked in documentation and searched forum/google and could not find.
1
vote
1answer
45 views

How to create a user interface, that when a user clicks a button the entire display changes? [closed]

For example, the 'main menu' user interface has three buttons each labeled with a different level. Whenever button is clicked how do you display that level of the game without creating a new notebook? ...
4
votes
1answer
191 views

Can I enter the traditional form for Binomial as input in an expression?

Is there a way to enter the traditional form of a binomial coefficient, i.e. ${n \choose k}$ instead of Binomial[n,k], like I would enter a radical sign $\sqrt{x}$ ...
0
votes
0answers
30 views

Sending a command to an already opened frontend

I'm trying to pipe low-level notebook commands to work through terminal and I've tried various ways, but I can't really get to the frontend that's already open. For example Opening a notebook from ...
0
votes
0answers
46 views

Applying Notation rules retroactively to a notebook

Suppose I define a new notation rule like Notation[OverBar[x_] ⟺ mean[x]] If I already have some notebooks that were written using ...
1
vote
2answers
209 views

How to evaluate Modules in a notebook from another notebook?

I would like to create a notebook populated with several modules and be able to evaluate these modules by running a separate notebook. I have attempted several uses of the ...
6
votes
1answer
132 views

Keyboard shortcut for moving to last edit location/cell

When you have long notebook with hundreds of cells, you sometimes need to scroll/jump manually to your last edited cell. I dind't find any shortcut for doing that. Any ideas?
1
vote
1answer
92 views

Creating hyperlinks from a list of file names

Suppose I use FileNames to get a list of file names. I know that it's possible to make a hyperlink using this kind of pattern.... ...
2
votes
0answers
59 views

Maintaining postfix convention for directives in notebooks

It seems to be a fairly common convention to write certain 'meta' functions in postfix form like f[x] // Simplify to keep the the mathematical content at the ...