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)

33
votes
1answer
468 views

Do Mathematica notebooks include personal metadata?

I am about to send a Mathematica notebook to someone and I would like to make sure it does not contain any information that could personally identify me. I would also like to produce pdf files from ...
2
votes
1answer
100 views

AutoGeneratedPackage Formatting

If you do Ctrl+Shift+o you open an option inspector. And then you can enable ...
1
vote
2answers
41 views

Table of sections with CellPrint

I am trying to produce a table of sections with each section containing a DynamicModule. My two questions are: (1) How do I produce grouped sections that are folded ...
0
votes
0answers
26 views

Shortcut to call recent inputs

I am familiar with CTRL+Shift+L to call the last input; however, in the case that I want to, for ease-of-comparison, want to print outputs of a command from further in the past and don't remember ...
4
votes
4answers
89 views

How to set the output be generated in a cell different from “Output”

I would have some functions, for instance Plot, to generate their output using a different Cell's style rather than "Output". The reason is that I'm producing some documents with many images and, for ...
6
votes
0answers
149 views

What is the difference between NotebookEvaluate and FrontEndToken

I am wondering what exactly are the differences in using NotebookEvaluate[filename] vs ...
1
vote
0answers
36 views

Edit Notebook options in version 10 [duplicate]

This is a follow up question to this one. I was closing a notebook without saving, Mathematica (10) showed me this dialogue: and I clicked "Save", when I re-opened the notebook I found this ...
1
vote
0answers
52 views

How to recover a notebook?

I was closing a notebook, luckily Mathematica (10!) asked me if I really wanted to quit without saving, so I saved, but now when I open that notebook this is what I see: Is there a way to recover ...
13
votes
3answers
361 views

Notebook vs. DocumentNotebook; display a Notebook inline, like a DocumentNotebook

If you evaluate a DocumentNotebook[] expression in the front-end, it nicely displays inline, inside of an output cell in the current notebook: For my purposes, ...
2
votes
1answer
69 views

Programmatically selecting non adjacent Cells

One can of course Ctrl + MouseClick to select 1st and 3rd cell. But how to select non adjacent Cells programmatically? I was looking for neat examples here or in ...
0
votes
0answers
38 views

problem of re-open the .nb file of Mathematica

This probably is a newbie question, but I cannot figure out it. I have a Mathematica 10. Every time when I re-open a .nb file, either by double clicking or by using the software interface, all cells ...
1
vote
1answer
36 views

Consistency between MousePosition and WindowMargins

MousePosition["ScreenAbsolute"] absolute position within the complete screen display WindowMargins specifies the ...
3
votes
1answer
49 views

Is there a way to change the indentation behavior of the postfix operator //?

For example, using newlines after // results in some really weird indentation: Ideally, I'd love to be able to do something like this: ...
5
votes
1answer
950 views

Manipulate (Linux version of Mathematica)

I'm runnning Mathematica 9 on Ubuntu 11.10. After installing CDF player I still have problem (most of time) with Manipulate. Only way I'm able to change value of a ...
2
votes
2answers
317 views

notebooks not opening in mathematica 10

I`m a guest here, and thought I could just ask you guys. ...
4
votes
0answers
79 views

Possible Mathematica Bug? Blank Screen

I'm a student using Mathematica on a 2012 macbook pro with OS X Yosemite. Mathematica was running fine on my computer for a long time - one day, seemingly randomly, a blank screen started appearing ...
1
vote
0answers
29 views

auto save a notebook using init.m

I tried to make mathematica autosave as default, so I put Sjoerd C. de Vries's code ...
-5
votes
1answer
120 views

Exporting data from different notebooks to a common file

I am doing some calculations from different notebooks. I need to export the results from all those notebooks in columns of the same file, like a1 b1 c1 a2 b2 c2 a3 b3 c3 . . . where a, b ...
10
votes
1answer
286 views

Docked Cell lesson chooser

I have a question about creating a docked cell that will let me choose files. This is just as much a "design" question as a Mathematica question. I'm a math teacher and I want to bundle a bunch of ...
0
votes
0answers
41 views

DisplayFormula badly rendered if style is set before writing

If I have to write a display formula, I go to the cell after the text cell I'm currently into, select the DisplayFormula from the Style menu and then write. The ...
7
votes
2answers
392 views

Adapting “Find and Replace” functionality to work with Patterns

I was thinking if there is something like Find and Replace (Crtl+F) functionality adapted to work with patterns. Probably not, but it seems possible to create this with some effort and skills in ...
12
votes
3answers
538 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 ...
0
votes
0answers
31 views

How can I export a notebook into multimarkdown?

Mulitmarkdown (.md filetype) is a very nice document format that supports rendering mathematical expressions like latex or mathml, rendering syntax highlighted code blocks for any language, as well as ...
8
votes
1answer
147 views
3
votes
1answer
80 views

Is there a way to embed a data set in a notebook?

I'm relatively new to mathematica programming. I have a data set (currently a table in a .csv file). I would like to share this notebook with colleagues either as a notebook, or (even better) as a ...
5
votes
2answers
161 views

Set the style of a cell

I know it's possible to programmatically change options on the selection in a notebook. I'd like to create a button that lets me change the style of a cell. It's a style that doesn't have a keyboard ...
2
votes
1answer
99 views

Separate output screen; clearing (cleaning) output screen

Is there a way to split the screen so that the code is on top visible, and execution of code look at the bottom? Is there any way to clean the screen from previous runs, so that the result of ...
6
votes
0answers
258 views

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

Bug introduced in 9.0.1 or earlier and persisting through 10.0.2 or later I have found that attempting to Save Selection As... in a magnified Notebook fails with errors. On my system it can be ...
4
votes
1answer
79 views

How do I create a notebook with the functionality of the Mathematica help system?

I'd like to create and distribute a notebook that functions very much like the help window that appears in Mathematica to provide documentation about functions, tutorials, and etc., but my content ...
2
votes
2answers
64 views

What is the fastest way to get notebook CellGroups / Cells structure?

So the question is how to get this kind of information: from This is one of my ideas: ...
7
votes
2answers
171 views

Why can't I change the style of a cell repeatedly?

I ran into this when I was working with an example from the Help Pages of V9. Cells is a new function added in V9. The following appears to work the first time it ...
4
votes
2answers
88 views

How can I get the style of a CellObject?

I want to work on a notebook programmatically with CellObjects. lets create a notebook for example: ...
11
votes
1answer
392 views

How to convert a notebook cell to a string retaining all formatting, colorization of identifiers etc?

I have an opened Mathematica notebook containing several cells. Suppose, I am interested in one of them -- it may contain a complete or incomplete expression (e.g. with syntax errors, highlighted ...
13
votes
2answers
1k views

How do I automatically evaluate a cell when a notebook is opened?

I'm trying to put together a GUI in Mathematica and need to evaluate one cell to kick that off. Is there a way to automatically evaluate that cell when the notebook is opened? Here is an example of ...
1
vote
1answer
60 views

Writing cells from other notebooks into current notebook?

I have a large number of Mathematica notebooks which contain study notes for different topics (as opposed to actual Mathematica Code). I'm trying to develop some code to randomly pull parts of a ...
2
votes
2answers
65 views

NotebookWrite in EvaluationBox forces Input CellStyle

There is a promissing new function EvaluationBox[] and a nice last example in documentation section for it: ...
1
vote
1answer
88 views

Can Save[] produce a .nb file instead of a text file?

(I use Mathematica 9.0.1 on OS X 10.10.2.) Suppose I have a notebook in which I make some definitions and assignments. ...
0
votes
0answers
52 views

Is there a way to create a two column page layout in a notebook? [duplicate]

I am working on a white-paper that requires a two column format. Is there an existing Stylesheet that can be used or a way to create a Stylesheet that supports this Mathematica?
0
votes
1answer
29 views

How can i specify a NotebookSelection by a given CellObject?

My Questing is very simple. If I have a CellObject e.g. CellObject[Text], I can move the selection to this ...
6
votes
5answers
404 views

How to create a screen shot of a notebook

I would like to use Mathematica programmatically to take snapshots or screenshots of any open notebook. For example, I would like to get from the notebook created with this command ...
2
votes
0answers
72 views

How to convert a notebook to an association and back?

I have a notebook that serves as a nice readable document but is it a database of sorts, I'd like to transform this into an association so I can manipulate and export it as a dataset. Here is a sample ...
30
votes
4answers
1k 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: ...
10
votes
1answer
537 views

Why is plot legend unsafe?

It has been fixed in version 10. 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 ...
5
votes
2answers
241 views

How to make a notebook that will be window maximized when open?

I use CreateDocument[cells, opts] to create a notebook. When the notebook is open, it has a small default windows size and I need to manually maximize it every ...
23
votes
4answers
5k views

How to Keep Input Cells Hidden After Evaluating Notebook

I've created a notebook for use in an in-class presentation. There is a fair amount of MMA code, and my students know nothing about MMA nor do they need to. I don't want to distract them with the ...
0
votes
0answers
14 views

Update Type 1 fonts with Opent Type fonts

Hi I have very old notebook files which was composed 2009, where few fonts was used with Type 1 but now I want to replace with open type format. Also I have stylesheet, do I need to do any changes in ...
12
votes
2answers
391 views

how to make cursor jump automatically to next input cell after evaluating previous one?

When making separate cells in order to make separate computations to better see the result of each one before going to the next cell to do the next computation (which is a good way of doing things), ...
9
votes
1answer
157 views

How to save the result in the Notebook (.nb) and shut down the computer when the calculation is done

I have a notebook(.nb) which its calculation is time-consuming and long. I can not observe it if the calculation is done or not. Therefore, I want to : Save the results in the notebook(.nb) ( I do ...
2
votes
0answers
58 views

How can I apply NotebookGet on invisible Notebooks?

My problem might be very specific, but can be quickly explained: First I create an invisible notebook nb by CreateDocument, then i apply NotebookGet on it to see its content, wich works fine! Now I ...