From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86643 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: Re: confusion about expansion Date: Wed, 12 Mar 2014 10:12:29 -0400 Message-ID: <53206B4D.3000001@sil.org> References: <53206865.1090800@sil.org> <7117ED90-F27D-4B06-AD24-4B45926E5DB0@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1394633549 9011 80.91.229.3 (12 Mar 2014 14:12:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2014 14:12:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 12 15:12:40 2014 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 1WNjte-0002b8-KP for gctc-ntg-context-518@m.gmane.org; Wed, 12 Mar 2014 15:12:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D9347101EC; Wed, 12 Mar 2014 15:12:37 +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 1wSIAwwDMDcl; Wed, 12 Mar 2014 15:12:36 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 70E94101E3; Wed, 12 Mar 2014 15:12:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25F4F101E3 for ; Wed, 12 Mar 2014 15:12:35 +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 tr-iAuZ483v1 for ; Wed, 12 Mar 2014 15:12:32 +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 5EC53101E1 for ; Wed, 12 Mar 2014 15:12:32 +0100 (CET) Original-Received: from mail-yh0-f53.google.com (mail-yh0-f53.google.com [209.85.213.53]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2CECUko024825 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 12 Mar 2014 15:12:31 +0100 Original-Received: by mail-yh0-f53.google.com with SMTP id v1so2018280yhn.40 for ; Wed, 12 Mar 2014 07:12:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=YJeI9rFiWAhvTS0HKG04a72mdjnfpvq/9O8u6f+8qr4=; b=EhH1YZYEvOlvZT1x6jZllzOpXnGEC02JABtICDurSrAQskySNhuXnWJ+X5lcZ/u9sM ScFluIHbPp+0WtE/0cacl8iTKMn8QCv4XYSBVv7NcXnQDfieNl8yk57czxGyseh93Abk djQoNf/CoIr1kytl429JJpFQhkgAJChFK2VyxIbn5y7m/xFfWvbpl+HF4IQeKJ84D61T fY5wKBR3K2ZZk8GxRwXU5CgQb/KiY7I/TyhzHD4YAkDZ8SIwEhBCvqrXUF8+ZlLmOJ6C C+69i///v1IxfwL39XITmTA6ONRkONy2iZHh1w4nLJLb/XhlvbRd8iA+ObThvDIMEcdB QYQQ== X-Gm-Message-State: ALoCoQmBpxAkoQq+a33miAOR32bmJxg39cSwGro4o0ipGh1XTF3g2tdWzOPa/Ndx2U2mCAN31ntN X-Received: by 10.236.35.143 with SMTP id u15mr1036701yha.158.1394633550095; Wed, 12 Mar 2014 07:12:30 -0700 (PDT) Original-Received: from [172.22.10.178] ([162.40.29.3]) by mx.google.com with ESMTPSA id t44sm21353930yhc.6.2014.03.12.07.12.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Mar 2014 07:12:29 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <7117ED90-F27D-4B06-AD24-4B45926E5DB0@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=209.85.213.53; 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: 0QLACcv5l - 0ec662283434 - 20140312 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:86643 Archived-At: On 3/12/2014 10:05 AM, Wolfgang Schuster wrote: > Am 12.03.2014 um 15:00 schrieb Lars Huttar : > >> Hello, >> I've got a running page head like this in my document: >> >> \def\CurrentUser{\cldcontext{os.resultof"whoami"}} >> >> \def\Markname { Compiled \date by \CurrentUser \LUATEX +\ConTeXt\ >> \contextversion } >> >> and later: >> >> \setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname} >> >> But when I run this, I get a UCS error that seems to indicate that the >> *result* of \CurrentUser ("waxhaw\huttar") is getting parsed as a >> command sequence. > When you want to pass a backslash to Lua you have to use \letterbackslash. > Thanks... can you give me an example of what that would look like? I don't think I want to pass a backslash to Lua, so I'm not sure how to apply what you're saying. Or are you using "Lua" here in the sense of LuaTeX? A backslash appears in the output of os.resultof"whoami"; do I need to perform some processing on that output in order to escape backslashes? Lars ___________________________________________________________________________________ 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 ___________________________________________________________________________________