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.
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
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
6answers
432 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
...
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 ...
26
votes
2answers
658 views
Is there a way to separate variables between multiple notebooks?
I often correct homework by checking the calculations in Mathematica. Sometimes you would like to have two solutions open at once. However often defined symbols such as ...
8
votes
2answers
456 views
Collapse a section of a huge function
(I have recently taken to Mathematica... still a noobie)
Is there an elegant way of hiding/collapsing only a portion of a function (for example, in Matlab, within a function, one can collapse the for ...
10
votes
3answers
782 views
Programmatically generate packages from notebook files?
Currently, there are two ways I know of to generate a package (.m) file from a notebook file; one is to set the AutoGeneratedPackage option in the Option Inspector, ...
9
votes
2answers
252 views
Saving a notebook without output lines
Is it possible to change the way Mathematica saves so that Out[] lines are never included?
I have a .nb file that processes a ...
6
votes
1answer
110 views
How to sort cells in a notebook based on cell tags?
Suppose I have a notebook with cells tagged with both numbers and words with numbers always list first, and some cells without cell tags e.g.:
...
10
votes
2answers
740 views
Delete the current notebook cell using the keyboard
Is there another way than pressing Ctrl+. until the whole cell is selected and then pressing Del?
If this is not built in, can I create some sort of a global macro to do this and bind it to a ...
8
votes
4answers
599 views
Automatically counting the number of lines of code in a set of notebooks
How can I automatically count the number of lines of code "Input" existing inside all the notebook files contained in a specified folder?
I know there is the issue of considering or not the automatic ...
2
votes
2answers
178 views
How can Magnify be forced to ignore the notebook's window width?
In a new notebook, I can illustrate how the action of Magnify is cut off by the window width:
...
10
votes
2answers
346 views
How to make a parallel auto-generated .m package from Initialization cells?
according to the documentation at ref/InitializationCell,
When you first save a notebook that contains initialization cells, you have the option to make a ...
6
votes
2answers
193 views
How do I view initialization (or other invisible) cells in a notebook?
I am looking at someone else's notebook, and when I go to evaluate it, it asks whether I want to evaluate the initialization cells. I would like to look at them first, but "I do not see them here nor ...
9
votes
1answer
140 views
Knowing when a notebook has changed programmatically
Is there any way I can programatically determine whether a notebook has unsaved edits?
Is that asterisk on the right of the notebook name represented in a notebook option or something, like ...
6
votes
1answer
257 views
How to pipe a stream to another notebook?
Can I pipe an OutputStream object created by OpenWrite (or similar) to a notebook instead of a file? I am aware that I can use ...
8
votes
1answer
361 views
how to easily find location of hidden characters that causes hard to find syntax error in notebook?
For last 30 minutes (and I was lucky today, sometimes I spend 5 times as much time) I have been removing code little by little from my large one cell, (have to be one cell, it is Manipulate demo ...
19
votes
2answers
358 views
Programmatically copy code so that all output is commented out
UPDATE: The final palette has a new home here! Please test and provide feedback (usability, suggestions, bugs)
A note to the readers and voters: This is intended for community use, so please test the ...
9
votes
2answers
123 views
How can I set a fixed cell height?
I did this often in previous versions of the Mathematica notebook front end. I would have a cell with lots of raw data, e.g. a very long list. The list might go on for pages. I would set the cell ...
12
votes
2answers
298 views
How to export to HTML and not lose Grid Frame in the generated HTML?
This is a known issue for me with Mathematica. When I export a notebook to HTML, Mathematica loses some decorations such as Grid Frame lines (in grid and like objects).
For example, creating this ...



