ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Henri <henrimenke@gmail.com>
Subject: Re: Command line tool for macro definitions
Date: Sun, 14 Jan 2018 12:42:33 +0100	[thread overview]
Message-ID: <ef373165-788a-2482-25fe-a119fd83d8aa@wxs.nl> (raw)
In-Reply-To: <1515891393.13359.11.camel@gmail.com>

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
___________________________________________________________________________________

  reply	other threads:[~2018-01-14 11:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-14  0:56 Henri
2018-01-14 11:42 ` Hans Hagen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-07-21  9:13 Henri Menke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ef373165-788a-2482-25fe-a119fd83d8aa@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=henrimenke@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).