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.

161 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
23
votes
0answers
1k views

How would I improve this Karaoke machine code?

I was looking at a large collection of Import/Export user suggestions the other day and it dawned on me that we finally have MIDI import in Mathematica 9, which is rather interesting since MIDI ...
16
votes
0answers
166 views

Issue with undo after copying a string inside a string

Bug introduced in 10.0 and persisting through V11.3 Here's a small but annoying issue related to undo and copying of strings. Steps required to get the problem: Type ...
16
votes
0answers
232 views

Is there a convenient/automatic way of uploading a notebook into SE?

This post discusses how to streamline the other way - extracting code from a fragmented and longish SE answer but I imagine a two-way workflow like: Fashion an answer/question in an SE-templated ...
10
votes
0answers
213 views

How to use Mathematica in academic paper writing?

The Mathematica notebook is a great avenue for inspiring and realising research ideas. However, I do feel there are several missing jigsaws in the picture of writing academic paper fully in ...
10
votes
0answers
326 views

Wrapping text around pasted graphic

I would like to use Mathematica to create all my documents for my high school math class. I cannot, however, find a way to copy and paste a diagram (let's say from Geogebra) and then place it where I ...
8
votes
0answers
133 views

Has the Undo command really been settled? On version 12.1 it only works sporadically. What are some reasons it drops steps?

Although Undo has been around since version 10 (before my time) I've noticed that sometimes it works just fine up to the moment of the last ...
8
votes
0answers
100 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
51 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 ...
8
votes
0answers
572 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/...
8
votes
0answers
378 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
0answers
163 views

How to change the style of part of a cell in 11.2?

In Mathematica 11.1 and earlier it was possible to select just part of the text in a cell, and apply a different style to it using Format → Style. For example, we could type "One two three four" in a ...
7
votes
0answers
74 views

Option precedence for CellLabel

In Mathematica, when an option is specified multiple times with different values, the first one will take precedence. This works with Cell and ...
7
votes
0answers
386 views

Rearrange cells without cut-paste

When working in a Mathematica notebook, I often want to reorder cells. Most of the time, I am adding cells at the bottom of the notebook, until I realize it may be better to insert this calculation at ...
7
votes
0answers
473 views

Can I modify line-break behavior of inline cells?

When I insert an InlineCell into a TextCell that is too long for the whole InlineCell to fit ...
6
votes
0answers
380 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 ...
6
votes
0answers
539 views

Presenter Tools vs Slideshow Notebook?

I typically use slides.com for my presentations (which is essentially a web interface for building reveal.js slideshows). Now, I'm attempting to try out the Wolfram Presenter Tools (new in v11.3) ...
6
votes
0answers
504 views

Is there a way to write markdown in Mathematica notebook?

Whenever I want to take notes and do calculation at the same time in Mathematica Notebook, I found it's annoying to change the style of the cell and typesetting ...
6
votes
0answers
66 views

Keep stylesheet open after a notebook is closed

I find this behavior annoying: ...
6
votes
0answers
574 views

Code formatting

This question is a follow up from Formatting notebook files In Programmatic formatting for Mathematica code - possible? masterxilo proposed to use ...
6
votes
0answers
443 views

What is the difference between NotebookEvaluate and FrontEndToken

I am wondering what exactly are the differences in using NotebookEvaluate[filename] vs ...
5
votes
0answers
53 views

How to force a desired numeration of equations in Book/Monograph StyleSheet?

I am writing a text in the MMA > Format > StyleSheet > Book > Monograph StyleSheet. I have a problem with the automatic numeration of "EquationNumbered" cells. ...
5
votes
0answers
49 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: ...
5
votes
0answers
257 views

How to prevent formatting as Mathematica code in inline cells?

We can start a new inline cell using Insert → Typesetting → Start Inline Cell. This is often used to insert mathematical formulae in text cells. Instead, I want to use it to insert small bits of non-...
5
votes
0answers
94 views

Line wrapping in a TextCell within an extensible window

Bug introduced in V9 or earlier and persisting through V11.3. [...] I sent your comments and my test results to developers for analysis. I do not know when a correction for this will be ...
5
votes
0answers
69 views

How can I set notebook's options without opening it?

At present moment, to batch apply a change in a set of notebook I use a "brute force", rough, method: ...
5
votes
0answers
67 views

Is there a way to use iframes in a notebook?

For me, mathematica online is totally unusable, but the EmbeddedServices would be great to use. I wish that these functions worked in Mathematica, is there any hack anyone can think of to get these ...
5
votes
0answers
100 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: ...
5
votes
0answers
475 views

Ugly font rendering (ubuntu 12, overrides system settings)

Mathematica 9 on Ubuntu 12 renders fonts very poorly. Text is readable, but it makes it very hard to concentrate on programming. Since smoothing on Ubuntu on low DPI screens isn't very good either, ...
5
votes
0answers
206 views

Embed a Microsoft RichEdit 8 control in a Mathematica notebook using .NETLink?

Does anyone know whether or not it's possible to embed a RichEdit 8 control within a Mathematica Notebook using .NETLink? The goal here would be able to both view and edit mathematical text typeset ...
5
votes
0answers
151 views

Clear Citation Style Cache

How can I clear the "Citation Styles Cache" created when you use the EndNote citation management feature for the first time in Mathematica. The Citation Management tutorial indicates that such a ...
4
votes
0answers
60 views

Hidden Notebook inherits NotebookDynamicExpression?

Bug introduced in 8 or earlier and persisting through 11.3 The following behavior is stably reproduced with versions 8.0.4, 10.4.1, 11.0.1 and 11.1.1 on Windows 7 x64. Set the ...
4
votes
0answers
101 views

How to reset $Line in each section?

When I evaluate my entire notebook, I'd like to reset $Line=0 at each section heading so all the code cells in that section are numbered starting from 1? So in the above example I'd like ...
4
votes
0answers
212 views

Is it possible to change the text cursor's shape and color?

I find it visually pleasant to reverse the background and foreground colors when working on a notebook; as shown below, in fact, it's almost a requirement after working long hours on the same notebook....
4
votes
0answers
72 views

NotebookAutoSave -> True “partially” working?

I am a novice to Mathematica (using v10.2) and was wondering why: SetOptions[SelectedNotebook[], NotebookAutoSave -> True] does not switch on ...
4
votes
0answers
99 views

Custom WindowToolbar for my stylesheet

So I've noticed that some stylesheets (for instance Slideshow stylesheets) load a toolbar using the assignment WindowToolbars -> {"ToolbarName"} and I've been ...
4
votes
0answers
62 views

Am I using the cell option setting PageBreakWithinGroup->False correctly?

I had expected that this option would prevent a page break occurring within a group of cells of which this cell is the "group leader". In my case it is a ...
4
votes
0answers
158 views

Is there a way to check whether two notebooks share the same variables?

When I code in Mathematica, I often re-use code from old notebooks which fulfilled a specific purpose; for example, one testing for soft matches in strings, or one that identifies outliers on a graph ...
4
votes
0answers
93 views

How to insert expression matching the format?

I would like programmatically to insert/write an expression at the current insertion point, but matching the current format, such as font size and style, so that it looks like the user typed it. ...
3
votes
0answers
66 views

MMA 12.2 freezes while closing notebooks with many plots

I recently upgraded to 12.2 and revisited some notebooks made last year (presumably in 12.0 or 12.1). It quite often happens for big notebooks (typically larger than or around 200MB) that MMA 12.2 ...
3
votes
0answers
54 views

With notebook's default context set to “Unique to each cell group”, how do I make “Evaluate in Place” work in a text cell?

With the notebook's default context set to "Unique to each cell group", I have: x=1 The value of x = x where the second line is a text cell with an ...
3
votes
0answers
30 views

Importing notebooks with definitions that cause messages during formatting

According to reference pages, Quiet "does not quiet messages that occur during formatting", which typically is just a nuisance, but it seems to affect ...
3
votes
0answers
60 views

How to use the old kernel in a newer version of MMa

I am used to the conveniences of MMA 11.3 such as: can undo some times, autocomplete codes, and so on, however I have to run some functions in the version 5.2. So I installed Mathematica V11.3 and V5....
3
votes
0answers
50 views

Save PaletteNotebook without any meta-data

The SE Uploader is created with CreateWindow[PaletteNotebook[...]] and then I need to save this under the FrontEnd/Palettes ...
3
votes
0answers
47 views

Mathematica file corrupted with the syntax error “Spacer[{0., 0.}], Selectable -> False”

My Mathematica file is corrupted. The error says There was a syntax error on line 34457 in the file: xxx.nb. The error was:Spacer[{0., 0.}], Selectable -> False ...
3
votes
0answers
71 views

Is it possible to turn “FunctionResource” Notebook into ResourceObject or registered LocalObject without FrontEnd?

TL;DR The problem boils down to how to convert a correctly prepared submission Notebook into a ResourceObject suitable for ...
3
votes
0answers
52 views

how to get longer Dataset labels in notebook display?

In a dataset, I have many 7-character labels with a common prefix. In a notebook, I see only the first three characters in column headers, which means I see only the prefix. (Win 10; Mma 12) The ...
3
votes
0answers
74 views

Recommended Notebook and Cell Options for Deployed GUIs

I often use CreateNotebook to enclose GUIs that open in a Deployed, non Saveable and non <...
3
votes
0answers
79 views

Inputfields with FieldCompletionFunction keeps list active in previous field

I would like to have three inputfields with each their own fieldcompletion list in a row. After choosing an item in the first inputfield (with arrow down followed by an Enter) I want to go to the next ...
3
votes
0answers
62 views

Annoying notebook scrolling on Ubuntu

I hope this is the right place for my question. I've been struggling with annoying scrolling with my Mathematica 11.0 on Ubuntu 17.04.. It is sluggish and clicky, on Windows it works fine instead. ...
3
votes
0answers
79 views

Understanding the difference between EvaluationNotebook and ButtonNotebook (and their FrontEnd` versions)

The Documentation for ButtonNotebook says: ButtonNotebook[] gives the notebook, if any, that contains the button which ...