From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71976 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: xml and lua again Date: Fri, 28 Oct 2011 10:35:46 +0200 Message-ID: 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> <4EA9231F.6080001@uni-bonn.de> <4EA93348.6030308@uni-bonn.de> <4EA93AE0.2000805@wxs.nl> <4EAA4A61.4090707@uni-bonn.de> <83BD5F74-4BB7-41D2-9C1E-F5F31084E6AC@gundla.ch> <4EAA51D6.3050909@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319790988 31097 80.91.229.12 (28 Oct 2011 08:36:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2011 08:36:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 28 10:36:22 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 1RJhvI-00080U-RE for gctc-ntg-context-518@m.gmane.org; Fri, 28 Oct 2011 10:36:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4442CCB0B1; Fri, 28 Oct 2011 10:36:19 +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 Mq7+B5cHpHvJ; Fri, 28 Oct 2011 10:36:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 11F79CB0A4; Fri, 28 Oct 2011 10:36:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1A347CB0A4 for ; Fri, 28 Oct 2011 10:36:14 +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 6CyA5ag2T338 for ; Fri, 28 Oct 2011 10:36:02 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 8F230CB09E for ; Fri, 28 Oct 2011 10:36:02 +0200 (CEST) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9S8a13t014664 for ; Fri, 28 Oct 2011 10:36:01 +0200 Original-Received: by eye4 with SMTP id 4so4362681eye.14 for ; Fri, 28 Oct 2011 01:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=TcJp3FxdXkLsK2L2eFbs6wOgw8Er0Pp0JwSm2HdwBHI=; b=t+rVaPZbvN5S0T2k71Wujin0z3ZAF3HejZhf6FHkbmU46S7HDH+bat4+2yQxN2AXv+ kzHhMYodYaEnt+u9KNn+4nTlkztfTBzn6np60AhWkYO/DoCG97hWE4wrMTU7urqXpJG2 THZHFqmfd7ohWDPTron6Ktv9C6JRiqG0/kAHE= Original-Received: by 10.213.21.194 with SMTP id k2mr134463ebb.17.1319790960924; Fri, 28 Oct 2011 01:36:00 -0700 (PDT) Original-Received: from [192.168.2.35] (p5482D75A.dip.t-dialin.net. [84.130.215.90]) by mx.google.com with ESMTPS id y11sm22449526eej.5.2011.10.28.01.35.55 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 28 Oct 2011 01:35:58 -0700 (PDT) In-Reply-To: <4EAA51D6.3050909@uni-bonn.de> X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dFO8A1rg - eb5c4411db2d - 20111028 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:71976 Archived-At: Am 28.10.2011 um 08:55 schrieb Thomas A. Schmitz: > Luigi, Patrick, > > thanks for your explanations! The point of my question was: can I feed the content of tex.dimen["textwidth"] directly back to TeX, and the answer to this appears to be "no"; you need to add some unit to it (otherwise, you get an error message). Which was a bit confusing to me at first, because the name tex.dimen implies that it holds a "real" dimension, like \newdim does. You can get the same value in TeX when you print the value of a dimension with \number: \starttext \scratchdimen=3pt \number\scratchdimen \ctxlua{context(tex.dimen["scratchdimen"])} \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________