[Date Index] [Thread Index] [Author Index]
Re: Re: Using a text editor like interface for Mathematica?
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 math.umass.edu 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