From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18314 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: What's (in) a module? Date: Tue, 15 Feb 2005 17:32:44 +0100 Message-ID: <4212242C.2090709@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1108485039 12532 80.91.229.2 (15 Feb 2005 16:30:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2005 16:30:39 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 15 17:30:38 2005 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1D15aW-0007Gc-Vx for gctc-ntg-context-518@m.gmane.org; Tue, 15 Feb 2005 17:30:13 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 37844127EE; Tue, 15 Feb 2005 17:32:43 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29666-05; Tue, 15 Feb 2005 17:32:41 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E9164127B5; Tue, 15 Feb 2005 17:32:40 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 13F74127B5 for ; Tue, 15 Feb 2005 17:32:40 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29563-08 for ; Tue, 15 Feb 2005 17:32:39 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 4E48412799 for ; Tue, 15 Feb 2005 17:32:39 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j1FGWZAd016526 for ; Tue, 15 Feb 2005 17:32:35 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id E65B71A21A; Tue, 15 Feb 2005 17:21:40 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 7439A18252 for ; Tue, 15 Feb 2005 16:21:39 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: ClamAV 0.80/705/Fri Feb 11 17:51:32 2005 clamav-milter version 0.80j on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: main.gmane.org gmane.comp.tex.context:18314 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18314 Thomas A.Schmitz wrote: > 1. What constitutes a module? I wrote a couple of definitions and put > them in a file t-foo.tex. When I write "\input t-foo" in the preamble of > my document, everything works fine (so the file is found by TeX). When I > say \usemodule[t-foo] or \usemodule[foo], I get "system : no > macros found in module foo" and, obviously, "undefined control > sequence." So: is there any special form for a module? I'm very curious > because I defined a set of similar macros in another module, and > everything works fine. did you run mktexlsr? > 2. Is it possible to use a certain encoding file, enco-bar.tex, for > parts of a file only? Could one define a macro (in a module???) that > would do something like \switchtoencoding[bar] and switch back to the > file's default encoding afterwards? you're talking about font encodings? \definetypeface [PalatinoA] [rm] [serif] [palatino] [default] [encoding=texnansi] \definetypeface [PalatinoB] [rm] [serif] [palatino] [default] [encoding=ec] works ok; typefaces live in their own namespace if you're talking about input encoding, you can switch regimes whenever you want Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------