MathGroup Archive 2009

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

Search the Archive

Re: Re: Viewing packages in mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102654] Re: [mg102733] Re: [mg102716] Viewing packages in mathematica
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Sun, 23 Aug 2009 05:33:10 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200908210842.EAA13980@smc.vnet.net> <200908220738.DAA16498@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

The real issue is how to view a .m package file when you do not have the 
original .nb notebook from which it was created.

 From time to time I've had this problem with WRI or 3rd party packages 
distributed without the "source". There is no satisfactory way to view 
them in Mathematica or even Workbench in order to wrap the very long 
lines they often have.  I have to resort to a standard text editor that 
allows wrapping.

DrMajorBob wrote:
> What for? Edit the notebook and let it be saved as a package each time you  
> exit.
> 
> Bobby
> 
> On Fri, 21 Aug 2009 03:42:50 -0500, Benjamin Hell <hell at exoneon.de> wrote:
> 
>> Hi,
>> this is a real beginner question for packages in mathematica. When I
>> view a package (.m) file in mathematica, the mathematica editor doesn't
>> show any indentation nor does any automatic line breaks when scaling the
>> window. So whereas my code can be read quite well in a standard
>> mathematica notebook, it looks ugly in a package file. Is there any way
>> to setup some viewing options to change that behaviour?
>>
>> Thanks in advance,
>> Benjamin
>>
> 
> 
> 

-- 
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


  • Prev by Date: Re: Strange behavior: random and plot
  • Next by Date: Re: Re: Re: Incongruence? hmm...
  • Previous by thread: Re: Viewing packages in mathematica
  • Next by thread: Re: Viewing packages in mathematica