Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Custom stylesheet based on "NaturalColor"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116723] Custom stylesheet based on "NaturalColor"
  • From: ÅerÃch Jakub <Serych at panska.cz>
  • Date: Fri, 25 Feb 2011 06:34:53 -0500 (EST)

Hello,
I would like to create my own StyleSheet based on /Creative/NaturalColor stylesheet provided with Mathematica installation. I know how to change definitions of different styles, but what I am not able to do is change of the notebook header image. Does anybody know how to do it? 
I even tried to open the stylesheet definition in general text editor and I can see the image - there is something like:

Cell[StyleData[All, "Working"],
 DockedCells->{
   Cell[
    GraphicsData[
    "Bitmap", 
     "CF5dJ6E]HGAYHf4PAg9QL6QYHg<PAVmbKF5d0`4000Eg0000620010400?l00000o`\
00003o\n00000?ooTVPgoonBJ3Oooi9X=oooTVPgoonBJ3Mloi9X=`003?mc<0D3ogPh2`03oh@\

     <<many such lines>>

00goIe0a00?oKELeofM@<OmWD3403?mWD3400omZDc;oIe0aofM@<@0HofM@<@00"], 
    "Graphics", ImageSize -> {1399, 24}, ImageMargins -> 0, 
    CellMargins -> {{0, 0}, {0, 0}}, Background -> 
    RGBColor[0.403922, 0.313725, 0.192157], 
    CellFrameMargins -> {{0, 0}, {0, 0}}]},
 CellBracketOptions->{"Color"->RGBColor[0.509804, 0.54902, 0.235294]}],   

I tried to insert my desired image into the cell of normal notebook and than copy the similar code using the general text editor and paste it in the stylesheet definition file, but the image in my notebook is saved in little bit different format (see the example lower) and it is not working.  

Piece of the data of my image inserted to normal notebook:
Cell[BoxData[
 GraphicsBox[
  TagBox[RasterBox[CompressedData["
1:eJx1uHdQnGmW7klJQngjPCSk99577y02MZlJGrwTEshhJRASIAknPCTeGxkQ
IFNSqcurpJrq6uk7t7dn5nZPz2yPubvTEbt37+5M7MR01J4UPfePG7EVD298


Is the Mathematica Workbench (or some other tool) better for the work with stylesheets?

Thanks in advance for any help

Jakub


  • Prev by Date: Re: How to local files on ParallelKernels
  • Next by Date: Getting an image with JLink
  • Previous by thread: Re: Best way to import 3D files and link its objects with metadata?
  • Next by thread: Re: Custom stylesheet based on "NaturalColor"