MathGroup Archive 1999

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

Search the Archive

RE: Syntax error in notebook saved as package

  • To: mathgroup at
  • Subject: [mg16102] RE: [mg16068] Syntax error in notebook saved as package
  • From: "Jean-Marie THOMAS" <jmthomas at>
  • Date: Thu, 25 Feb 1999 08:24:59 -0500
  • Sender: owner-wri-mathgroup at

Writing a package with version 3.0 is much more easy using
1- initialization cells
2- the option inspector to set the notebook to make a autogenerated package.

The 3.0 distribution comes with a template package (by Roman Maeder). It
should be considered as a good basis for package writing, since code is
documented in a notebook interface, and not just a text file.

Hope this helps,

Jean-Marie THOMAS
mailto:jmthomas at
Conseil et Audit en Ingenierie de Calcul
Strasbourg, France

-----Original Message-----
From: David Keith [mailto:dkeith at]
To: mathgroup at
Subject: [mg16102] [mg16068] Syntax error in notebook saved as package

I have a notebook I wish to save in package format. After using the "save
as special - package" method I do indeed get a text file with all but
appropriate initialization cells commented out. But --- although the
notebook works fine, when loading the package I get a syntax error. Viewing
the text shows it to be a single cell with all of the command lines. Using
"corrupt.m" to read the file also identifies the syntax error and assigns
it to a large function definition module, which is too large to easily find
the problem. Since some of the lines are long they have been wrapped, and I
can't tell if appropriate line continuation characters exist or are used.

Can anyone offer advice on this?


  • Prev by Date: RE: How can I plot for array variable?
  • Next by Date: Re: Evaluate/Module
  • Previous by thread: Syntax error in notebook saved as package
  • Next by thread: Evaluate/Module