2

guys is there any way to setup a tabular environment in ConteXt. What i need is the equivalent of \AtBeginEnvironment{tabular} (latex command) but in ConTeXt. The goal is to use opentype features like tabular, proportional numbers only in tables. More info here: tabular numbers in tables, proportional in text

jl4c
  • 335

1 Answers1

4

Here is a complete example showing how to having old style numbers in the running text and proportional numbers in tables:

\definefontfeature[default][default][onum=yes]
\definefontfeature[lnum][onum=no, lnum=yes]

\setupbodyfont[modern]

\starttext
12345

\startTABLE[style=\addff{lnum}]
  \NC 12345 \NC 67890 \NC \NR
\stopTABLE

\stoptext

enter image description here

Aditya
  • 62,301