Re: [NTG-context] backgrounds: help needed

2009-01-29 Thread Thomas Floeren

-Ursprüngliche Nachricht-
Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
Auftrag von Thomas Floeren
Gesendet: Mittwoch, 28. Januar 2009 08:14
An: 'Alan BRASLAU'; ntg-context@ntg.nl
Betreff: Re: [NTG-context] backgrounds: help needed

-Ursprüngliche Nachricht-
Von: Alan BRASLAU [mailto:alan.bras...@cea.fr] 
Gesendet: Dienstag, 27. Januar 2009 17:04
An: ntg-context@ntg.nl
Cc: thomas.floe...@boschung.com; 'Aditya Mahajan'
Betreff: Re: [NTG-context] backgrounds: help needed

On Tuesday 27 January 2009 15:08:29 Thomas Floeren wrote:
 yes, 2009 of course; 

  On Tue, 27 Jan 2009, Thomas Floeren wrote:
 
  For me this works only with context 2008-10-31.
 
  It doesn't work with the beta from 2008-01-18 (no background).
 
 Do you mean 2009-01-18?
 
 Aditya

The example works correctly with
ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.25  int: english/english
as well as with MKII

Alan


Thanks for your answer.

I installed the 2009-01-18 yesterday at home on my mac. Everything works
fine!

Now I re-reinstalled the 2009-01-18 on the windows machine at work, and I
get the same result as before: no gray background.
I even did the texexec --make metafun --standalone from Wolfgang, but
still no background. 

I noticed that on the win system the filename-mpgraph.4000 etc. and
-mpgraph.keep files don't appear at all; they do appear of course with
2008-10-31. Appearently these are holding the code for the background.

Any ideas?

Thanks in advance
Thomas



Finally I've found the problem.

In the cont-sys files from 2009-01-18 the following two lines are enabled:

\runMPgraphicstrue
\runMPTEXgraphicstrue

(in 2008-10-31 they are still outcommented)


But to make this work on windows a few additional steps were necessary:

1. texexec --make --alone metafun (as Wolfgang already mentioned)

2. copy the new metafun.mem from \Documents and
Settings\username\.texlive2008\texmf-var\web2c\ to the 'normal' texmf
directory (\texlive\2008\texmf-var\web2c\metapost).

3. Enable write18 in the texmf.cnf

4. remake the formats


Greetings
Thomas

___
If your question is of interest to others as well, please add an entry to
the Wiki!

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net

___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-27 Thread Thomas Floeren


__

-Ursprüngliche Nachricht-
Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
Auftrag von Wolfgang Schuster
Gesendet: Mittwoch, 21. Januar 2009 00:08
An: mailing list for ConTeXt users
Betreff: Re: [NTG-context] backgrounds: help needed


Am 20.01.2009 um 23:51 schrieb Alan BRASLAU:

 I, too, do not understand the
 \definetextbackground
 \starttextbackground
 \stoptextbackground
 commands, even though I tried looking at details.pdf (and core- 
 pgr.tex).
 My particular problem is rather classic, that of illustrating  
 examples, set off from the main text.
 I first used
 \defineframedtext [example]
 [width=fit,background=screen,backgroundscreen=0.7]
 \startexample
 ...
 \stopexample
 and this is appropriate if the example is short enough to fit on one  
 page.
 However, a long example (many paragraphs) that spans more than one  
 page
 runs off the bottom.
 Textbackground seems more appropriate, so I tried
 \definetextbackground [example]
 [location=paragraph,backgroundcolor=middlegray,frame=off]
 \definestartstop [example]
 [before={\starttextbackground[example]},after=\stoptextbackground]
 but this does not work. I tried other variants (such as adding  
 state=start, ...) with no success.
 Does anyone have suggestions on where to look for further  
 documentation or examples of use?


This works for me.

\setupcolors[state=start]

\definetextbackground
   [example]
   [location=paragraph,
background=color,
backgroundcolor=middlegray,
frame=off]

\starttext

\input knuth

\startexample
\dorecurse{4}{\input knuth\par}
\stopexample

\input knuth

\stoptext

Wolfgang



For me this works only with context 2008-10-31.

It doesn't work with the beta from 2008-01-18 (no background).

Greetings
Thomas


___
If your question is of interest to others as well, please add an entry to
the Wiki!

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net

___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-27 Thread Wolfgang Schuster
On Tue, Jan 27, 2009 at 9:50 AM, Thomas Floeren
thomas.floe...@boschung.com wrote:

 This works for me.

 \setupcolors[state=start]

 \definetextbackground
   [example]
   [location=paragraph,
background=color,
backgroundcolor=middlegray,
frame=off]

 \starttext

 \input knuth

 \startexample
 \dorecurse{4}{\input knuth\par}
 \stopexample

 \input knuth

 \stoptext

 Wolfgang

 For me this works only with context 2008-10-31.

 It doesn't work with the beta from 2008-01-18 (no background).

MkII or MkIV?

Can you try texexec --make metafun --standalone.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-27 Thread Thomas Floeren

-Ursprüngliche Nachricht-
Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] 
Gesendet: Dienstag, 27. Januar 2009 10:12
An: thomas.floe...@boschung.com; mailing list for ConTeXt users
Betreff: Re: [NTG-context] backgrounds: help needed

On Tue, Jan 27, 2009 at 9:50 AM, Thomas Floeren
thomas.floe...@boschung.com wrote:

 This works for me.

 \setupcolors[state=start]

 \definetextbackground
   [example]
   [location=paragraph,
background=color,
backgroundcolor=middlegray,
frame=off]

 \starttext

 \input knuth

 \startexample
 \dorecurse{4}{\input knuth\par}
 \stopexample

 \input knuth

 \stoptext

 Wolfgang

 For me this works only with context 2008-10-31.

 It doesn't work with the beta from 2008-01-18 (no background).

MkII or MkIV?

Can you try texexec --make metafun --standalone.

Wolfgang



MkII.
I just reinstalled the october version; everything ok.
btw: It seems that it still worked fine with a context-beta from 2008-12-01.

Thomas

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-27 Thread Thomas Floeren
yes, 2009 of course; 
thanks.

Thomas
-Ursprüngliche Nachricht-
Von: Aditya Mahajan [mailto:adit...@umich.edu] 
Gesendet: Dienstag, 27. Januar 2009 14:57
An: thomas.floe...@boschung.com; mailing list for ConTeXt users
Betreff: Re: [NTG-context] backgrounds: help needed

On Tue, 27 Jan 2009, Thomas Floeren wrote:

 For me this works only with context 2008-10-31.

 It doesn't work with the beta from 2008-01-18 (no background).

Do you mean 2009-01-18?

Aditya

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-27 Thread Alan BRASLAU
On Tuesday 27 January 2009 15:08:29 Thomas Floeren wrote:
 yes, 2009 of course; 

  On Tue, 27 Jan 2009, Thomas Floeren wrote:
 
  For me this works only with context 2008-10-31.
 
  It doesn't work with the beta from 2008-01-18 (no background).
 
 Do you mean 2009-01-18?
 
 Aditya

The example works correctly with
ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.25  int: english/english
as well as with MKII

Alan

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-27 Thread Thomas Floeren
-Ursprüngliche Nachricht-
Von: Alan BRASLAU [mailto:alan.bras...@cea.fr] 
Gesendet: Dienstag, 27. Januar 2009 17:04
An: ntg-context@ntg.nl
Cc: thomas.floe...@boschung.com; 'Aditya Mahajan'
Betreff: Re: [NTG-context] backgrounds: help needed

On Tuesday 27 January 2009 15:08:29 Thomas Floeren wrote:
 yes, 2009 of course; 

  On Tue, 27 Jan 2009, Thomas Floeren wrote:
 
  For me this works only with context 2008-10-31.
 
  It doesn't work with the beta from 2008-01-18 (no background).
 
 Do you mean 2009-01-18?
 
 Aditya

The example works correctly with
ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.25  int: english/english
as well as with MKII

Alan


Thanks for your answer.

I installed the 2009-01-18 yesterday at home on my mac. Everything works
fine!

Now I re-reinstalled the 2009-01-18 on the windows machine at work, and I
get the same result as before: no gray background.
I even did the texexec --make metafun --standalone from Wolfgang, but
still no background. 

I noticed that on the win system the filename-mpgraph.4000 etc. and
-mpgraph.keep files don't appear at all; they do appear of course with
2008-10-31. Appearently these are holding the code for the background.

Any ideas?

Thanks in advance
Thomas

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-25 Thread Alan BRASLAU
I am still a bit confused about textbackgrounds.
So I created a wiki page http://wiki.contextgarden.net/TextBackground
(in order to try to confuse others!)

I have two questions:
1. The live conTeXt of the wiki does not show the background,
whereas the code works using the context minimals.
Why?

2. Setting background=screen as opposed to 
background=color,backgroundcolor=middlegray
doesn't work (live  minimals). Why?

Can anyone help here? Beyond details.pdf, I have not found many explanations.

Thanks
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-25 Thread Wolfgang Schuster


Am 25.01.2009 um 19:23 schrieb Alan BRASLAU:


I am still a bit confused about textbackgrounds.
So I created a wiki page http://wiki.contextgarden.net/TextBackground
(in order to try to confuse others!)
I have two questions:

2. Setting background=screen as opposed to  
background=color,backgroundcolor=middlegray

doesn't work (live  minimals). Why?
Can anyone help here? Beyond details.pdf, I have not found many  
explanations.


Not supported in textbackground, it works only for framed and  
framedtext.


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-20 Thread Alan BRASLAU
I, too, do not understand the
\definetextbackground
\starttextbackground
\stoptextbackground
commands, even though I tried looking at details.pdf (and core-pgr.tex).

My particular problem is rather classic, that of illustrating examples, set off 
from the main text.
I first used

\defineframedtext [example] 
[width=fit,background=screen,backgroundscreen=0.7]

\startexample
...
\stopexample

and this is appropriate if the example is short enough to fit on one page.
However, a long example (many paragraphs) that spans more than one page
runs off the bottom.
Textbackground seems more appropriate, so I tried

\definetextbackground [example] 
[location=paragraph,backgroundcolor=middlegray,frame=off]
\definestartstop [example] 
[before={\starttextbackground[example]},after=\stoptextbackground]

but this does not work. I tried other variants (such as adding state=start, 
...) with no success.

Does anyone have suggestions on where to look for further documentation or 
examples of use?
Thanks.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-20 Thread Wolfgang Schuster


Am 20.01.2009 um 23:51 schrieb Alan BRASLAU:


I, too, do not understand the
\definetextbackground
\starttextbackground
\stoptextbackground
commands, even though I tried looking at details.pdf (and core- 
pgr.tex).
My particular problem is rather classic, that of illustrating  
examples, set off from the main text.

I first used
\defineframedtext [example]
[width=fit,background=screen,backgroundscreen=0.7]
\startexample
...
\stopexample
and this is appropriate if the example is short enough to fit on one  
page.
However, a long example (many paragraphs) that spans more than one  
page

runs off the bottom.
Textbackground seems more appropriate, so I tried
\definetextbackground [example]
[location=paragraph,backgroundcolor=middlegray,frame=off]
\definestartstop [example]
[before={\starttextbackground[example]},after=\stoptextbackground]
but this does not work. I tried other variants (such as adding  
state=start, ...) with no success.
Does anyone have suggestions on where to look for further  
documentation or examples of use?



This works for me.

\setupcolors[state=start]

\definetextbackground
  [example]
  [location=paragraph,
   background=color,
   backgroundcolor=middlegray,
   frame=off]

\starttext

\input knuth

\startexample
\dorecurse{4}{\input knuth\par}
\stopexample

\input knuth

\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___