% Context file
% filename: test.tex
% 24-07-2025
% W. Egger

\setuplayout
  [topspace=12mm,
	 header=0pt,
	 footer=0pt]
	 
\startbuffer[Tablehead]
  \bTR
   \bTD Calculation \eTD\bTD Start number \eTD\bTD Actions \eTD\bTD Result \eTD\bTD Because: \eTD
  \eTR
\stopbuffer

\starttext
\startbuffer[Table]
\startplacetable
  [location=middle,
	 reference=tab:4plus1,
   title=]
  \bTABLE[setups=Calcplus]
    \setupTABLE[frame=off]
    \setupTABLE[c][1][alignmentcharacter={+},aligncharacter=yes]
    \setupTABLE[c][3][alignmentcharacter={-},aligncharacter=yes]
    \setupTABLE[c][5][alignmentcharacter={=},aligncharacter=yes]
    \setupTABLE[c][2,4][align=flushright]
    \getbuffer[Tablehead]
    \bTR
      \bTD 4 + 1 \eTD\bTD 4 \eTD\bTD + 5 - 4 \eTD\bTD 5 \eTD\bTD 4 + 5 - 4 = 5 \eTD
    \eTR
    \bTR
      \bTD 4 + 2 \eTD\bTD 4 \eTD\bTD + 5 - 3 \eTD\bTD 6 \eTD\bTD 4 + 5 - 3 = 6 \eTD
    \eTR
    \bTR
      \bTD 4 + 3 \eTD\bTD 4 \eTD\bTD + 5 - 2 \eTD\bTD 7 \eTD\bTD 4 + 5 - 2 = 7 \eTD
    \eTR
    \bTR
      \bTD 4 + 4 \eTD\bTD 4 \eTD\bTD + 5 - 1 \eTD\bTD 5 \eTD\bTD 4 + 5 - 1 = 8 \eTD
    \eTR
  \eTABLE
\stopplacetable
\stopbuffer



\blank

\typebuffer[Tablehead]

\blank

\typebuffer[Table]

\blank

\getbuffer[Table]
\stoptext

