Stack Exchange Network

Stack Exchange network consists of 174 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
1answer
58 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
22 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
91 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
35 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
51 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
66 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
35 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
63 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
56 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
60 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
28 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
54 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 ...
4
votes
1answer
38 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
37 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
68 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
78 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
48 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
81 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
38 views

Navigate to cell in a notebook

Assume the following notebook of Rubi rules ...
1
vote
1answer
419 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
35 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
73 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
102 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
22 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
224 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
80 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
22 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
58 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
66 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
67 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 ...
3
votes
1answer
90 views

Robust line numbers in Mathematica notebook

Is there any way to reference a particular output in Mathematica notebook robustly? The usual way we refer a particular output is by invoking the command %n where ...
6
votes
1answer
48 views

How can I suppress the prompt for the execution of initialisation cells?

I would like to suppress the following super-annoying prompt that appears each time I exit the kernel and restart my computations: Which menu option do I need to tweak? (I have tried quite a few.)
2
votes
1answer
56 views

Retrieving a formula in a text cell

I was entering a formula in a text cell and all was going well until I selected the formula and pressed ctrl-'/' and then the formula got converted to this: ...
7
votes
1answer
129 views

Does Dropbox sync smartly notebook files? [duplicate]

It is said that Dropbox employs a Delta Sync technology where only the modified part of a file is updated through the internet. I was just wondering if it holds for notebook files. I sometimes ...
9
votes
1answer
99 views

open a Mathematica file on the same position last viewed?

When I open a Mathematica file it goes to the beginning of the notebook, but I have a big Mathematica (ver. 11) file with many "input" and "output" cells, and I want to go back to the location in the ...
5
votes
2answers
144 views

Export Table with URL as HTML?

This is expression: ...
2
votes
0answers
141 views

Recover a never-saved notebook? [closed]

I was working on a notebook when my computer crashed. I hadn't saved it at any point before the crash. Is there any way to recover the content of that notebook? (Please note that I'm not trying to ...
7
votes
1answer
207 views

Is there a way to obtain the time when an input was executed in a notebook?

I have a notebook with lots of In[n] in my current session. The notebook has been open for over three days. I would like to get the timestamps for when certain old ...
6
votes
0answers
164 views

Are there updated notebooks for Gray's Modern Differential Geometry of CURVES and SURFACES with Mathematica?

The most recent notebook I have found for Modern Differential Geometry of CURVES and SURFACES with Mathematica by Alfred Gray, Elsa Abbena, Simon Salamon are here: http://webmath2.unito.it/...
5
votes
1answer
53 views

CreateNotebook[“Testing”] writes all TaggingRules to the notebook

Bug introduced in V11.2 or earlier and persisting through V11.3 CASE:4072649 Some of notebook types generate notebooks with TaggingRules for their purposes: <...
2
votes
1answer
44 views

Docked Cell Slider that controls magnification of Output Cells only

The following code (found here on stack exchange) creates a docked cell which contains a slider that can be used to change the magnification of the entire notebook. ...
0
votes
0answers
24 views

Controlling Output Format when Sending Output to different Notebook

I want to use Mathematica to generate reports, containing tables, plots and (a bit of) text. Now plots and text, I've got pretty much figured out, but I'm sort of stuck at tables. For plots, I've read ...
0
votes
1answer
49 views

Remove InvisiblePrefixScriptBase message [closed]

I have accidentally deleted a successful A=A.nb, but have a paper printout A` of it. I have then taken a similar B = B.nb and hand-entered/edited it using A' to reproduce A; call it C = C.nb. C ...
0
votes
0answers
45 views

Is it possible to open an “incognito” notebook?

In one notebook, I used package X to evaluate several very expensive expressions, let me call them A. Then I quit ...
0
votes
0answers
70 views

how to run a .nb file

I have a code like this: ...
1
vote
1answer
104 views

Accessing the front end from wolframscript

I am trying to write a wolframscript script to produce PDF versions of notebooks. I understand that to do this, I have to open the notebook, and only a frontend can open a notebook. However, depending ...
0
votes
0answers
97 views

How to run a .nb file in another notebook file changing a variable in a specific range

Let's say I have a .nb file (called "File1.nb" ) in which some calculations are performed and the results can be exported. In that file all the variables are defined with the exception of the variable ...
3
votes
1answer
73 views

Evaluate generated notebook and show it when done

Bug introduced in V11.1 or earlier and persists through V11.3 [CASE:4061569], confirmed (bug is described below) Goal My goal is the following: Create a notebook programmatically, while ...
1
vote
0answers
42 views

how do I actually see the code on the cd version of stan wagon's mathematica in action 3rd ed? [closed]

It was pointed out in Where I can find the CD version of Stan Wagon - "Mathematica in action" 3rd ed. book? that the code for Wagon's book is available at http://extras.springer.com/2010/...
0
votes
0answers
16 views

CreateDocument fails to open when ExpressionCell has RegionMember function [duplicate]

I am working on a code for a colleague where I am trying to compute the Bond Orientational Order for a cluster of particles. To make life easier for processing a large number of images I wish to ...