Hello together,

I use this as a natural table

\def\esl[#1][#2][#3][#4][#5][#6][#7]{%
\page
\startframed[frame=off,width=fit,offset=overlay,align=middle,background=eslami]%
  \bTABLE[width=4.55cm,align={middle,lohi}]
    \bTR\bTD[height=2cm] ~\blank[-3.4mm]#1 \eTD\eTR
    \bTR\bTD[height=3cm] #2\\#3\\#4\\#5\\#6 \eTD\eTR
    \bTR\bTD[height=2.4cm] #7 \eTD\eTR
  \eTABLE
\stopframed}

Now it can happen, that the text of #7 is too long for the third cell, which is 4.55cm x 2.4cm. Is it possible to automatically adjust the fonz size (of this text in this sepcific cell only), s.t. it fits in the cell?

For testing:
%***********************************************************
\defineoverlay[eslami][{\externalfigure[eslamivorlage.pdf]}]
\def\esl[#1][#2][#3][#4][#5][#6][#7]{%
\page
\startframed[frame=off,width=fit,offset=overlay,align=middle]%
  \bTABLE[width=4.55cm,align={middle,lohi}]
    \bTR\bTD[height=2cm] ~\blank[-3.4mm]#1 \eTD\eTR
    \bTR\bTD[height=3cm] #2\\#3\\#4\\#5\\#6 \eTD\eTR
    \bTR\bTD[height=2.4cm] #7 \eTD\eTR
  \eTABLE
\stopframed}
\setuppagenumbering[location=]
\definepapersize[sheet][width=45.5mm,height=74mm]
\definepapersize[bigsheet][width=\dimexpr\paperwidth+2mm\relax,height=\dimexpr\paperheight+2mm\relax]
\setuplayout
  [location=middle,
   topspace=0mm,
   header=0mm,
   footer=0mm,
   bottomspace=0mm,
   width=middle,
   cutspace=0mm,
   backspace=0mm, %BCOR 5mm inkl.
   height=fit,
   grid=no]
\setuppapersize[sheet][bigsheet]
\setupbackgrounds[page][frame=off,frameoffset=0mm]
\starttext
\esl[Begriff][VB 1][VB 2][VB 3][VB 4][VB 5][Too small, too small, too small, too small, too small, too small, too small, too small. What to do?]
\stoptext
%***********************************************************

Thanks!
Huseyin

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

maillist : ntg-context@ntg.nl / 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