ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \switchtobodyfont does not work inside of \startsetups layer ?
@ 2011-02-18 17:59 Vnpenguin
  2011-02-18 18:03 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Vnpenguin @ 2011-02-18 17:59 UTC (permalink / raw)
  To: ConTeXt list

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,
___________________________________________________________________________________
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] 5+ messages in thread

* Re: \switchtobodyfont does not work inside of \startsetups layer ?
  2011-02-18 17:59 \switchtobodyfont does not work inside of \startsetups layer ? Vnpenguin
@ 2011-02-18 18:03 ` Wolfgang Schuster
  2011-02-18 18:08   ` Vnpenguin
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-02-18 18:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 18.02.2011 um 18:59 schrieb Vnpenguin:

> \usetypescript[palatino]
> \switchtobodyfont[palatino,20pt]

Replace this (both lines) with

\setupbodyfont[palatino,20pt]

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] 5+ messages in thread

* Re: \switchtobodyfont does not work inside of \startsetups layer ?
  2011-02-18 18:03 ` Wolfgang Schuster
@ 2011-02-18 18:08   ` Vnpenguin
  2011-02-18 19:11     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Vnpenguin @ 2011-02-18 18:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Feb 18, 2011 at 19:03, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> 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,
___________________________________________________________________________________
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] 5+ messages in thread

* Re: \switchtobodyfont does not work inside of \startsetups layer ?
  2011-02-18 18:08   ` Vnpenguin
@ 2011-02-18 19:11     ` Wolfgang Schuster
  2011-02-19  7:28       ` Vnpenguin
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-02-18 19:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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}

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] 5+ messages in thread

* Re: \switchtobodyfont does not work inside of \startsetups layer ?
  2011-02-18 19:11     ` Wolfgang Schuster
@ 2011-02-19  7:28       ` Vnpenguin
  0 siblings, 0 replies; 5+ messages in thread
From: Vnpenguin @ 2011-02-19  7:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Feb 18, 2011 at 20:11, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> 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
___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2011-02-19  7:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-18 17:59 \switchtobodyfont does not work inside of \startsetups layer ? Vnpenguin
2011-02-18 18:03 ` Wolfgang Schuster
2011-02-18 18:08   ` Vnpenguin
2011-02-18 19:11     ` Wolfgang Schuster
2011-02-19  7:28       ` Vnpenguin

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