From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40074 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: mplib & undefined commands Date: Fri, 11 Apr 2008 17:39:24 +0200 Message-ID: <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 1207928724 9145 80.91.229.12 (11 Apr 2008 15:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2008 15:45:24 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 11 17:45:56 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 1JkLRp-0003yS-Pd for gctc-ntg-context-518@m.gmane.org; Fri, 11 Apr 2008 17:45:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 129581FC27; Fri, 11 Apr 2008 17:45:14 +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 12504-05; Fri, 11 Apr 2008 17:44:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E99CC1FCE8; Fri, 11 Apr 2008 17:39:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CB56D1FCE5 for ; Fri, 11 Apr 2008 17:39:57 +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 09886-02-18 for ; Fri, 11 Apr 2008 17:39:25 +0200 (CEST) Original-Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.189]) by ronja.ntg.nl (Postfix) with ESMTP id 226041FCD7 for ; Fri, 11 Apr 2008 17:39:24 +0200 (CEST) Original-Received: by gv-out-0910.google.com with SMTP id n29so203003gve.1 for ; Fri, 11 Apr 2008 08:39:24 -0700 (PDT) Original-Received: by 10.151.50.11 with SMTP id c11mr3354859ybk.221.1207928364034; Fri, 11 Apr 2008 08:39:24 -0700 (PDT) Original-Received: by 10.150.122.20 with HTTP; Fri, 11 Apr 2008 08:39:24 -0700 (PDT) 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:40074 Archived-At: Hello Hans, 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} 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? 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 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? 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. Thanks a lot, Mojca The relevant code from the module: %D Aditya, thanks a lot for requesting it! %D Hans, thanks a lot for implementing this! \definetextext[gp]{\strut} %D TODO (feature request): %D \starttyping %D \sometxt[gp][ss,20pt]{abc} %D \stoptyping %D should become equivalent to %D \starttyping %D \sometxt{\switchtobodyfont[ss,20pt]\strut abc} %D \stoptyping %D The following patch has been written by Aditya and seems to work OK, %D however it would be more clean to have this functionality in the core. %D Redefining low-level macros might be a bit dangerous, esp. since %D they tend to change over time. %D %D TODO: remind Hans to implement it in core ;) %D and remove this patch from the module \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} ___________________________________________________________________________________ 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 ___________________________________________________________________________________