Re: Error using Notebook?
- To: mathgroup at smc.vnet.net
- Subject: [mg81507] Re: Error using Notebook?
- From: Norbert Marxer <marxer at mec.li>
- Date: Wed, 26 Sep 2007 06:40:54 -0400 (EDT)
- References: <fd2g89$s87$1@smc.vnet.net>
On 22 Sep., 09:29, John <j... at lehigh.edu> wrote:
> In Wellin, page 311, 3-rd edition, the instructions:
>
> Notebook[{
> cell["Demo notebook","Section"],
> cell["This is a text cell","Text"],
> cell["1+2+3","Input"]
> }]
> ]
>
> printed the cell contents on Untitled-1, but nothing was printed, when
> I tried it.
>
> I am using Mathematica 6.
>
> John
Hello
If you correct your syntax errors (Cell instead of cell, and drop the
last square bracket ]) then applying CreateDocument will open a new
notebook. e.g.
Notebook[{
Cell["Demo notebook","Section"],
Cell["This is a text cell","Text"],
Cell["1+2+3","Input"]
}]//CreateDocument
Best Regards
Norbert Marxer