From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45143 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Load context format at runtime (from luatex) Date: Mon, 27 Oct 2008 19:55:49 +0100 Message-ID: <49060EB5.6070108@wxs.nl> References: <20081027165428.7177e505@kylae> 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 1225134084 977 80.91.229.12 (27 Oct 2008 19:01:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2008 19:01:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 27 20:02:24 2008 connect(): Connection refused 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 1KuXM5-0006pW-P7 for gctc-ntg-context-518@m.gmane.org; Mon, 27 Oct 2008 20:02:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 347391FC09; Mon, 27 Oct 2008 20:01:13 +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 07440-02-2; Mon, 27 Oct 2008 20:00:32 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FB9A1FC90; Mon, 27 Oct 2008 20:00:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8AFA21FC87 for ; Mon, 27 Oct 2008 20:00:30 +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 07440-02 for ; Mon, 27 Oct 2008 19:59:49 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 1E9581FC91 for ; Mon, 27 Oct 2008 19:55:48 +0100 (CET) Original-Received: from [10.100.1.112] (unverified [10.100.1.11]) by controller-1 (SurgeMail 3.9e) with ESMTP id 4758-1840426 for ; Mon, 27 Oct 2008 19:55:47 +0100 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: <20081027165428.7177e505@kylae> X-Originating-IP: 10.100.1.11 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.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:45143 Archived-At: Mildred Ki'Lya wrote: > Hi, > > I would like to run (if possible) the context format at runtime. In > fact, I'd like to create a custom format for my own document and I want > my format to inherit ConTeXt (mostly because of utf-8 support). > > At the beginning of my document, I added: > > \input format > > And at the beginning of format.tex, I added: > > \input context > > But now, when I execute the document using (pdf)luatex, I get an error > in some lua chunk: you cannot use context this way (at least not currently) > pdfluatex document.tex > This is LuaTeX, Version snapshot-0.25.4-2008091110 (Web2C 7.5.7) > (document.tex (format.tex (/usr/share/texmf-dist/tex/context/base/context.tex > (/usr/share/texmf-dist/tex/context/base/syst-pln.tex) > (/usr/share/texmf-dist/tex/context/base/syst-prm.tex) > (/usr/share/texmf-dist/tex/context/base/luat-env.tex > ! LuaTeX error [string "luas[0]"]:1: attempt to call field 'luafilechunk' (a ni > l value). > \ctxluabyteload ...nvironment.luafilechunk("#1") } > > \ ...fproductionrun \else \ctxluabyteload {#1}{#2} > \fi \global \everyloadluac... > l.168 \registerctxluafile{luat-env}{1.001} > > ? when making the format, we also make a lua stub file (with code that implements file handling etc) > Do you know how I can create my format based on ConTeXt? It doesn't i have no clue what you mean with 'my own format based on context' what you can do is copy cont-en.tex to cont-my.tex and load additional stuff before dumping (as long as you don't preload fonts in mkiv since they are not stored in the format) > seems that easy :/ And I would prefer not to be dependant from ConTeXt > (that is if I want to use another format for my document instead of > ConTeXt, I want to be able to do that). And I also would prefer using > the generic (pdf)luatex instead of context. then you have to roll out your own code, (i.e why bother about context if you want to use your own code) at some time in the future i will provide a system based on independent components, so that one can make a 'small context like thing' but it has a real low priority (unless someone pays for the effort) 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________