Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Re: Using a text editor like interface for Mathematica?

  • To: mathgroup at
  • Subject: [mg64514] Re: [mg64493] Re: Using a text editor like interface for Mathematica?
  • From: Murray Eisenberg <murray at>
  • Date: Mon, 20 Feb 2006 06:29:52 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <> <dsupgg$6kh$> <>
  • Reply-to: murray at
  • Sender: owner-wri-mathgroup at

I don't understand what the problems are here, really!

First, one should probably NOT be editing an .m package file, only the 
source .nb notebook file from which the package should have been 
created.   With such a notebook you can keep together the documentation, 
source code, test cases, etc.

Second, just marking some cells in a notebook as Initialization Cells 
and then saving the notebook will cause Mathematica, by default, to ask 
whether do do automatic creations/saves of a corresponding .m package 
file.  If  you let it do so, then each time you edit and re-save the 
notebook, that package will automatically get re-saved with the 
correspondingly changed initialization cells.

OT wrote:
> Yasvir A. Tesiram ha scritto:
>> Hi,
>> ...
>>  I have never used the notebook interface for writing packages, 
>> because such things as escape characters, "->" etc get automagically 
>> translated and it makes editing the package file a chore. 
> I don't understand why Mathematica doesn't offer the possibility to 
> export a notebook code into a standard .m file (it should be quite 
> simple, since it should be enought to substitute the right expressions 
> to the patterns \[expr], and change the tabbing \[IndentingNewLine], \( 
> , \! into a "stadard" indentation )

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Re: text bounding box size
  • Next by Date: Re: SetOptions with Column
  • Previous by thread: Re: Using a text editor like interface for Mathematica?
  • Next by thread: Re: Re: Re: Using a text editor like interface for Mathematica?