ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Entering text into layers
@ 2014-05-19 15:43 Keith McKay
  2014-05-19 21:45 ` Hans Hagen
  2014-05-19 21:54 ` Wolfgang Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: Keith McKay @ 2014-05-19 15:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1778 bytes --]

Colleagues

I have been designing a simple document which comprises of 4 areas (3 
for text, 1 for images) on an A4 page.  I thought that the best way to 
do this would be using Layers and so far I come up with the code below 
after scanning the wiki.  As you can see it is not very sophisticated, 
but I'm not a regular user of Context.  The question I have is what 
would be the best way to add text to the various layers?  Some would 
have quite a lot of text and I was wondering if would be better to 
define the text for the different layers in some way rather than enter 
into the braces of \setlayerframed.  The code would look messy this 
way.  Finally, can layers be positioned within layers or would it be 
better to use overlays?  I'm thinking about adding three columns to the 
Footer layer.

Thanks for your help

Best Wishes

Keith McKay

\setuplayout

[backspace=0cm,

cutspace=0cm,

width=fit,

topspace=0cm,

bottomspace=0cm,

header=0cm,

footer=0cm,

height=fit]

\setupexternalfigures[location={local,global}]


\definelayer[Logo]

\definelayer[Picture]

\definelayer[Text]

\definelayer[Footer]


\starttext

\strut


\setlayerframed[Logo][x=1cm,y=1cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Some text in here}

\setlayerframed[Picture][x=1cm,y=5cm] 
[width=6cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{\externalfigure[picture.jpg][background={foreground,figure},maxwidth=6cm]}

\setlayerframed[Text][x=8cm,y=5cm] 
[width=12cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{Text 
goes here}

\setlayerframed[Footer][x=1cm,y=25.7cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Footer goes here}

\setupbackgrounds[text][background={Logo,Picture,Text,Footer}]


\stoptext



[-- Attachment #1.2: Type: text/html, Size: 7219 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

end of thread, other threads:[~2014-05-20  8:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-19 15:43 Entering text into layers Keith McKay
2014-05-19 21:45 ` Hans Hagen
2014-05-20  8:07   ` Keith McKay
2014-05-20  8:12     ` Hans Hagen
2014-05-19 21:54 ` Wolfgang Schuster
2014-05-20  8:10   ` Keith McKay

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