Am 31.01.10 16:50, schrieb Design Department:

Is the content for each element short enough to fit on one page
or do you have content which needs more pages?

The content always fits on a single page.

Here is a goodie which is only documented in the ConTeXt source.

\setupheadertexts[the header text]
\setupfootertexts[a pretty long left footer text][something right]
\setupbottomtexts[a not so long bottom text][another right thing]
\setuptexttexts  [margin][something marginal][indeed]

\startpagelayout[leftpage]
  \setupTABLE[offset=overlay]
  \setupTABLE[c][1][width=\leftmarginwidth]
  \bTABLE
    \bTR
      \bTD[nx=3,background=color,backgroundcolor=green]
        \pagearea[header][text][middle]
      \eTD
    \eTR
    \bTR
      \bTD \pagearea[text][margin][left] \eTD
      \bTD[nx=2] \pagearea[text] \eTD
    \eTR
    \bTR
      \bTD[nx=3,offset=overlay]
        {\bTABLE[width=.5\hsize]
           \bTR
             \bTD \pagearea[footer][text][left] \eTD
             \bTD \pagearea[bottom][text][left] \eTD
           \eTR
         \eTABLE}
       \eTD
    \eTR
  \eTABLE
\stoppagelayout

\startpagelayout[rightpage]
  \setupTABLE[offset=overlay]
  \setupTABLE[c][1][width=\rightmarginwidth]
  \bTABLE
    \bTR
      \bTD[nx=3] \pagearea[header][text][middle] \eTD
    \eTR
    \bTR
      \bTD \pagearea[text][margin][left] \eTD
      \bTD[nx=2] \pagearea[text] \eTD
    \eTR
    \bTR
      \bTD[nx=3,offset=overlay]
        {\bTABLE[width=.5\hsize]
           \bTR
             \bTD \pagearea[bottom][text][right] \eTD
             \bTD \pagearea[footer][text][right] \eTD
           \eTR
         \eTABLE}
      \eTD
    \eTR
  \eTABLE
\stoppagelayout

\setupcolors[state=start]

\setupbackgrounds[text][background=color,backgroundcolor=blue]
\setupbackgrounds[header][text][background=color,backgroundcolor=red]

\setuppagenumbering[alternative=doublesided,location=]

\setuplayout[method=makeup]

\definetextbackground
  [test]
  [state=start,
   background=color,
   backgroundcolor=yellow]

\starttext

\dorecurse{10}{\input tufte \par}

\input tufte \starttest \input tufte \stoptest \input tufte

\starttabulate
\NC test \NC \starttest \input tufte  \stoptest \NC \NR
\stoptabulate

\dorecurse{10}{\input tufte \par}

\stoptext

Regards,
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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