From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85489 Path: news.gmane.org!not-for-mail From: DesdeChaves Newsgroups: gmane.comp.tex.context Subject: ctxluacode inside bTABLE Date: Wed, 27 Nov 2013 16:54:41 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0560009237==" X-Trace: ger.gmane.org 1385571287 10521 80.91.229.3 (27 Nov 2013 16:54:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2013 16:54:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 27 17:54:53 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VliO5-0001pE-Bm for gctc-ntg-context-518@m.gmane.org; Wed, 27 Nov 2013 17:54:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9244D101E9; Wed, 27 Nov 2013 17:54:52 +0100 (CET) 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 3nzR-lubnPco; Wed, 27 Nov 2013 17:54:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A4825101EA; Wed, 27 Nov 2013 17:54:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BADDC101EA for ; Wed, 27 Nov 2013 17:54:48 +0100 (CET) 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 Mgw7MPai3E-T for ; Wed, 27 Nov 2013 17:54:47 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id BDDCF101E9 for ; Wed, 27 Nov 2013 17:54:42 +0100 (CET) Original-Received: from mail-ob0-x231.google.com (mail-ob0-x231.google.com [IPv6:2607:f8b0:4003:c01::231]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rARGsf7p009349 for ; Wed, 27 Nov 2013 17:54:42 +0100 Original-Received: by mail-ob0-f177.google.com with SMTP id va2so7515895obc.8 for ; Wed, 27 Nov 2013 08:54:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Ps5kycL5i9NNVWgFXK3wIHAQEyhX8W1plnGTDN74Lto=; b=Ps6osxlo4FSlsAmJwgapzEYG5jk2DKfL/TKCKhgYOe40ZFbAOMAaJpVVnR3vycfsbc 4k8Ycn6rJBQCBvKGLV1YHNIVRZ3UfWi3DMSQb3tvI5by0+bXFMdu9FjV5Z8Icu6iIaSY qSPnveovPDxWE8iJLvTNZBN+S+b+jpCQmew4H8EzQER1pAIaVsmL8hDiuK3/1QWTXZdr FTnkiDjc5gKBN6s+V3KtbhuuNIqIrkAbeHGYQENu2BLLluiXoKoYVWYrQSs7qLVUGdge 0OYvjgpPvCqRsndOwKIhq5uFjMnRL2SwFP6ClRnLTlFs7sVuxmaGIKEYPPhbUmsJlW2N k2Ug== X-Received: by 10.60.40.70 with SMTP id v6mr1013387oek.69.1385571281224; Wed, 27 Nov 2013 08:54:41 -0800 (PST) Original-Received: by 10.60.93.131 with HTTP; Wed, 27 Nov 2013 08:54:41 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c01::231; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KSESFk3 - 9d2ee5da414c - 20131127 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85489 Archived-At: --===============0560009237== Content-Type: multipart/alternative; boundary=089e0139ffc207557104ec2b742b --089e0139ffc207557104ec2b742b Content-Type: text/plain; charset=ISO-8859-1 I try make a table with some random numbers but I found a problem with this code: \starttext \ctxluacode{v=math.random(400,600)/10;context("%0.1f",v) ;} \bTABLE \bTR\bTD Distance (cm) \eTD\bTD $\Delta t$ (s) \eTD\eTR \bTR\bTD[nr=3] \ctxluacode{v=math.random(400,600)/10;context("%0.1f",v) ;} \eTD\bTD t1 \eTD\eTR \bTR\bTD t2 \eTD\eTR \bTR\bTD t3 \eTD\eTR \eTABLE \stoptext \ctxluacode{v=math.random(400,600)/10;context("%0.1f",v) ;} don't work inside the bTABLE environment. Thanks in advance. Jorge --089e0139ffc207557104ec2b742b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I try make a table with some random numbers but I found a = problem with this code:


\starttext
\ctxluacode{v=3Dmath.random(400,600)/10;context("%0.1f",= v) ;}=A0

\bTABLE
\bTR\bTD Distance (cm) \eTD\bTD $\Delta t$ (s) \eTD\eTR
<= div>\bTR\bTD[nr=3D3] =A0\ctxluacode{v=3Dmath.random(400,600)/10;context(&qu= ot;%0.1f",v) ;} =A0\eTD\bTD= t1 \eTD\eTR
\bTR\bTD t2 \eTD\eTR
\bTR\bTD t3 \eTD\eTR
\eTABLE<= /div>


\stoptext

\ctxluacode{v=3Dmath.random(400,600)/10;context("%0.1f",v) = ;} =A0 don't work inside the bTABLE environment.

Thanks in advance.

Jorge
--089e0139ffc207557104ec2b742b-- --===============0560009237== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0560009237==--