ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [layers] unsolicited “0” after setting background
@ 2011-06-10 10:07 Philipp Gesang
  2011-06-10 10:12 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Gesang @ 2011-06-10 10:07 UTC (permalink / raw)
  To: ntg-context


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

Hi again,

when setting a background layer combined with an early font setup
there appears a “0” (ascii 0x30) right after “\starttext”:

·································································

\setupbodyfont[sans] %%% <-- comment this out and the “0” vanishes
\definelayer[bg][x=0,y=0,width=\paperwidth,height=\paperheight] %%% <-- or this

\setlayer[bg]{%
  \startMPcode
    draw fullcircle scaled (.5*PaperWidth) withpen pencircle xscaled 7 withcolor \MPcolor{gray:7};
  \stopMPcode
}
\setupbackgrounds[paper][background=bg]

\starttext
\input dawkins
\stoptext

·································································

Removing either the “\definelayer” or “\setupbodyfont” statement
makes it go away.

What have I come across this time?

Philipp

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: 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:  [layers] unsolicited “0” after setting background
  2011-06-10 10:07 [layers] unsolicited “0” after setting background Philipp Gesang
@ 2011-06-10 10:12 ` Wolfgang Schuster
  2011-06-10 10:17   ` Philipp Gesang
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-06-10 10:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 10.06.2011 um 12:07 schrieb Philipp Gesang:

> Hi again,
> 
> when setting a background layer combined with an early font setup
> there appears a “0” (ascii 0x30) right after “\starttext”:
> 
> ·································································
> 
> \setupbodyfont[sans] %%% <-- comment this out and the “0” vanishes
> \definelayer[bg][x=0,y=0,width=\paperwidth,height=\paperheight] %%% <-- or this

“x” and “y” expect a dimension but you assign a number, remove the setting
(because both are set to 0pt by default) or change the values to 0pt.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re:  [layers] unsolicited “0” after setting background
  2011-06-10 10:12 ` Wolfgang Schuster
@ 2011-06-10 10:17   ` Philipp Gesang
  0 siblings, 0 replies; 3+ messages in thread
From: Philipp Gesang @ 2011-06-10 10:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On 2011-06-10 <12:12:15>, Wolfgang Schuster wrote:
> 
> Am 10.06.2011 um 12:07 schrieb Philipp Gesang:
> 
> > Hi again,
> > 
> > when setting a background layer combined with an early font setup
> > there appears a “0” (ascii 0x30) right after “\starttext”:
> > 
> > ·································································
> > 
> > \setupbodyfont[sans] %%% <-- comment this out and the “0” vanishes
> > \definelayer[bg][x=0,y=0,width=\paperwidth,height=\paperheight] %%% <-- or this
> 
> “x” and “y” expect a dimension but you assign a number, remove the setting
> (because both are set to 0pt by default) or change the values to 0pt.

Thanks, I found this out by experimenting …

Best regards
Philipp

> 
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: 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

end of thread, other threads:[~2011-06-10 10:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-10 10:07 [layers] unsolicited “0” after setting background Philipp Gesang
2011-06-10 10:12 ` Wolfgang Schuster
2011-06-10 10:17   ` Philipp Gesang

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