From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20167 Path: news.gmane.org!not-for-mail From: h h extern Newsgroups: gmane.comp.tex.context,gmane.comp.tex.macosx Subject: Re: TEXMFMAIN problem in gwTeX (font installation) Date: Mon, 02 May 2005 09:41:40 +0200 Message-ID: <4275D9B4.6040000@wxs.nl> References: <427230A6.6080500@kpatents.com> <797c87f1126c1c8a1cab222b37735652@rna.nl> 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 1115019382 4635 80.91.229.2 (2 May 2005 07:36:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 May 2005 07:36:22 +0000 (UTC) Cc: mailing list for ConTeXt users , TeX on Mac OS X Mailing List Original-X-From: ntg-context-bounces@ntg.nl Mon May 02 09:36:19 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 1DSVTI-0000O2-PJ for gctc-ntg-context-518@m.gmane.org; Mon, 02 May 2005 09:36:05 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BB010127C8; Mon, 2 May 2005 09:42:12 +0200 (CEST) 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 05268-08; Mon, 2 May 2005 09:42:08 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A22BE127A8; Mon, 2 May 2005 09:42:07 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46864127A8 for ; Mon, 2 May 2005 09:42:06 +0200 (CEST) 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 05569-02 for ; Mon, 2 May 2005 09:42:05 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 47CB512796 for ; Mon, 2 May 2005 09:42:05 +0200 (CEST) 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 j427g1j5017057; Mon, 2 May 2005 09:42:01 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 966BF1A1EA; Mon, 2 May 2005 09:17:52 +0200 (CEST) Original-Received: from [127.0.0.1] (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id B6EDA17B93; Mon, 2 May 2005 07:17:40 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: Gerben Wierda In-Reply-To: <797c87f1126c1c8a1cab222b37735652@rna.nl> X-Virus-Scanned: ClamAV 0.83/861/Sat Apr 30 11:28:52 2005 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 Xref: news.gmane.org gmane.comp.tex.context:20167 gmane.comp.tex.macosx:9714 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20167 Gerben Wierda wrote: > On Apr 29, 2005, at 15:03, Ville Voipio wrote (on the ConTeX list, but > this also is interesting for all gwTeX users): > >> I have spent some very interesting time trying to install the TeXlive >> fonts by using texfont type-tmf.dat. What happened was that a lot of >> complaints about "unknown subpath ../afm/public/urw" were given even >> though the path should have been there. This is a known problem, has >> been on several mailing lists, as well. >> >> After a lot of thinking it became clear that texfont was really unable >> to find any font files. By browsing through the texfont.pl, the reason >> became evident: In gwTeX the root variables are: >> >> TEXMFMAIN = /usr/local/teTeX/share/texmf >> TEXMFTE = /usr/local/teTeX/share/texmf.tetex >> >> The problem here is that all the TeXlive fonts (and almost everthing >> else) is really in the TEXMFTE tree. >> >> My quick'n'dirty was to make new file type-tmf-gwtex.dat by replacing >> all occurrences of TEXMFMAIN by TEXMFTE. Running that one in batch >> mode works fine. >> >> Problem solved -- this time. But the solution is not a beautiful one. >> Could someone suggest something cleaner? Or has this been solved >> already (I tried googling after the answer without success)? > > > TEXMFMAIN in TL is now reserved for only the stuff that is directly > related to the binaries (like the pool files or anything that needs to > stay in sync - grammar wise - with the binaries and scripts). In TeX > Live the 'foundation' now lives in .../texmf-dist (TEXMFDIST) and not in > ../texmf > > In gwTeX, there are a few foundation trees: TEXMFTE for the teTeX tree > and TEXMFGW for my additions > > I think it is a simplification by texfont that it has a hardwired > location. TeX is not set up that way. Probably the correct solution is > for texfont itself to act in a more dynamic way, e.g. by trying to > locate with kpsewhich some elements that are supposed to be there > already and take th eresult of that search as the settin for what it now > assumes to be hardwired. > > In the meantime: your fix is correct. generated fonts metrics are put in a given path: if (defined($ENV{TEXMFLOCAL})) { $installpath = "TEXMFLOCAL" ; } if (defined($ENV{TEXMFFONTS})) { $installpath = "TEXMFFONTS" ; } if ($installpath eq "") { $installpath = "TEXMFLOCAL" ; # redundant } and later on my $fontroot = "" ; #/usr/people/gwhite/texmf-fonts" &GetOptions "fontroot=s" => \$fontroot, and if ($fontroot eq "") { if ($dosish) { $fontroot = `kpsewhich -expand-path=\$$installpath` } else { $fontroot = `kpsewhich -expand-path=\\\$$installpath` } chomp $fontroot } etc etc I've added texmfdist to the search trees list my $trees = 'TEXMFFONTS,TEXMFLOCAL,TEXMFEXTRA,TEXMFMAIN,TEXMFDIST' ; (not that i use dist: the first thing i do here when i get tex live is merging the main/dist/doc/extra trees) btw, it's interesting that when i asked for a texmffonts entry long ago the argument against was 'we don't want too many trees' but nowadays we have so many trees that i no longer feel trouble by my own amount: texmf texmf-extra texmf-local texmf-fonts texmf-projects texmf-mswin texmf-macosx texmf-linux etc -) normally i try to use kpse to locate and report paths, but this is kind of slow and the kpsewhich interface is not frozen [which is why in more recent scripts i use a wrapper system around kpse, so in the end such problems may disappear] 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 -----------------------------------------------------------------