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)

1
vote
1answer
68 views

How to find the last output cell of the group to which a certain cell belongs?

Simple question, but I cannot find an answer in the documentation. I have a CellObject handle of some cell in some notebook. This cell has "Subsubsection" style, ...
39
votes
4answers
5k views

Saving data inside a notebook so that I don't have to run it again?

Piggybacking on this, I am somehow not fully convinced that I can't save data generated by a calculation in a mathematica file so that when I re-launch said file, I wouldn't have to run my ...
6
votes
1answer
46 views

Reading Cells or Boxes expression by expression

Let's say we have a cell: (*newline*) (*newline*) Plot[ x, {x, 0, 1} ] (*newline*) Plot[x, {x, 0, 2}] How to read it expression by expression? ...
19
votes
3answers
3k views

Relative paths for portable notebooks in Mathematica

I cannot find how to use relative paths in Mathematica. My directory structure is simple. ...
1
vote
1answer
44 views

Input in Manipulate

Plot[Evaluate[ Input["Please input a function of x to plot with one parameter \ \[Alpha] to manipulate"]], {x, 0, 1}] This work without doubt. But ...
9
votes
1answer
96 views

Creating Saveable->False notebooks

Bug introduced in 10.3 or earlier and persisting through 10.4.1 Reproduced on Windows 7, 10 I'm having difficulties with programmatic creation of non saveable notebooks on Windows with V10.4.1. ...
11
votes
1answer
1k 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 ...
4
votes
1answer
76 views

Is there a way to hide and show manually inserted page breaks?

If I create a Notebook that includes multiple pages I know that I can show/hide page breaks by using menu item File ► Printing Settings ► Show Page Breaks. I can ...
5
votes
1answer
67 views

How can I make an invisible Cell?

Notebooks have a Visible option, but Cell // Options doesn't mention any equivalent for ...
10
votes
2answers
161 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
1answer
65 views

Prevent evaluation after ToExpression

How can I produce both typesetting and evaluation of a LaTeX expression? Illustrative example: The evaluation of HoldForm[Sqrt[2.0]] == Sqrt[2.0] looks ok (aside ...
4
votes
1answer
52 views

To embed metadata in a notebook, keeping them both human readable and easily parsable

I' m trying to set up a gizmo to manage the large notebooks collection, in my Mathematica workspace. The main idea is to embed indexing metadata in each notebook and manage them by means of function ...
3
votes
0answers
26 views

How can I set notebook's options without opening it?

At present moment, to batch apply a change in a set of notebook I use a "brute force", rough, method: ...
2
votes
1answer
35 views

Export of all notebook files as text files

I want to export all my notebook files located in a root directory as text files. Below is a simple code that I use. Ho can I export "only" the necessary text content of each notebook file? ...
6
votes
1answer
150 views

How convert old version 2.2 .ma files to .nb notebooks?

I have a lot of old Mathematica version 2.2 .ma files that simply crash the current (10.4.1) version of Mathematica if I try to open them. Is there some way to ...
3
votes
1answer
35 views

Show In/Out names in some notebooks but not others?

I often have a working notebook and a "publication notebook". Figures and results are copied to the publication notebook to which explanatory text is added. The publication notebook can then be saved ...
1
vote
0answers
33 views

How to preview the notebook file in a file explorer just like the preview of pdf file

I use Mathematica for daliy small program and visualization, so I have many samll notebook files. I use long file name to tag and distinguish these files, but sometimes I use short file name (maybe ...
2
votes
1answer
75 views

Is there a global setting for Mathematica's base fonts?

I want to customize my Mathematica front end to specify the default monospace, serif, and sans-serif fonts; disable scaling and anti-aliasing on bitmapped fonts. Regarding (1), by far, I'm most ...
7
votes
2answers
844 views

Indenting bulleted lists in Notebooks

I currently use Word for notes, making nested bulleted lists as I go. I've just started using Mathematica and would like to do the same in its Notebooks, but it doesn't look like it has that ...
2
votes
1answer
63 views

Create a notebook and save it without prompting Dynamics

This is closely related to the recent: Creating self destructing notebook. However the answer doesn't work in my case. ...
5
votes
1answer
172 views

How can I get osx split screen to work

OSX on Mac now allows two apps to split the screen. https://support.apple.com/en-us/HT204948 Doesn't seem to work in Mathematica, even though the full-screen button displays an icon suggesting that it ...
3
votes
3answers
64 views

Magnification of a notebook image object

When you resize an image in a notebook with your mouse you get a tool tip with size and a magnification percent for your image: Is there some way to programmatically ascertain these values in the ...
0
votes
2answers
36 views

Cell label not appearing for pasted image

When I paste an image into a notebook the cell has no label. In the Generalized Input Tutorial: https://reference.wolfram.com/language/tutorial/GeneralizedInput.html#52003380 they show pasted images ...
2
votes
0answers
30 views

Indenting Bulleted List in Notebooks [duplicate]

I am writing a paper using Mathematica Notebook and need to create a bulleted list. I saw this answer (Indenting bulleted lists in notebooks) and was able to create a new stylized notebook with the ...
6
votes
3answers
114 views

The very bottom of CellMargins is missing

Bug introduced in 8 or earlier and persists through 10.4 Edit 16. IV 2016 I've received an answer from WRI Support: [...] It does appear that CellMargins is ...
3
votes
1answer
41 views

Difference between Initialization Cell and Group

Is there a difference between setting a Cell or a Group of cells to be an ...
3
votes
1answer
47 views

Editing a docked cell created with a notebook

I use the following code to create a new notebook for presentation slides with a docked "banner" cell: ...
0
votes
0answers
20 views

Whole notebook slows down after opening Drawing Tools

Is there a way to create own, simplified toolbox that would perform faster? I found the toolbox source, but I'm looking for an example on how to extract methods for e.g. drawing lines.
7
votes
1answer
103 views

Strange caching of Palette's TaggingRules

Please follow those steps to get the idea about the problem: Let's create a palette: ...
1
vote
0answers
53 views

Why do I get “There appers to be an error in the file named below”?

For first time in my life, I have just suffered the error: " "There appears to be an error in the file named below". "Parse and load the entire notebook upon opening.", doesn't help. I have saved ...
2
votes
1answer
63 views

How to create a fully styled Notebook with a Mathematica expression?

I want to create a new notebook by evaluating an expression, not from the front-end GUI, and I want to specify all styles for the notebook in the expression, using only stylesheets supplied with the ...
3
votes
1answer
91 views

undocumented backslash-lessThan operator in strings?

I'm aware of the backslash operators in strings, as in this SE answer, but I ran across a new one. I opened a new Styled Notebook ... in the front-end GUI, chose ...
10
votes
1answer
371 views

How can I change the style of every newly opened notebook?

I'd like to make Mathematica open a new notebook using the Natural Color template (under the Creative category) by default. Is that possible? If so, how?
4
votes
0answers
29 views

Is there a way to use iframes in a notebook?

For me, mathematica online is totally unusable, but the EmbeddedServices would be great to use. I wish that these functions worked in Mathematica, is there any hack anyone can think of to get these ...
1
vote
0answers
50 views

How to export a notebook to google docs (without losing image quality)

I have a large notebook with many text cells some containing images and I need to import it to a google document that is editable. (so not pdf or html). So far no luck! Exporting to rich text format ...
3
votes
0answers
37 views

devoting just some certain cpu's for a notebook [closed]

how can we devote certain CPU series to one notebook. For example, I have run a program on a notebook the result of performance is but I want to have two cpu's completely busy and two others ...
2
votes
1answer
64 views

Test whether the selection is a subexpression

I am writing a button that applies some transformation to the current selection, in a spirit similar to the question "Apply a function to the current selection in place". However, I would like to ...
1
vote
1answer
53 views

What sets of boxes can be selected?

In this question I am only interested in mathematical expressions arising in output cells, not more elaborate code which is typically found in input cells. My understanding is that such output is ...
8
votes
2answers
158 views

Labeled destroys the log scales in “log” plots when notebook is re-opened

Bug introduced in 10 or earlier and persists through 10.4 While testing this pdf export bug caused by Labeled, I noticed that this function also destroys the log ...
1
vote
0answers
25 views

What ordering function does Sort use to sort the open notebooks list?

After bustling about Sort @ Notebooks[] for a while, I have surmised that notebook are listed in decreasing order this way: ...
4
votes
2answers
54 views

Dynamic Tooltips displaying cell contents

I'm working on a piece of code that would allow me to make tooltips displaying contents of another cell (EquationNumbered style). ...
8
votes
2answers
215 views

How to paste an equation to a graphics

I wonder why PasteButton["Plot", Plot[\[SelectionPlaceholder], {x, 0, 10}]] applied to x^2 --- highlighted --- doesn't work.
1
vote
1answer
54 views

Calling functions defined inside Manipulate in other notebook?

I'm creating a notebook with a Manipulate and I'm trying to call/use a function from another notebook (I use Get for that), in ...
3
votes
2answers
44 views

Is it possible to retrieve a previous un-evaluated, un-normalized input?

For example, if I do this: In[42]:= {{2}, {3}} // MatrixForm where In[42]:= is the notebook prompt, I am looking for some way ...
5
votes
1answer
233 views

How to construct a tree from a notebook?

Given the notebook itself we can think of it as a tree graph: the root vertex is the empty notebook itself, the headers of cell groups are vertices, and all other cells as leaf vertices. I'd like to ...
5
votes
1answer
146 views

Import another Notebook as if it were a Package

Is it possible to import the contents of another (existing) notebook into the current namespace in the same way that I can with a package? I know that it would be best to use a ...
1
vote
1answer
37 views

Notebook Initialization

I am running Mathematica 10.2. I am having trouble automatically initializing a notebook. I realize that there have been several other questions/answers on this topic, but the advice given there ...
3
votes
0answers
46 views

Minimap of a notebook? [closed]

I usually code in Atom or Sublime, both of which have a very nice high level outline of the entire file called a minimap. Here's an example: It scrolls with you and highlights the area of the file ...
1
vote
0answers
34 views

What does 'Inherited' mean in StyleData? [duplicate]

I'm having a trouble with notebook styling. Please, consider the following, self explicative, screenshoot. I thought that this code ...
3
votes
1answer
48 views

What causes the error NotebookEvaluate::nbnfnd?

Help says: NotebookEvaluate can take either a NotebookObject or a filename referencing a notebook file. therefore, I wonder why ...