MathGroup Archive 2007

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

Search the Archive

Re: Error using Notebook?


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




  • Prev by Date: Re: Epilog in ListLogPlot
  • Next by Date: Re: making a list using table but with different increment after a certain number
  • Previous by thread: Re: Error using Notebook?
  • Next by thread: Any Mathematica 6 book yet?