Google Groups Home
Help | Sign in
Mathematica batch file
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Len Kofman  
View profile
 More options Feb 27 2005, 1:43 am
Newsgroups: comp.soft-sys.math.mathematica
From: lkof...@umich.edu (Len Kofman)
Date: Sun, 27 Feb 2005 06:43:18 +0000 (UTC)
Local: Sun, Feb 27 2005 1:43 am
Subject: Mathematica batch file
I have created a very large notebook in mathematica under the windows
environment.  I know want to take the file and put it into a text file
to use in unix mode.  I tried the save as specail (text) option but it
did not run in UNIX mode.

Is there a simple way or will i have retype the entire program?

Thanks,

Len


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Bailey  
View profile
 More options Feb 28 2005, 3:34 am
Newsgroups: comp.soft-sys.math.mathematica
From: David Bailey <dave@Remove_Thisdbailey.co.uk>
Date: Mon, 28 Feb 2005 08:34:31 +0000 (UTC)
Local: Mon, Feb 28 2005 3:34 am
Subject: Re: Mathematica batch file
Len Kofman wrote:
> I have created a very large notebook in mathematica under the windows
> environment.  I know want to take the file and put it into a text file
> to use in unix mode.  I tried the save as specail (text) option but it
> did not run in UNIX mode.

> Is there a simple way or will i have retype the entire program?

> Thanks,

> Len

Len,

I assume you want to convert your notebook into a .m file - which is a
simple text file. You can do this by setting all the cells you want to
save (which need not be the entire notebook) to be 'initialization
cells' and then using the options inspector to set the notebook option
AutoGeneratedPackage to Automatic, After all that, every time you save
the notebook, the corresponding .m file will be saved as well.

There seem to be a few residual bugs in this mechanism where you have
very complicated box structures, but I must say, I still find it the
most convenient way to prepare .m files.

David Bailey
dbaileyconsultancy.co.uk


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jens-Peer Kuska  
View profile
 More options Feb 28 2005, 3:36 am
Newsgroups: comp.soft-sys.math.mathematica
From: "Jens-Peer Kuska" <ku...@informatik.uni-leipzig.de>
Date: Mon, 28 Feb 2005 08:36:02 +0000 (UTC)
Local: Mon, Feb 28 2005 3:36 am
Subject: Re: Mathematica batch file
Hi,

mark the input celles as Initialization cells,
when you save the notebook Mathematica will ask you to create a package
and you should say yes. Than you have a Mathematica package
that can loaded by the kernel.

Regards
  Jens

"Len Kofman" <lkof...@umich.edu> schrieb im Newsbeitrag
news:cvrq66$p33$1@smc.vnet.net...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Pein  
View profile
 More options Feb 28 2005, 3:42 am
Newsgroups: comp.soft-sys.math.mathematica
From: Peter Pein <pet...@arcor.de>
Date: Mon, 28 Feb 2005 08:42:08 +0000 (UTC)
Local: Mon, Feb 28 2005 3:42 am
Subject: Re: Mathematica batch file

Len Kofman wrote:
> I have created a very large notebook in mathematica under the windows
> environment.  I know want to take the file and put it into a text file
> to use in unix mode.  I tried the save as specail (text) option but it
> did not run in UNIX mode.

> Is there a simple way or will i have retype the entire program?

> Thanks,

> Len

Hi Len,

some time ago I gave a friend one of my notebooks written on my Windoze
box. He had Linux installed and the .nb file worked without any changes.
So give your notebook a try ;-)

--
Peter Pein
Berlin


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Rowe  
View profile
 More options Feb 28 2005, 3:51 am
Newsgroups: comp.soft-sys.math.mathematica
From: Bill Rowe <readnews...@earthlink.net>
Date: Mon, 28 Feb 2005 08:51:15 +0000 (UTC)
Local: Mon, Feb 28 2005 3:51 am
Subject: Re: Mathematica batch file
On 2/27/05 at 1:29 AM, lkof...@umich.edu (Len Kofman) wrote:

>I have created a very large notebook in mathematica under the
>windows environment.  I know want to take the file and put it into
>a text file to use in unix mode.  I tried the save as specail
>(text) option but it did not run in UNIX mode.
>Is there a simple way or will i have retype the entire program?

Yes there is a simple way. Simply save the notebook as usual in the Windows environment then open the resulting file with the graphical front end in the Unix environment.
--
To reply via email subtract one hundred and four

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google