[NTG-context] TABLE setups

Henri Menke henrimenke at gmail.com
Sat Jul 28 03:35:56 CEST 2018


On 07/28/2018 07:38 AM, Henning Hraban Ramm wrote:
> Ahoi,
> 
> I need a few different table styles and don’t think it makes sense to setup them every single time.
> 
> Is there a \defineTABLE[mystyle], and then \setupTABLE[mystyle][...] ?
> 
> Or can I go via setups like \bTABLE[setups=mystyle] ?

\startsetups mystyle
  \setupTABLE[frame=off]
  \setupTABLE[row][first][topframe=on,bottomframe=on,style=bold]
  \setupTABLE[row][last] [bottomframe=on]
\stopsetups
\starttext

\bTABLE[setups=mystyle]
  \bTR
    \bTD Hello \eTD \bTD Hraban \eTD
  \eTR
  \bTR
    \bTD Hello \eTD \bTD Hraban \eTD
  \eTR
  \bTR
    \bTD Hello \eTD \bTD Hraban \eTD
  \eTR
  \bTR
    \bTD Hello \eTD \bTD Hraban \eTD
  \eTR
\eTABLE

\stoptext

> 
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 



More information about the ntg-context mailing list