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

  • More than one: Table environment. In my opinion, the easiest to use is Natural Tables. – Aditya Jun 23 '16 at 15:16
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

  • Thanks Aditya, but what if i use \starttabulate instead \startTABLE? – jl4c Aug 27 '16 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.