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

MathGroup Archive 2009

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

Search the Archive

Re: Setting global InputAutoReplacements

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105101] Re: [mg105083] Setting global InputAutoReplacements
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Sat, 21 Nov 2009 03:32:39 -0500 (EST)
  • Reply-to: jfultz at wolfram.com

On Fri, 20 Nov 2009 06:39:39 -0500 (EST), Leo Alekseyev wrote:
> Dear Mathgroup,
>
> I am trying to create a few custom InputAutoReplacements that would
> apply to all input cells by default.  I am trying to follow John
> Fultz's instructions on
> http://forums.wolfram.com/mathgroup/archive/2000/Oct/msg00157.html,
> but running into difficulties: the style for the input cell seems to
> be defined by Core.nb, and when I select the "local definitions for
> style "Input"" cell and go to the options inspector, the
> InputAutoReplacements option is specified as {ParentsList}; I can't
> figure out where the usual InputAutoReplacements rules (e.g. ->  goes
> to \[Rule]) are stored so that I could append my own.  I'd appreciate
> any help with this!
>
> Thanks,
> --Leo

This particular option isn't as easy to figure out or set as I'd like.  Two
clarifications...

ParentList represents the ones which have been inherited from the notebook level 
(which, in this case, actually refers to replacements that are set globally
throughout the system).

And the settings for "->", ":>", etc., are actually set in the StandardForm
style, not the Input style.

So, to add the "abc"->"123' replacement, you'd add a StandardForm style cell to 
your stylesheet as follows...

Cell[StyleData["StandardForm"],
 InputAutoReplacements->{
  "abc" -> "123", "->" -> "\[Rule]", ":>" -> "\[RuleDelayed]", "<=" -> 
   "\[LessEqual]", ">=" -> "\[GreaterEqual]", "!=" -> "\[NotEqual]", 
   "==" -> "\[Equal]", ParentList}]


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



  • Prev by Date: Re: Mathematica 7.0 - Wrong Documentation on StudentTCI
  • Next by Date: Re: More Efficient Method
  • Previous by thread: Re: Re: Setting global InputAutoReplacements
  • Next by thread: Re: Setting global InputAutoReplacements