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.

Filter by
Sorted by
Tagged with
7 votes
3 answers
123 views

How to insert AutomaticNumbering programmatically?

Preamble: I often work with the JournalArticle Stylesheet and use in it the styles "Figure" for graphics and "FigurCaption" for the corresponding caption. The figures should be ...
4 votes
1 answer
123 views

How to find out if a cell is member of a closed group

I have a While-Loop lurking through a notebook. I want to find out - among other things - if a cell is not visible because it is a member of a closed group. I tried ...
5 votes
2 answers
118 views

Output of code generated by CellPrint goes to the end of notebook

Bug introduced in 3.0 and persisting through 13.0.1. Wolfram Cloud is not influenced. This is an issue raised up when I use the function importCode, the following ...
0 votes
1 answer
41 views

Making NotebookFind independent of cursor position

When I go through the basic example of NotebookFind, NotebookFind will run correctly exactly once after creating the nb. If I ...
2 votes
1 answer
128 views

Stop Mathematica’s automatic indentation on existing notebooks

This question relates to Mathematica 12.3 (and possibly many other versions). Mathematica's automatic indentation does not conform to my workflow. From the very old days of Mathematica 1.2, i.e. ...
3 votes
0 answers
57 views

Extracting the background color of a notebook [duplicate]

I would like to extract the background color of the notebook being used. Why do you want to do that ? The reason why I want to do this is because I would like for the color of the output to always ...
0 votes
0 answers
27 views

How to suppress Null output when redirecting outputs to separate Notebook/Window?

I've been redirecting outputs to a separate notebook using this simple code to modify the $Post variable: ...
0 votes
0 answers
30 views

Avoiding notebook re-evaluation after quitting Mathematica [duplicate]

I'm new here so I hope I'm not asking something already solved. I'm new to Mathematica and I need to manage lists created from files that usually spend a lot of time to be created. I noticed that ...
3 votes
2 answers
1k views

How to make underscript format as an underscript in an inline cell?

This question maybe a little tiny. Firstly, let's input underscript Ctrl+4 in an inline cell. InlineFormula inline cell $\underset{n\to\infty}{\text{li}}$ However, ...
5 votes
1 answer
141 views

How can I remove the outermost pair of brackets enclosing a Piecewise function when it occurs in an equation?

Recently I have been annoyed by an automatic formatting in MMA, that is when a Piecewise function occurs in an equation, it will be enclosed by a pair of brackets automatically by MMA, although when ...
2 votes
1 answer
52 views

CellObject[Number] to its content

As in the following sreenshots, roughly speaking, Out[43] is CellObject[97601]. I want to set ...
4 votes
1 answer
101 views

Modify StandardForm of E

StandardForm of E is \[ExponentialE], can we modify it to something else? I thought I could ...
1 vote
1 answer
100 views

Conditional flow of cells?

I’d like to create interactive notebooks for class use, showing the step by step calculations needed for solving simple structural engineering problems, with the corresponding text paragraphs in cells ...
2 votes
1 answer
90 views

Attached Cell that allows rotatable 3D plot (non-deployed?)

I would like to use AttachCell to create popup looking window that attaches to the notebook and contains a 3D plot that I can rotate. The following works except I ...
3 votes
1 answer
133 views

A bug in copy&paste of plain text

My mathematica version is 12.2 and OS is windows 10. In a new .nb document Write a string "abc" in the first cell Right mouse click on the first cell bracket click copy as - plain text ctrl+...
4 votes
1 answer
109 views

Deploy and Deployed

I was trying to understand what happens when I insert Deployed -> True/False in an ExpressionCell but couldn't see a ...
7 votes
1 answer
198 views

How to remember evaluation across sessions?

I am performing a very time-consuming symbolic calculation. When I reopen a saved Mathematica notebook, it takes quite a long time to evaluate. Is there an option to tell Mathematica to remember the ...
2 votes
1 answer
54 views

What is the unit for WindowSize [duplicate]

On my computer, First[WindowSize/.Options[EvaluationNotebook[]]] gives me 1432.5 if the notebook has maximum width for my screen. My screen resolution is 1920*1080 ...
0 votes
1 answer
74 views

Is it possible to change $SystemCharacterEncoding?

In my machine I get Now let's check the official CP949 map. http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP949.TXT ... ... ... ... The code point of ♥ in CP949 is 2665. (The code ...
0 votes
1 answer
91 views

Create an interactive list in a Wolfram notebook that choosing its items make a change in calculations

I have 3 variables. I want to create an interactive list of items in a Wolfram notebook that if I choose each item, functions that are written by myself change the value of the variables and ...
0 votes
0 answers
39 views

Wolfram script exported from a Mathematica Notebook : errors actually warnings?

I have exported with the following script put at the beginning of my Mathematica notebook : ...
8 votes
2 answers
247 views

Drag and Drop an Attached Cell

I'm trying to create an attached cell that can be mouse dragged. I'm envisioning mouse-dragging the blue header bar to bring the entire header and the graphic to a new location at which point both ...
2 votes
1 answer
71 views

Text cell numbering

For input cells and output cells, there are automatic,natural numbering. In[1] 2+2 Out[1] 4 I mean In[1] and Out...
1 vote
2 answers
109 views

Change style of the above cell

How can I change the style of a given cell, by writing some code on the cell directly below the cell and executing it? ...
0 votes
0 answers
56 views

Can I load a notebook without evaluating it?

I have a long notebook with a lot of definitions, calculations, etc. If I want to open the notebook on a new computer, or even on my computer after it has been shut down; then in order to make use of ...
3 votes
1 answer
64 views

Stop NotebookEvaluate before the end of a notebook depending on test inside this notebook

CONTEXT: Hello, I have 2 notebooks, lets call them "Main.nb" and "FileProcessing.nb". In my "Main.nb" I have a Do loop where the iterating parameter goes over 300 .csv ...
3 votes
1 answer
107 views

How can I make MMA give me \mathrm{d} when converting definite integrals into Latex code?

Recently my work contains a lot of expressions with definite integrals, and I need to convert them into latex code to present my results. To my disappointment, MMA always converts the differential ...
0 votes
0 answers
68 views

How to rescue a corrupt notebook?

Something happened to my Notebook and most of the sections now look like this: Is there a way to rescue this notebook? It can be found here: https://drive.google.com/file/d/...
7 votes
1 answer
310 views

How to get "one Cell - one line" code format inside of NB files?

The PageWidth option controls the way the Cell's content is displayed, not the manner it's written in a ...
2 votes
2 answers
145 views

Double quotes as a 'function' (verbatim ToString?)

Can we construct a function F such that F makes any typed text into a string. Just like double quotes. ...
0 votes
0 answers
12 views

How to use tools like Template Input and Literal Input when filling out the ResourceFunction submission notebook?

I found no examples or instructions on how to use these. Yes Check button at top does a fine job of showing any missing content, invalid cells, and of course all ...
0 votes
0 answers
51 views

Using and executing the missing complex functions of Mathematica in Wolfram script *.wls

I have the following Mathematica notebook on this link notebook I was told that the binary wolframscript couldn't understand some complex functions of Mathematica. First, I would you like to convert ...
0 votes
0 answers
199 views

Find a way to have all progressively human reading or logical steps in a symbolic calculus and improve rendering

I have the following Mathematica notebook on this link notebook link 1.First, I would like to generate in an automatically way this notebook to a Wolfram script that I can make run directly from ...
1 vote
1 answer
69 views

Interpolation Function is not saved in notebook

I get the following message when an interpolation function is generated as a solution of NDSolve: I don't know why this warning is showing and I don't find anywhere where I can consult what this ...
3 votes
0 answers
46 views

Are there any cell properties that you can use to terminate a cellgroup without starting a new one?

Suppose I have the following notebook: ...
7 votes
4 answers
290 views

How to write LaTeX style math in notebook (as text)

If I have a notebook and I am just typing out ideas, I would like to be able to write math just as TeX style formatting for display and not as input to Mathematica. I have found that I can use CTRL-4 ...
0 votes
0 answers
46 views

Save figure of a plot following a conversion from notebook to Wolfram script

I have the following Mathematica notebook on this link notebook link I have converted it to Wolfram script. Once done this, I am trying to save the plots as png ...
12 votes
5 answers
1k views

Searching a phrase in all *.nb files

I have so many *.nb files in a folder. In one of them I have written a phrase, unfortunately I cannot remember that file. I am searching about it and the file in ...
3 votes
0 answers
30 views

Is it possible to pass some events down and others not in NotebookEventActions?

Executing the code below yields a dropdown menu of possible words as you type them in a text cell. ...
0 votes
1 answer
66 views

Evaluation self notebook with loop

I have a large notebook with multiple sections. I would like to run the entire notebook with one variable change kquads. At the end of the notebook, I added one loop ...
14 votes
1 answer
307 views

How to have the units for energy show as kW h instead of h kW?

I observe the following in Wolfram Language: Quantity[ 1, "Kilowatt hours" ] (* or "Kilowatts" * "Hours" *) (* 1 h kW *) That looks ...
3 votes
1 answer
389 views

Hide input with multiple output cells

I want to hide my input, but not with "close cell". i also want to have fast access to the input cell. i found Mr.Wizard's AutoCollapse function, but it doesn't work with two or more Print-functions ...
11 votes
2 answers
324 views

How to always display current section identifier (number, name) in notebook?

Because I find myself relocating frequently within a long notebook divided into sections, subsections, & subsubsections, I would like to display the identifying information for the section, etc. ...
1 vote
1 answer
91 views

How do I make a symbol for a second derivative?

In my script, I want the second derivative of a function to be a symbol that I can manipulate (i.e. give a value to, use in an expression, etc.). So I want to build a box for the expression:$$\frac{d^...
1 vote
2 answers
105 views

Typeset matrix in notebook

How do you typeset a matrix like this in a notebook? $$\begin{pmatrix} x|_1 & 1 & 0& 0&0\\ 1 & x^2|_1 & 0& 0&0\\ 0& 0&x|_2 & 1 &0\\ 0& 0&1 &...
2 votes
2 answers
61 views

NotebookEventAction that triggers AFTER two successive key presses (not one)

My notebooks contain only text-based cells and no code. I use InputAliases quite a bit to save time. Typing the escape key before and after to trigger the InputAliases is not very efficient for me. ...
9 votes
1 answer
288 views

Mathematica and Google Drive backup client

My Mathematica notebooks (as well as all other files I author in my research) are in a directory that is managed by the Google Drive client. This automatically backs up everything I create and I don't ...
2 votes
2 answers
311 views

How to automatically put the part of a variable name after the first letter in symbolized subscripts?

So here is what I have thought: Use ToString and StringLength in order to get the number of characters in the variable name. If ...
3 votes
1 answer
125 views

Using subscripted variables in the LaTeX output [closed]

When I run the following code in Mathematica: ...
0 votes
0 answers
31 views

Open Notebook Minimized to TaskBar

I want to open a temporary notebook without displaying its contents, and have it running minimized, in the TaskBar. Its purpose is simply to run a setup script, after which it is closed. Hence I ...

1
2 3 4 5
24