ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* backgrounds: help needed
@ 2008-11-04 11:16 Peter Münster
  2009-01-20 22:51 ` Alan BRASLAU
  2009-01-25 18:23 ` Alan BRASLAU
  0 siblings, 2 replies; 17+ messages in thread
From: Peter Münster @ 2008-11-04 11:16 UTC (permalink / raw)
  To: ConTeXt list

Hello,

I need some text with background, that can break across lines. But the
background must not touch the background of the next line!

\setupcolors[state=start]
\starttext
inframed does not allow linebreaks:

\def\Bla{\inframed[background=color, backgroundcolor=gray, frame=off,
    offset=overlay, backgroundoffset=2pt, location=keep]{%
    FF FF XX XX XX XX XX XX SS CS CS}}
\dorecurse{20}{bla \Bla\ bla}

And textbackground does not allow to seperate the backgrounds of 2 lines:

\definetextbackground[TG][backgroundcolor=gray, frame=off,
  offset=overlay, backgroundoffset=2pt]
\def\Bla{\starttextbackground[TG]FF FF XX XX XX XX XX XX SS CS CS%
  \stoptextbackground}
\dorecurse{20}{bla \Bla\ bla}
\stoptext

Could anybody help please?

TIA for any hints!
Cheer, Peter

-- 
http://pmrb.free.fr/contact/
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: backgrounds: help needed
  2008-11-04 11:16 backgrounds: help needed Peter Münster
@ 2009-01-20 22:51 ` Alan BRASLAU
  2009-01-20 23:07   ` Wolfgang Schuster
  2009-01-25 18:23 ` Alan BRASLAU
  1 sibling, 1 reply; 17+ messages in thread
From: Alan BRASLAU @ 2009-01-20 22:51 UTC (permalink / raw)
  To: ntg-context; +Cc: Peter Münster


[-- Attachment #1.1: Type: text/plain, Size: 1008 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 5904 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: backgrounds: help needed
  2009-01-20 22:51 ` Alan BRASLAU
@ 2009-01-20 23:07   ` Wolfgang Schuster
  2009-01-25 12:14     ` Something usefull? Alan BRASLAU
  2009-01-27  8:50     ` backgrounds: help needed Thomas Floeren
  0 siblings, 2 replies; 17+ messages in thread
From: Wolfgang Schuster @ 2009-01-20 23:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: Something usefull?
  2009-01-20 23:07   ` Wolfgang Schuster
@ 2009-01-25 12:14     ` Alan BRASLAU
  2009-01-25 18:13       ` Wolfgang Schuster
  2009-01-27  8:50     ` backgrounds: help needed Thomas Floeren
  1 sibling, 1 reply; 17+ messages in thread
From: Alan BRASLAU @ 2009-01-25 12:14 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 72 bytes --]

> Take a look at the attached file.

missing:
\setupcolors[state=start]

[-- Attachment #1.2: Type: text/html, Size: 1155 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: Something usefull?
  2009-01-25 12:14     ` Something usefull? Alan BRASLAU
@ 2009-01-25 18:13       ` Wolfgang Schuster
  0 siblings, 0 replies; 17+ messages in thread
From: Wolfgang Schuster @ 2009-01-25 18:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.01.2009 um 13:14 schrieb Alan BRASLAU:

> > Take a look at the attached file.
> missing:
> \setupcolors[state=start]

This wasn't in the original file and it's possible Cecil enables
color in his default module.

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
___________________________________________________________________________________


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

* Re: backgrounds: help needed
  2008-11-04 11:16 backgrounds: help needed Peter Münster
  2009-01-20 22:51 ` Alan BRASLAU
@ 2009-01-25 18:23 ` Alan BRASLAU
  2009-01-25 18:59   ` Wolfgang Schuster
  1 sibling, 1 reply; 17+ messages in thread
From: Alan BRASLAU @ 2009-01-25 18:23 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 509 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 3052 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: backgrounds: help needed
  2009-01-25 18:23 ` Alan BRASLAU
@ 2009-01-25 18:59   ` Wolfgang Schuster
  0 siblings, 0 replies; 17+ messages in thread
From: Wolfgang Schuster @ 2009-01-25 18:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: backgrounds: help needed
  2009-01-20 23:07   ` Wolfgang Schuster
  2009-01-25 12:14     ` Something usefull? Alan BRASLAU
@ 2009-01-27  8:50     ` Thomas Floeren
  2009-01-27  9:11       ` Wolfgang Schuster
  2009-01-27 13:56       ` Aditya Mahajan
  1 sibling, 2 replies; 17+ messages in thread
From: Thomas Floeren @ 2009-01-27  8:50 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'



______________________

-----Ursprüngliche Nachricht-----
Von: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@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
___________________________________________________________________________________


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

* Re: backgrounds: help needed
  2009-01-27  8:50     ` backgrounds: help needed Thomas Floeren
@ 2009-01-27  9:11       ` Wolfgang Schuster
  2009-01-27  9:28         ` Thomas Floeren
  2009-01-27 13:56       ` Aditya Mahajan
  1 sibling, 1 reply; 17+ messages in thread
From: Wolfgang Schuster @ 2009-01-27  9:11 UTC (permalink / raw)
  To: thomas.floeren, mailing list for ConTeXt users

On Tue, Jan 27, 2009 at 9:50 AM, Thomas Floeren
<thomas.floeren@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
___________________________________________________________________________________


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

* Re: backgrounds: help needed
  2009-01-27  9:11       ` Wolfgang Schuster
@ 2009-01-27  9:28         ` Thomas Floeren
  0 siblings, 0 replies; 17+ messages in thread
From: Thomas Floeren @ 2009-01-27  9:28 UTC (permalink / raw)
  To: 'Wolfgang Schuster', 'mailing list for ConTeXt users'


-----Ursprüngliche Nachricht-----
Von: Wolfgang Schuster [mailto:schuster.wolfgang@googlemail.com] 
Gesendet: Dienstag, 27. Januar 2009 10:12
An: thomas.floeren@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.floeren@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
___________________________________________________________________________________


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

* Re: backgrounds: help needed
  2009-01-27  8:50     ` backgrounds: help needed Thomas Floeren
  2009-01-27  9:11       ` Wolfgang Schuster
@ 2009-01-27 13:56       ` Aditya Mahajan
  2009-01-27 14:08         ` Thomas Floeren
  1 sibling, 1 reply; 17+ messages in thread
From: Aditya Mahajan @ 2009-01-27 13:56 UTC (permalink / raw)
  To: thomas.floeren, mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: backgrounds: help needed
  2009-01-27 13:56       ` Aditya Mahajan
@ 2009-01-27 14:08         ` Thomas Floeren
  2009-01-27 16:04           ` Alan BRASLAU
  0 siblings, 1 reply; 17+ messages in thread
From: Thomas Floeren @ 2009-01-27 14:08 UTC (permalink / raw)
  To: 'Aditya Mahajan', 'mailing list for ConTeXt users'

yes, 2009 of course; 
thanks.

Thomas
-----Ursprüngliche Nachricht-----
Von: Aditya Mahajan [mailto:adityam@umich.edu] 
Gesendet: Dienstag, 27. Januar 2009 14:57
An: thomas.floeren@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
___________________________________________________________________________________


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

* Re: backgrounds: help needed
  2009-01-27 14:08         ` Thomas Floeren
@ 2009-01-27 16:04           ` Alan BRASLAU
  2009-01-28  7:13             ` Thomas Floeren
  0 siblings, 1 reply; 17+ messages in thread
From: Alan BRASLAU @ 2009-01-27 16:04 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


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

* Re: backgrounds: help needed
  2009-01-27 16:04           ` Alan BRASLAU
@ 2009-01-28  7:13             ` Thomas Floeren
  2009-01-29 10:39               ` Thomas Floeren
  0 siblings, 1 reply; 17+ messages in thread
From: Thomas Floeren @ 2009-01-28  7:13 UTC (permalink / raw)
  To: 'Alan BRASLAU', ntg-context

-----Ursprüngliche Nachricht-----
Von: Alan BRASLAU [mailto:alan.braslau@cea.fr] 
Gesendet: Dienstag, 27. Januar 2009 17:04
An: ntg-context@ntg.nl
Cc: thomas.floeren@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
___________________________________________________________________________________


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

* Re: backgrounds: help needed
  2009-01-28  7:13             ` Thomas Floeren
@ 2009-01-29 10:39               ` Thomas Floeren
  0 siblings, 0 replies; 17+ messages in thread
From: Thomas Floeren @ 2009-01-29 10:39 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users', 'Alan BRASLAU'


-----Ursprüngliche Nachricht-----
Von: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@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.braslau@cea.fr] 
Gesendet: Dienstag, 27. Januar 2009 17:04
An: ntg-context@ntg.nl
Cc: thomas.floeren@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
___________________________________________________________________________________


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

* Re: Something usefull?
  2009-01-24 12:46 Something usefull? Cecil Westerhof
@ 2009-01-25  9:04 ` Wolfgang Schuster
  0 siblings, 0 replies; 17+ messages in thread
From: Wolfgang Schuster @ 2009-01-25  9:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: tableHoursToDo.tex --]
[-- Type: application/octet-stream, Size: 1466 bytes --]

\usemodule[defaults]
\setuppagenumbering[location={footer,right}]
\setupbodyfont[roman, 12pt]
\setuppapersize[A7][A4]
\setuplayout[
  backspace=5mm,      footer=1.5\bodyfontsize,                header=5mm,
  height=96.5mm,      margin=5mm,         width=63.5mm,       topspace=4mm,
]
\setuparranging[2*8,rotated]

\def\getTableHours#1%
  {\dorecurse{#1}
     {\setupTABLE[c][each][align=middle,height=\lineheight]
      \setupTABLE[r][1][background=color,backgroundcolor=darkyellow]
      \setupTABLE[c][each][width=0.20\textwidth]
      \setupTABLE[c][2,4][width=0.30\textwidth]
      \dontleavehmode\vskip-\dimexpr\lineheight+\topskip\relax\par
      \startalignment[middle]
      \bTABLE
        \bTR
        \dorecurse{2}{\bTH Type \eTH \bTH Tijd \eTH}
        \eTR
        \getnoflines{\dimexpr\pagegoal-\pagetotal-3\lineheight\relax}
        \dorecurse{\noflines}{\bTR\dorecurse{4}{\bTD \eTD}\eTR}
      \eTABLE
      \stopalignment
      \page}}

% \def\getTableToDo
%   {\dorecurse{\number\numexpr16-\realpageno+1\relax}
%      {\dontleavehmode\vskip-\dimexpr\lineheight+\topskip\relax\par
%       \vbox to \vsize{\leaders\vbox{\thinrule}\vfill}\page}}

\def\getTableToDo
  {\dorecurse{\number\numexpr16-\realpageno+1\relax}
     {\dontleavehmode\vskip-\dimexpr\lineheight+\topskip\relax\par
      \getroundednoflines\textheight
      \thinrules[n=\noflines]\page}}


\starttext

  \getTableHours{8}

  \setuppagenumber[number=1]

  \getTableToDo

\stoptext

[-- Attachment #2: Type: text/plain, Size: 706 bytes --]


Am 24.01.2009 um 13:46 schrieb Cecil Westerhof:

> I made something usefull and share it with you. Maybe it is usefull
> for other people also.

[...]

> I also have some questions. ;-}
> At the moment there are the same number of the timesheet and the lined
> paper printed. That is not always what you want I think. The one time
> you need more timesheets, the other time you need more lined paper. Is
> there a way to ask for the number of timesheets, print those, and let
> the rest be printed as lined? (I can offcourse also switch to two
> different documents.)
> At the moment the lined paper starts counting from 9. Is there a way
> to reset it to 1?

Take a look at the attached file.

Wolfgang


[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Something usefull?
@ 2009-01-24 12:46 Cecil Westerhof
  2009-01-25  9:04 ` Wolfgang Schuster
  0 siblings, 1 reply; 17+ messages in thread
From: Cecil Westerhof @ 2009-01-24 12:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]

I made something usefull and share it with you. Maybe it is usefull
for other people also.

Sometimes I switch a lot from tasks. Still I need to keep a good log
of time spend on the different tasks. For this I made the first table.
When I switch I can now log easily the new task and the time of the
switch. And at the end of the day I can easily get a running total pro
task.

The second task is for writing down short notes. I used a table to get
lined A7 paper.

I have still some work to do on it. For example the tables are to
close to edge and the tables stop to soon. But I think it is good
enough to 'publish'.

I also have some questions. ;-}
At the moment there are the same number of the timesheet and the lined
paper printed. That is not always what you want I think. The one time
you need more timesheets, the other time you need more lined paper. Is
there a way to ask for the number of timesheets, print those, and let
the rest be printed as lined? (I can offcourse also switch to two
different documents.)
At the moment the lined paper starts counting from 9. Is there a way
to reset it to 1?

-- 
Cecil Westerhof

[-- Attachment #2: tableHoursToDo.tex --]
[-- Type: application/x-tex, Size: 1456 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2009-01-29 10:39 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-04 11:16 backgrounds: help needed Peter Münster
2009-01-20 22:51 ` Alan BRASLAU
2009-01-20 23:07   ` Wolfgang Schuster
2009-01-25 12:14     ` Something usefull? Alan BRASLAU
2009-01-25 18:13       ` Wolfgang Schuster
2009-01-27  8:50     ` backgrounds: help needed Thomas Floeren
2009-01-27  9:11       ` Wolfgang Schuster
2009-01-27  9:28         ` Thomas Floeren
2009-01-27 13:56       ` Aditya Mahajan
2009-01-27 14:08         ` Thomas Floeren
2009-01-27 16:04           ` Alan BRASLAU
2009-01-28  7:13             ` Thomas Floeren
2009-01-29 10:39               ` Thomas Floeren
2009-01-25 18:23 ` Alan BRASLAU
2009-01-25 18:59   ` Wolfgang Schuster
2009-01-24 12:46 Something usefull? Cecil Westerhof
2009-01-25  9:04 ` Wolfgang Schuster

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).