From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40097 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: mplib & undefined commands Date: Sat, 12 Apr 2008 09:38:36 +0200 Message-ID: <480066FC.7060609@wxs.nl> References: <6faad9f00804110839o1151423dke323327a8b4a9ec2@mail.gmail.com> 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 1207986030 870 80.91.229.12 (12 Apr 2008 07:40:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Apr 2008 07:40:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 12 09:41:03 2008 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 1JkaMA-00072z-Cm for gctc-ntg-context-518@m.gmane.org; Sat, 12 Apr 2008 09:41:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E47AD1FC67; Sat, 12 Apr 2008 09:40:20 +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 26357-02-3; Sat, 12 Apr 2008 09:39:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 618171FBC5; Sat, 12 Apr 2008 09:39:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2ED281FBC5 for ; Sat, 12 Apr 2008 09:39:35 +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 26357-02-2 for ; Sat, 12 Apr 2008 09:39:00 +0200 (CEST) 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 E14301FB8F for ; Sat, 12 Apr 2008 09:39:00 +0200 (CEST) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 12496 for ; Sat, 12 Apr 2008 09:39:00 +0200 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) In-Reply-To: <6faad9f00804110839o1151423dke323327a8b4a9ec2@mail.gmail.com> 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.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:40097 Archived-At: Hi Mojca > I have modified the gnuplot module a bit, and stumbled upon: > > 1.) the need for > \ifx\savebuffer\undefined \else \savebuffer[...]\fi > which has been expected > > 2.) undefined command > \forceMPTEXcheck{put_text} ok, i will add a fake > I have now used a wrapper to skip that line in LuaTeX (btw: what's the > suggested \if clause or \beginNOLUATEX to check for luatex/mkiv?) Does > it make sense to define \let\forceMPTEXcheck\empty in mkiv perhaps? best make a yourmodule.tex yourmodule.mkii yourmodule.mkiv and in the tex file adds: \loadmarkfile{yourmodule} > 3.) undefined command \obeyMPlines. I actually forgot why I needed it, > but according to the comment: > \obeyMPlines % <- no longer a problem > \def\obeyedline{}% <- thanks to this > I simply commented out the first line and hoped for no problems in mkii ok, another fake > 4.) It seems to work without problems now, except for one tiny detail > that I get in the final PDF. > [do we need TeXtexts in MkIV] > > What is that supposed to mean? well, that everything now can be 'textext' > I need to admit that I have the following piece of code in the module > (in case that matters). Maybe I'm the only one who uses it, so if you > have any idea how to modify the macros to make > \sometxt[gp][iwona,14pt]{text} work in mkiv, I will happily drop the > old code/replace it for mkiv. hm, so \sometxt is not working? i thought that i tested it (maybe not ... too much to test) > \long\def\redofiltersometxt[#1]% > {\doifnextcharelse[{\reredofiltersometxt[#1]}{\redodofiltersometxt[#1]}} > > \long\def\redodofiltersometxt[#1]#2% > {\increment\txtcounter > \TeXtext[#1]\txtcounter{#2}% > \filtersometxt} > > \long\def\reredofiltersometxt[#1][#2]#3% > {\increment\txtcounter > \TeXtext[#1]\txtcounter{\switchtobodyfont[#2]\strut#3}% > \filtersometxt} i think that we have it in the core anyhow, just collects what does not work (btw, i fixed something in textext ... i used to work only for code passed as mpgraphic, but now it works also with libraries and so) ----------------------------------------------------------------- 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 ___________________________________________________________________________________