\starttext
% Hoja legal horizontal
\definepapersize[LH][legal,landscape][legal,landscape]
\setuppapersize[LH]
%
\setuplayout
  [backspace=0.8cm,
   topspace=1.6cm,
   bottomspace=0cm,
   leftmargin=0cm,
   rightmargin=0cm,
   bottomspace=0cm,
   header=0cm,
   footer=0.5cm,
%  paperwidth=34.7cm
%  width=33.9cm,
%  height=39.2cm
   ]

\usetypescript[heros]
\setupbodyfont[heros,8pt]
\testpage[15]
% Calculamos el tamaño de la columna matriz. \textwidth tiene el ancho de la
% linea en puntos (en la documentación indica que es el ancho del contexto en el
% que se encuentra). Dividimos entre el total de columnas menos las columnas que
% son llamadas y las que son separadoras de columna
\definemeasure[tam][1.5\dimexpr (\textwidth/39)\relax]

\setupTABLE[column][1][width=1.5\dimexpr (\textwidth/39)]
\setupTABLE[header][each][background=color,backgroundcolor=white, width=broad]
\setupTABLE[r][odd][background=color,backgroundcolor=gray]
\setupTABLE[r][even][background=color,backgroundcolor=white]

\bTABLE[split=repeat,option={stretch},  align={flushright}, frame=off]
  \bTABLEhead[align=flushright]
    \bTR
       \bTH [offset=none, align={flushleft}, nc=39]
       {
         \bTABLE[option=tight, align={flushright}, frame=off]
           \bTR
             \bTD[ align={flushleft}, width=.8\textwidth ]
               Sucursales de la banca múltiple por demarcación territorial según institución
             \eTD
             \bTD[ align={flushright}, width=.2\textwidth ]
               Cuadro 23.1
             \eTD
           \eTR
         \eTABLE
       }
       \eTH
    \eTR
    \bTR[strut=no]
       \bTH[align={flushleft}, nc=39]
         Al 31 de diciembre de 2017       \eTH
    \eTR

% **** Linea horizontal de encabezados ***
    \bTR[strut=no]
       \bTH[rulethickness=2pt,topframe=on, nc=39] \eTH
    \eTR
    \bTR[strut=no]
      \bTD[align={flushleft,lohi}, nr=1] 
              {
                \bTABLE[option={stretch},offset=0pt, frame=off]
                  \bTR
                      \bTD[loffset= 0ex]
                          Demarcación territorial
                      \eTD
                  \eTR
                \eTABLE % fin de tabla interna en columna matriz
              }
       \eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
       \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
%      \bTD[ width=broad, nr=1 ] banco 1\eTD  
    \eTR 

  \eTABLEhead
\eTABLE
\stoptext
