|
[Date Index]
[Thread Index]
[Author Index]
Re: How to get plain text from a notebook?
- To: mathgroup at smc.vnet.net
- Subject: [mg89749] Re: [mg89692] How to get plain text from a notebook?
- From: "W_Craig Carter" <ccarter at mit.edu>
- Date: Thu, 19 Jun 2008 05:46:37 -0400 (EDT)
- References: <200806180824.EAA26186@smc.vnet.net>
Hello Peter,
This example might help:
Export["test.txt", CForm[D[x^x, x]]]
(*Look for the file test.txt here:*)
Directory[]
Craig
On Wed, Jun 18, 2008 at 4:24 AM, Peter Rowat <peter at pelican.ucsd.edu> wrote:
> I formatted some output as Ccode, and it looked like plain C-code.
> I then saved the notebook as plain text, but when I went to edit it with vi
> the Ccode was a mess like this, in a very simple example:
>
> Format[dbfdw, CForm]
> (Format[(((-1)/$CellContext`Cm) $CellContext`gK) ($CellContext`v - \
> $CellContext`VK), CForm])
>
> The real plain-text Ccode should be something like
>
> - (gK*(v - VK)/Cm)
>
> Please excuse this beginner's problem.
>
> -- Peter Rowat
>
>
--
W. Craig Carter
Prev by Date:
Re: Problem downloading from UK Wolfram site
Next by Date:
Understanding an equation with multiple Summations
Previous by thread:
How to get plain text from a notebook?
Next by thread:
Re: How to get plain text from a notebook?
|