Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: problems with typesetting in packages

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62465] Re: problems with typesetting in packages
  • From: dh <dh at metrohm.ch>
  • Date: Fri, 25 Nov 2005 02:25:05 -0500 (EST)
  • References: <dm49go$stf$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello Hannes,
you can simply use the Menu command: "File/Save as Special/Package Format".

However, if you do this, you will note that your code resides inside 
comment brackets and must first be uncommented. This can be circumvented 
by setting the Cell property Cell Options/Initialization Cell to True 
using e.g. the Option Inspector before you save the Package.

sincerely, Daniel

Hannes Kessler wrote:
> Dear Mathematica experts,
> 
> the following problem: Mathematica's typesetting capabilities are nice
> in notebooks to improve the readability of equations (powers in
> supscript-notation etc.). However, when one saves such a notebook as a
> Mathematica-package, all the typesetting information is saved also. In
> the package, which is essentially just an ASCII-file, the typesetting
> information is useless and sometimes creates errors. At best, it makes
> it very hard to read the package using a text editor. Here is an
> example, how x^3 entered in supscript notation into the initialization
> cell of a Mathematica notebook looks in the package:
> 
> \!\(x\^3\)
> 
> Upon creating larger packages, Mathematica apparently sometimes does
> not balance the parentheses correctly: Reading such a package back to a
> notebook, Mathematica complains on syntax errors. I had no choice than
> to rewrite all nicely typesetted formulas in the original notebook in
> plain Mathematica syntax without any typesetting and to save the
> package again.
> 
> Now my question: Is it possible to use typesetting in the Mathematica
> notebook on one hand, and to save it to a package without any
> typesetting information on the other hand?
> 
> Thanks for any advice.
> 
> Hannes Kessler
> 


  • Prev by Date: Re: Avoiding divide by zero error in NDSolve
  • Next by Date: Re: problems with typesetting in packages
  • Previous by thread: Re: problems with typesetting in packages
  • Next by thread: Re: problems with typesetting in packages