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
232 views

Welcome screen (V9): selecting notebook from Open Recent … results in initialization cells not evaluating

The following represents an abbreviated example of more complicated code, but it replicates a problem the more complicated code encounters. ...
2
votes
1answer
147 views

Spelling dictionary corrupted

Bug introduced in 9.0 and fixed in 9.0.1 I have a problem with the Check Spelling in Mathematica, that I quite don't understand: If I try to use the Check Spelling on any notebook, the check just ...
4
votes
1answer
141 views

Unexpected result when reading Cell with comment-lines by NotebookRead

Bug introduced in 9.0 and fixed in 9.0.1 When considering this question about re-formatting Cell (also this one), I encountered an issue which confuses me. I'll ...
12
votes
0answers
177 views

Is there a convenient/automatic way of uploading a notebook into SE?

This post discusses how to streamline the other way - extracting code from a fragmented and longish SE answer but I imagine a two-way workflow like: Fashion an answer/question in an SE-templated ...
3
votes
0answers
46 views

String option names for Cells

They seem to be correctly interpreted. I'm asking because of some minor reasons and a major one: NotebookWrite a Cell with WholeCellGroupOpener option I don't know any official confirmation so let ...
1
vote
0answers
113 views

How can I protect my notebook file with a password to open and save changes?

I want to protect my .nb file with a password, because now I'm using a free access computer in my university. Everybody student in my university can use that computer and I do not want my .nb file can ...
4
votes
1answer
119 views

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

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 CDF document. Is there a way to embed the data ...
9
votes
2answers
253 views

How to return notebook's own file name

What command within a notebook will return the file name of that notebook?
11
votes
1answer
716 views

How to copy code out of notebook to an external text editor without extra line feeds being added?

I am simply trying to copy code from a cell (input cell) in a notebook, to paste the code into a plain text editor, and not have some lines wrap in the middle. I need to copy the code, as is, to a ...
4
votes
1answer
78 views

Changing one line in code to Traditional Form?

I was watching this video: Animating Heat Equation. The speaker had this code (just prior to the 60 second time level): ...
5
votes
1answer
67 views

Framing a combination of cells in the notebook

In my notebook, I have the following cells, which I tried to put around a single frame with a light blue background color. After entering the cells, I selected all four, then clicked the frame ...
3
votes
2answers
165 views

Drag and Drop Support

Is there a way to effectively get drag and drop so you can drag files onto nbs in Windows? For example similar to the way .bat scripts work. Ideally I would like the script to automatically execute ...
8
votes
3answers
1k views

Quickly editing the stylesheet and saving it

I have a private stylesheet I'm using. I edit it by going to the menu Edit->Edit Stylesheet and then clicking on the private stylesheet cell. I can modify whatever I want but it never gets saved. The ...
5
votes
1answer
98 views

List of Recently Opened Files

If I go to the menu bar and press File I get a list of recently opened files.This would be useful except they are edited and mostly replaced by dots thus making choosing difficult. See the screen shot ...
2
votes
0answers
23 views

SelectionEvaluate executes out of turn

I'm seeing some unexpected (to me) behavior from SelectionEvaluate. I've got a notebook with two sections. In section 2, I've got code that clears the notebook's ...
5
votes
2answers
79 views

How to make a notebook take action whenever a particular symbol is defined or redefined?

For teaching purposes, I want to create a Mathematica notebook that will "notice" when the user defines or redefines a variable or function of a particular name, so that it can check the value and ...
10
votes
1answer
87 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: ...
8
votes
0answers
102 views

Wrapping text around pasted graphic

I would like to use Mathematica to create all my documents for my high school math class. I cannot, however, find a way to copy and paste a diagram (let's say from Geogebra) and then place it where I ...
7
votes
1answer
989 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 ...
7
votes
0answers
90 views
4
votes
1answer
70 views

Split/unmerge merged cells in notebook file

I have merged cells in a Notebook file. Is there a way to split such a merged cell group back to single cells, in each of them being one command?
0
votes
2answers
40 views

Notebook cells space on disk profiler

I have one single notebook with more than 500 mb... To control its growth, I would like to have a profiler of used space (not the live memory, but the space on disk), in such a way that I can easily ...
15
votes
1answer
875 views

my Mathematica has turned orange and not able to find out why

I do not know what happened. But when I rebooted my PC, now Mathematica comes up orange colored. I shut down the PC and tried again, it is still orange. Here is screen shot: I also did a reset. ...
6
votes
1answer
291 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}$ ...
2
votes
1answer
42 views

SetDirectory[NotebookDirectory[]] in one notebook causes Directory[] to change in a different notebook

This is causing me lots of problems. I found that issuing SetDirectory[NotebookDirectory[]]; in notebook A.nb causes subsequent ...
6
votes
0answers
60 views

NotebookWrite a Cell with WholeCellGroupOpener option

Why NotebookWrite[ EvaluationNotebook[], Cell["ZZ", "Section", WholeCellGroupOpener -> True] ] produces: ...
7
votes
1answer
83 views

How to sort cells?

Is there a way to programmatically reorder the section cells in a notebook alphabetically? For example:
1
vote
0answers
52 views

Notebook style which imitates Latex paper

I have not experimented with Notebook styles, but from what I understand they can be customized to a wide range of styles. Is there a style which looks like a typical paper written in TeX/LaTeX? My ...
0
votes
0answers
26 views

Entire notebook merged to one cell after crash

I have just reopened a notebook in Mathematica 10.1 after a crash, and find all cells have been merged, including the labels on input and output cells (In[202] := ...
3
votes
0answers
27 views

Collaboration / refererencing in the notebook environment (without Workbench)

Discussing with my co-authors over the phone, I often find it hard to point out a specific input/line/part of a notebook. (I am not using Workbench) The input numbering "In[1,...]:=" helps but ...
2
votes
3answers
53 views

Display a part of a notebook when MMA has done evaluating it

When you evaluate a notebook, it begins to slide upward and shows you a different part of your code, several cells upstream of the notebook... I was wondering if there is a command that could always ...
0
votes
0answers
42 views

Saving a notebook before a crash

On the MacBook Pro, Command+S saves the notebook. So, every few minutes, Command+S is invaluable. What do other folks do? For example, in TexShop, when I compile my LaTeX code, the file is ...
4
votes
0answers
75 views
15
votes
3answers
2k views

Relative paths for portable notebooks in Mathematica

I cannot find how to use relative paths in Mathematica. My directory structure is simple. ...
33
votes
1answer
495 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
1answer
50 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
27 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
99 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
161 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
62 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
368 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
72 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
53 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
39 views

Consistency between MousePosition and WindowMargins

MousePosition["ScreenAbsolute"] absolute position within the complete screen display WindowMargins specifies the ...
2
votes
2answers
361 views

notebooks not opening in mathematica 10

I`m a guest here, and thought I could just ask you guys. ...
4
votes
0answers
97 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 ...
0
votes
1answer
34 views

How can I make a RadioButtonBar that randomizes the choices each time a notebook is opened?

I have the following function for making a RadioButtonBar with randomized choices. The code is ...