Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't figure out how to include syntax coloring in Printout

3 views
Skip to first unread message

Adam

unread,
Nov 6, 2009, 5:19:20 AM11/6/09
to
How can it be so hard.....I want to print in exactly the "printout"
environment, except I want those handy syntax colorations to be
included. Is this possible?

Thanks,

Adam

John Fultz

unread,
Nov 7, 2009, 6:48:31 AM11/7/09
to

Format->Edit Stylesheet...

then paste and interpret the following cell:

Cell[StyleData[All, "Printout"],
ShowAutoStyles->True,
ShowSyntaxStyles->True]

That will fix things for that notebook. If you want to fix it for all notebooks
using that stylesheet on your system, then click the Install Stylesheet...
button and choose the like-named stylesheet. E.g., if you started by using the
Default.nb stylesheet, then install it with the name Default.nb.

Sincerely,

John Fultz
jfu...@wolfram.com
User Interface Group
Wolfram Research, Inc.

Adam

unread,
Nov 8, 2009, 7:08:34 AM11/8/09
to
On Nov 7, 3:48 am, John Fultz <jfu...@wolfram.com> wrote:
> On Fri, 6 Nov 2009 05:13:05 -0500 (EST), Adam wrote:
> > How can it be so hard.....I want to print in exactly the "printout"
> > environment, except I want those handy syntax colorations to be
> > included. Is this possible?
>
> > Thanks,
>
> > Adam
>
> Format->Edit Stylesheet...
>
> then paste and interpret the following cell:
>
> Cell[StyleData[All, "Printout"],
> ShowAutoStyles->True,
> ShowSyntaxStyles->True]
>
> That will fix things for that notebook. If you want to fix it for all notebooks
> using that stylesheet on your system, then click the Install Stylesheet...
> button and choose the like-named stylesheet. E.g., if you started by using the
> Default.nb stylesheet, then install it with the name Default.nb.

Perfect - thanks, John.

0 new messages