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)

0
votes
1answer
43 views

Mathematica Wont Open [duplicate]

Mathematica 10 will not open on my computer which runs Windows 8. It is stuck on the initializing kernals screen regardless of whether I try to open the program or open an old document. The problem ...
3
votes
0answers
26 views

NotebookAutoSave -> True “partially” working?

I am a novice to Mathematica (using v10.2) and was wondering why: SetOptions[SelectedNotebook[], NotebookAutoSave -> True] does not switch on ...
5
votes
3answers
65 views

How to center a graphic in its output cell

Say I have produced a single graphic ouput, perhaps a plot. Instead of displaying left-aligned in the notebook, I would like it to display in the center of the output cell. I would like it to stay ...
2
votes
0answers
46 views

notebook scrolling problem in 10.2: worse than ever? how to fix?

I use Mma notebooks to present in the classroom, so for me this is a serious problem. Before starting a class, I close all the sections, subsections, and subsubsections. During a lecture, I open ...
10
votes
1answer
64 views

How to share a notebook?

I have a folder in dropbox syncing to my desktop. I tried sharing a notebook file this way, but this generates lots of errors, conflicts, and data loss: I have notebooks with Dynamic and other ...
13
votes
1answer
113 views

How to restore corrupted files?

I have a file that I can't reopen because MMa was "Not Responding" and I had to shut it down. I found links online to this: http://support.wolfram.com/kb/12423 I executed those two instructions in a ...
4
votes
1answer
69 views

How to close all tagged input cells without closing their output cells?

I have tagged certain Input cells I want to be closed during a presentation. I close them as follows: ...
6
votes
2answers
127 views

How to group cell type A under cell type B?

My notebook's groupings for "Subsection" and "SubitemNumbered" are broken: And by broken, I mean I wanted it to automatically group like this which I did manually (with lots of control+shift+g) ...
1
vote
0answers
29 views

Loading a notebook to a website

When I upload a Mathematica notebook to my website, when I click on the link, it opens, but as text, not a Mathematica notebook. At some sites, when I click on a Mathematica notebook, the notebook ...
4
votes
1answer
60 views

How can I remove I a horizontal line I inserted into my notebook?

Inserted a horizontal line with Right click > Insert > Thin Horizontal Line. Cannot see a way to remove such a line. Help!
3
votes
0answers
74 views

Change the background color of matched strings when doing find-and-replace

This is not a fundamental question, but it puzzles me. In doing a Find & Replace for some string in a notebook, the matched string is highlighted temporarily with some background color (green for ...
4
votes
0answers
50 views

Why does NotebookDelete fail on cells with Copyable set to False? Bug?

Bug introduced in 9.0 or earlier and persisting through 10.2.0 Consider this: ...
7
votes
1answer
99 views

How to programmatically mark and then select a subset of input cells?

I'm developing a package that needs to exert significant control over a notebook while a user interacts with it. One specific thing that it needs to do, programmatically, is to select a specific ...
1
vote
3answers
112 views

How can I clear the content of my notebook in Mathematica? [closed]

The Clear command is for clearing definitions of symbols. Is there any built-in function to clear the work area of my Notebook?
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 ...
9
votes
2answers
259 views

How to return notebook's own file name

What command within a notebook will return the file name of that notebook?
1
vote
0answers
115 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
84 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
69 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
1answer
42 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
1answer
102 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 ...
5
votes
2answers
86 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 ...
8
votes
0answers
106 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
111 views

Hidden parent stylesheet?

Please follow those steps: ...
4
votes
1answer
73 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 ...
17
votes
1answer
899 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. ...
2
votes
1answer
48 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
65 views

NotebookWrite a Cell with WholeCellGroupOpener option

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

How to sort cells?

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

Notebook style which imitates Latex paper [closed]

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
43 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
76 views

How to export a Mathematica notebook into Markdown?

Is there a way to do this other than html + pandoc?
1
vote
1answer
58 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
28 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 ...
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
65 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 ...
0
votes
0answers
58 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 ...
4
votes
0answers
103 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
35 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 ...
1
vote
0answers
40 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 ...
10
votes
1answer
88 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: ...
0
votes
0answers
45 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 ...
1
vote
1answer
41 views

Consistency between MousePosition and WindowMargins

MousePosition["ScreenAbsolute"] absolute position within the complete screen display WindowMargins specifies the ...
0
votes
0answers
35 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 ...
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 ...