Hot answers tagged

32

The process for Mathematica 9 is different. Home Edition 9 appears to lock out certain options in the Option Inspector, including the ones required to make this change. It will appear to permit the previous change, but will immediately revert. To make the change for 9, you need to open up the MiscExpressions.tr file (on Mac it's in the Mathematica.app ...


28

OK, something better, without editing files manually. No EULA violation whatsoever. Select Option Inspector in the Format menu: and change WindowFrame in Window Properties to Generic. Restart Mathematica and the banner has gone. (Actually, all the options for WindowFrame except Normal will remove the banner, but they will also change other aspects of ...


16

Edit I first suggested an edit of a particular init file here, a method I found here. Both my question and this answer caused quite a fuss about the legitimacy of it. In hindsight I don't think editing init files should be the appropriate way (which does not mean it would be illegal), especially since Mathematica allows you to make the same changes Rob ...


11

I generally prefer doing things via stylesheets instead of messing with files in $InstallationDirectory. Here's a simple way — in your custom stylesheet (or create a new one), add the following lines: Cell[StyleData[All, "Working"], DockedCells->{}] That's it! You're all set now. If you don't know how to add a new style to the stylesheet, see point 1 ...


10

1- Closing the notebook you're in could be done with: NotebookClose[InputNotebook[]] Note that this closes without warnings and saves (tip R.M.). Use NotebookSave to manually save the notebook or set the notebook's NotebookAutoSave to True to save after every result. 2- Notebooks[] will give you a list of open notebooks, so mapping your SetOptions over ...


10

Converting the Algebraic Manipulation palette into a DockedCells: CurrentValue[EvaluationNotebook[], DockedCells] = Append[MapAt[Partition[Flatten[#], 9] &, Import[FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "Palettes", "Other", "AlgebraicManipulation.nb"}]][[1, 1]], {1, 1, 1}], ButtonBoxOptions -> {BaseStyle ...


9

CurrentValue[EvaluationNotebook[], {DockedCells}] = Cell["XXXX", "DockedCell"] or SetOptions[EvaluationNotebook[], DockedCells -> Cell["XXXX", "DockedCell"]] example: buttons = Row[{Button["Print Date", Print[DateString[]]], Button["New Document", CreateDocument[{}]]}]; CurrentValue[EvaluationNotebook[], {"DockedCells"}] = ...


8

Basing only on your description I can't really diagnose the problem. Let me put here something what does what you need but with a slightly different approach: You don't have to set Magnification to be dynamic and dependent of any symbols, let the Slider itself to change the Magnification: SetOptions[ EvaluationNotebook[], DockedCells -> { ToBoxes @ ...


8

You could switch to one of the Creative stylesheets, such as PastelColor or PrimaryColor, which set the banner to something about two thirds of the height of the default banner, saving you a bit of room. You could then replace the graphic image with some text or image of your own: SetOptions[InputNotebook[], "DockedCells" -> Cell["Hi, Cormullion!", ...


8

Nothwithstanding the answer from Mr.Wizard and discussion with @R.M it seems like you want to make a stylesheet with a docked cell ...right? img = Plot[Sin[x^2], {x, -3, 3}, Axes -> False, AspectRatio -> 0.25, BaseStyle -> Directive[FontFamily -> "Helvetica", 9], Frame -> True, FrameLabel -> {{"x axis", None}, {"y axis", None}}, ...


7

I'm not sure from your question if you need the docked cell to be an image. I cannot see why you would unless you already have a rendered image, and that is not what you show. Here is what I use: myCell = Cell[ "Title Goes Here", "DockedCell", CellFrameColor -> RGBColor[0.996109, 0.500008, 0], Background -> GrayLevel[0.750011], CellFrame ...


7

Adding the functionality of the Algebraic Manipulate palette to the context menu ("right click menu") of Mathematica The commands of the Algebraic Manipulation palette are converted into MenuItems, that will mainly use the FrontEnd, with MenuItem[#[[1, 1]], FrontEndExecute[{ FrontEnd`NotebookApply[FrontEnd`InputNotebook[], #, All], ...


7

Here's a version which uses Inherited to pull the slide show's docked cell in. Unfortunately, there's a bug when Inherited references an empty value where it shows some needless whitespace. So this version uses Dynamic to detect the ScreenStyleEnvironment and switch its behavior accordingly. With[{mycell = Cell["Boo!", "DockedCell"]}, nb = ...


4

I often create styles using CellPrint: Once you have created the style definition go to Format > Edit Stylesheet and past this style definition cell into the private stylesheet: You should then see the docked cell in your notebook: But once you give values to your variables it should work You should probably also remove some unwanted stuff from ...


3

You can use SetOptions directly on any Notebook like this: myNewCell = Cell@RawBoxes@ ToBoxes@Style["Title of talk, Conference, Location, Date", 22, Italic, FontColor -> Blue, FontFamily -> "Times"]; SetOptions[EvaluationNotebook[], DockedCells -> myNewCell] Since DockedCells are not editable but may still contain dynamics, this is ...


3

There are probably several ways of doing this but here is one way: Button["Save as CDF", tmp = First@NotebookGet[EvaluationNotebook[]]; tmp = tmp /. {Rule[DockedCells, _] :> Sequence[]}; CDFDeploy["new.cdf", Notebook[tmp], Method -> "Standalone", WindowSize -> All], ImageSize -> 100, Method -> "Queued"] Run that button from ...


1

An alternative method (I just realised) is to define the docked cell for the Working Screen Environment only Cell[StyleData["Notebook", "Working"],DockedCells->{cells}] Change the screen environment to Presentation, Slideshow, Condensed or Printout using Format->Screen Environment and then deploy / save as CDF via menu. This method however will keep the ...



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