[layers] unsolicited “0” after setting background
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
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
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 ___________________________________________________________________________________
participants (2)
-
Philipp Gesang
-
Wolfgang Schuster