[NTG-context] not able to change paper sizes

Wolfgang Schuster schuster.wolfgang at gmail.com
Thu Feb 4 20:36:51 CET 2016


> Pablo Rodriguez <mailto:oinos at gmx.es>
> 4. Februar 2016 um 20:10
> On 02/04/2016 07:54 PM, Wolfgang Schuster wrote:
>>> Pablo Rodriguez 4. Februar 2016 um 19:43
>>>
>>> But I get two test2 on page 2:
>>>
>>> \definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start]
>>> \setlayer[test1]{page1}
>> Set the layer content after \starttext or load a font before you set it,
>> otherwise context uses a monospace font as fallback.
>
> Many thanks for the tip. But I really use foregroundstyle with
> \setlayerframed.
This doesn’t matter.

Compare

%%%% begin example
\definelayer[test]

\setupbackgrounds[page][background=test]

\setlayerframed[test][x=3cm,y=3cm][foregroundstyle=sans]{Layer}

\starttext
\page[empty]
\stoptext
%%%% end example

with

%%%% begin example
\definelayer[test]

\setupbackgrounds[page][background=test]

\setupbodyfont[modern]

\setlayerframed[test][x=3cm,y=3cm][foregroundstyle=sans]{Layer}

\starttext
\page[empty]
\stoptext
%%%% end example

The foregroundstyle setting has no effect in the first example because 
no font was loaded at this point.

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160204/7fc6bc3e/attachment.html>


More information about the ntg-context mailing list