Tag Info

Hot answers tagged

38

Seeing as there are no good repositories for Mathematica stylesheets and packages, I created a github account for the community. The account resides at github/stackmma. I know there's library.wolfram.com, but we should be independent of WRI. On the topic of this question, I created a public stylesheets repository and I've added halirutan and jmlopez as ...


26

A bit of warning from the OP: this code locked-up my Mathematica session, so be sure to save everything before you try this. Update: Problem seems to be related to a problem MMA has with paginating a particular notebook of mine (see comments). This code creates a separate TOC for a notebook saved at the location bookUrl. It works by iterating over all ...


20

FWIW here are some styles I use when collaborating -- i.e. I am doing the programming but others are commenting on outcomes and providing feedback: The basic cell style is: Cell[StyleData["Mike", StyleDefinitions -> StyleData["Text"]], CellFrame->{{4, 0}, {0, 0}}, CellMargins->{{66, 10}, {7, 7}}, CellFrameLabels->{{ PaneBox[ ...


13

This is not documented but I hope it gets better supported in future versions: TableView[] Since the use of TableView is not immediately apparent:


12

Mathematica already has some of these features: e.g Regarding your comment about the appearance when you do this in a text cell. Here is what it looks like for me on a Mac: So the font is Courier which, unless you have reconfigured your system, is not the default font for text cells. You can fix this by changing the grid box options: To do this -- in ...


9

OK, FrontEnd: After creating the "overview" button below just click first on your function definition and then on the button and under the function definition you will get (nearly) what you want, i.e. : Part 1. Step 1. Local variables Part 1. Step 2. Option variables Part 2. Step 1. Check for null Input Part 2. Step 2.:1 Check for groups Part 2. ...


9

Add the following option to your CreateDocument call: StyleDefinitions -> CurrentValue[EvaluationNotebook[], StyleDefinitions] This works for both embedded stylesheets and stylesheets on the StyleSheetPath. In this case, I use EvaluationNotebook to refer to the notebook containing the button but it could, of course, be whatever NotebookObject you ...


8

I would suggest something more simple-minded than Rolf's sophisticated implementation: Clear[extractComments]; extractComments[boxes_] := StringJoin@ Riffle[ Cases[boxes, r : RowBox[{"(*", ___, "*)"}] :> StringJoin@Cases[r, _String, Infinity], Infinity], "\n"]; and the palette: CreatePalette[ ...


2

Unless you want group openers for all groups -- which you probably don't, since that would put one at the very top level for the entire notebook -- then you can edit the notebook's style sheet, select the kind of cell (Section, Subsection, e.g.) for which you want the group opener, and then use the Option Inspector on that cell in the style sheet to include ...


2

Here's one solution (that needs a bit of improvement to make it useful): functionList[context_String] := TableForm@Sort[ HoldForm @@@ Flatten[ (ToExpression[#, InputForm, DownValues] & /@ Names[context <> "*"])[[All, All, 1]]]] Now just do functionList["Global`"]. It does not handle UpValues, SubValues, OwnValues, but most of your ...


2

There is something close to what you ask for built into Mathematica. It is the function called Information. In the form you would use to get what you asked about, there is a keyboard shortcut, the question-mark character. a = 42; f[arg1_, arg2_] := Module[{}, {arg1, arg2}] g[t_] := t^2 ?"Global`*" Each of the symbols shown above is actually a button and ...


1

I do this kind of things regularly. The view of the PDF documents I obtain I find to be satisfactory. Sometimes there appears a conflict of the embedded figure and the page length. This may give rise to something like a part of the page with no text. If this is strongly unwanted, I fix this up manually (also not a big deal). To make the PDF file I simply ...



Only top voted, non community-wiki answers of a minimum length are eligible