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
2answers
83 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
107 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
344 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
45 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
270 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
233 views

Deleting Print results

While playing around with $Pre and $Post I created this very annoying piece of code: ...
3
votes
2answers
234 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
54 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
51 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
131 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
103 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 ...
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
1answer
130 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
125 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
142 views

Mathematica takes too long to solve this

I have the following system of equations: ...
3
votes
1answer
66 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
193 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
2answers
144 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
95 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
94 views

Bug report: Attempting to Save Selection As… in a magnified Notebook fails with errors

I have found that attempting to Save Selection As... in a magnified Notebook fails with errors. On my system it can be easily reproduced by: opening any documentation page setting Notebook ...
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
78 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
83 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
384 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
94 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
241 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
235 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
268 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
91 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
140 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
154 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
167 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
205 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
81 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
126 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
107 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
132 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
227 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
83 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
59 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
52 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
79 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
76 views

NotebookWrite Cell with Grid

I'd like to NotebookWrite a Cell in StandardForm with a ...
2
votes
1answer
84 views

Cell format for screen headers

If one picks the menu option Format->Edit Stylesheet and then one opens the "Default.nb" link, the newly opened notebook has a header that reads "Deafult.nb" style definitions. In one navigates down ...
2
votes
1answer
121 views

Hide both input cell and output cell

You can double-click the right gutter of a input cell to hide a corresponding output cell or double-click the gutter of the output cell to hide the input cell. I would like to hide both the input and ...
2
votes
1answer
91 views

WholeCellGroupOpener and Hyperlinks

My problem is: I would like to activate WholeCellGroupOpener on a cell containing hyperlinks. But when I do that, the hyperlinks are no longer active. Is there a way to change the order of the two, so ...