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.

214 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
23 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 ...
user avatar
16 votes
0 answers
174 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 ...
user avatar
  • 133k
16 votes
0 answers
236 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 ...
user avatar
11 votes
0 answers
336 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 ...
user avatar
  • 4,177
10 votes
0 answers
217 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 ...
user avatar
  • 1,837
10 votes
0 answers
356 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 ...
user avatar
  • 101
9 votes
0 answers
183 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, ...
user avatar
  • 6,532
9 votes
0 answers
750 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/...
user avatar
8 votes
0 answers
110 views

Current $Context of a given notebook

nb = CreateDocument[{Dynamic@$Context}, CellContext -> Notebook] It will show Notebook$$22$93500` or something similar. How ...
user avatar
  • 133k
8 votes
0 answers
60 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 ...
user avatar
  • 133k
8 votes
0 answers
388 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 ...
user avatar
  • 5,320
8 votes
0 answers
522 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 ...
user avatar
7 votes
0 answers
170 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?
user avatar
  • 30.5k
7 votes
0 answers
169 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 ...
user avatar
  • 225k
7 votes
0 answers
666 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 ...
user avatar
7 votes
0 answers
78 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 ...
user avatar
  • 225k
7 votes
0 answers
483 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 ...
user avatar
  • 8,372
6 votes
0 answers
612 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 ...
user avatar
  • 161
6 votes
0 answers
591 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) ...
user avatar
  • 30.5k
6 votes
0 answers
71 views

Keep stylesheet open after a notebook is closed

I find this behavior annoying: ...
user avatar
  • 133k
6 votes
0 answers
755 views

Code formatting

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

What is the difference between NotebookEvaluate and FrontEndToken

I am wondering what exactly are the differences in using NotebookEvaluate[filename] vs ...
user avatar
  • 71
5 votes
0 answers
94 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 ...
user avatar
  • 4,681
5 votes
0 answers
302 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? ...
user avatar
  • 51
5 votes
0 answers
59 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. ...
user avatar
5 votes
0 answers
469 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 ...
user avatar
  • 1,417
5 votes
0 answers
296 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-...
user avatar
  • 225k
5 votes
0 answers
96 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 ...
user avatar
  • 133k
5 votes
0 answers
79 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: ...
user avatar
5 votes
0 answers
74 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 ...
user avatar
  • 3,741
5 votes
0 answers
118 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: ...
user avatar
5 votes
0 answers
485 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, ...
user avatar
  • 143
5 votes
0 answers
207 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 ...
user avatar
5 votes
0 answers
153 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 ...
user avatar
4 votes
0 answers
48 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 ...
user avatar
  • 611
4 votes
0 answers
75 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 ...
user avatar
4 votes
0 answers
136 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 ...
user avatar
  • 4,994
4 votes
0 answers
113 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.
user avatar
  • 30.5k
4 votes
0 answers
66 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 ...
user avatar
4 votes
0 answers
168 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 ...
user avatar
  • 3,741
4 votes
0 answers
267 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....
user avatar
4 votes
0 answers
79 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 ...
user avatar
  • 41
4 votes
0 answers
104 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 ...
user avatar
  • 1,115
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 ...
user avatar
  • 4,661
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 ...
user avatar
4 votes
0 answers
94 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. ...
user avatar
  • 1,433
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: ...
user avatar
  • 18.3k
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. ...
user avatar
  • 4,681
3 votes
0 answers
94 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 ...
user avatar
3 votes
0 answers
54 views

Pasting multiline commands

If i copy and paste something from one nb to another it works normally. But if I copy from any other app it just puts everything in the same line. Recently, I have automated my workflow in ...
user avatar

1
2 3 4 5