MathGroup Archive 2005

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

Search the Archive

Re: Sending again: Symbolizing subscripts

  • To: mathgroup at
  • Subject: [mg62788] Re: Sending again: Symbolizing subscripts
  • From: dh <dh at>
  • Date: Mon, 5 Dec 2005 13:40:52 -0500 (EST)
  • References: <dn0uda$8ak$>
  • Sender: owner-wri-mathgroup at

Hi Andrew,
if you do not mind if your output looks a bit funny, you may replace any 
subscripted variable by a symbol whose name is constructed by the 
original name and the index. E.g.


This will change any subcsripted variable into a symbol with name ...sub...


Andrew Moylan wrote:
> Sorry if I am sending this twice, but the first one doesn't seem to have 
> worked:
> It looks like there aren't any ideas for solving my original problem 
> (included below), so I'll widen my search a bit.
> I want any expression of the form Subscript[a, b] to be interpreted as a 
> symbol. I can achieve this easily using the Notation package, by the 
> following:
> Utilities`Notation`Symbolize[NotationBoxTag[SubscriptBox["_", "_"]]]
> I also want to run my code in batch mode (without a front end). However, 
> [it appears that] the Notation package cannot be used in batch mode. 
> Given that I can't easily make the Notation package work in batch mode, 
> I now ask: does anyone know another way (not using the Notation package) 
> to make all subscripts behave as symbols?
> Thanks again for any ideas.
>      -Andrew
> Andrew Moylan wrote:
>  > I have some code that includes (and relies upon) a call to
>  > Utilities`Notation`Symbolize[...]. I would like to run the code in batch
>  > mode (without a front end), but the Notation package generates many error
>  > messages when being loaded without a front end, and subsequent calls to
>  > Symbolize[...] result in the Mathematica kernel hanging.
>  >
>  > Does anyone know of any way to use the notation package in batch mode, or
>  > does anyone have any ideas for other ways to run my code automatically from
>  > the (linux) shell?
>  >
>  > Thanks for any help.
>  >     -Andrew
>  >
>  >
>  >
>  >

  • Prev by Date: Re: A question about algebraic numbers using Mathematica
  • Next by Date: Types in Mathematica, a practical example
  • Previous by thread: Re: Sending again: Symbolizing subscripts
  • Next by thread: Re: How would you evaluate this limit in Mathematica