I have modify this sample

\newdimen\currentlayerheight
\newdimen\currentlayerwidth
\newbox\Content


\definelayer[TicketSummary]
 [x=\backspace, y=\topspace,
   width=4in, height=4in,
   repeat=no]
\setlayer[TicketSummary][hoffset=.5\backspace, voffset=2.5in]{%
\unprotect%
\currentlayerheight=\dimexpr\csname @@llTicketSummaryheight\endcsname\relax%
\currentlayerwidth=\dimexpr\csname @@llTicketSummarywidth\endcsname\relax%
\protect%
\setbox\Content=\vbox{\hsize=\currentlayerwidth%
   \bold{Client Name:} \\
   Acme Corporation \\
   \bold{Location of Work:}
   Main warehouse
   }%
\ht\Content=\currentlayerheight%
\ruledhbox{\box\Content}
}

\setupbackgrounds[page][background={TicketSummary}]

\starttext
Hello world!
\stoptext


minimals: no erros, bu evince says

Error: ExtGState 'Tr0' is unknown
Error: ExtGState 'Tr0' is unknown
Error: ExtGState 'Tr0' is unknown
Error: ExtGState 'Tr0' is unknown
Error: ExtGState 'Tr0' is unknown

minimals-beta: errors

! You can't use `\dimexpr' in restricted horizontal mode.
l.12 \currentlayerheight=\dimexpr
                                 \csname @@llTicketSummaryheight\endcsname\r...
?




-- 
luigi
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to