From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13328 Path: main.gmane.org!not-for-mail From: "Pawel Jackowski na Onet" Newsgroups: gmane.comp.tex.context Subject: Re: How to set paths -- wider view Date: Thu, 18 Sep 2003 12:18:26 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <000701c37dce$37f4a220$0500a8c0@best> References: <5.2.0.9.1.20030916230048.01b12a10@server-1> <5.2.0.9.1.20030917230033.01a17100@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1063880758 23194 80.91.224.253 (18 Sep 2003 10:25:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2003 10:25:58 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Sep 18 12:25:56 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19zvz2-000674-00 for ; Thu, 18 Sep 2003 12:25:56 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id B150710B3A; Thu, 18 Sep 2003 12:25:53 +0200 (MEST) Original-Received: from smtp3.poczta.onet.pl (smtp3.poczta.onet.pl [213.180.130.29]) by ref.ntg.nl (Postfix) with ESMTP id 7AB4810B27 for ; Thu, 18 Sep 2003 12:19:07 +0200 (MEST) Original-Received: from pa36.debniki.sdi.tpnet.pl ([213.77.147.36]:20484 "HELO best") by ps3.test.onet.pl with SMTP id ; Thu, 18 Sep 2003 12:18:23 +0200 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13328 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13328 Hi! > another option is to use: > > \usepath[list of paths] > \usesubpath[list of subpaths] > Thanks again! It works almost like --path option -- files included with \processXMLfile ARE included, but files included by \input (or \typefile) ARE NOT. Anyway I've solved the problem already. I described it below in case somebody have the same pain. I have to make a package for automatic conversion XML2PDF. I decide to use ConTeXt for it (neither XSLT nor xmltex, ..., are so suitable) and that is how our love began! The problem is that the package should be independent from kpathsea as far as possible. I mean searching paths for macros, fonts, encodings, ..., must be configurable internaly, without touching texmf.cnf and any other config files. There are three reasons: one is that my boss is unfortunately not interested in learnig/configuring/using TeX at all, second is that it must be portable and work with any(?) kpathsea installation with ConTeXt. The last but not least is that there isn't still miniTeX (really mini!) kpathsea distribution which may be very usefull in such situation... Of course it's possible to make this by cruel substraction of existing distributoion but... Anyway I wrote some perl-scripts, which solve kpathsea-like syntax in independent config file (which is nice training:-). Variables (i.e TEXINPUTS) defined in this small, external config and are either temporarly exported to (nested) environment or rewriten to generated context code (into \setupexternalfigures[directory=...], \usepath[...] and so on). Script traverse a tree of XML documents and generate context-codes which are compiled directly to PDF. It is still experimental and not best solution, but works ok. Meybe somebody have made this voyage already? Regards, Pawe/l