MathGroup Archive 2001

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

Search the Archive

Re: Troubles saving as *.m

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27515] Re: Troubles saving as *.m
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 3 Mar 2001 03:39:57 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <97l49j$jii@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

only Initialization cells are saved as valid
package commands.

All the cells of you notebook that
should contribute to the package
must have the Option

InitializationCell->True


Regards
  Jens

Turbo Cyx wrote:
> 
> Hi
> I am using Mathmatica 4.0 . In a notebook I wrote some functions and now I
> want to save them as package.
> After using "Save as special" the resulting m-File is  nearly unreadable:
> short example
> 
> (*
> \!\(BeginPackage["\<Haeuf`\>"]\n
>   BD::"\<usage\>" = "\<BD[{1,\[Pi]}] wandelt eine komplexe Zahl von \
> Polarkoordinaten- in Binomialdarstellung.\>";
>   PKD::"\<usage\>" = "\<PKD[3+4\[ImaginaryI]] wandelt eine komplexe Zahl von
> \
> Binomial- in Polarkoordinatendarstellung.\>";
>   ED::"\<usage\>" = "\<ED[3+4\[ImaginaryI]] wandelt eine komplexe Zahl von \
> Binomial- in Exponentialdarstellung.\>";
>   ShowComplex::"\<usage\>" = "\<ShowComplex[3+4\[ImaginaryI]] stellt eine \
> komplexe Zahl in der komplexen Zahlenebene dar.\n  Optionen:
> VektorColor->Red \
> setzt die Farbe der gezeichneten Vektoren\n, Gitter->True zeichnet das \
> Koordinatengitter.\>"; VektorColor::"\<usage\>" = "\<\>";
>   Gitter::"\<usage\>" = "\<\>";
> 
> Best of all: the whole text appears als comment, means between (*  *)
> Whats wrong?
> What can I do, to get readeable m-files
> Thx
> Werner


  • Prev by Date: notebook question
  • Next by Date: Re: matrix diffential equations
  • Previous by thread: Re: Troubles saving as *.m
  • Next by thread: Re: Editing formulas for the web