MathGroup Archive 2011

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

Search the Archive

Re: Styles for inline boxes

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115561] Re: Styles for inline boxes
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Fri, 14 Jan 2011 06:20:54 -0500 (EST)

On Thu, 13 Jan 2011 03:23:42 -0500 (EST), Istv=E1n Zachar wrote:
> Dear Group,
>
> I'm recently decided to give a determined go for Mathematica's style-
> system. Since it is very flexible, it gives a good coverage over my
> desire, though some points are totally obscure to me. One particular
> is: how to define a style for inline formulae, which I enter into a
> text cell with CTRL+9, like this:
>
> **text cell starts**
> This is some text, which includes something [CTRL+9]different[CTRL+0]
> inline.
> **text cell ends**
>
> Note: I have some definitions for the text cell, and I want to assign
> extra definitions (above those inherited from the text cell) to the
> inline formula, i.e. to the box *only*, e.g. to display its content in
> purple. And I of course want to do this without explicitely changing
> the style of the inline word "different" to InlineFormula. Is it
> possible, that a style is automatically assigned to the object entered
> with CTRL+9 into a text cell?
>
> Istv==E1n

There's an option called DefaultNewInlineCellStyle which you can set either
programmatically or via the option inspector.  By default, it causes no style at
all to be applied to inline cells (or, as you call them, inline formulae), but
that's easy to change.  E.g.,

SetOptions[EvaluationNotebook[],
 DefaultNewInlineCellStyle -> "InlineFormula"]

Note that this only affects content you create after changing the setting. It
causes no changes to be made to existing inline cells/formulae.

Sincerely,

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


  • Prev by Date: Re: Sorting on mulitple criteria
  • Next by Date: Re: Units question
  • Previous by thread: Styles for inline boxes
  • Next by thread: Re: Styles for inline boxes