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)

1
vote
1answer
45 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 ...
1
vote
1answer
85 views

How to evaluate the same code in a whole bunch of existing notebooks

I have a large folder of existing notebooks, each currently containing a single cell of input. I would like --- in each of these notebooks --- to evaluate that cell, evaluate a new chunk of code I've ...
1
vote
1answer
410 views

Comment color in a notebook

My requirement: Comments should appear within a notebook in blue and font size 12 and in Courier by default. This should work on not just my machine (by tweaking the preference of MY Mathematica) ...
1
vote
1answer
89 views

Append CellTag to list of Cells

As suggested in this earlier post, I restate my question here about appending CellTags option to existing list of Cells. What I ...
1
vote
1answer
115 views

NotebookWrite Multiple Selected Objects

Lets say I select shapes in a Graphics diagram in the following picture. Generated from the following set of code: ...
1
vote
1answer
63 views

How to change Compiled->False to Method->{Compiled->False} in multiple notebooks?

I have a collection of about 40 notebooks where the options for ParametricPlot and ParametricPlot3D have: Compiled->False and I need to switch any/all ...
1
vote
0answers
29 views

Loading a notebook to a website

When I upload a Mathematica notebook to my website, when I click on the link, it opens, but as text, not a Mathematica notebook. At some sites, when I click on a Mathematica notebook, the notebook ...
1
vote
0answers
114 views

How can I protect my notebook file with a password to open and save changes?

I want to protect my .nb file with a password, because now I'm using a free access computer in my university. Everybody student in my university can use that computer and I do not want my .nb file can ...
1
vote
0answers
68 views

Notebook style which imitates Latex paper [closed]

I have not experimented with Notebook styles, but from what I understand they can be customized to a wide range of styles. Is there a style which looks like a typical paper written in TeX/LaTeX? My ...
1
vote
0answers
36 views

Edit Notebook options in version 10 [duplicate]

This is a follow up question to this one. I was closing a notebook without saving, Mathematica (10) showed me this dialogue: and I clicked "Save", when I re-opened the notebook I found this ...
1
vote
0answers
64 views

How to recover a notebook?

I was closing a notebook, luckily Mathematica (10!) asked me if I really wanted to quit without saving, so I saved, but now when I open that notebook this is what I see: Is there a way to recover ...
1
vote
0answers
40 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 ...
1
vote
0answers
30 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 ...
1
vote
0answers
50 views

Changing face as you type in an expression in notebook

I've a Mathematica notebook for my class notes. When writing plain text in cells, I can dynamically bold and unbold with the ctrl+b shortcut. However, when in a mathematical expression, this shortcut ...
1
vote
0answers
92 views

SyntaxForm not correctly parsed by FrontEnd

When using TagBox with SyntaxForm, I noticed sometimes it is not well parsed by the ...
1
vote
0answers
133 views

How can I make my MM code more compact and readable? Can I put functions in different notebooks?

I'm doing some coding in MM9, but my program is getting quite large. It's mostly a bunch of functions defined at the beginning of it, but it's getting to the point where I have to scroll for a few ...
1
vote
0answers
41 views

Sending a command to an already opened frontend

I'm trying to pipe low-level notebook commands to work through terminal and I've tried various ways, but I can't really get to the frontend that's already open. For example Opening a notebook from ...
1
vote
0answers
154 views

How can I add drop shadows to the text of non-input/output cells?

Inspired by simon woods's wonderful shadow function, I want to add drop shadows to all the text of non-input/output cells in a notebook, something like this: By using simon woods's shadow function, ...
1
vote
0answers
111 views

Load a Mathematica Notebook using .Net code

I have gotten a tremendous amount of information from the question posted at (Load a Mathematica Package via .Net code), which my application is very similar to. Specifically in that thread, the ...
1
vote
2answers
281 views

Changing Default Color for Titles, Sections, Subsections, etc., and Items (bullet color) [duplicate]

I'm new to Mathematica 9, and I assume there must be an easy fix for my problem, but I have not been able to find any yet. Essentially, I want the default color for the text of all of my titles, ...
1
vote
0answers
123 views

Remote access to notebook is very slow

I am using Mathematica at work remotely from a computer in my building and I can edit notebooks by opening them from terminal via ssh without problem (a little slow if there is a figure with many ...
0
votes
2answers
100 views

Cases Message Valid Notebook Structure

Note: Spelunking will likely be needed. Execute the following. You should get back and error along the lines of First::first:... This error is unimportant except ...
0
votes
1answer
276 views

Graphics copy paste

Background. I have a function ( stored in a package ) that creates 2D graphic images, its prototype looks like this: ...
0
votes
2answers
40 views

Notebook cells space on disk profiler

I have one single notebook with more than 500 mb... To control its growth, I would like to have a profiler of used space (not the live memory, but the space on disk), in such a way that I can easily ...
0
votes
1answer
162 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???
0
votes
1answer
122 views

Front-end: How can one programmatically extract window titles?

I would like to programmatically get the titles that appear at the top of notebook windows, particularly for notebooks that have not yet been saved (if they have been saved, I can get the information ...
0
votes
1answer
348 views

How to open Mathematica from the terminal in OS X

So far, when I was working in Linux, I would open my Mathematica files from the terminal by typing: mathematica filename.nb & But now, I got a mac, and when ...
0
votes
2answers
98 views

Export all open notebooks and change font size

Is there a simple way to export all open notebooks to pdfs? Also, when I export notebooks the font looks too big / the margins are too big. Can I change these settings when exporting?
0
votes
1answer
168 views

Old notebook (Version 3) not opening in version 9

I have some old notebook files in version 3 format from the book "Mathematica for Physicists". These files are blank except for the chapter header when opened in Mathematica 9. I have similar ...
0
votes
2answers
337 views

Creating an API or Widget based on a Mathematica notebook

I'm trying to create a matrix calculator and graph tools for our website and was wondering if there is a way to create Wolfram API or Widgets based on a Mathematica notebook.
0
votes
1answer
124 views

Importing RSS to Notebook: How to get images instead of long ugly links?

This question on importing news headlines via a RSS feed reminded me of an old question I've been meaning to ask. Past attempts at finding a use for Mathematica's RSS to Notebook capabilities were ...
0
votes
1answer
184 views

Cell output controlled by CellFrameLabel Checkbox?

The following generates a Cell that returns the state of the checkbox when evaluated: ...
0
votes
1answer
35 views

How can I make a RadioButtonBar that randomizes the choices each time a notebook is opened?

I have the following function for making a RadioButtonBar with randomized choices. The code is ...
0
votes
1answer
34 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 ...
0
votes
1answer
70 views
0
votes
1answer
104 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 ...
0
votes
1answer
164 views

Multiple Mathematica notebooks in a tabbed window with line numbers

I have the following questions: Is there a way to open multiple mathematica notebooks in tab group rather that each mathematica notebook opened in separate window? Is there a way to display line ...
0
votes
1answer
74 views

Modifying a column with a button within the column

I want a column with textcells and a button to add an extra textcell: ...
0
votes
1answer
29 views

Is it possible to modify the options for a particular cell from another cell? [duplicate]

I was wondering if I can toggle the "CellOpen" state from a cell (or bunch of cells) from another cell. i.e. I am imagining having a manipulate command along the lines of: ...
0
votes
1answer
116 views

Workaround for automatic replacement of “\r” to “\n”

When I run the following code in an empty notebook SetOptions[EvaluationNotebook[], testOption -> "\n\r"] and then open the notebook in Notepad, I find ...
0
votes
1answer
128 views

Move selection to next Output and export to CDF

In my quest to a custom "Save as HTML" (please see context here) I am now able to iterate through the notebook, grab Input cells decorated with a CellTag that, by convention, is going to be a file ...
0
votes
0answers
26 views

Entire notebook merged to one cell after crash

I have just reopened a notebook in Mathematica 10.1 after a crash, and find all cells have been merged, including the labels on input and output cells (In[202] := ...
0
votes
0answers
43 views

Saving a notebook before a crash

On the MacBook Pro, Command+S saves the notebook. So, every few minutes, Command+S is invaluable. What do other folks do? For example, in TexShop, when I compile my LaTeX code, the file is ...
0
votes
0answers
28 views

Shortcut to call recent inputs

I am familiar with CTRL+Shift+L to call the last input; however, in the case that I want to, for ease-of-comparison, want to print outputs of a command from further in the past and don't remember ...
0
votes
0answers
57 views

problem of re-open the .nb file of Mathematica

This probably is a newbie question, but I cannot figure out it. I have a Mathematica 10. Every time when I re-open a .nb file, either by double clicking or by using the software interface, all cells ...
0
votes
0answers
45 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
0answers
35 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 ...
0
votes
0answers
53 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
0answers
16 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 ...