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.

232 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
25 votes
0 answers
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 ...
17 votes
0 answers
184 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 ...
  • 135k
17 votes
0 answers
239 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 ...
12 votes
0 answers
427 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 ...
  • 4,237
11 votes
0 answers
260 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 ...
  • 2,337
10 votes
1 answer
249 views

Default window size too small in version 12.3 (in Windows 10)

After starting Mathematica 12.3, the default window size is like this, it's too small for me, I don’t want to manually drag the window every time. I have tried this, ...
  • 6,625
10 votes
0 answers
368 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 ...
  • 101
9 votes
0 answers
816 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
0 answers
120 views

Current $Context of a given notebook

nb = CreateDocument[{Dynamic@$Context}, CellContext -> Notebook] It will show Notebook$$22$93500` or something similar. How ...
  • 135k
8 votes
0 answers
64 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 ...
  • 135k
8 votes
0 answers
392 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,382
8 votes
0 answers
617 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
0 answers
188 views

How to format notebook like ACL Papers?

I typically use the ICML or ACL paper format in latex which is two-columns (shown below). Is there anyway to get a two column stylesheet that looks similar?
  • 30.8k
7 votes
0 answers
722 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 ...
  • 171
7 votes
0 answers
173 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 ...
  • 231k
7 votes
0 answers
773 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 ...
7 votes
0 answers
80 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 ...
  • 231k
7 votes
0 answers
489 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 ...
  • 8,402
6 votes
0 answers
608 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) ...
  • 30.8k
6 votes
0 answers
332 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-...
  • 231k
6 votes
0 answers
71 views

Keep stylesheet open after a notebook is closed

I find this behavior annoying: ...
  • 135k
6 votes
0 answers
859 views

Code formatting

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

What is the difference between NotebookEvaluate and FrontEndToken

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

"Ungroup Cells" broken in 12.3 (Confirmed by WR ... it's a bug)

** Edit: Just got off the phone with WR. Only one other person called in about this bug (although they did call in 3 times). Looks like it won't be fixed anytime soon unless they get more requests ...
  • 5,211
5 votes
0 answers
405 views

What is the best way to compare two notebooks?

I have two quite large notebooks with minimal differences. To compare them, I currently put them side by side and compare with my eyes, which feels quite inefficient. What are better ways to do this? ...
  • 51
5 votes
0 answers
176 views

LaTeX/Markdown in notebook

I know that there is the wonderful MaTeX, which is a third party package, but is there a way to duplicate the Jupyter notebook functionality, where one can have ...
  • 5,034
5 votes
0 answers
60 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
0 answers
616 views

How to generate a table of contents?

This answer is several years old and while the code still works I was wondering if there was any update from the community or Wolfram. The online references still point to AuthorTools which seems to ...
  • 1,437
5 votes
0 answers
116 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.
  • 30.8k
5 votes
0 answers
99 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 ...
  • 135k
5 votes
0 answers
83 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
0 answers
76 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 ...
  • 3,637
5 votes
0 answers
138 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
0 answers
488 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, ...
  • 143
5 votes
0 answers
208 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
0 answers
155 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
0 answers
51 views

Function for identifying wasteful cells (e.g. needless large graphics) - does this exist already?

I noticed that I have a bad habit of saving notebooks with huge graphics in them and it's starting to impact storage and load times a little much. I figured I could make a routine to point out the few ...
  • 753
4 votes
0 answers
78 views

Drawing on screen outside notebooks

Is there a way to display (animated) graphics outside of Mathematica notebooks, i.e., in a specified rectangle on the screen? I can imagine that one way to achieve that is by creating a notebook ...
4 votes
0 answers
68 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
0 answers
221 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 ...
  • 3,637
4 votes
0 answers
292 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
0 answers
82 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 ...
  • 41
4 votes
0 answers
108 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 ...
  • 1,135
4 votes
0 answers
67 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,671
4 votes
0 answers
167 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
0 answers
95 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. ...
  • 1,463
3 votes
0 answers
68 views

Maximum number of concurrent notebooks

I am running MMA v13.2 on Windows 10, x86. If I open two different notebooks, everything is fine. Try opening a third and it displays Of course, the operation fails because the software is already ...
  • 2,570
3 votes
0 answers
48 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: ...
  • 20.1k
3 votes
0 answers
34 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. ...
  • 5,211
3 votes
0 answers
95 views

Persistent hyperlinks between notebooks in the same directory

Assume that I have two notebooks, one named A.nb, and the other named B.nb, and that they are in the same directory. Then, I ...

1
2 3 4 5