ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* garden example at fault
@ 2013-03-11 20:38 H. van der Meer
  2013-03-12 12:07 ` Sietse Brouwer
  0 siblings, 1 reply; 3+ messages in thread
From: H. van der Meer @ 2013-03-11 20:38 UTC (permalink / raw)
  To: ConTeXt NTG

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

I tried this sample from the garden to look at the top and bottom, see Command/setuplayout.
Below a copy of the garden page (pagesize changed from A10 to A6):
\setuppapersize[A6]

%% This is an example for showing the effect of the vertical parameters
%% top, topdistance, bottom, bottomdistance and topspace.
%% Just play around with these parameters.

\showframe

%% Show the top and the bottom with blue color:
\setupbackgrounds[header, footer][background=color, backgroundcolor=blue]

\def\MyLength{10pt}

\setuplayout[
  top=\MyLength, 
  topdistance=\MyLength,
  bottom=\MyLength, 
  bottomdistance=\MyLength,
  topspace=\dimexpr(\topheight + \topdistance),
  height=fit]

\starttext
    \input thuan
\stoptext

This is LuaTeX, Version beta-0.75.0-2013030308 (rev 4589)
ConTeXt  ver: 2013.03.04 18:28 MKIV  fmt: 2013.3.4  int: english/english

The top and bottom should have been blue as in the screenshot from the garden (figure to the left). The reality however is no blue sections at all (figure at right). What is wrong: the (fairly recent) context or the example in the garden?

Hans van der Meer



[-- Attachment #2: garden.tiff --]
[-- Type: image/tiff, Size: 19312 bytes --]

[-- Attachment #3: headfoot.pdf --]
[-- Type: application/pdf, Size: 9087 bytes --]

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




[-- Attachment #5: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: garden example at fault
  2013-03-11 20:38 garden example at fault H. van der Meer
@ 2013-03-12 12:07 ` Sietse Brouwer
  2013-03-13 11:44   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Sietse Brouwer @ 2013-03-12 12:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello Hans,

I think \setupbackgrounds now requires you to specify both the
column(s) *and* the row(s) you want to fill in.

% does not work
\setupbackgrounds[header][background=color, backgroundcolor=blue]

% does not work
\setupbackgrounds[header][][background=color, backgroundcolor=blue]

% this works
\setupbackgrounds[header][leftedge,leftmargin,text,rightmargin,rightedge][background=color,
backgroundcolor=blue]

(Also, just in case you didn't know: remember than any \showframe must
come before \setupbackgrounds, or it will 'overwrite' your settings.)

Cheers,
Sietse





On 11 March 2013 21:38, H. van der Meer <H.vanderMeer@uva.nl> wrote:
> I tried this sample from the garden to look at the top and bottom, see Command/setuplayout.
> Below a copy of the garden page (pagesize changed from A10 to A6):
> \setuppapersize[A6]
>
> %% This is an example for showing the effect of the vertical parameters
> %% top, topdistance, bottom, bottomdistance and topspace.
> %% Just play around with these parameters.
>
> \showframe
>
> %% Show the top and the bottom with blue color:
> \setupbackgrounds[header, footer][background=color, backgroundcolor=blue]
>
> \def\MyLength{10pt}
>
> \setuplayout[
>   top=\MyLength,
>   topdistance=\MyLength,
>   bottom=\MyLength,
>   bottomdistance=\MyLength,
>   topspace=\dimexpr(\topheight + \topdistance),
>   height=fit]
>
> \starttext
>     \input thuan
> \stoptext
>
> This is LuaTeX, Version beta-0.75.0-2013030308 (rev 4589)
> ConTeXt  ver: 2013.03.04 18:28 MKIV  fmt: 2013.3.4  int: english/english
>
> The top and bottom should have been blue as in the screenshot from the garden (figure to the left). The reality however is no blue sections at all (figure at right). What is wrong: the (fairly recent) context or the example in the garden?
>
> Hans van der Meer
>
>
>
>
>
>
> ___________________________________________________________________________________
> 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: garden example at fault
  2013-03-12 12:07 ` Sietse Brouwer
@ 2013-03-13 11:44   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2013-03-13 11:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 3/12/2013 1:07 PM, Sietse Brouwer wrote:
> Hello Hans,
>
> I think \setupbackgrounds now requires you to specify both the
> column(s) *and* the row(s) you want to fill in.
>
> % does not work
> \setupbackgrounds[header][background=color, backgroundcolor=blue]
>
> % does not work
> \setupbackgrounds[header][][background=color, backgroundcolor=blue]
>
> % this works
> \setupbackgrounds[header][leftedge,leftmargin,text,rightmargin,rightedge][background=color,
> backgroundcolor=blue]

fixed in next beta

> (Also, just in case you didn't know: remember than any \showframe must
> come before \setupbackgrounds, or it will 'overwrite' your settings.)

indeed as it used the same mechanism


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2013-03-13 11:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-11 20:38 garden example at fault H. van der Meer
2013-03-12 12:07 ` Sietse Brouwer
2013-03-13 11:44   ` Hans Hagen

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