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
2answers
54 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 ...
6
votes
1answer
167 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
56 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'...
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
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
55 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 ...
3
votes
2answers
229 views

Can I save a manually cropped Image in Mathematica 10 without hard cropping?

In Mathematica 7 I was accustomed to a certain workflow: Paste an image into a Notebook Select Actual Size from the context menu, if necessary Ctrl-drag the control points on the sides of the frame ...
1
vote
1answer
119 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
75 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 ?
10
votes
1answer
215 views

Notebook's WindowSize interference with contents' Dynamic ImageSizes

Bug introduced in 8 or earlier and persists through 10.4.0 or later Consider the following MWE: ...
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
38 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
48 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
25 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 - ...
2
votes
1answer
44 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 ...
6
votes
2answers
179 views

Saving notebook, excluding output cells, without losing “working notebook” output cells

In order to discuss this, I think it's easiest to start with two definitions. (If there's a standard terminology, please comment.) Working notebook: a notebook that is open and in memory. Disk ...
1
vote
1answer
39 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 ...
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: ...
26
votes
2answers
957 views

Attaching a file to a notebook

Is there a way to attach a file into a notebook and open it later with, for instance, a double click (or another action button)? In Mathematica windows version, the insert menu has the "object..." ...
0
votes
2answers
64 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
46 views

Change the default package toolbar? [duplicate]

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

Triangle that collapse cells

I'm not very good in English , so is hard to explain but how put the triangle in the left that deploy or collapse a group of cells ?
9
votes
1answer
86 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: ...
5
votes
1answer
39 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. ...
10
votes
2answers
380 views

Prevent text from wrapping in a notebook

By default in the Notebook interface the text wraps. Is it possible to prevent this wrapping?
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
56 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: ...
3
votes
1answer
217 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 ...
42
votes
4answers
2k 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: ...
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 ...
4
votes
2answers
92 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
81 views
7
votes
1answer
459 views

Can Mathematica check spelling during typing?

I can't see a way to get Mathematica to check my spelling as I type. Is this feature not supported? I've done everything I can think of with my options: Is there a setting I'm missing?
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 ...
5
votes
1answer
100 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....
1
vote
1answer
53 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 ...
4
votes
2answers
97 views

Unescape Formatting in Strings [closed]

Mathematica has a dirty habit of sometimes escaping all the formatting in my strings when loading a .nb. I know this is inevitable for ...
8
votes
1answer
139 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 ...
1
vote
1answer
74 views

RunScheduledTask and return the result

I created a task that removes itself when an external variable x,is changed: ...
4
votes
1answer
102 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
112 views

Ways to obtain a BoxObject

Is there any way to get a BoxObject, except with EvaluationBox or ParentBox? So usually one ...
2
votes
2answers
76 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 ...
1
vote
0answers
51 views

Mathematica interoperability with Max/MSP

A little foreword: I'm an absolute beginner of Mathematica (but I'm a programmer in other languages/software). Now the question: I have a Mathematica Notebook written by a friend of mine which takes ...
7
votes
0answers
198 views

Help with a Mathematica front end touchscreen problem

I really like using my Windows 10 touchscreen to move around in websites, documents, etc. It doesn't work in Mathematica. Can that be fixed by changing a global notebook setting, or is it something ...
7
votes
1answer
304 views

How to edit a hyperlink once created inside a notebook?

When a hyperlink is created in a notebook, there does not seem to be an easy way to actually edit the hyperlink (maybe to correct the URL). To hyperlink some text, one selects the text using the ...