MathGroup Archive 1999

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

Search the Archive

Re: How to save a file in package (*.m) format

  • To: mathgroup at
  • Subject: [mg15353] Re: How to save a file in package (*.m) format
  • From: "Allan Hayes" <hay at>
  • Date: Sat, 9 Jan 1999 23:58:17 -0500
  • References: <774kms$>
  • Sender: owner-wri-mathgroup at

Chee Lim Cheung wrote in message <774kms$46a at>...
>Hi Mathematica gurus,
>I am new to Mathematica and I need help on how to save a file in package
>(*.m) format that can be recognised and executed by Mathematica. I have
>created a small package following the standard routine,e.g.
>I then saved the file with Save as Special...Package Format with a .m
>extension, I get all the statements in the file commented out with (*
>*). How do I save the file with a .m extension in order to get an
>executable package?


With File>Save As Special...> PackageFormat
    *the contents of all cells except initializing input cells is
commented out*
(graphics cells give the PostScript code).

So, put all the code that you want usable in initialization input cells
(menu: Cell>CellProperties)


Allan Hayes
Mathematica Training and Consulting
hay at
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

  • Prev by Date: ExtendGraphic
  • Next by Date: Re: Outline font? HelveticaO?
  • Previous by thread: Re: How to save a file in package (*.m) format
  • Next by thread: Baby mathlink question.