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.

learn more… | top users | synonyms (1)

0
votes
0answers
24 views

auto save a notebook using init.m

I tried to make mathematica autosave as default, so I put Sjoerd C. de Vries's code ...
0
votes
1answer
33 views

Is there a way to change the indentation behavior of the postfix operator //?

For example, using newlines after // results in some really weird indentation: Ideally, I'd love to be able to do something like this: ...
0
votes
0answers
37 views

DisplayFormula badly rendered if style is set before writing

If I have to write a display formula, I go to the cell after the text cell I'm currently into, select the DisplayFormula from the Style menu and then write. The ...
0
votes
1answer
22 views

Consistency between MousePosition and WindowMargins

MousePosition["ScreenAbsolute"] absolute position within the complete screen display WindowMargins specifies the ...
0
votes
0answers
29 views

How can I export a notebook into multimarkdown?

Mulitmarkdown (.md filetype) is a very nice document format that supports rendering mathematical expressions like latex or mathml, rendering syntax highlighted code blocks for any language, as well as ...
2
votes
1answer
88 views

Where do I find the ODE.m package of the Book “Scientific Computing with Mathematica®” by Marasco and Romano?

I downloaded this book at SpringerLink. It should contain a CD-ROM with notebook-files (i.e. ODE.m) but there is no download available. Particularly I am interested on a mathematica package which ...
3
votes
1answer
72 views

Is there a way to embed a data set in a notebook?

I'm relatively new to mathematica programming. I have a data set (currently a table in a .csv file). I would like to share this notebook with colleagues either as a notebook, or (even better) as a ...
1
vote
1answer
93 views

Separate output screen; clearing (cleaning) output screen

Is there a way to split the screen so that the code is on top visible, and execution of code look at the bottom? Is there any way to clean the screen from previous runs, so that the result of ...
4
votes
2answers
85 views

How can I get the style of a CellObject?

I want to work on a notebook programmatically with CellObjects. lets create a notebook for example: ...
1
vote
1answer
58 views

Writing cells from other notebooks into current notebook?

I have a large number of Mathematica notebooks which contain study notes for different topics (as opposed to actual Mathematica Code). I'm trying to develop some code to randomly pull parts of a ...
1
vote
2answers
58 views

NotebookWrite in EvaluationBox forces Input CellStyle

There is a promissing new function EvaluationBox[] and a nice last example in documentation section for it: ...
0
votes
0answers
52 views

Is there a way to create a two column page layout in a notebook? [duplicate]

I am working on a white-paper that requires a two column format. Is there an existing Stylesheet that can be used or a way to create a Stylesheet that supports this Mathematica?
0
votes
1answer
28 views

How can i specify a NotebookSelection by a given CellObject?

My Questing is very simple. If I have a CellObject e.g. CellObject[Text], I can move the selection to this ...
1
vote
1answer
79 views

Can Save[] produce a .nb file instead of a text file?

(I use Mathematica 9.0.1 on OS X 10.10.2.) Suppose I have a notebook in which I make some definitions and assignments. ...
2
votes
0answers
70 views

How to convert a notebook to an association and back?

I have a notebook that serves as a nice readable document but is it a database of sorts, I'd like to transform this into an association so I can manipulate and export it as a dataset. Here is a sample ...
0
votes
0answers
14 views

Update Type 1 fonts with Opent Type fonts

Hi I have very old notebook files which was composed 2009, where few fonts was used with Type 1 but now I want to replace with open type format. Also I have stylesheet, do I need to do any changes in ...
3
votes
1answer
76 views

How do I create a notebook with the functionality of the Mathematica help system?

I'd like to create and distribute a notebook that functions very much like the help window that appears in Mathematica to provide documentation about functions, tutorials, and etc., but my content ...
2
votes
0answers
57 views

How can I apply NotebookGet on invisible Notebooks?

My problem might be very specific, but can be quickly explained: First I create an invisible notebook nb by CreateDocument, then i apply NotebookGet on it to see its content, wich works fine! Now I ...
1
vote
1answer
51 views

Strange Issue with RowBox

Can someone explain why this notebook [RANGEWORKING.nb] ...
0
votes
0answers
47 views

Notebook does not open [duplicate]

When I save a simple notebook , with the sum 2 + 2 , it does not open at all or with double-click or by pressing CTRL + O. Have reinstalled Mathematica 3 times and did not work. I put the settings in ...
-2
votes
1answer
95 views

I can not open any notebook

I can not open any notebook. If I make a simple notebook with the sum 2 + 2 and save it, I can not open it again. Can anyone give me some suggestions for troubleshooting this problem? A problem ...
2
votes
2answers
61 views

What is the fastest way to get notebook CellGroups / Cells structure?

So the question is how to get this kind of information: from This is one of my ideas: ...
4
votes
2answers
106 views

Can I view a package as a regular notebook?

How can I open a package as a normal notebook, i.e. without the toolbars and formatting of the built-in .m file interface.
1
vote
0answers
28 views

Changing cell style in V10.0.2 [duplicate]

In Mathematica 10.0.0 and 10.0.1 I used to change cell style by putting the cursor anywhere in the cell and then invoking one the short cuts (Alt + 1, 2, 3, 4, 5, 6, 7, 8, 9) to change cell style ...
5
votes
1answer
105 views

How to move a cell up or down with a keystroke?

It is very useful during refactoring to move lines around. All popular IDEs or text editors have this feature (PyCharm, Vim, Sublime, etc..) for example in Xcode you press: ⌥⌘[ or ⌥⌘] to move lines up ...
0
votes
0answers
85 views

How to automate repetitive evaluation of a notebook from a parent notebook

I've got a code that I want to automate, but I'm not sure how. I have a Mathematica notebook that I need to run many times over, each time changing one variable and repeating. My idea was to set up ...
2
votes
0answers
70 views

Is there a notebook to create entries for OEIS?

Is there a notebook to create entries for OEIS? I seem to recall something like this a few years ago, but I haven't been able to find one. It might be from MathWorld. Any suggestions? Edit If I had ...
2
votes
0answers
120 views

Mathematica shift-enter problem

Would really appreciate if someone can help with this problem: When I first open a Mathematica note book, say you do 1+2 and press shift-enter. As expected, I get "3" as the output. Now suppose you ...
0
votes
1answer
67 views
3
votes
2answers
222 views

How to save all notebook outputs as pdf file

I have produced a lot of graphs and tables in my notebook. I am trying to save all these outputs as pdf file. As we know form Rodney and form Mr. Wizard , we can not use save as function. I have ...
1
vote
1answer
54 views

Programmatically selecting non adjacent Cells

One can of course Ctrl + MouseClick to select 1st and 3rd cell. But how to select non adjacent Cells programmatically? I was looking for neat examples here or in ...
2
votes
1answer
82 views

How can I make new outline cells be created above the current cell on return?

When you hit enter inside an item styled cell (e.g. Cell["", "Outline1"]), a new cell of the same type is created underneath the cell you are currently editing. ...
2
votes
2answers
52 views

How to programatically set options for a selected word?

I want to create a palette with buttons and have it apply to the selected word. No matter what combination I try it always applies it to the entire cell. Imagine that in the sentence: ...
0
votes
0answers
45 views

When printing a notebook in Mathematica 10, code sections do not wrap

I have a Mathematica 10 notebook where I am using code sections. The text in the code section does not wrap when printing. Is there a setting that I should use to allow the code to wrap?
2
votes
1answer
100 views

How to mimic Org-Mode with cell dingbats?

I love using org-mode to organize my to-do lists, the functionality is amazing, but it suffers from being stuck inside the emacs terminal... I'm hoping to replicate some basic features into a ...
6
votes
0answers
143 views

How to write markdown with Mathematica?

Usually I typeset with Latex and Compute with Mathematica and then copy the outputs as Latex code and insert them in Latex, so I have to switch between Latex and Mathematica frequently. Thanks to the ...
4
votes
1answer
135 views

How can you resize all the images in a notebook section?

I've pasted a large number of photos and they are too big which makes scrolling hard. Is there a way to automatically have mathematica size them to 10% or something reasonable without have to click on ...
4
votes
1answer
84 views

Getting the Box of a Button

I have a useful snippet of code that I use for anything in my Notebook that takes a while to execute and doesn't need to be executed for subsequent cells: ...
2
votes
1answer
82 views

How to dynamically filter cells in a notebook?

I have a notebook in outline form and a docked cell with a TextField[] for searching. I'd hide and show cells in a notebook to filter the cells based on the search string (any maybe type of cell and ...
0
votes
0answers
33 views

Possible bug in shallow representations of expressions in messages

I got the following message in Mathematica 10.0.2: I do not have questions about the message itself, but rather about its representation. The program was maninulating with mathematical expressions ...
0
votes
1answer
60 views

Issue with integration from 0 to infinity with constants [closed]

I am trying to take the integration for $\int_0^{+\infty}e^{-\alpha t}sin(\beta t)d t$. Here is a screen shot of what I did: The solution to this integeation should be ...
4
votes
1answer
123 views

How to execute a notebook in background

I am developing an algorithm that take time to return results. I thought if I could run this notebook in background and continue to develop the rest of my work. It is possible to do that?
0
votes
1answer
109 views

My matematica notebook dosen't work,its bring syntax error ,why?

i have many matematica notebooks and all of them are working clearly besides one which is the most important for me.There is my whole project.Please someone help me.What should i do???
5
votes
2answers
331 views

Adjusting size and positioning of math notation in a Mathematica notebook? [duplicate]

Writing mathematics in a notebook is OK, but consider the following image: In LaTeX, I can write: $$y^2=\frac{1+2\sin^{-1}x}{2}$$ which displays as: ...
2
votes
1answer
28 views

Setting Page Scale [duplicate]

When a notebook opens in Mathematica, the lower right corner allows me to set a percentage for the page, 150% being my preference for my old eyes. Is there a way to set all pages, including help ...
1
vote
1answer
42 views

Specify format to NotebookSave

When I save a Mathematica notebook using the front-end Save dialog, I can specify the format: However, the documentation for the NotebookSave command indicates ...
2
votes
2answers
133 views

Adding NotebookDirectory to $Path when notebook opens

I'm trying to get relative notebook paths work without evaluating $Path = Append[$Path, NotebookDirectory[]]; each time I open a notebook. A bonus would be to keep ...
9
votes
2answers
164 views

What are the purposes of functions in FrontEnd` context which are duplicates of those in System`?

I noticed that for notebook-related heads, there are usually a pair of same functions, one in System context, another in ...
6
votes
2answers
467 views

How Can Notebook Know When it Called by Another Notebook?

I would like a notebook to behave slightly differently depending on whether it is evaluated from another notebook; i.e., ...
2
votes
1answer
124 views

Mathematica notebook is corrupt

Well great, I had some work done (though it wasn't much, it was just laid out nicely) in a cdf file. My computer decided to shut down on my randomly while I was working on it (some kind of error). I ...