[NTG-context] \switchtobodyfont does not work inside of \startsetups layer ?

Vnpenguin vnpenguin at vnoss.org
Fri Feb 18 18:59:32 CET 2011


Hi,
I have a following test:
=================================================
\setuppapersize[S8][S8]
\setuplayout
	[width=fit,height=fit,
	rightmargin=1.5cm,leftmargin=1.5cm,
	backspace=15mm,topspace=23mm,top=10mm,
	header=0mm,footer=0mm,bottom=5mm,
	margin=0mm]
\usetypescript[palatino]
\switchtobodyfont[palatino,20pt]

\setupcolors[state=start]

\definelayer[myLayer]
	[width=\paperwidth, height=\paperheight]

\startsetups layer
	\setlayer[myLayer][preset=lefttop,x=0.9\paperwidth,y=0.96\paperheight]
		{\switchtobodyfont[10pt]\pagenumber\ of \lastpage}
\stopsetups

\setupbackgrounds
	[page]
	[setups=layer,background={myLayer},state=start]


\starttext
\page
\setlayer[myLayer][preset=leftttop,x=7mm,y=6mm]%
	{\switchtobodyfont[48pt]\bf Page One}
blah blah blah blah blah blah blah blah blah

\page
\setlayer[myLayer][preset=leftttop,x=7mm,y=6mm]%
	{\switchtobodyfont[48pt]\bf Page Two}
blah blah blah

\stoptext
========================================

The command \switchtobodyfont[10pt] inside of my \startsetups layer
...\stopsetups does not work for me.
In the final PDF I have not page number at 10pt.

Here are the files:

http://dl.dropbox.com/u/7959896/context/test2/test2.tex
http://dl.dropbox.com/u/7959896/context/test2/test2.log
http://dl.dropbox.com/u/7959896/context/test2/test2.pdf

I use on WinXP :

E:\User>context --version

mtx-context     | main context file:
C:/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context     | current version: 2011.02.18 17:17

Any help ?

Thanks in advance,


More information about the ntg-context mailing list