Am 30.09.2010 um 11:49 schrieb Daniel Grycman:

> Hi list,
> 
> I am typesetting a template for internal documentation. In the header of
> the document I want to put two different figure. One on the left side and
> the other on the right side. When I compile the source the output shows
> only the figure on the left side.
> 
> \enableregime[utf-8]
> \mainlanguage[de]
> \setupcolors [state=start]
> \setupoutput[pdftex]
> \setuppapersize[A4][A4]
> \usemodule [simplefonts,r,tikz,edtsnc,chart]
> \setmainfont [rubscalatz]
> \setsansfont [rubflama]
> \setuphead [chapter][number=no, style=bold, textcommand=\ss]
> \setuphead [section][number=no, style=bold, textcommand=\ss]
> \setuphead [subsection][number=no]
> \setuphead [subsubsection][number=no]
> \setuplayout
> [top=0cm,rightmargin=2.3cm,footer=1.0cm,header=5cm,topspace=0mm,height=29.9
> 577cm,width=16.25cm,leftmargindistance=0cm,rightmargindistance=0cm]
> 
> \setupbackgrounds[footer][background=color,backgroundcolor=gray]
> \setupbackgrounds[text][rightmargin][background=color,backgroundcolor=gray]
> \setupbackgrounds[header][rightmargin][background=color,backgroundcolor=gra
> y]

None of these settings is necessary for a minimal example, leave them out next 
time.

> \definelayer[logo][width=\paperwidth,height=\paperheight,state=repeat]
> \setupbackgrounds[page][righttop][background={foreground,logo}]
> \setlayer[logo][preset=righttop,hoffset=1cm,state=start]
> {\externalfigure[label][height=4cm,3.5cm]}
> \definelayer[marke][width=6.5cm,height=0.3cm,state=repeat]
> \setupbackgrounds[page][lefttop][background={foreground,marke}]
> \setlayer[marke][preset=lefttop,hoffset=1.3cm,voffset=1.4cm,state=repeat]
> {\externalfigure[wortmarke][height=0.3cm,width=6.5cm]}

One layer is enough for both pictures, try also to make it more readable next 
time.

\definelayer[logo][width=\paperwidth,height=\paperheight,state=repeat]

\setupbackgrounds[page][background={foreground,logo}]

\setlayer
        [logo]
        [preset=righttop,
         hoffset=1cm]
        {\externalfigure[label][height=4cm,3.5cm]}

\setlayer
        [logo]
        [preset=lefttop,
         hoffset=1.3cm,
         voffset=1.4cm]
        {\externalfigure[wortmarke][height=0.3cm,width=6.5cm]}

\starttext
\dorecurse{20}{\input knuth\par}
\stoptext

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
___________________________________________________________________________________

Reply via email to