MathGroup Archive 2006

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

Search the Archive

Re: conversion to InputForm without spaces

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69951] Re: [mg69893] conversion to InputForm without spaces
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Thu, 28 Sep 2006 06:15:04 -0400 (EDT)
  • References: <acbec1a40609270444pecb289apf54829881de84e2e@mail.gmail.com> <001901c6e22d$93fdd750$996f1081@fy.chalmers.se>

Wow Ingolf. That's one large amount of front end code (with a lot of
branches, it seems)  for such a compact palette. If I may ask, did you
code all that by hand in an editor, or do you have a build process
that writes the code to the SetFaceAndFont2.nb file?

I think the search functions you put in there make very good use of
Google's operators. :Applause:

WRI: If you would implement something similar to the CopyAsInputFormK
button on this palette, we would probably have less people pasting the
string representation of box forms into MathGroup emails.

For example:
Copy as plain text from Mathematica's right click menu:

In[1]:=
\!\(\@\(a\/0\)\)
From In[1]:=
\!\(\*
  RowBox[{\(Power::"infy"\), \(\(:\)\(\ \)\), "\<\"Infinite expression \
\\!\\(1\\/0\\) encountered. \\!\\(\\*ButtonBox[\\\"More\[Ellipsis]\\\", \
ButtonStyle->\\\"RefGuideLinkText\\\", ButtonFrame->None, \
ButtonData:>\\\"Power::infy\\\"]\\)\"\>"}]\)
Out[1]=
ComplexInfinity

CopyAsInputFormK (It would be nice to keep the cell tags though):

Sqrt[a/0]
  Power::"infy" : "Infinite expression (1/0) encountered.
(ButtonBox[\"More\[Ellipsis]\", Rule[ButtonStyle,
\"RefGuideLinkText\"], Rule[ButtonFrame, None],
RuleDelayed[ButtonData, \"Power::infy\"]])"
ComplexInfinity

On 9/27/06, Ingolf Dahl <ingolf.dahl at telia.com> wrote:
> Oh, then you should of course use my SetFaceAndFont palette, available from
> http://web.telia.com/~u31815170/Mathematica/. Select the cell bracket and
> press StyleRemove. Magic!
>
> Best regards
>
> Ingolf Dahl
>
> -----Original Message-----
> From: chris.chiasson at gmail.com [mailto:chris.chiasson at gmail.com] On Behalf
To: mathgroup at smc.vnet.net
> Subject: [mg69951] Re: [mg69893] conversion to InputForm without spaces
>
> For instance, if one enters 1+a into an Input cell in StandardForm and
> subsequently converts the cell to InputForm via
> Cell->ConvertTo->InputForm, the output is: "1 + a". I would prefer
> "1+a".
>
> On 9/27/06, Ingolf Dahl <ingolf.dahl at telia.com> wrote:
> > Could you please explain a little bit better? Do you mean without having
> > every blank converted to "*" ?
> >
> > Best regards
> >
> > Ingolf Dahl
> >
> > -----Original Message-----
> > From: Chris Chiasson [mailto:chris at chiasson.name]
To: mathgroup at smc.vnet.net
> > Subject: [mg69951] [mg69893] conversion to InputForm without spaces
> >
> > Is there an option to convert a Cell to InputForm without the spaces?
> > Thanks,
> >
> > --
> > http://chris.chiasson.name/
> >
> >
> >
> >
>
>
> --
> http://chris.chiasson.name/
>
>
>


-- 
http://chris.chiasson.name/


  • Prev by Date: Re: Executing function in mathematica function problem
  • Next by Date: Re: linear second order homogeneous differential equation recursions
  • Previous by thread: RE: conversion to InputForm without spaces
  • Next by thread: RE: conversion to InputForm without spaces