ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* colors and text, prettyprinting
@ 2001-09-03 12:49 Patrick Gundlach
  2001-09-04  9:59 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Gundlach @ 2001-09-03 12:49 UTC (permalink / raw)


Hi, 

is this a bug or a feature?

% output=pdf
\setupcolors[state=start]
\starttext
\yellow
yellow??
\stoptext

generates endless(?) pages. Using \bgroup...\egroup or { .. } is 
ok.

ConTeXt  ver: 2001.7.11  fmt: 2001.7.16  int: english  mes: english

This is pdfeTeX, Version 3.14159-14h-released-20010417-2.1 (Web2C 7.3.3.1)
entering extended mode
(./color.tex{/app/unido-inf/sun4_56/tetex/1.0.7/share/texmf/pdftex/config/pdfte
x.cfg}

Prettyprinting works the way I wanted to. Thanks! One more 
question:
How can I define something like %%\ N  in TeX prettyprinting:

\startTEX
\def\mathematics#1% %%\ N usage: \type {\mathematics{x^2}} 
\stopTEX

This doesn't work:

\startPON
inst auth+ myauth {  // comment
  target  = /home/users ; %%\ N  \type{...}
\stopPON

Viele Grüße,

  Patrick Gundlach

- I TeX, therefore I am -


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: colors and text, prettyprinting
  2001-09-03 12:49 colors and text, prettyprinting Patrick Gundlach
@ 2001-09-04  9:59 ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2001-09-04  9:59 UTC (permalink / raw)
  Cc: ntg-context

At 02:49 PM 9/3/2001 +0200, Patrick Gundlach wrote:
>Hi,
>
>is this a bug or a feature?
>
>% output=pdf
>\setupcolors[state=start]
>\starttext
>\yellow
>yellow??
>\stoptext
>
>generates endless(?) pages. Using \bgroup...\egroup or { .. } is
>ok

a buggy feature; i'm still breeding on a proper solution for this; it has 
to do with teh color reset node ending up on the next page, which means 
that it's non empty, which means another page ...

Since you don't groupe \yellow, the stopcolor ends up after a group; try 
\startcolor[...] \stopcolor instead, or try [which is what we do currently]

\appendtoks \startcolor[yellow]\to\everystarttext
\appendtoks \stopcolor         \to\everystoptext

Prettyprinting works the way I wanted to. Thanks! One more
>question:
>How can I define something like %%\ N  in TeX prettyprinting:

ah, you want to become a wizzard:

\installnewpretty

[see verb-ini.tex for example]; beware of grouping !

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* colors and text, prettyprinting
@ 2001-09-04 17:16 Patrick Gundlach
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Gundlach @ 2001-09-04 17:16 UTC (permalink / raw)


Hi,

> \appendtoks \startcolor[yellow]\to\everystarttext
> \appendtoks \stopcolor         \to\everystoptext

this works. Even the (dirtier?) one:

\appendtoks \bgroup \to\everystarttext
\appendtoks \egroup \to\everystoptext

:-)

> >How can I define something like %%\ N  in TeX prettyprinting:

> ah, you want to become a wizzard:

No, I just want to use the very nice features context has ;-)

> \installnewpretty

I've got it working now. I was not aware of the fact (use the 
source, luke) that it worked only in 'comment' mode... I feel 
more enlightened now. Thank you.

A happy Patrick 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-09-04 17:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-03 12:49 colors and text, prettyprinting Patrick Gundlach
2001-09-04  9:59 ` Hans Hagen
2001-09-04 17:16 Patrick Gundlach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).