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
0answers
38 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 un-...
1
vote
0answers
56 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 ...
2
votes
1answer
54 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 ...
3
votes
1answer
87 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
0answers
26 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
59 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
171 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 ...
7
votes
1answer
105 views

Strange caching of Palette's TaggingRules

Please follow those steps to get the idea about the problem: Let's create a palette: ...
8
votes
2answers
224 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.
3
votes
2answers
52 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 ...
1
vote
1answer
64 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 ...
6
votes
1answer
162 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 ...
3
votes
0answers
48 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
1answer
53 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 doesn'...
1
vote
0answers
35 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
53 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 ...
1
vote
1answer
98 views

Can a computer run a Mathematica program without Mathematica? [duplicate]

I wrote a Mathematica program on my computer using my licensed copy of Mathematica. Can someone who does not have a licensed copy of Mathematica run my program?
0
votes
1answer
68 views

How to set the current Directory as the default?

Everytime, before my code, I always write, SetDirectory[NotebookDirectory[]]; So, how to make this as the default ?
2
votes
1answer
68 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. ...
8
votes
1answer
926 views

Creating self destructing notebook

Inspired by this post I've been trying to implement the idea in Wolfram with no success yet. I've come pretty close though and need some help. So I've managed to do this: ...
3
votes
0answers
37 views

How to generate docs for your package? [duplicate]

I don't have Wolfram Workbench, is there any other simple way to build documentation notebooks (like the built in documentation) for your custom packages?
0
votes
1answer
43 views

How can I convert a CounterBox into a number?

There must be a possibility to convert a CounterBox into a number. For example ...
1
vote
0answers
23 views

How can I get the current Pagenumber of a Selected cell in another open Notebook? [closed]

I try to make a Table of Contents of a set of notebooks. Author Tools is crashing regularly when using paginate. I tried to use something like (inspired by another post here form HEIKE - ...
6
votes
1answer
82 views

Is there a keybinding for absolute value?

Is there a keyboard shortcut or esc-sequence for typing in the absolute value bars into input cells? I know that if you do, Abs[-4] // TraditionalForm and copy ...
1
vote
1answer
74 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, ...
2
votes
1answer
43 views

What syntax refers to “this notebook” object?

I want a notebook to automatically save after any cell is evaluated. I found that I should use the command SetOptions[XXX, NotebookAutoSave -> True] to do ...
1
vote
1answer
37 views

Export notebook as PDF with all formats

I would like to export my notebook to a PDF File. I was wondering if it is possible to keep the whole layout, like In[1]:= on the left side. The cell brackets on ...
0
votes
2answers
41 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 ...
1
vote
1answer
79 views

Evaluation of a Notebook

I am new to Mathematica so I do apologize if my question is too elementary. In the start of my notebook, I want to make sure that any previous definitions are wiped out so I use the ...
3
votes
0answers
55 views

How to reference a cell in a different notebook

I am creating a 'Table of contents' (TOC) generator not unlike the AuthorTools. My "generator" creates cells like the following in the TOC.nb: ...
0
votes
2answers
63 views

How to set dynamically stylesheet definitions?

To produce good color schemes for styling notebook I was used to generate a grid of controls ...
0
votes
0answers
44 views

Change the default package toolbar? [duplicate]

Everytime a package file (.m or .wl), it opens with the standard package toolbar (a docked cell) ...
5
votes
1answer
37 views

How to print cell exactly at the bottom of a notebook?

I have a notebook used as "to do list" at whose top I want place a button to add automatically, at the end of the notebook, a cell containing the current date and time, and one for the "to do" note. ...
9
votes
1answer
84 views

How to put Magnification control in docked cell

I have made a handy toolbar that provides access to menu items that are not visible when I F12 a workbook. I would like to add the following function to a button in the toolbar: ...
0
votes
0answers
39 views

Does exist any equivalent of the function Cells?

May be I'm wrong but the function Cells is absent in Mathematica versions prior (at least) 8.0.1. Perhaps what is now natively built in was before implemented as a ...
1
vote
0answers
24 views

How to disable automatic return in a notebook [duplicate]

When I type in a cell of a notebook Mathematica starts a new line sometimes where I don't want it. Often it is very usefull and it helps to see misplaced brackets and semicolons but normally I would ...
1
vote
0answers
55 views

Is there risk of corruption of comments added in a notebook outside Mathematica?

For various reasons, I'm placing data before and after notebook's source code, by means of a plain text editor, in this way: ...
4
votes
2answers
89 views

Setting WholeCellGroupOpener [duplicate]

When I write WholeCellGroupOpener, Mathematica autocompletes it, but it doesn't recognize it (it stays blue instead of turning black). Example: ...
1
vote
1answer
40 views

Button to close cells

I want to have a button that closes cells with a specific tag. The following code does what I want: ...
1
vote
0answers
43 views

How to Build a Drop Down Menu? [duplicate]

I am new to Mathematica so I am sorry if the question is rudimentary. :) When I was reading the help page, I noticed that there is a structure like the picture below for the topics in the help page ...
1
vote
0answers
77 views

Unexpected behavior of Set [closed]

Set doesn't work in some conditions. ...
3
votes
1answer
89 views

Author Tools layout for a table of contents

Can someone point me at the place, where the Layout of the Table of Contents is stored in the Author Tools. There should be some style sheet, but I can't find it. Author Tools is still a very useful ...
4
votes
0answers
64 views

Non-English spell checking dictionaries in Mathematica: Where to get them?

I simply want to be able to spell check my (german) notebooks. There was a question similar to this but with no answer: Non-english spell check dictionaries for Mathematica? You can find this ...
4
votes
1answer
78 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 ...
1
vote
1answer
52 views

Temporary/popup Output Progress Boxes

In recent versions of Mathematica, a number of functions have the feature that, while they are thinking (or, for example, loading data from Mathematica servers), they pop-up a little light-blue box ...
5
votes
1answer
99 views

Close or Open, not OpenClose CellGroups for specific CellStyle

I am aware of the question Close programmatically all cell groups in Mathematica but I am trying to find out how to close only one kind of Cells in a notebook, e....
4
votes
1answer
98 views

How to efficiently split your code in several pieces [duplicate]

I want to efficiently keep my program in several documents, and initialise pieces of it automatically. I'm pretty sure that there is a manual on the subject, but I'm unable to find it on my own. At ...
0
votes
0answers
28 views

Why was notebook converted to single input cell upon saving?

I recently opened a notebook of mine and discovered all the various cells (input output, headings, graphics etc) had been converted into one big input cell, complete with date, time etc for each line. ...
7
votes
1answer
111 views

Ways to obtain a BoxObject

Is there any way to get a BoxObject, except with EvaluationBox or ParentBox? So usually one ...
8
votes
1answer
133 views

Programming scripts to create and modify stylesheets: problems with contexts

I am trying to emulate the shift and shift+tab feature in the Outline.nb stylesheet that comes with Mathematica. I added the following code to a private ...