Nikolai Weibull wrote:
* Willi Egger (Mar 20, 2005 18:00):

May be you should try a buffer to put the typing in. In the overlay
you can call the buffer with \typebuffer[...]


\startbuffer[title]
...
\stopbuffer

\defineoverlay
  [TitleGraphic]
  [{\startcolor[titlegraphic]\typebuffer[title]\stopcolor}]

\setupbackgrounds[page][background=TitleGraphic]

The problem with that is that everything winds up on one line for some
reason,

a good reason: it's a hbox, so you need ...[\vbox{...}]...

alternative regexp title page (nice example for wiki)

% \startbuffer[title]
% /(.*?)testexpr/io
% /t(.*?)estexpr/io
% /te(.*?)stexpr/io
% /tes(.*?)texpr/io
% /test(.*?)expr/io
% /teste(.*?)xpr/io
% /testex(.*?)pr/io
% /testexp(.*?)r/io
% /testexpr(.*?)/io
% \stopbuffer

\definetype[ytyp][color=yellow]

\startbuffer[title]
\type{/(}\ytyp{h}\type{*?)testexpr/io}\par
\type{/t(}\ytyp{a}\type{*?)estexpr/io}\par
\type{/te(}\ytyp{n}\type{*?)stexpr/io}\par
\type{/tes(}\ytyp{s}\type{*?)texpr/io}\par
\type{/test(}\ytyp{h}\type{*?)expr/io}\par
\type{/teste(}\ytyp{a}\type{*?)xpr/io}\par
\type{/testex(}\ytyp{g}\type{*?)pr/io}\par
\type{/testexp(}\ytyp{e}\type{*?)r/io}\par
\type{/testexpr(}\ytyp{n}\type{*?)/io}\par
\stopbuffer

\setupcolors[state=start]

\definelayer
  [TitleGraphic]
  [width=\paperwidth,
   height=\paperheight]

\setlayer
  [TitleGraphic]
  [preset=lefttop]
  {\scale
     [width=\paperwidth,
      height=\paperheight]
     {\framed
        [frame=off,
         offset=overlay,
         background=color,
         backgroundcolor=blue,
         foregroundcolor=red,
         align=normal]
%         {\setuptyping[before=,after=]\typebuffer[title]}}}
        {\getbuffer[title]}}}

\setupbackgrounds[page][background=TitleGraphic]

\starttext

\startstandardmakeup

\stopstandardmakeup

\stoptext





-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to