MathGroup Archive 1999

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

Search the Archive

Re: $PreRead

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20657] Re: [mg20630] $PreRead
  • From: David Withoff <withoff at wolfram.com>
  • Date: Sun, 7 Nov 1999 02:09:58 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

> Section 2.13.1 of the Mathematica Book, v3 gives:
> 
> In[1]:=$PreRead = StringReplace[#, {"<<" -> "{", ">>" -> "}"}]&
> 
> And now, supposedly
> 
> In[2]:=<<4,5,6>>
> Out[2]:={4,5,6}
> 
> But when I try this, I get an "Incomplete expression" error.
> I even get that error when I try to remove the value with
> 
> $PreRead=.
> 
> This would be quite a useful function if I could get it to work.
> Does anyone have suggestions? I'm using 3.0.1.1 on win98.
> 
> N Monomachoff
> nmonomachoff at msn.com

That example applies to InputForm input.  If you are using Mathematica
through the notebook front end, the default input format type is
StandardForm.  You can change the the default input format type
to InputForm by selecting InputForm in the Default Input Format Type
submenu of the Cell menu, or you could introduce your own typesetting
rules to get the analogous behavior in StandardForm.

Dave Withoff
Wolfram Research


  • Prev by Date: Re: Solution of this equation
  • Next by Date: Problem with Solve[]
  • Previous by thread: $PreRead
  • Next by thread: Re: $PreRead