Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [notebooks]

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.

2
votes
0answers
37 views

Cell Bracket Clarification

I am running a very simple program that uses NotebookEvaluate to evaluate an open notebook that only has the context of saving and closing, and while it completes that task, the program gets stuck in ...
3
votes
1answer
25 views

How can I resolve the entire set of style options for a notebook?

Given a NotebookObject I'd like to know what settings all of its Cells have. This could be useful if I needed to distribute my ...
6
votes
2answers
69 views

Store Dynamic-accessible hidden metadata in a cell

Is there a way to store metadata in a cell in such a way that it can be accessed with Dynamic? Think of e.g. how ExternalLanguage cells work. We can select whether ...
0
votes
1answer
65 views

Q: How to manage notebook crashes, “In a previous session”, and memory consumption?

I worked in a notebook. Something went wrong. I do not know what or why. The notebook did not react anymore and closed. After it, I try to open the same notebook. Then the next text appears: "The ...
0
votes
1answer
15 views

How to collapse a cell group behind its 2nd cell with same functionality as WholeCellGroupOpener

Given a cell group containing two subcells... If you double click the bracket of the first cell, you collapse the group behind the first cell in that group. If, instead, you double click on the ...
1
vote
0answers
50 views

Floating Notebook

I want to make notebooks that float above other windows. The expression below creates a Notebook that floats above other Notebooks, but not above other windows (documents, etc.). Can it be done? <...
6
votes
2answers
58 views

How can I set the title of a notebook to the notebook filename, and keep it in sync automatically?

I usually use descriptive filenames for my notebooks, and then find myself manually copying that filename into a "Title" style top-level section in the notebook. I would like this to be automatic, or ...
7
votes
1answer
175 views

Programmatically creating a notebook containing plots for PDF export

In order to save computation results, I want to programmatically create some MMA notebooks and export them as PDF files. It works fine for text: ...
4
votes
1answer
70 views

All the group formatting available in Mathematica

I was wondering how many pre-defined group formatting style there is in Mathematica. From Format -> Style, one see that we can go from ...
2
votes
1answer
42 views

Update timestamp when saving [closed]

I re-worked a bit the solution for creating a timestamp in a previous post ...
4
votes
3answers
50 views

Redirecting CellPrint output

How can I make g[]; or h[]; print the same output as f[];? I am trying to capture the ...
1
vote
0answers
45 views

Generate a Notebook automatically [closed]

Good evening, I am interested in creating a Notebook with specific instructions in an automatic fashion using, say, Python. For example, I would like to generate the file NewNote.nb (a genuine ...
2
votes
0answers
36 views

Capture invisible notebook image

Is there anyway to grab an image of a notebook without it visibly opening? CurrentNotebookImage[nb] seems to force the notebook nb to become visible.
8
votes
0answers
79 views

Current $Context of a given notebook

nb = CreateDocument[{Dynamic@$Context}, CellContext -> Notebook] It will show Notebook$$22$93500` or something similar. How ...
8
votes
0answers
43 views

Styles inheritance stack for elements of a Graphics/GraphicsBox

You can skip to the bottom if you only care about the question. My original goal was to control FrameLabel color from a notebook level opposed to doing it ...
1
vote
1answer
26 views

How to create a notebook dialog that can receive contents dynamically?

When coding in notebook, I'm trying to show result(s) in a Single Notbook Dialog by this, ...
0
votes
0answers
28 views

Deleting all output cells and all empty input cells and in all notenbook files

My question is related to the following one: Delete all output in notebooks I want to delete in all notebooks in a certain root directory all output cells as well as all other output generated ...
3
votes
1answer
49 views

Text modification using RobotTools

I'm trying to create a presentation that will demonstrate the use of RobotTools. I'm able to get everything to work, but am not sure how to go about formatting text that is typed into a notebook (e.g.,...
5
votes
0answers
34 views

Why does't 'Abort evaluation' properly work when NotebookEvaluate is executed

The following procedure can be easily aborted using Evaluation > Abort Evaluation menu item: Do[j + k, {j, 1, 10000}, {k, 1, 10000}] But it is not possible if <...
3
votes
0answers
60 views

Why does Mathematica indent comments the way it does?

Whenever I type multi-line comments in Mathematica, the standard editor automatically performs indentation. I find the indentation rather curious and annoying, with some example frustrations posted ...
2
votes
1answer
73 views

Why are stored variables with symbols featuring subscripts in blue after evaluation?

When normal variables are stored in the kernel after an evaluation they change color in the notebook from blue to black. I notice that if such variables are defined with symbols having subscripts such ...
1
vote
0answers
24 views

Attempting to create a toolbar with notebook tabs, unable to properly integrate functions

I recently learned that all the default Mathematica palettes were actually created in mathematica, and i have been trying to make something similar myself. And since learning that the DockedCell ...
5
votes
2answers
94 views

Set notebook sections one level up

Suppose I have a notebook filled with many chapters, sections, subsections, subsubsections and so on. Instead of changing the style of each of them manually, is there a clever way to set all or part ...
0
votes
0answers
38 views

How to call a .nb notebook inside a another notebook [duplicate]

I generally use .m as the file for mathematica. However currently I have started using .nb interface and its looking good. However if I create separate .nb files and try to call/import them inside my ...
1
vote
0answers
62 views

Change magnification only for NEW notebooks? [duplicate]

I'm using Mathematica 11.3. In an earlier version, there was, I believe, an option allowing one to change the magnification for new notebooks (created, say, using the menu item File > New or the ...
0
votes
1answer
71 views

Permanently Import an Excel CSV File to Mathematica

I had imported the file already and everything is working from my computer, but when the notebook is opened in a different computer none all the commands work properly. Thanks.
2
votes
1answer
45 views

How to select Input|Output Cell Groups in the Notebook?

I am trying to convert a Cell expression to an image. I created a new notebook and copied the cells that need to be rendered. ...
1
vote
1answer
68 views

Is it possible to open this corrupted file

I get the following message: There was a syntax error on line 23 in the file: Petrin_methodu_ile.nb. The error was: When I open the file I just get the ...
3
votes
2answers
65 views

Changing the values of variables throughout a notebook

I have a model with many parameters, and I'd like to see how the model changes when some of those parameters change. Right now many of those parameters are set to prescribed values, i.e., ...
0
votes
1answer
64 views

Mathematica keeps turning text cells into inputs

I am using version 11.3 of Mathematica and when I make my notebook files I make sure to convert specific cells into text and deselect "evaluatable", yet when I save and reopen the file, the text cell ...
4
votes
0answers
31 views

Is it possible to set multiple languages for spell check in a mixed-language notebook?

I am working in a notebook that uses a mix of two languages, is it possible to allow for both dictionaries to by used simultaneously? I have tried: ...
4
votes
1answer
56 views

Strange behavior of Print, Do, and merged output cells

The command Do[Print[i], {i, 1, 3}] does what you expect: creates 3 output lines of 1, 2 and ...
5
votes
1answer
41 views

Non-breaking hyphen?

I found \[NonBreakingSpace] but I haven't found a non-breaking hyphen (I want to use them in text mode in notebooks). I must be missing something obvious.
2
votes
1answer
40 views

Shortcut key to extend selection in the same way as mouse multiclicks

I would like to make a key-binding to select everything below one level above my the current postion of the cursor. This should be the same what happens if I multi-click on an expression -- each click ...
7
votes
1answer
77 views

Is it possible to make notebook read-only without using OS file read only setting?

I want to make notebook read-only (protect from modification) for all operating systems (when copied from one OS to another OS read-only should remain). Is there any way to do that?
5
votes
1answer
97 views

How to avoid notebooks from getting corrupt?

So often in the morning I open my notebook, and I am greeted with a message, saying that "there is an error below". Often many of the sections and cells I just worked on the day before are still ...
5
votes
1answer
50 views

How to Retain Frame Color when Saving as PDF

Alright, so I am trying to export a homework assignment in full color. I tried simply saving as a pdf, however I lost my frame color. Is there a SetOptions[] command that I am missing to retain this ...
3
votes
1answer
85 views

Stop new line in Mathematica

I have a really long formula in Mathematica notebook. I want to display the formula as one long line. Mathematica keeps making the formula longer than one line so makes two lines. I need the formula ...
4
votes
1answer
52 views

Navigate to cell in a notebook

Assume the following notebook of Rubi rules ...
1
vote
1answer
424 views

Too much spacing in f(x)?

When I enter f(x) in Mathematica, the f(x) appears as f (x). There's too much space between <...
0
votes
1answer
37 views

Run a command each time a file is saved [duplicate]

Is there any way to get Mathematica to run a function each time I save a file? So either by ctrl-s or by the 'save' command in the file menu. Then I could, for example, ask it to make a copy of the ...
1
vote
1answer
94 views

How to delete equals?

I have a equals symbol that Mathematica won't let me delete. I have a screenshot of the equals symbol in Mathematica. How do I delete the first orange equals symbol in Mathematica? I have tried the ...
1
vote
1answer
112 views

What is the easiest way to get truth table of logical expression?

I remember that some time ago when I entered a logical expression like $a\wedge b$ in the notebook there was an option (button or menu selection or etc.) to click and generate truth table for it ...
1
vote
0answers
25 views

Anomalous Notebook Formatting Upon File Closing and Reopening

I've encountered some Front End behavior that I find mystifying. I have created an ordinary Mathematica notebook that consists of a series of cells formatted as Code that each hold an expression that ...
7
votes
1answer
229 views

Mathematica steals focus after finishing computation

This is happening after I upgraded to 11.3. I am on Linux Mint. Whenever mathematica finishes evaluating the cells in a Notebook, if that Notebook is minimized, it will pop up and steal focus from my ...
1
vote
0answers
94 views

Indentation in Mathematica notebook

since a few days I have the problem that in my .nb programs whenever I want to edit something auto-indentation appears. While the code lines were all left-aligned in the saved version of the notebookt,...
0
votes
0answers
27 views

Potentially unsafe dynamic content banner: how to remove it? [duplicate]

Everytime I open one of my notebook the following banner appears at the top of the notebook How can I remove it?
1
vote
2answers
83 views

How to fill an array with user inputted numers

I'm trying to figure out how to create an array with $n$ elements in it and then fill it with numbers than I input from the keyboard. I understand how to do this logically from some experience I ...
2
votes
0answers
71 views

Sequentially displaying bullet comments in a Mathematica presentation

Playing around with the 11.3 presenter tools today. I have generated a presentation entitled "Polynomials". 10 slides with Title and 9 sections. My goal was to create a presentation with 5 slides. ...
2
votes
1answer
74 views

Behavior of MaTeX for a polynomial equation

I have been researching today the possibility of creating interactive mathematics documents using Mathematica for use in the classroom. I want to be able to use LaTeX typesetting within my notebook ...