Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4921 > unrolled thread

Re: How create new style sheet- Mathematica 8

Started byJohn Fultz <jfultz@wolfram.com>
First post2011-09-13 11:28 +0000
Last post2011-09-16 09:56 +0000
Articles 9 — 7 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: How create new style sheet- Mathematica 8 John Fultz <jfultz@wolfram.com> - 2011-09-13 11:28 +0000
    Re: How create new style sheet- Mathematica 8 David Bailey <dave@removedbailey.co.uk> - 2011-09-14 09:23 +0000
      Re: How create new style sheet- Mathematica 8 AES <siegman@stanford.edu> - 2011-09-15 08:41 +0000
      Re: How create new style sheet- Mathematica 8 Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-09-15 08:51 +0000
      Re: How create new style sheet- Mathematica 8 Murray Eisenberg <murray@math.umass.edu> - 2011-09-16 09:51 +0000
      Re: How create new style sheet- Mathematica 8 mathlawguy <chandler.seth@gmail.com> - 2011-09-20 10:13 +0000
    Re: How create new style sheet- Mathematica 8 Murray Eisenberg <murray@math.umass.edu> - 2011-09-15 08:39 +0000
      Re: How create new style sheet- Mathematica 8 David Bailey <dave@removedbailey.co.uk> - 2011-09-17 10:29 +0000
    Re: How create new style sheet- Mathematica 8 Mike H <mike.honeychurch@gmail.com> - 2011-09-16 09:56 +0000

#4921 — Re: How create new style sheet- Mathematica 8

FromJohn Fultz <jfultz@wolfram.com>
Date2011-09-13 11:28 +0000
SubjectRe: How create new style sheet- Mathematica 8
Message-ID<j4neoq$548$1@smc.vnet.net>
I don't understand your first point.  What do you mean by "Browse" option? I 
can't possibly think you mean that the file browsing dialog only shows 2 of n 
notebooks in some given directory.

Yes, it is the case that notebooks with Saveable->False should be able to save, 
and don't in 8.0.1.  But that won't affect stylesheets created using the method 
I outlined.  And that bug will be fixed in a Mathematica incremental update
which will hopefully be available soon.

Sincerely,

John Fultz
jfultz@wolfram.com
User Interface Group
Wolfram Research, Inc.


On Mon, 12 Sep 2011 09:29:52 -0400, David Park wrote:
> But suppose it's a style sheet from an application that already exists and
> has been edited. How do you get it to save back into the same
> application/FrontEnd/StyleSheets location?
>
> I know there is a Browse option, but it is broken if there are more than
> two style sheets in the location. It only shows two and if the edited
> style sheet is not one of them you can't save it.
>
> Version 8 destroyed the SaveAs option and this was a disaster.
>
> Now you have to Install, go looking for the style sheet and move it back
> to where you really want it.
>
>
> David Park
> djmpark@comcast.net
> http://home.comcast.net/~djmpark/
>
>
> From: John Fultz [mailto:jfultz@wolfram.com]
>
> On Sun, 11 Sep 2011 07:29:17 -0400 (EDT), Murray Eisenberg wrote:
>> How does one create (and save!) a new style sheet in Mathematica 8?
>>
>> One way that used to work in earlier versions was:
>>
>> 1. Open a new notebook, say Untitled-1.nb.
>>
>> 2. From the menu, select Format > Edit StyleSheet, which pops up a
>> "Private Style Defintions for Untitled-1.nb" style sheet.
>>
>> 3. Edit that popped-up style sheet.
>>
> At this point, press the Install button on the toolbar.  That will save it
> on
> your stylesheet path where it will automatically be found and populated
> into
> the
> menus.
>
> Sincerely,
>
> John Fultz
> jfultz@wolfram.com
> User Interface Group
> Wolfram Research, Inc.
>
>
>> 3. Use Save As to save that popped up style sheet under some name.
>>
>> But this does not work in Mathematica 8: it does not let you Save As for
>> a style sheet!
>>
>> Another method was to begin by making a copy of Default.nb, edit that,
>> etc. However, again Mathematica 8 does not allow a Save As on the copied
>> file.


[toc] | [next] | [standalone]


#4947

FromDavid Bailey <dave@removedbailey.co.uk>
Date2011-09-14 09:23 +0000
Message-ID<j4prqh$foj$1@smc.vnet.net>
In reply to#4921
On 13/09/2011 12:28, John Fultz wrote:
> I don't understand your first point.  What do you mean by "Browse" option? I
> can't possibly think you mean that the file browsing dialog only shows 2 of n
> notebooks in some given directory.
>
> Yes, it is the case that notebooks with Saveable->False should be able to save,
> and don't in 8.0.1.  But that won't affect stylesheets created using the method
> I outlined.  And that bug will be fixed in a Mathematica incremental update
> which will hopefully be available soon.
>

I have never found creating style sheets easy - and I generally avoid 
them, despite their obvious value.

It would be great if the process could be made more transparent. For 
example:

1)   It would be nice to press a button and see the hierarchy of style 
sheets leading to the notebook style sheet - preferably with their full 
pathnames.

2)   What happens when a style sheet is installed - is it just placed 
somewhere in the filestore?

3)   Editing a style sheet seems too much like editing a notebook - 
which leads to confusion as to what can and cannot be done.

4)   If you end up with an edited style sheet when you close the 
associated file (or Mathematica), I think it should tell you and ask you 
what you want to do - just like you do not lose an edited notebook 
without pressing "Don't Save".

This is one area where I sense WRI developers have put enormous effort, 
but it never seems easy to use. Maybe a general, open discussion at the 
conference would help.

David Bailey
http://www.dbaileyconsultancy.co.uk

[toc] | [prev] | [next] | [standalone]


#4968

FromAES <siegman@stanford.edu>
Date2011-09-15 08:41 +0000
Message-ID<j4sdoc$sj4$1@smc.vnet.net>
In reply to#4947
In article <j4prqh$foj$1@smc.vnet.net>,
 David Bailey <dave@removedbailey.co.uk> wrote:

> 1)   It would be nice to press a button and see the hierarchy of style 
> sheets leading to the notebook style sheet - preferably with their full 
> pathnames.

Amen!!  It's always helpful to understand the structure, the 
hierarchy, the functional organization of some large and complex 
mechanism you're using or are involved with -- even if you have no 
intention of messing with individual components, or should actively 
avoid attempting to mess with them.

> 2)   What happens when a style sheet is installed - is it just placed 
> somewhere in the filestore?

Amen, again -- where I take this particular (and rather minor point) 
as just one illustration of the generalization in Item 1

> 3)   Editing a style sheet seems too much like editing a notebook - 
> which leads to confusion as to what can and cannot be done.

Actually, this may be a useful technique -- if you're specifically 
told, "To modify what a stylesheet will do to all the cells having a 
certain cell style, in notebooks that use this stylesheet,  **find the 
cell in the stylesheet itself that has that style and hand-edit its 
style**".  (Is that, more or less, how it works?  Seems to be . . .)

[toc] | [prev] | [next] | [standalone]


#4978

FromArmand Tamzarian <mike.honeychurch@gmail.com>
Date2011-09-15 08:51 +0000
Message-ID<j4sea6$sog$1@smc.vnet.net>
In reply to#4947
On Sep 14, 7:23 pm, David Bailey <d...@removedbailey.co.uk> wrote:
> On 13/09/2011 12:28, John Fultz wrote:
>
> > I don't understand your first point.  What do you mean by "Browse" option? I
> > can't possibly think you mean that the file browsing dialog only shows 2 of n
> > notebooks in some given directory.
>
> > Yes, it is the case that notebooks with Saveable->False should be able to save,
> > and don't in 8.0.1.  But that won't affect stylesheets created using the method
> > I outlined.  And that bug will be fixed in a Mathematica incremental update
> > which will hopefully be available soon.
>
> I have never found creating style sheets easy - and I generally avoid
> them, despite their obvious value.
>
> It would be great if the process could be made more transparent. For
> example:
>
> 1)   It would be nice to press a button and see the hierarchy of style
> sheets leading to the notebook style sheet - preferably with their full
> pathnames.
>
> 2)   What happens when a style sheet is installed - is it just placed
> somewhere in the filestore?
>
> 3)   Editing a style sheet seems too much like editing a notebook -
> which leads to confusion as to what can and cannot be done.
>
> 4)   If you end up with an edited style sheet when you close the
> associated file (or Mathematica), I think it should tell you and ask you
> what you want to do - just like you do not lose an edited notebook
> without pressing "Don't Save".
>
> This is one area where I sense WRI developers have put enormous effort,
> but it never seems easy to use. Maybe a general, open discussion at the
> conference would help.
>
> David Baileyhttp://www.dbaileyconsultancy.co.uk

It would be nice if some sort of wysiwyg stylesheet creator
accompanied Mathematica that allowed easy stylesheet creation analogous to
many of web stylesheet creators.

Mike

[toc] | [prev] | [next] | [standalone]


#4990

FromMurray Eisenberg <murray@math.umass.edu>
Date2011-09-16 09:51 +0000
Message-ID<j4v66f$c72$1@smc.vnet.net>
In reply to#4947
But editing a style sheet is (mostly) already WYSIWIG. For example, from 
the Format menu select Edit Style Sheet. You'll see a style sheet that 
merely shows inheriting the style sheet Default.nb.

Select a style there from the drop-down menu and just edit it. For 
example, choose Text style. Click the cell-bracket for the cell "Local 
definition for style "Text" that now appears. Then use either the main 
menu's Format item, or use the Option Inspector, to change the Face to, 
say, Italic. Instantly you'll see the text inside that cell in the style 
sheet change to Italic.

On 9/15/11 4:41 AM, Armand Tamzarian wrote:
>
> ...It would be nice if some sort of wysiwyg stylesheet creator
> accompanied Mathematica that allowed easy stylesheet creation analogous to
> many of web stylesheet creators.


-- 
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

[toc] | [prev] | [next] | [standalone]


#5091

Frommathlawguy <chandler.seth@gmail.com>
Date2011-09-20 10:13 +0000
Message-ID<j59p04$q0$1@smc.vnet.net>
In reply to#4947
On Sep 14, 4:23 am, David Bailey <d...@removedbailey.co.uk> wrote:
> On 13/09/2011 12:28, John Fultz wrote:
>
> > I don't understand your first point.  What do you mean by "Browse" option? I
> > can't possibly think you mean that the file browsing dialog only shows 2 of n
> > notebooks in some given directory.
>
> > Yes, it is the case that notebooks with Saveable->False should be able to save,
> > and don't in 8.0.1.  But that won't affect stylesheets created using the method
> > I outlined.  And that bug will be fixed in a Mathematica incremental update
> > which will hopefully be available soon.
>
> I have never found creating style sheets easy - and I generally avoid
> them, despite their obvious value.
>
> It would be great if the process could be made more transparent. For
> example:
>
> 1)   It would be nice to press a button and see the hierarchy of style
> sheets leading to the notebook style sheet - preferably with their full
> pathnames.
>
> 2)   What happens when a style sheet is installed - is it just placed
> somewhere in the filestore?
>
> 3)   Editing a style sheet seems too much like editing a notebook -
> which leads to confusion as to what can and cannot be done.
>
> 4)   If you end up with an edited style sheet when you close the
> associated file (or Mathematica), I think it should tell you and ask you
> what you want to do - just like you do not lose an edited notebook
> without pressing "Don't Save".
>
> This is one area where I sense WRI developers have put enormous effort,
> but it never seems easy to use. Maybe a general, open discussion at the
> conference would help.
>
> David Baileyhttp://www.dbaileyconsultancy.co.uk

I agree that editing stylesheets is too difficult and not well
documented. I agree that discussion at the Oct. Conference might be
one of many good ways to provide feedback and ideas. Perhaps we might
consider video documentation since traditional documentation on front
end stuff often does not seem optimal to me.

[toc] | [prev] | [next] | [standalone]


#4954

FromMurray Eisenberg <murray@math.umass.edu>
Date2011-09-15 08:39 +0000
Message-ID<j4sdjf$sfc$1@smc.vnet.net>
In reply to#4921
Part of the troubles about working with style sheets is that they are so 
incompletely documented.

It should hardly be necessary to have to turn to this user group to 
learn how, e.g., to modify a style sheet and make it into a new style 
sheet (and where it then is located). Or to learn that you cannot do 
this merely by Save As-ing it. This should all be documented.

On 9/14/11 5:15 AM, David Bailey wrote:
> On 13/09/2011 12:28, John Fultz wrote:
>> I don't understand your first point.  What do you mean by "Browse" option? I
>> can't possibly think you mean that the file browsing dialog only shows 2 of n
>> notebooks in some given directory.
>>
>> Yes, it is the case that notebooks with Saveable->False should be able to save,
>> and don't in 8.0.1.  But that won't affect stylesheets created using the method
>> I outlined.  And that bug will be fixed in a Mathematica incremental update
>> which will hopefully be available soon.
>>
>
> I have never found creating style sheets easy - and I generally avoid
> them, despite their obvious value.
>
> It would be great if the process could be made more transparent. For
> example:
>
> 1)   It would be nice to press a button and see the hierarchy of style
> sheets leading to the notebook style sheet - preferably with their full
> pathnames.
>
> 2)   What happens when a style sheet is installed - is it just placed
> somewhere in the filestore?
>
> 3)   Editing a style sheet seems too much like editing a notebook -
> which leads to confusion as to what can and cannot be done.
>
> 4)   If you end up with an edited style sheet when you close the
> associated file (or Mathematica), I think it should tell you and ask you
> what you want to do - just like you do not lose an edited notebook
> without pressing "Don't Save".
>
> This is one area where I sense WRI developers have put enormous effort,
> but it never seems easy to use. Maybe a general, open discussion at the
> conference would help.
>
> David Bailey
> http://www.dbaileyconsultancy.co.uk
>
>

-- 
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

[toc] | [prev] | [next] | [standalone]


#5021

FromDavid Bailey <dave@removedbailey.co.uk>
Date2011-09-17 10:29 +0000
Message-ID<j51sq1$pfc$1@smc.vnet.net>
In reply to#4954
On 15/09/2011 09:39, Murray Eisenberg wrote:
> Part of the troubles about working with style sheets is that they are so
> incompletely documented.
>
> It should hardly be necessary to have to turn to this user group to
> learn how, e.g., to modify a style sheet and make it into a new style
> sheet (and where it then is located). Or to learn that you cannot do
> this merely by Save As-ing it. This should all be documented.
>

Yes - there is just so much powerful functionality in Mathematica that 
is really sketchily documented!  There would almost be a case for doing a 
major release which was solely devoted to documentation catch-up and bug 
fixes!

David Bailey
http://www.dbaileyconsultancy.co.uk



[toc] | [prev] | [next] | [standalone]


#4999

FromMike H <mike.honeychurch@gmail.com>
Date2011-09-16 09:56 +0000
Message-ID<j4v6g1$c99$1@smc.vnet.net>
In reply to#4921
Good point. I guess I was thinking more in terms of the general ease of
creating a stylesheet -- which is pretty easy for web pages with some of the
applications I had in mind -- but you're right, the current system is mostly
a wysiwyg.

Mike

On Fri, Sep 16, 2011 at 1:16 AM, Murray Eisenberg <murray@math.umass.edu>wrote:

> But editing a style sheet is (mostly) already WYSIWIG. For example, from
> the Format menu select Edit Style Sheet. You'll see a style sheet that
> merely shows inheriting the style sheet Default.nb.
>
> Select a style there from the drop-down menu and just edit it. For example,
> choose Text style. Click the cell-bracket for the cell "Local definition for
> style "Text" that now appears. Then use either the main menu's Format item,
> or use the Option Inspector, to change the Face to, say, Italic. Instantly
> you'll see the text inside that cell in the style sheet change to Italic.
>
> On 9/15/11 4:41 AM, Armand Tamzarian wrote:
>
>>
>> ...It would be nice if some sort of wysiwyg stylesheet creator
>> accompanied Mathematica that allowed easy stylesheet creation analogous to
>> many of web stylesheet creators.
>>
>
>
> --
> Murray Eisenberg                     murray@math.umass.edu
> Mathematics & Statistics Dept.
> Lederle Graduate Research Tower      phone 413 549-1020 (H)
> University of Massachusetts                413 545-2859 (W)
> 710 North Pleasant Street            fax   413 545-1801
> Amherst, MA 01003-9305
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web