From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71960 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: xml and lua again Date: Thu, 27 Oct 2011 11:23:43 +0200 Message-ID: <4EA9231F.6080001@uni-bonn.de> References: <4EA2F34E.6080202@uni-bonn.de> <4EA53B44.1040105@wxs.nl> <4EA55792.9090408@uni-bonn.de> <4EA5598A.4060109@wxs.nl> <4EA599BE.2050304@uni-bonn.de> <4EA5B2F2.2050700@wxs.nl> <4EA684D9.2040702@uni-bonn.de> <4EA68CB4.30809@wxs.nl> <4EA68F04.4090706@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319707435 3666 80.91.229.12 (27 Oct 2011 09:23:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 09:23:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 27 11:23:50 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJMBi-0004ou-FF for gctc-ntg-context-518@m.gmane.org; Thu, 27 Oct 2011 11:23:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33594CB0A4; Thu, 27 Oct 2011 11:23:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Eav0VY-yiMgp; Thu, 27 Oct 2011 11:23:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 977C4CB09F; Thu, 27 Oct 2011 11:23:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A6CF4CB09F for ; Thu, 27 Oct 2011 11:23:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RzOICYKOYDf3 for ; Thu, 27 Oct 2011 11:23:44 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id D8834CB09E for ; Thu, 27 Oct 2011 11:23:44 +0200 (CEST) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9R9Niwi029381 for ; Thu, 27 Oct 2011 11:23:44 +0200 Original-Received: from [87.178.40.249] (account tschmit1@uni-bonn.de HELO [192.168.0.3]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPSA id 2432424 for ntg-context@ntg.nl; Thu, 27 Oct 2011 11:23:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: <4EA68F04.4090706@uni-bonn.de> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bFNJnIqP - 82c70666c768 - 20111027 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:71960 Archived-At: On 10/25/2011 12:27 PM, Thomas A. Schmitz wrote: > Wolfgang, Hans, > > thanks a lot, this works now. Will now try and move the code to a > ctxluafile and see if I can make it work again. If not, I'll be back; no > good deed goes unpunished... > > Thomas OK, I'm slowly making progress processing xml in lua. One naive question now: how can I have access to and manipulate the textwidth dimension? In other words, given 0.4\textwidth what would be the equivalent in lua code? I tried 0.4 * tex.dimen.textwidth or 0.4 * tex.dimen["textwidth"] but couldn't make that work. Also tried grepping the tex/context/base/*.lua files for width, but couldn't find anything immediately obvious. Thanks! Thomas ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________