From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23764 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: How is it possible to include DraTex code in Context ? Date: Fri, 25 Nov 2005 15:12:02 +0100 Message-ID: <43871BB2.80801@wxs.nl> References: <43869931.4050405@uqam.ca> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060004050306060002060707" X-Trace: sea.gmane.org 1132928102 31296 80.91.229.2 (25 Nov 2005 14:15:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2005 14:15:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 25 15:15:00 2005 Return-path: 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 1EfeLH-0001nK-E1 for gctc-ntg-context-518@m.gmane.org; Fri, 25 Nov 2005 15:14:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2FA1912832; Fri, 25 Nov 2005 15:14:23 +0100 (CET) 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 05063-01; Fri, 25 Nov 2005 15:14:22 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0991F12875; Fri, 25 Nov 2005 15:12:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DE46D12875 for ; Fri, 25 Nov 2005 15:12:02 +0100 (CET) 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 04937-08-2 for ; Fri, 25 Nov 2005 15:12:02 +0100 (CET) Original-Received: from controller-1 (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with ESMTP id E1F7A12867 for ; Fri, 25 Nov 2005 15:12:01 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 4892 for ; Fri, 25 Nov 2005 15:16:33 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <43869931.4050405@uqam.ca> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:23764 Archived-At: This is a multi-part message in MIME format. --------------060004050306060002060707 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Fabrice Larribe wrote: > Hi, > > I'm presently doing my first steps with Context, which seems > absolutly wonderfull... so thanks to the developper(s). > In the past, I was using plain tex with a macro package called > DraTex to draw all sorts of things; so I have a "library" of figures > which I would like to resuse in Context. I have seen no specific > reference in the Context manual(s) about the compatibility of Context > with others plain tex packages. When I do: "\input DraTex.sty \input > AlDraTex.sty" I have the message "No room for a new \dimen"... If I > load only the first package (DraTex), this works, but for advances > things, I need AlDraTex. So the question: how is it possible to > include DraTex code in Context ? > you may try the attachec module - move the file to context/base - run mktexlsr - in the document say: \usemodule[dratex] the two line hack in teh file is needed to bypass dratex's dimension allocation stuff no guarantees Hans --------------060004050306060002060707 Content-Type: application/x-tex; name="m-dratex.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="m-dratex.tex" %D \module %D [ file=m-dratex, %D version=2005.11.25, %D title=\CONTEXT\ Extra Modules, %D subtitle=\DRATEX\ Loading Macros, %D author=Hans Hagen, %D date=\currentdate, %D copyright=PRAGMA-ADE] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details \readfile{DraTex.sty}{}{\readfile{dratex.sty}{}{\endinput}} \letvalue{:NewCount}\newcount \letvalue{:NewDimen}\newdimen \readfile{AlDraTex.sty}{}{\readfile{aldratex.sty}{}{\endinput}} \endinput --------------060004050306060002060707 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------060004050306060002060707--