\switchtobodyfont does not work inside of \startsetups layer ?
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,
On Fri, Feb 18, 2011 at 19:03, Wolfgang Schuster
Am 18.02.2011 um 18:59 schrieb Vnpenguin:
\usetypescript[palatino] \switchtobodyfont[palatino,20pt]
Replace this (both lines) with
\setupbodyfont[palatino,20pt]
Wolfgang
Wow, it works now. Thank you so much for your very quick help. Cheers,
On Fri, Feb 18, 2011 at 20:11, Wolfgang Schuster
Am 18.02.2011 um 19:08 schrieb Vnpenguin:
Wow, it works now.
You can also separate the style and content of a layer with \setlayerframed, e.g.
\setlayerframed [mylayer] [x=..., y=..., frame=off, style={\switchtobodyfont[10pt]}] {text}
Thank you, Regards
participants (2)
-
Vnpenguin
-
Wolfgang Schuster