Dear list,
For TeX/LaTeX users there is the neat command line tool `texdef` with which you can show the definition of a macro. Here an example:
$ texdef -t latex section
\section: \long macro:->@startsection {section}{1}{\z@ }{-3.5ex @plus -1ex @minus -.2ex}{2.3ex @plus .2ex}{\normalfont \Large \bfseries }
Is there something similar for ConTeXt? It is quite tedious to either grep the full source or setup an extra dummy document to use \show or \meaning.
Cheers, Henri
N.B.: I already asked this long time ago but got no response. https://mailman.ntg.nl/pipermail/ntg-context/2016/086249.html
On 1/14/2018 1:56 AM, Henri wrote:
Dear list,
For TeX/LaTeX users there is the neat command line tool `texdef` with which you can show the definition of a macro. Here an example:
$ texdef -t latex section
\section: \long macro:->@startsection {section}{1}{\z@ }{-3.5ex @plus -1ex @minus -.2ex}{2.3ex @plus .2ex}{\normalfont \Large \bfseries }
Is there something similar for ConTeXt? It is quite tedious to either grep the full source or setup an extra dummy document to use \show or \meaning.
i must admit that i never use \show for that ... anyhow, i'll provide
context --extra=meaning --once --pattern=*paper* context --extra=meaning --once setuplayout context --extra=meaning --once setup_layout
in the next beta
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------