MathGroup Archive 2001

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

Search the Archive

Re: Troubles saving as *.m

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27521] Re: [mg27507] Troubles saving as *.m
  • From: Jacqueline Zizi <jazi at club-internet.fr>
  • Date: Sat, 3 Mar 2001 03:40:02 -0500 (EST)
  • References: <200103010853.DAA19896@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Just use .nb for human readable files and .m files for Mathematica readable
files will work.
.nb files can be loaded as they are. Mathematica will evaluate the content of
cells that have the attribute Input and will skip the other cells with
Attribute Text, section, etc. (See menu Format > Style)

May be read the documentation about what you are using before using it will
preserve you from  getting in trouble or disapointment. For example, go in menu
: Aide > Help Browser. Then in front of Go To, write .m and validate (choose
Built-in functions_ set by default_ or master index) . You'll get then
explanations on .m files.

Now if you want just scrambling around for finding the best definitions, as we
all do _ I believe_,  and want to save just these definitions, let say f1, f2,
f3  and related functions, let say d5 , h8 linked to f1, f2  and b78 linked to
f3 or whatever, use Save. Save [fileName, {f1, f2, f3}] will save the lot
including definitions of (d5,h8, b78, etc.).

Save your formated draft for another day as suggested by default by Mathematica
in  a .nb file using styles to emphasizes it with titles, sections,
sub-sections and so on, will help you to read your file another day. Doing so,
you'll have the cleanest and quickly loaded definitions in a file and draft
trials in another file.

Initialization  cells are also another solution. See help about it.

Then when all this possibilities will be mastered, packaging will be more
efficient and easy.

I hope that I understood what you wanted at the end. Food for cats or dogs is
not good for human. No need to try to convert it in food for humans. In a
similar way, code for Mathematica is not done for human people.

Turbo Cyx wrote:

> What can I do, to get readeable m-files



  • Prev by Date: problem
  • Next by Date: Re: Interpreting InputForm[]
  • Previous by thread: Troubles saving as *.m
  • Next by thread: Re: Troubles saving as *.m