From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78334 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: Ctx: list of commands Date: Mon, 17 Sep 2012 16:20:44 +0200 Message-ID: References: <20120917155651.143d970a@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347891683 22671 80.91.229.3 (17 Sep 2012 14:21:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2012 14:21:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 17 16:21:26 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TDcCT-0004rS-M8 for gctc-ntg-context-518@m.gmane.org; Mon, 17 Sep 2012 16:21:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 588EB1020D; Mon, 17 Sep 2012 16:21:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jD6n3l5zKHQ7; Mon, 17 Sep 2012 16:21:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 23B0A101F2; Mon, 17 Sep 2012 16:21:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56352101F2 for ; Mon, 17 Sep 2012 16:21:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KKPSmVXkHfYM for ; Mon, 17 Sep 2012 16:21:12 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 714C0101E0 for ; Mon, 17 Sep 2012 16:21:12 +0200 (CEST) Original-Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8HEL5jB013044 for ; Mon, 17 Sep 2012 16:21:11 +0200 Original-Received: by ied10 with SMTP id 10so2273319ied.14 for ; Mon, 17 Sep 2012 07:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=zk7n/TEl8MCtdFV6UrGSC/KWBiU93IJ2UOKzDbDQSoE=; b=DGRlW1iQ0a2AaLngm265LI9EUwT8LjsvcL1YLBctJ2uB0Ga6Wjl82ujS1royyruAv8 K4E1Pf1WoD9WrZJheNPKQPGCz5z0Unx/9iXSUS15+TxJ19M0j9TGGwMhBsArbh5tu/qz tkTT26mWCg32z7ZqSevRGmzS07QMUAVbJb9m36RlyOPjs0uDcWxAuVs6ldMcv+PRqmoD FqcXSjws7KmDNaRqi2RghdGeOn+CBsIHk1XBp9iSU8gGSfjio8NghaKVm2j01pPFt6xq wyiUfrl5CAHM0NTgmQ/uBJQJ6PdLeUrX0T3HgtOweXu9BgGrT7paeSflQnxFQaZh48zF 0s5Q== Original-Received: by 10.42.33.133 with SMTP id i5mr8971274icd.55.1347891664454; Mon, 17 Sep 2012 07:21:04 -0700 (PDT) Original-Received: by 10.64.86.201 with HTTP; Mon, 17 Sep 2012 07:20:44 -0700 (PDT) In-Reply-To: <20120917155651.143d970a@homerow> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.223.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VI0el5au - 9430d3c05886 - 20120917 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78334 Archived-At: > During the last few months the wiki got plenty of new commands added > that you could use. The wiki's list of commands is nowhere near complete, alas. There are a few (not many) commands *documented* on there that are not documented elsewhere, but if it's *existence* of commands you want to know about, the wiki is not a good source, so don't bother. > But I don't think there's an interface to > retrieve information from the wiki in an automated fashion. The API is, in fact, enabled: http://wiki.contextgarden.net/api.php But that is more for automated editing than automated retrieval: there are simply not enough microformats/templates in use to make automated processing worthwhile. As for what I myself do when I want to know about the existence or implementation of commands: I grep the source. This is NOT the same as producing a list of all commands, of course; just something that is also very useful, and may often solve the problem. I've defined a command 'crep' that will automatically search the source files in the main ConTeXt directory, so if I need something figure- or footnote-related I'll type crep '\\def.*figure' or crep 'footnote', for example That will usually at least give me an idea on which file I should look at. Once inside the file, there are often documenation comments that start with %D. It's not ideal. But it helps. ## start crep command in my .bashrc and .zshrc function condir { cd /opt/context/tex/texmf-context/tex/context/base/ } # Easy grepping of ConTeXt functions function crep { condir; grep -R $* * } ## end crep command Cheers, Sietse ___________________________________________________________________________________ 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 ___________________________________________________________________________________