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.

201 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
172 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
235 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 ...
11
votes
2answers
310 views

Possible bug in 12.3: NotebookDirectory[] returns not the notebook's own directory, but that of an also opened copy of that notebook

Bug introduced in 12.3 I am using Windows 10 and found a bug concerning NotebookDirectory (and also NotebookInformation) in 12....
11
votes
0answers
287 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
343 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 ...
9
votes
0answers
172 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, ...
9
votes
0answers
190 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
104 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
55 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
715 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
386 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
165 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?
7
votes
0answers
167 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
77 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
472 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
481 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
533 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
579 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
610 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
70 views

Keep stylesheet open after a notebook is closed

I find this behavior annoying: ...
6
votes
0answers
695 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
454 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
140 views

Mathematica and Google Drive

My Mathematica notebooks (as well as all other files I author in my research) are in a directory that's part of Google Drive. This automatically backs up everything I create and I don't have any ...
5
votes
0answers
85 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
votes
0answers
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. ...
5
votes
0answers
380 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 ...
5
votes
0answers
57 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
282 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
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 ...
5
votes
0answers
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: ...
5
votes
0answers
73 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
112 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
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, ...
5
votes
0answers
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 ...
5
votes
0answers
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 ...
4
votes
0answers
47 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 ...
4
votes
0answers
69 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
0answers
110 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.
4
votes
0answers
65 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
129 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
254 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
76 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
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 ...
4
votes
0answers
66 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
165 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
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. ...
3
votes
0answers
85 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 ...
3
votes
0answers
53 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 ...
3
votes
0answers
92 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 ...

1
2 3 4 5