Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
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
Accepted
Determine page count programmatically
If you evaluate:
Options[EvaluationNotebook[], PageHeaders]
You will see the underlying code that generates the total pages is:
CounterBox["LastPage", CounterFunction :> Identity]
Counters can b …
8
votes
Setting a Counter in Mathematica Notebook
I wrote a book with Mathematica 10 years ago. The way I set it up was to create a counter called "Chapter" but you could also use "Title". In your title style you need to ensure all counters are reset …
3
votes
Accepted
Details of automatic cell-grouping w.r.t. cell-style
The option that governs this behaviour is CellGroupingRules
By changing the grouping I can make sections group under text e.g.
due to
Notice that a number accompanies the grouping assignment. …
2
votes
Accepted
NotebookWrite undo
But if write to notebooks and then needing to programmatically make changes is likely to be something you will be doing I see no harm in tagging cells and heading down that path. …
6
votes
Accepted
Cell format for screen headers
When you find a notebook with a docked cell evaluate
Options[EvaluationNotebook[], DockedCells]
to see what has been added to the docked cell option. Please read the docs and the link @rm -rf provi …
5
votes
Accepted
How to specify a StyleSheet of a newly programmatically-created notebook?
Button["Show",
CreateDocument[
Column[{
TextCell["Some text", "Text", FontSize -> 20],
ExpressionCell[Plot[Sin[x], {x, 0, 2 \[Pi]}]]}],
StyleDefinitions ->
FrontEnd`File …
5
votes
Accepted
Can I view a package as a regular notebook?
Upon opening you can change the stylesheet and remove the docked cell:
SetOptions[EvaluationNotebook[], DockedCells -> {},StyleDefinitions -> "Default.nb"]
Then if you want to change the "Code" sty …
8
votes
Accepted
Adding a graphic to the beginning of an existing (.nb) notebook file
Assuming your notebook is called nb, e.g.
file = FileNameJoin[{$InstallationDirectory, "Documentation",
"English", "System", "ExampleData", "document.nb"}];
nb = NotebookOpen[file];
then evalu …
4
votes
Accepted
Is it possible to programatically create new notebook without the default top Toolbar (the o...
CreateDocument[{}, WindowToolbars -> {}]
11
votes
Accepted
Customizing the Screen Environment
Re: appearance, you can do this with a style sheet. Below are some cells with my styles for a) running the terminal in Mma and b) sending stuff to a word document.
If that is what you are looking f …
7
votes
How can I type left (sub)superscript?
There is quite a bit of "micro" tweeking available for typesetting these positions. Starting with Davids answer:
Row[{
Style[Subsuperscript[Invisible["x"], "a", "b"], Italic],
Style[Superscrip …
5
votes
Accepted
how to select all cells with specific property such as the ones that are closed
The link that @rm -rf provides does most of what you have asked for. For the final part of your question
Actually, ideally what I'd like to do, is say: Export all cells except
the Input and Code …
5
votes
How do I make Mathematica copy a cell after I re-evaluate it?
As for the output there is a default option for cells called CellAutoOverwrite and also an option for notebooks called OutputAutoOverwrite which is True by default. … If you want to switch off overwriting in all your notebooks you could create a stylesheet to use but I'm sensing you are a new user so the easiest path would be to go to Format >> Option Inspector... …
2
votes
Cell output controlled by CellFrameLabel Checkbox?
Given that the objective has been clarified as "How does one update the tagging rules of the main cell from within a frame?" here is a solution:
CellPrint[
ExpressionCell[Dynamic@CurrentValue[{Taggi …
2
votes
Include Headers on first page
As per @ybeltukov below is what I have in my stylesheet, implemented here as SetOptions
SetOptions[EvaluationNotebook[],
PrintingStartingPageNumber -> 1,
PageHeaders -> {
{Cell[TextData[{Coun …