[NTG-context] Questions for eTABLE

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Mon Feb 22 20:09:36 CET 2021


Alain Delmotte schrieb am 22.02.2021 um 19:58:
>
> Hi!
>
> I have the following program:
>
> ------------------------
>
> \definecolor [tableheader] [x=00ADEF]
>
> \setupbodyfont[dejavu,10pt,ss]
>
> % setups and example thanks to Wolfgang Schuster
>
> \startsetups[tablesettings]
>
> \setupTABLE[start][framecolor=gray,loffset=.5ex,roffset=.5ex]
>
> \setupTABLE[row][first][background=color,backgroundcolor=tableheader,foregroundcolor=white]
>
> \setupTABLE[first][first][corner=08]
>
> \setupTABLE[last][first][corner=05]
>
> \setupTABLE[first][last][corner=07]
>
> \setupTABLE[last][last][corner=06]
>
> \stopsetups
>
> \starttext
>
> {\bf Singular}
>
> \setupTABLE[c][1,2,3][width=5cm]
>
> \placetable[none][]{}{
>
> \bTABLE[setups=tablesettings]
>
> \bTR \bTH Pronoun \eTH \bTH Particle \eTH \bTH Noun \eTH \eTR
>
> \bTR \bTH Mimi/Wewe/Yeye \eTH \bTH ni \eTH \bTH Mtanzania/Mmarekani 
> /Mkenya \eTH \eTR
>
> \bTR \bTH {\sl I/You/He or She} \eTH \bTH {\sl am/are/is} \eTH \bTH 
> {\sl (a/an) Tanzanian/American/Kenyan} \eTH \eTR
>
> \bTR \bTH Mimi/Wewe/Yeye \eTH \bTH si\eTH \bTH Mtanzania/Mmarekani 
> /Mkenya \eTH \eTR
>
> \bTR \bTH {\sl I/You/He or She} \eTH \bTH {\sl am/are/is not} \eTH 
> \bTH {\sl (a/an) Tanzanian/American /Kenyan} \eTH \eTR
>
> \eTABLE
>
> }
>
> \input zapf
>
> \stoptext
>
> ------------------------
>
> I do not understand why the lines in Swahilli are in bold?
>

Use \bTD ... \eTD for the cells. The \bTH ... \eTH pair is for header 
lines and changes the style to bold.

> If for the table I use \setupTABLE[c]1,2,3][width= 5cm, align=left] 
> the texts are aligned to the right, if I say align=right they are to 
> the left. OK to have left alignment the align instruction is not 
> necessary, but for right?

https://wiki.contextgarden.net/Right_and_left

Wolfgang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210222/f0384d3e/attachment.htm>


More information about the ntg-context mailing list