% engine=luatex

% Poster made for LinuxTag 2007 / Martin Schoeder.

\doifmodeelse {local} {
    \definepapersize
        [A3-oversized]
        [width=32cm,  % 32.0cm
         height=44cm] % 45.0cm
    \setuppapersize
        [A3]
        [A3-oversized]
    \definefont
        [mainfont]
        [palatinosansinflcom-bold at 17pt]
} {
    \setuppapersize
        [A2]
        [A2]
    \definefont
        [mainfont]
        [palatinosansinflcom-bold at 24pt]
}

\def\TeX
  {T%
   \Mkern{-.1667}\lower.5ex\hbox{E}%
   \Mkern{0}X}

\definelayer[page]

\setuplayer[page][width=\paperwidth,height=\paperheight]

\useexternalfigure[luatex][luatex.pdf][width=\dimexpr\paperwidth/6\relax]

\setuplayout[marking=on,location=middle]

\setuplayout[page]

\defineoverlay
  [text]
  [\setups{text}]

\setupcolors
  [state=start]

\definecolor[luablue]  [b=.5]
\definecolor[luayellow][r=.5,g=.5]

\setuplayout
  [clipoffset=3mm]

\setupbackgrounds
  [page]
  [backgroundoffset=3mm,
   background=color,
   backgroundcolor=luayellow]

\newcounter\NextText

\startsetups text
    \doglobal\increment\NextText
    \mainfont \setupinterlinespace[line=3.5ex]
    \framed
        [width=\overlaywidth,
         height=\overlayheight,
         frame=off,
         foregroundcolor=white,
         align={middle,lohi}]
        {\getbuffer[text-\NextText]}
    \resetbuffer[text-\NextText]
\stopsetups

\startbuffer[text-1]  lua\TeX                                       \stopbuffer
\startbuffer[text-2]  lua\TeX                                       \stopbuffer
\startbuffer[text-3]  lua\TeX                                       \stopbuffer
\startbuffer[text-4]  lua\TeX                                       \stopbuffer

\startbuffer[text-5]  control your\\lines\\and pages                \stopbuffer
\startbuffer[text-6]  state\\of the art\\pagination                 \stopbuffer
\startbuffer[text-7]  this is\\just the\\beginning                  \stopbuffer

\startbuffer[text-8]  lua\TeX                                       \stopbuffer

\startbuffer[text-9]  the\\\TeX\ engine\\opened up                  \stopbuffer
\startbuffer[text-10] unlimited Lua\\scripting\\built in            \stopbuffer

\startbuffer[text-11] lua\TeX                                       \stopbuffer

\startbuffer[text-12] support for\\open type\\fonts                 \stopbuffer
\startbuffer[text-13] the natural\\successor\\of \pdfTeX            \stopbuffer
\startbuffer[text-14] full support\\for non-\\latin scripts         \stopbuffer

\startbuffer[text-15] lua\TeX                                       \stopbuffer

\startbuffer[text-16] characters,\\tokens, nodes\\and more          \stopbuffer
\startbuffer[text-17] files\\under your\\full control               \stopbuffer

\startbuffer[text-18] lua\TeX                                       \stopbuffer

\startbuffer[text-19] reading from\\zip files\\made easy            \stopbuffer
\startbuffer[text-20] convenient\\attribute\\management             \stopbuffer
\startbuffer[text-21] Metapost\\graphics engine\\built in           \stopbuffer

\startbuffer[text-22] lua\TeX                                       \stopbuffer

\startbuffer[text-23] full\\unicode\\support                        \stopbuffer
\startbuffer[text-24] text and\\database\\publishing                \stopbuffer

\startbuffer[text-25] lua\TeX                                       \stopbuffer

\startbuffer[text-26] superior\\rendering of\\complex scripts       \stopbuffer
\startbuffer[text-27] of course\\web 2.0\\ready                     \stopbuffer
\startbuffer[text-28] bringing\\\TeX\ into the\\21\high{st} century \stopbuffer

\startbuffer[text-29] lua\TeX                                       \stopbuffer

\startbuffer[text-30] complex\\hyphenation\\support                 \stopbuffer
\startbuffer[text-31] backward\\compatibility\\guaranteed           \stopbuffer

\startbuffer[text-32] lua\TeX                                       \stopbuffer

\startbuffer[text-33] supported\\by\\oriental \TeX                  \stopbuffer
\startbuffer[text-34] Taco Hoekwater\\Hans Hagen\\Hartmut Henkel    \stopbuffer
\startbuffer[text-35] first public\\beta at\\TUG 2007               \stopbuffer

\startbuffer[text-36] lua\TeX                                       \stopbuffer
\startbuffer[text-37] lua\TeX                                       \stopbuffer
\startbuffer[text-38] lua\TeX                                       \stopbuffer
\startbuffer[text-39] lua\TeX                                       \stopbuffer

\starttext

\startsetups odd
   \hbox to \hsize
     {\hss
      \framed[frame=off,offset=overlay,background=text]{\phantom{\externalfigure[luatex]}}
      \externalfigure[luatex]
      \framed[frame=off,offset=overlay,background=text]{\phantom{\externalfigure[luatex]}}
      \externalfigure[luatex]
      \framed[frame=off,offset=overlay,background=text]{\phantom{\externalfigure[luatex]}}
      \externalfigure[luatex]
      \framed[frame=off,offset=overlay,background=text]{\phantom{\externalfigure[luatex]}}
      \hss}
\stopsetups

\startsetups even
    \hbox to \hsize
     {\hss
      \externalfigure[luatex]
      \framed[frame=off,offset=overlay,background=text]{\phantom{\externalfigure[luatex]}}
      \externalfigure[luatex]
      \framed[frame=off,offset=overlay,background=text]{\phantom{\externalfigure[luatex]}}
      \externalfigure[luatex]
      \framed[frame=off,offset=overlay,background=text]{\phantom{\externalfigure[luatex]}}
      \externalfigure[luatex]
      \hss}
\stopsetups

\startstandardmakeup

    \setlayer[page]
       {\vbox to \vsize
          {\vss
           \setups{odd}
           \setups{even}
           \setups{odd}
           \setups{even}
           \setups{odd}
           \setups{even}
           \setups{odd}
           \setups{even}
           \setups{odd}
           \setups{even}
           \setups{odd}
           \vss}%
        }

    \flushlayer[page]

\stopstandardmakeup

\stoptext
