From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36600 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: XeTeX after ctxtools Date: Sat, 15 Sep 2007 19:51:43 +0200 Message-ID: <6faad9f00709151051v58a3c7d3nd6c11e1f042bb375@mail.gmail.com> References: <9C1FC149-7B67-40A9-81E0-CD2E85AED661@di.unito.it> <46EA93C5.4000002@wxs.nl> <46EA97EF.3020903@wxs.nl> <4004FAC5-BCE9-40EB-8B51-252CF374E8E1@di.unito.it> <46EAD2D0.1040808@wxs.nl> <75363584-8F37-4DC5-B5D0-EF49E926D9A4@di.unito.it> <46EBC11F.7000902@wxs.nl> <047C1201-F284-49A7-A8DF-FD51491F722B@di.unito.it> <46EC0BB8.6080500@wxs.nl> 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: sea.gmane.org 1189878787 21114 80.91.229.12 (15 Sep 2007 17:53:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2007 17:53:07 +0000 (UTC) Cc: Jonathan Kew To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 15 19:53:01 2007 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 1IWbpE-0006Bq-JB for gctc-ntg-context-518@m.gmane.org; Sat, 15 Sep 2007 19:53:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4D31E2027D; Sat, 15 Sep 2007 19:52:59 +0200 (CEST) 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 05530-09-2; Sat, 15 Sep 2007 19:52:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 919A120327; Sat, 15 Sep 2007 19:52:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C674620327 for ; Sat, 15 Sep 2007 19:52:45 +0200 (CEST) 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 05530-09 for ; Sat, 15 Sep 2007 19:52:38 +0200 (CEST) Original-Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.188]) by ronja.ntg.nl (Postfix) with ESMTP id 351EB2027D for ; Sat, 15 Sep 2007 19:51:45 +0200 (CEST) Original-Received: by rv-out-0910.google.com with SMTP id k15so848439rvb for ; Sat, 15 Sep 2007 10:51:43 -0700 (PDT) Original-Received: by 10.142.251.9 with SMTP id y9mr692263wfh.1189878703357; Sat, 15 Sep 2007 10:51:43 -0700 (PDT) Original-Received: by 10.143.40.7 with HTTP; Sat, 15 Sep 2007 10:51:43 -0700 (PDT) In-Reply-To: <46EC0BB8.6080500@wxs.nl> Content-Disposition: inline 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:36600 Archived-At: (I'm sorry for the delayed answer.) On 9/15/07, Hans Hagen wrote: > Andrea Valle wrote: > > ** WARNING ** Invalid CMap > > ** ERROR ** pdf_ref_obj(): passed invalid object. > > i wonder what that object is .. and who generates the ref, could be a > special but you do nothing special in the example so i'm puzzled ... do > others have this problem? Yes. I don't remember whether I already complained about it or not, but here's another (minimal) example to reproduce it: \starttext \startformula a+b=\int_{i=0}^{\infty}\Gamma\,dx \stopformula \stoptext The main problem (besides being quite slow for the default LM) is that "font loading" in ConTeXt+XeTeX now does the following: if ("FontName" is a valid font) then use "FontName" else use "[FontName]" end And that one forgets the third possibility: about the old tfm fonts which should be loaded without any quotes, for example rm-lmr12 \font\a="rm-lmr12" works, but \font\a="rm-lmr12" at 12pt doesn't, and ConTeXt tries to use that one. Normally TeX would stop: generate and report the error at that point, but ConTeXt currently skips those errors on purpose and tries to use an unexisting font, so it results in a broken PDF. What about \definefontsynonym [...] [rm-lmr12] [type=tfm] \definefontsynonym [...] [lmodern12-regular] [type=otf] or, use the already existing mechanism: \definefontsynonym [...] [tfm:rm-lmr12] [...] \definefontsynonym [...] [file:lmodern12-regular] [...] I know it's ugly, but I guess that one either needs: a) being more precise in font specifications inside ConTeXt and tell XeTeX exactly what kind of font needs to be loaded (an installed one, otf file inside texmf tree, or the old tfm) b) a harmless way to ask XeTeX if some font exists (instead of the current ugly hack) c) a new "extremely permissive" mode in XeTeX, which would accept the same synax for al the three kinds of fonts The fastest way to fix this is to create the third possibility in the if-else statement (I forgot where that one was, but I can take a look), but as an intermediate solution (until XeTeX gets more functionality in that respect, if ever), I guess that a) would be a must, although the definitions might look slightly less elegant/clean than they're now. Mojca PS: to be honest, I'm still using the XeTeX version from TeXLive 2007 which is a bit old. I remember that Jonathan has promissed to look into the problem described above some time ago (\font\a="rm-lmr12" vs. \font\a="rm-lmr12" at 12pt), but I have no idea about what has happened later with it. But in any case: this problem should be fixed inside ConTeXt first. ___________________________________________________________________________________ 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 ___________________________________________________________________________________