Re: Embedded Style Sheets
- To: mathgroup at smc.vnet.net
- Subject: [mg79172] Re: Embedded Style Sheets
- From: David Reiss <dbreiss at gmail.com>
- Date: Fri, 20 Jul 2007 03:26:17 -0400 (EDT)
- References: <f7n55c$2dr$1@smc.vnet.net>
Hi John, Here is a simple strategy that should work. In fact its generalizations can lead to some useful tools which I might integrate into http://scientificarts.com/worklife/documentation/stylesheetspalette.html (the documentation at that link is for the version of A WorkLife FrameWork that is pre-Mathematica 6--I need to update it). Here's an approach which is somewhat of a hack. Perhaps there will be tools placed in Mathematica that take on the tast of doing things like this as well. First--open your style sheet and copy all of the cells in it excluding the cell that says "Inheriting Base definitions from ...". I am assuming that the base definitions that you are basing your style sheet on are those of Default.nb. If this si not correct, then replace Default here and below with the stylesheet that you did base your new one on. Now open the notebook that you want to embed the style information into (perhaps it is best, as it is always, to work on a copy of the intended notebook). Now, in that notebook, set the style sheet to be Default from the Format>Stylesheet menu. Next choose Format>Edit StyleSheet... from the Format menu. This brings up the Private Style Definitions, which are embedded in the notebook. Finally paste the cells that you copied previously from your Stylesheet into the Private Style definitions. Close the Private Style definitions and save your notebook. This now can be transported with the style informatoin embedded in the notebook. I hope that this helps... --David On Jul 19, 3:51 am, John Browne <john.bro... at alum.unimelb.edu.au> wrote: > I have followed the style sheet threads for 6 on the group, and > appreciate David Park's and John Fultz's input. I have now created a > (fairly complex) style sheet which does just what I want. > > My problem is: How do I embed this new style sheet in a notebook for > other people's use? Using the Edit Stylesheet ... menu item doesn't > seem to provide a way. > > I would like to be able to send someone a notebook, and have them be > able to open it, and see it as I intended, without my having to send > them a separate style sheet that they have to install. > > Can this be done? > > John