ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Command line tool for macro definitions
@ 2018-01-14  0:56 Henri
  2018-01-14 11:42 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Henri @ 2018-01-14  0:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Command line tool for macro definitions
@ 2016-07-21  9:13 Henri Menke
  0 siblings, 0 replies; 3+ messages in thread
From: Henri Menke @ 2016-07-21  9:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-14 11:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-14  0:56 Command line tool for macro definitions Henri
2018-01-14 11:42 ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2016-07-21  9:13 Henri Menke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).