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)

3
votes
1answer
127 views

Conditional printed output [duplicate]

I would like to use a Mathematica notebook as a printable document with conditional output. If the condition is true, some parts of the notebook should be printed; otherwise they should not be ...
3
votes
3answers
127 views

How to create a button that colors a selected piece of text in a cell?

I use Mathematica 9.0.1 and I want change the color of a selection in a text cell using a button. But when I use this code it changes the color of the entire cell. ...
3
votes
1answer
107 views

Handling of non-file URI

According to the manual, Hyperlink “represents a hyperlink that jumps to the specified URI when clicked”. OneNote produces hyperlinks that begin with onenote://. In Mathematica, creating a hyperlink ...
3
votes
2answers
141 views

Include Headers on first page

I know it is possible to check the box "Include headers on first page" in the "Headers and Footers" dialog box of the Print Settings menu item, but is it also possible to check this using commands in ...
3
votes
2answers
84 views

How to extract input part of a notebook?

For example, how to make Mathematica display only the lines beginning with In[some number]? ...
3
votes
2answers
116 views

ToBoxes Respect Spaces Code

Is there a way to force either ToBoxes or MakeBoxes to respect the spacing that occurs in the code? For example is there a way ...
3
votes
2answers
1k views

Taking class notes with a Mathematica Notebook

Dose anyone take notes in a technical class using a Mathematica notebook? If anyone does, how does it compare to paper and are there useful commands? I have a hard time remembering ctrl/alt/esc ...
3
votes
2answers
360 views

Page breaks appearing as thick line on actual print-out

I'm using Insert->Page Break to do just that, but thick black lines are appearing on the actual printed copy wherever I indicated a break. Can this be turned off?
3
votes
1answer
162 views

Mathematica 8 and window names for modified files

I do not know if this is particular to Mac OS, but with version 8, the window name of a notebook no longer changes (with an appended *) when it is modified, as it used to do with version 7 (as well as ...
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 ...
3
votes
1answer
126 views

how to load everything when opening a saved notebook

generally, when I carry over work in a notebook from the previous day, I have to physically start from the top and re-evaluate every statement before I can begin from where i left off. Is there any ...
3
votes
1answer
318 views

Automatically dealing with “disable dynamic updating”

I'm programmatically creating notebooks containing dynamic content. When a new notebook is being created, a window pops up: I then manually click on "Continue" and it will create the notebook. The ...
3
votes
2answers
270 views

Deleting Print results

While playing around with $Pre and $Post I created this very annoying piece of code: ...
3
votes
2answers
237 views

How can Magnify be forced to ignore the notebook's window width?

In a new notebook, I can illustrate how the action of Magnify is cut off by the window width: ...
3
votes
1answer
64 views

Export notebook as epub?

Is there a way (preferably easy!) to have Mathematica export a notebook or CDF as an epub document, to be read on an e-reader? It would certainy seem possible to export as HTML, and then use ...
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: ...
3
votes
1answer
160 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: ...
3
votes
1answer
158 views

Disable and Enable Hyperlinks Graphics

I have a Graphics element which I edit with Drawing Tools. I have determined a technique using NotebookWrite to add ...
3
votes
3answers
206 views

Preventing notebook cells from being broken across two pages when printing

Sometimes I create a number of plots together, e.g. by GraphicsGrid[]. If it happens that I have to print the notebook, very often the cell is broken, half on one ...
3
votes
1answer
151 views

How to replace a string within a selected region in a notebook?

I want to replace a string in a selected region/cell in mathematica notebook/package. I searched but didn' t get any result. I think it' s a quite common feature for editors/programming environments. ...
3
votes
1answer
139 views

automatically add Global` to $ContextPath for all notebooks when using CellContext->Notebook

I have some definitions in my init.m. E.g. my init.m contains this: ...
3
votes
1answer
176 views

Mathematica takes too long to solve this

I have the following system of equations: ...
3
votes
1answer
68 views

NotebookWrite an expression

I'm trying to write a notebook from the kernel, so using one list of elements in one document, I'd like to create a second document with some interactions between the elements of the list. For that, ...
3
votes
2answers
148 views

Mouse cursor very slight difference

Mathematica uses a very thin, translucent cursor in Input style cells. But in text style cells Mathematica uses a cursor theme from Windows. How do I make the cursor visible as normal? photos of ...
3
votes
0answers
101 views

Mathematica 10 : Where is the Mathematica Book? [duplicate]

The question is simple. In Mathematica 9, there used to be "The Mathematica Book" integrated with the software in the help system. I can't find it anymore in version 10. Do you know if it is still ...
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 ...
3
votes
0answers
80 views

Make all new cells have a specific style as a function of the Mathematica installation

I would like all new input and output cells, in fact all new cells including section headers and such, to have a specific stylistic property (...
3
votes
0answers
85 views

Sometimes notation gets auto-converted from traditional to raw input and won't convert back

For example, I'm typing this: When upon hitting the last character it gets converted to: And trying to Convert To TraditionalForm has no effect. This glitch has happened a few times and on ...
3
votes
1answer
394 views

Option to change cursor/caret shape

While editing on a Mathematica notebook, I often find myself needing to do something else outside of Mathematica for a few hours. After finishing such outside tasks, I resume to work on the notebook. ...
3
votes
0answers
95 views

How do I direct output to a specific notebook or cell? [duplicate]

Possible Duplicate: How to pipe a stream to another notebook? Is there any way to create a stream so that all output to the stream (from Write or ...
2
votes
2answers
263 views

Is there a way to “lock” some cells in a notebook?

Is there a way to "lock" some cells in a notebook so they can't be edited? It's usually input cell that's documenting some functionality. I'd like other readers of the notebook to be able to execute ...
2
votes
3answers
248 views

Making data persistent, as in xmgrace

I've been using xmgrace for quite a long time as my favorite solution for scientific data manipulation and plotting. These data often come from home-made fortran programs, in the form of, e.g., a ...
2
votes
2answers
272 views

Creating a “Live” Index Notebook --to load other Notebooks

I am new here, so let me know if this question is inappropriate. I've been stuck for many hours on this puzzle. I know it should be easy, but for me...? I want to create a Notebook (call it "Index ...
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 ...
2
votes
2answers
143 views

How to find out if invisible notebooks are still open

If I create a notebook CreateDocument and I set options such that Visible -> False, is there any way to tell if it's still ...
2
votes
2answers
161 views

Programmatically writing to a notebook in TraditionalForm

I'm trying to get a Cell to appear in TraditionalForm when using NotebookWrite. Here is the closest I can get: ...
2
votes
2answers
172 views

How do I make Mathematica copy a cell after I re-evaluate it?

When I edit a cell in the notebook and re-evaluate it, it "overwrites" the input and the output of the previous edit. I want it to copy my edited version to the bottom or something and give me a ...
2
votes
2answers
213 views

Evaluation of Notebook chosen by FileNameSetter

Please consider the following: I have created a GUI where I can choose the path of a notebook (which I need for later calculation) via ...
2
votes
1answer
88 views

Operator-Input Form for Lists?

The documentation on Operator-Input Forms shows the following example which suggests that there is an alternative, convenient, operator-style, tidy technique for inputting lists. However, there is ...
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.
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 ...
2
votes
2answers
142 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 ...
2
votes
1answer
289 views

How to calculate the whole run time in a specific notebook?

I have found a way to show the run time in a specific cell in a notebook (.nb). Now, I want to have the whole run time including all cells in a specific notebook. How is it possible to calculate it ...
2
votes
1answer
87 views

How to make a notebook not savable?

How to make a particular notebook not savable? Optionally, how to do this by evaluating a command in the notebook?
2
votes
1answer
39 views

Save imported sound into a notebook (so I can e-mail it)

At the end of my code I'd like to put an imported (wav) sound. I would then play it with EmitSound[my_sound] when this cell will ...
2
votes
1answer
66 views

CreateDocument options needed to suppress the default notebook menu

What are the options needed in Mathematica 10 to suppress the menu on top of any notebook created with CreateDocument? For example, the Messages window as well as the windows generated by ...
2
votes
2answers
60 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 ...
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
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 ...
2
votes
2answers
81 views

NotebookWrite Cell with Grid

I'd like to NotebookWrite a Cell in StandardForm with a ...