MathGroup Archive 2007

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

Search the Archive

Re: Still More Stylesheet Questions

  • To: mathgroup at
  • Subject: [mg81494] Re: Still More Stylesheet Questions
  • From: chuck009 <dmilioto at>
  • Date: Wed, 26 Sep 2007 06:34:06 -0400 (EDT)

Hello Keven.  Here's the problem:  it's a sensitive situation.  Or between you and me:  "they haven't gotten all the bugs out yet".  But that's ok.  It stll works pretty good if you give Mathematica a chance to "adjust" to your style changes.  That's the key:  adjustment time.  

Start from scratch just to get the "DefaultNewCellStyle" working when you place the cursor right below a "Section" cell and start typing:

With a fresh kernel, go to Format/StyleSheets and choose Article/Journal Article.  Now choose Edit style sheets and obtain "private style definitions" for untitled-1.  In the choose a style to modify menu, choose "section".  A private override of Section will appear.  Go to that cell and press Shift/Return E.  You'll get     


And that's it.  It's just a skeleton that you need to edit.  So add the NewDefaultCellStyle:

NewDefaultCellStyle -> "Input"

Close the cell, choose "save as" say "myNewArticleStyle".  Make sure it's in the StyleSheet directory.  But this session of Mathematica won't recognize it yet. (Don't know why).  Just leave mathematica and start a new session.  You should see "myNewArticleStyle" when you choose Format/StyleSheets.  choose it.  Now, enter the title, author, then choose a Section cell and enter something.   Now here comes the test:

Place the cursor right below that Section style and begin typing.  I bet a dollar the new cell that appears will be an input cell style :)

  • Prev by Date: RE: making a list using table but with different increment after a certain number
  • Next by Date: Re: making a list using table but with different increment after a certain number
  • Previous by thread: Re: Still More Stylesheet Questions
  • Next by thread: Wish to add "chapter.section.Code a" to Textbook style