Tag Info

Hot answers tagged

24

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 ...


21

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 ...


14

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 ...


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 ...


8

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 ...


8

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

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 ...


6

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 = ...


6

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!", ...


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

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