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
34 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
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 ...
1
vote
0answers
54 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
52 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
56 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
42 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
33 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
81 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
51 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
86 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
38 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
72 views

Unexpected behavior of Set [closed]

Set doesn't work in some conditions. ...
3
votes
1answer
84 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
63 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
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 ...
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
94 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, ...
4
votes
1answer
95 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
110 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
122 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
0answers
46 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 ...
0
votes
0answers
51 views

?f returns a weird result [duplicate]

Anybody know why something like this happens?
4
votes
1answer
50 views

Font size for help drop down menu in input cell

Consider: Where do I go and how do I increase the FontSize in this drop down menu to make it more easy to read?
4
votes
1answer
63 views

How to have Tooltip resize with Notebook magnification?

How do you make a Tooltip label expression change magnification when the Notebook magnification changes. The expr of ...
2
votes
0answers
77 views

How to expand and collapse multiple cells inside a frame while keeping all in a single frame

I am trying to create a framed cell around cells that collapse and expand. Mr. Wizard's answer below almost does it, however, when the cells are collapsed I lose the lower frame border. I'd like to ...
7
votes
0answers
185 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 ...
5
votes
1answer
249 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 ...
4
votes
2answers
95 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
2answers
103 views

Seeking for method to speedup and get more flexable control Notebook History

When doing calculations in notebook, I modify the code a lot, and there are several versions of similar codes in the same notebook. But I found myself easily forgot which version is the newest, and I ...
2
votes
0answers
68 views

Docked Cell that scrolls?

I use two finger movement on my trackpad for scrolling a notebook page up and down. Is it possible to make a docked cells that scrolls to the left and right using a two finger movement on the ...
1
vote
1answer
99 views

How can I change the background color of input and output cells [duplicate]

I would like to set automatically the background colour of input and output cells in any newly open notebook. How to do this?
3
votes
0answers
38 views

Scroll Position for a Notebook

If you have a notebook with lot of content open you will see a scroll bar on the far right and bottom. I'm looking for a function that will return the current value of of the scroll bars. I'd also ...
9
votes
2answers
340 views

Create new notebook at fixed size

Using Ctrl+n we are effectively doing FrontEndTokenExecute["New"] and, at least on Windows, new window has WindowSize equal to ...
2
votes
2answers
91 views

How to show formula and substitute variable values?

I'm looking for an easy way to make a 'dynamic' paper for some engineering calculations (I'm talking about hundreds of pages with lots of different formulas). The problem is hard to describe so I'll ...
1
vote
0answers
71 views

Ergonomic night time reading settings [duplicate]

I was wondering if Mathematica had a built-in ergonomically safe night time reading mode for the notebooks. I was thinking of setting something up myself but I do not know the ergonomics/eye safety ...
5
votes
1answer
110 views

How to set different background, input and output colors

I want to create a notebook where the background is one color, the input cells are another color, and the output cells are white. I have tried messing around with Option Inspector and creating a ...
1
vote
1answer
45 views

How can I change focus if 2 or more notebooks are open?

Having opened and executed a notebook using NotebookOpen and NotebookEvaluate, I want to return the EvaluationNotebook to the foreground
3
votes
2answers
92 views

CDF format - disable cell selection?

Is there any way/option in order to make Cells not selectable in exported CDF files? I know how to hide the cells until you go with the mouse over them on the ...
10
votes
2answers
170 views

stop notebook evaluation when Assert fails

I would like a notebook evaluation to entirely stop when an Assert fails, without quitting the kernel. Is this possible (e.g., by setting ...
2
votes
0answers
76 views

plot focused spot [closed]

I want to plot the first row of Figure 2 and Figure 3 on page 3 in this paper: http://www.eng.yale.edu/groberlab/pdf/spot.pdf So I am really stuck and I can not find my mistake where it went wrong ...
1
vote
0answers
70 views

In a Template Notebook how to make a Repeating Block loop over a local variable

I have a template notebook that takes in some parameters to get raw data and then process it. In this processing a few subsets of data are calculated. However, I don't know how many subsets will be ...
8
votes
1answer
81 views

On an existing notebook, how to transform all “double brackets” into “DoubleBracket”

Sometimes, having all double brackets [[...]] transformed into \\[LeftDoubleBracket] ... \\[RightDoubleBracket] can really ...
13
votes
1answer
162 views

What is “MemoryMonitor”?

Evaluating one of the following inputs ...
3
votes
3answers
171 views

Making large calculation results persistent

Very often, I need to do same calculations under different parameters for comparing the results. Every calculation may generate a large data set; for example, the calculation result of ...
0
votes
0answers
54 views

Can I use a variable name based on the results of a calculation? [duplicate]

How can I use the notebook filename as a variable? e.g. I have a notebook named notebook1.nb so I want the output of this: ...
2
votes
0answers
41 views

DisplayFormulaNumbered

I'm using Mathematica 10.3 and have a question regarding the DisplayFormulaNumbered Style: is there a way to tell Mathematica to number the formulas not only 1,2,3... but 1.1, 1.2, 1.3 when it has ...