\startcomponent correspondence-letter-header

\environment correspondence-environment

\startbuffer[firsthead]
\switchtobodyfont[6pt]
\setlettervalue[fromname]   {Max Mustermann}
\setlettervalue[fromaddress]{Musterweg 12\\12345 Musterstadt}
\setlettervalue[fromphone]  {1234/567890}
\setlettervalue[fromfax]    {1234/567891}
\setlettervalue[fromemail]  {max.mustermann@muster.com}
\setlettervalue[fromurl]    {max.mustermann.com}
\stopbuffer

\chapter{Header and Footer}

\section{Header}

\placefigure
  [fixed]
  {none}
  {\setupcombinations[before=]
   \startcombination[3*3]
     {\startsmallelement
      \getbuffer[firsthead]
      \setupletterstyle[head][fromrule=no]
      \letterelement[head][left]
      \stopsmallelement}
     {\starttable[s1|r|c|l|]
      \NC alternative \NC = \NC left   \NC\AR
      \NC fromrule    \NC = \NC no     \NC\AR
      \stoptable}
     {\startsmallelement
      \getbuffer[firsthead]
      \setupletterstyle[head][fromrule=no]
      \letterelement[head][middle]
      \stopsmallelement}
     {\starttable[s1|r|c|l|]
      \NC alternative \NC = \NC middle \NC\AR
      \NC fromrule    \NC = \NC no     \NC\AR
      \stoptable}
     {\startsmallelement
      \getbuffer[firsthead]
      \setupletterstyle[head][fromrule=no]
      \letterelement[head][right]
      \stopsmallelement}
     {\starttable[s1|r|c|l|]
      \NC alternative \NC = \NC right  \NC\AR
      \NC fromrule    \NC = \NC no     \NC\AR
      \stoptable}
     {\startsmallelement
      \getbuffer[firsthead]
      \setupletterstyle[head][fromrule=top]
      \letterelement[head][left]
      \stopsmallelement}
     {\starttable[s1|r|c|l|]
      \NC alternative \NC = \NC left   \NC\AR
      \NC fromrule    \NC = \NC top    \NC\AR
      \stoptable}
     {\startsmallelement
      \getbuffer[firsthead]
      \setupletterstyle[head][fromrule=top]
      \letterelement[head][middle]
      \stopsmallelement}
     {\starttable[s1|r|c|l|]
      \NC alternative \NC = \NC middle \NC\AR
      \NC fromrule    \NC = \NC top    \NC\AR
      \stoptable}
     {\startsmallelement
      \getbuffer[firsthead]
      \setupletterstyle[head][fromrule=top]
      \letterelement[head][right]
      \stopsmallelement}
     {\starttable[s1|r|c|l|]
      \NC alternative \NC = \NC right  \NC\AR
      \NC fromrule    \NC = \NC top    \NC\AR
      \stoptable}
     {\startsmallelement
      \getbuffer[firsthead]
      \setupletterstyle[head][fromrule=bottom]
      \letterelement[head][left]
      \stopsmallelement}
     {\starttable[s1|r|c|l|]
      \NC alternative \NC = \NC left   \NC\AR
      \NC fromrule    \NC = \NC bottom \NC\AR
      \stoptable}
     {\startsmallelement
      \getbuffer[firsthead]
      \setupletterstyle[head][fromrule=bottom]
      \letterelement[head][middle]
      \stopsmallelement}
     {\starttable[s1|r|c|l|]
      \NC alternative \NC = \NC middle \NC\AR
      \NC fromrule    \NC = \NC bottom \NC\AR
      \stoptable}
     {\startsmallelement
      \getbuffer[firsthead]
      \setupletterstyle[head][fromrule=bottom]
      \letterelement[head][right]
      \stopsmallelement}
     {\starttable[s1|r|c|l|]
      \NC alternative \NC = \NC right  \NC\AR
      \NC fromrule    \NC = \NC bottom \NC\AR
      \stoptable}
   \stopcombination}

\stopcomponent
