From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64770 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: problems with \hbox inside lua Date: Thu, 23 Dec 2010 13:57:05 +0100 Message-ID: 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: dough.gmane.org 1293109048 1571 80.91.229.12 (23 Dec 2010 12:57:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Dec 2010 12:57:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 23 13:57:24 2010 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 1PVkjT-0004zN-RY for gctc-ntg-context-518@m.gmane.org; Thu, 23 Dec 2010 13:57:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 762D9CA933; Thu, 23 Dec 2010 13:57:22 +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 xXhiimHnEoZl; Thu, 23 Dec 2010 13:57:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A1ECCA936; Thu, 23 Dec 2010 13:57:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1D135CA936 for ; Thu, 23 Dec 2010 13:57:18 +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 Kmpa+PC-NGCy for ; Thu, 23 Dec 2010 13:57:07 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 04B6FCA933 for ; Thu, 23 Dec 2010 13:57:07 +0100 (CET) Original-Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.216.176]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBNCv5BO021394 for ; Thu, 23 Dec 2010 13:57:06 +0100 Original-Received: by qyk10 with SMTP id 10so6249065qyk.14 for ; Thu, 23 Dec 2010 04:57:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=5OaBIYJ08/dIfU2S67UGe1vtDsFV8PKHlM6Tvhvlh5o=; b=fzVEyHmjXt7y2346y3bFVf357zQy8pro4SvSzBQ6bEooZVc3FHJ6DU7imJEJslJwcz XONs1itb9hMYuUQMlBSl3G0SzLdH4kMVlRQK75AF77EV8498RB8gURiT6m+G/zK8P+4r ZYlUppobESZsE3lWT8X3JsoGbw3R0LLt52nPc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pS44PvMYkXLrXHrNK7kdb85NK/TpJZnHzJOB99pkMJvSWJR463sDVaVv2XE3XM1c53 LHTUC7A1P0cWjImF3/hsKnuH5DxCgxkZm985mU81A7EIWudiFtfooTOSQrvHmCoSYwVn uNLt5YpQKlW2+5kczeVsoeA7TRukpslgaMilo= Original-Received: by 10.229.251.82 with SMTP id mr18mr7064450qcb.146.1293109025324; Thu, 23 Dec 2010 04:57:05 -0800 (PST) Original-Received: by 10.229.30.6 with HTTP; Thu, 23 Dec 2010 04:57:05 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.176; 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: 0rDKAV6Hv - be4909840262 - 20101223 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:64770 Archived-At: Dear list, I cannot figure out what I am doing wrong here. If I remove \hbox, it works fine, but I would like to draw a table. \starttext \startluacode function draw_table(unicode_start,n_columns) for i=0,0xF do tex.print('\\dontleavehmode\\definedfont[Serif at 20pt]\\kern0pt') for j=0,n_columns do --tex.print('\\hbox{ \\char %d }', unicode_start+i*16+j) tex.print('\\hbox to 1.5em{\\hss %s \\hss}', unicode.utf8.char(unicode_start+i*16+j)) end tex.print('\\crlf') end end draw_table(0x00C0,4) \stopluacode \stoptext Any hints welcome. Thanks, Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________