From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42662 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: How to read sources? (was:) Footnotes Date: Mon, 21 Jul 2008 12:59:18 -0400 (EDT) Message-ID: References: <000001c8ea3d$e81ae340$b850a9c0$@de> <09F122A4-CDB1-4045-9741-F7476C03C30B@jpberlin.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216659946 20069 80.91.229.12 (21 Jul 2008 17:05:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2008 17:05:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 21 19:06:35 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KKyq6-0003Qo-1k for gctc-ntg-context-518@m.gmane.org; Mon, 21 Jul 2008 19:06:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0A98C1FC44; Mon, 21 Jul 2008 19:05:27 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03388-02-51; Mon, 21 Jul 2008 19:04:46 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 65B691FD47; Mon, 21 Jul 2008 19:01:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4DDDF1FD30 for ; Mon, 21 Jul 2008 19:01:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05322-01-37 for ; Mon, 21 Jul 2008 19:01:02 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with ESMTP id CD0E71FDF8 for ; Mon, 21 Jul 2008 18:55:20 +0200 (CEST) Original-Received: FROM adi-laptop.local (c-68-40-40-75.hsd1.mi.comcast.net [68.40.40.75]) BY tombraider.mr.itd.umich.edu ID 4884BF74.67CAE.25961 ; 21 Jul 2008 12:55:16 -0400 In-Reply-To: <09F122A4-CDB1-4045-9741-F7476C03C30B@jpberlin.de> User-Agent: Alpine 1.00 (DEB 882 2007-12-20) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42662 Archived-At: On Mon, 21 Jul 2008, Joachim Kreimer-de Fries wrote: > Goden Dag, > although my primary field of ConTeXt questions is marginal notes, I use to > read the "footnote" threads on NTG-context with curiousness as well . > > Am 20.07.2008 um 19:50 schrieb Aditya Mahajan: >> When the manual is inadequate, I look at the sources. > > => Which sorces, wich directory and kind of files are meant, if one says > "look at the source", where do I find them? (On my TeX-life distribution on > Mac OSX 10.4x Tiger with actualized ConTeXt I didn't find the later mentioned > "core-not.tex") I do not know how the file explorer in Mac works. And I do not know where a typical installation installs context in Mac. Suppose it is installed in /usr/local/texlive/2007. The all the context files will be in /usr/local/texlive/2007/texmf-dist/tex/context/base Basically, INSTALL-LOCATION/texmf or INTSTALL-LOCATION/texmf-dist or INSTALL-LOCATION/texmf-context and then tex/context/base directory inside it. >> Once you figure out how to scan them for information, > > => Could one comunicate "how to scan them for infomation" or must that stay a > secret? The basic idea is to first understand how a particular command is defined. Here is what I do: go to tex/context/base directory and search (by any means, I use grep, but you can as well use any program that allows you to search inside files) for the command you are looking for: in this case footnote. You may either get a huge number of results, or a few results. If you get a few results, check them manually, to see which file defines a command. A command is usually defined as \def\commandname or (rarely) \edef\commandname \xdef\commandname \gdef\commandname or (more frequently) \define[\v!commandname] here can be any text. If your search gives a lot of results, you need to use a regular expression to filter it to one of the above. I don't know if Finder in Mac allows for regular expressions. >> they are easy to understand. > [I repeat: "easy to understand"!] I know what you mean here :) >> In this case, core-not.tex says that the options of \setupfootnotes are >> >> [\c!location=\v!page, >> \c!way=\v!by\v!part, >> \c!sectionnumber=\v!no, >> \c!conversion=, >> \c!rule=\v!on, > [etc. and so on...] > > Nothing of this and the following code lines I can understand, so it is not > "easy" - albeit that one knows the syntax and meanings of these commands. As far as syntax goes, just ignore those funny \c! \v! thingies. Then you can read them as [location=page, way=bypart, sectionnumber=no, conversion=, rule=on, [etc..] These mean, that i) Footnotes should be located per page. ii) They should be numbered per part. That is, if you start a new part, footnote numbering restarts. iii) I don't know what sectionnumber does, so I ignore it. iv) The number should not be converted to anything. You can convert them to characters, Characters, romannumerals, Romannumberals, etc. v) The footnotes should be proceeded by a rule, etc. You see, most of the keys for all environments take command key-value options. If they are explained in the manual, then great; if they are not, start guessing what they mean, and experiment if you get the right result. Try three times, and if you don't get hit the right answer, ask on the mailing list. Hopefully, someone will reply. Then you know, what a particular option does for *all environments*. If you don't get an answer, well... then ask what you want to achieve, and hopefully someone will tell you if it is possible or not. > => Where can I find an explanation of this, not to write this kind of code > myself but to understand off it, which kind of commands I can use with > footnotes (in this case)? I explained above how I started to understand these things. I am sure that other people have different approaches. I do not understand how TeX works, but reading ConTeXt sources are much easier than reading latex sources. I started with LaTeX, and in LaTeX I could never manage to understand 80% of the what was written in the sources. In ConTeXt, I can understand 50-60%, that is what I meant my "easy". Aditya ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________