ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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

* Re: Command line tool for macro definitions
  2018-01-14  0:56 Henri
@ 2018-01-14 11:42 ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2018-01-14 11:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henri

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
@ 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

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 --
2016-07-21  9:13 Command line tool for macro definitions Henri Menke
2018-01-14  0:56 Henri
2018-01-14 11:42 ` Hans Hagen

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).