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.
8
votes
0answers
106 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 ...
3
votes
3answers
256 views
Is it possible to typeset left and right angle brackets?
I would like to typeset the following in a Mathematica notebook:
$$\langle P \rangle$$
Is it possible to typeset left and right angle brackets? In $\LaTeX$, they are given by ...
3
votes
1answer
148 views
Mathematica 8 and window names for modified files
I do not know if this is particular to Mac OS, but with version 8, the window name of a notebook no longer changes (with an appended *) when it is modified, as it used to do with version 7 (as well as ...
13
votes
1answer
208 views
Problems with images caused by which stylesheet is used
Update
This looks now like it was a bug in Mathematica version 8, because
everything works as expected - at least for this minimal example - in
version 9. (As an aside, I couldn't seem to find ...
8
votes
1answer
190 views
How do you insert more columns into Table cells?
How do you insert more columns into Table cells as shown below?
To get to this table, go to File -> New -> Styled Notebook -> Textbook -> New -> Scroll down to the Table Cells.
4
votes
1answer
120 views
Tweaking Prime[n] to return 1 when n==0
I manually evaluate this cell to set Prime[0]
Unprotect[Prime]
Prime[0] = 1
Protect[Prime]
I manually evaluate this cell to reset Prime[0]
...
6
votes
2answers
172 views
How to see the 'source code' of DockedCells? ALT: How to 'show expression' of DockedCell?
Here is a CDF file with the dockedcells toolbar (at the top). I'm trying to see how he created and positioned the logo, the formatting buttons, table of contents, etc, through a source code of it, but ...
6
votes
0answers
73 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 ...
2
votes
2answers
120 views
Evaluation of Notebook chosen by FileNameSetter
Please consider the following:
I have created a GUI where I can choose the path of a notebook (which I need for later calculation) via
...
20
votes
1answer
309 views
Open two copies of the same notebook
Is there a way to open one notebook in two (or more) different windows? This can be helpful when working with a long notebook and one wants to edit one part of it while looking at a different part. ...
2
votes
2answers
180 views
Creating a “Live” Index Notebook --to load other Notebooks
I am new here, so let me know if this question is inappropriate. I've been stuck for many hours on this puzzle. I know it should be easy, but for me...?
I want to create a Notebook (call it "Index ...
16
votes
1answer
220 views
Saving my code before cell evaluations: Insurance against front end hanging
I guess my programming working style is not unique. I develop programs one cell at a time, and when I have some confidence about what I did, I put all my mess together refining the code, building up ...
24
votes
1answer
305 views
Tool to locate bloat in a notebook?
In developing a notebook, I often find I have created a very boated file that takes a long time to save. I would like to slim it down. It is usually the result of graphics and images, but they may be ...
4
votes
1answer
91 views
How do I force columns in a Grid to be equally spaced?
Suppose that I have this table tab, which I display using Grid. Is it possible to force the columns to be equally spaced? All ...
3
votes
3answers
92 views
In Grid and using Frame, how can I only frame the header cells?
Suppose that I use Grid to display a table tab. I did the following, which frames all cells:
...
16
votes
3answers
324 views
How to get complete Documentation Center graph of guide pages?
On the very last image below you can see a typical path of walking through Documentation Center guide pages. What is the best way to get the graph data and visualize the whole structure of these ...
8
votes
4answers
205 views
Create horizontal list in notebook
I want to create a multiple choice question paper and list the options horizontally. I am only looking at very simple document with horizontal list. What I want:
What is 1+1?
a) 2 b) 4 c) 3 d) 7
...
5
votes
1answer
262 views
Security of Mathematica Demonstrations
Apologies if this is overly paranoid.
I recently discovered the Wolfram Demonstrations Project and intend to play with them to understand some of the power of Mathematica.
I have one slight concern: ...
33
votes
3answers
1k views
Using the Mathematica front-end efficiently for editing notebooks
Background:
I have used Vim for 15+ years. There is a certain "one"-ness with the editor one achieves. Emacs users also experience this. Notepad users do not.
My current interaction with the ...
7
votes
1answer
133 views
Inlining calculations in a notebook
Context
In $\LaTeX$, I can write something like:
Thus, we have $x = \sqrt{2}$, ...
the $ ... $, as opposed to $$ ... $$, inline the LaTeX symbols.
Now, with ...
6
votes
1answer
99 views
When are EvaluationNotebook[] and ButtonNotebook[] different?
I am looking for a concrete code example where EvaluationNotebook[] and ButtonNotebook[] will return different results.
The ...
7
votes
1answer
191 views
Customizing the Screen Environment
Is it possible to make Mathematica notebooks as stylish as this below with custom backgrounds and predictive text coloring? As shown in the snippet below? And possibly have the option to save the ...
8
votes
2answers
215 views
How do I automatically evaluate a cell when a notebook is opened?
I'm trying to put together a GUI in Mathematica and need to evaluate one cell to kick that off. Is there a way to automatically evaluate that cell when the notebook is opened? Here is an example of ...
5
votes
4answers
123 views
Dialog inside dialog not DialogReturn-ing properly
How can I prevent the DialogInput from failing (or returning early) as soon as I close the "Close this" dialog?
...
12
votes
1answer
286 views
CDF, Player, PlayerPro, or something else?
I have a notebook, which contains a dozen or so custom functions all leading to the production of a simple static report, something like this:
I want to distribute this to a single user who will ...
22
votes
2answers
472 views
How can I set an image to be the Notebook's background?
Is it possible to set a notebook's background to a nonscrolling image?
3
votes
3answers
155 views
Subscripts in programatically generated section headers
Consider the following command:
TextCell["\!\(\*SubscriptBox[\(H\), \(2\)]\)", "Section"]
How can I display the string as section header and get the DisplayForm? ...
17
votes
2answers
340 views
When to make (file.nb) instead of (file.cdf)?
I started with File > New > FreeCDF so I can save my work in a format compatible with the CDF Player. I can use Mathematica to make new cells, evaluate input and so in the CDF file. What are the ...
6
votes
2answers
304 views
Building documentation with interactive examples in Wolfram Mathematica
There are interactive examples in the documentation in Wolfram Mathematica. Thus to compile them we just need Shift+Enter. I want to develop such examples for functions from my own package, how can I ...
8
votes
1answer
133 views
Accessing the Options of the parent Cell
From within the Kernel, it is possible to access a Cell's options using CurrentValue. For instance, in a ...
0
votes
1answer
169 views
Graphics copy paste
Background. I have a function ( stored in a package ) that creates 2D graphic images, its prototype looks like this:
...
9
votes
1answer
172 views
How to create a notebook element that can replace itself?
I would like to create a notebook element that can replace itself.
Here's an example to illustrate:
...
21
votes
3answers
617 views
How to place an image inside a notebook, with the minimum memory footprint?
When creating a notebook with images, like photos, the file tends to quickly get big, which makes it difficult to use the notebook format for training material containing a lot of images.
Are there ...
4
votes
1answer
132 views
Searching Notebooks for String Patterns using Workbench v2
The Workbench webpage describing new features in version 2 lists the ability to "Search notebook documents with the Mathematica pattern search utility" under the heading Mathematica Front End ...
8
votes
1answer
519 views
Relative paths for portable notebooks in Mathematica
I cannot find how to use relative paths in Mathematica. My directory structure is simple.
...
20
votes
4answers
649 views
Saving data inside a notebook so that I don't have to run it again?
Piggybacking on this, I am somehow not fully convinced that I can't save data generated by a calculation in a mathematica file so that when I re-launch said file, I wouldn't have to run my ...
5
votes
2answers
337 views
Converting a notebook to plain text programmatically
It is possible to export a notebook to plain text format (practically just extracting all the text from it and discarding formatting) using the ...
16
votes
1answer
330 views
NotebookFind and String Pattern Expressions
Is there a way that NotebookFind can be used to match string pattern expressions rather than just strings?
The documentation for ...
13
votes
2answers
462 views
Is it possible to embed the Mathematica editor?
Is it possible to embed a Mathematica window into a .NET application? I mean not just the interop, but actually making the notebook editor window part of a .NET form. Is this possible?
6
votes
1answer
108 views
Some way to identify the source of a notebook file?
Is there a way to tell where a Mathematica file came from, meaning some type of machine ID (yes, I know about $MachineID). I want to be able to identify students ...
9
votes
2answers
106 views
A notebook created on demand from a main document showing executable input along with output cells
I would like to make Mathematica documents with hidden calculations, such that they can be visualized on demand. In general it can be done in several forms and I actually use some. I would like to ask ...
1
vote
0answers
105 views
keyboard sequence for Magnify in version 8?
It used to be that you could find a Magnify item in the Format menu of the Mathematica front-end, at the very bottom if I remember correctly. You could get at the item in Windows by a keyboard ...
5
votes
1answer
92 views
Remove CellMargins option from many cells
I have a very old notebook in which many cells had the CellMargins option set manually. What's the easiest way to remove all those manual option settings?
3
votes
1answer
231 views
Option to change cursor/caret shape
While editing on a Mathematica notebook, I often find myself needing to do something else outside of Mathematica for a few hours. After finishing such outside tasks, I resume to work on the notebook.
...
11
votes
1answer
200 views
How to make an unremovable modal window?
Is there any way to securely stick a notebook window (e.g. a dialog) on screen that it cannot be closed/removed/hidden by any of the standard OS shortcuts, like AltF4 or AltTab under Windows? The ...
10
votes
1answer
227 views
Is it possible to colorize brackets in the notebook editor to see matches more easily?
I've seen that if I click on a square bracket [, I can then use "Check Balance" in the right click menu to see where the matching bracket is.
Is there a way to see ...
2
votes
0answers
75 views
How do I direct output to a specific notebook or cell? [duplicate]
Possible Duplicate:
How to pipe a stream to another notebook?
Is there any way to create a stream so that all output to the stream (from Write or ...
10
votes
6answers
435 views
Annoying display truncation of numerical results
I have a lot of data to inspect. An example of a number in my program is
123.189094
This gets displayed as
123.189
...
3
votes
1answer
97 views
How to edit the text coming together with the numeration of pages in pdf produced out of a notebook?
I am writing a text that I am going to publish on-line. When I transform it from the notebook into the pdf format I get the numeration style typical for Mathematica:
I would like to edit the text ...
10
votes
2answers
345 views
Is it possible to insert an animated image into Mathematica notebook?
I find it very convenient to use Mathematica notebooks to organise the codes + results.
I was wondering if it is possible to insert an animated image (say an animated gif) in the middle of a ...