From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86646 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: confusion about expansion Date: Wed, 12 Mar 2014 16:06:34 +0100 Message-ID: References: <53206865.1090800@sil.org> <7117ED90-F27D-4B06-AD24-4B45926E5DB0@gmail.com> <53206B4D.3000001@sil.org> <314F455E-CFD1-4496-9523-83CCDCC47EC2@gmail.com> <53207462.4020909@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/mixed; boundary="===============0630385751==" X-Trace: ger.gmane.org 1394636796 20934 80.91.229.3 (12 Mar 2014 15:06:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2014 15:06:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 12 16:06:46 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 1WNkk2-0001YN-Cf for gctc-ntg-context-518@m.gmane.org; Wed, 12 Mar 2014 16:06:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AED2B101F3; Wed, 12 Mar 2014 16:06:45 +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 knP7yLaoZb8u; Wed, 12 Mar 2014 16:06:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5BCB4101E3; Wed, 12 Mar 2014 16:06:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8194101E3 for ; Wed, 12 Mar 2014 16:06:42 +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 UjzxhbCSCv4a for ; Wed, 12 Mar 2014 16:06:42 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 037B9101E1 for ; Wed, 12 Mar 2014 16:06:32 +0100 (CET) Original-Received: from mail-bk0-x233.google.com (mail-bk0-x233.google.com [IPv6:2a00:1450:4008:c01::233]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2CF6VtV014569 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 12 Mar 2014 16:06:31 +0100 Original-Received: by mail-bk0-f51.google.com with SMTP id 6so1374437bkj.24 for ; Wed, 12 Mar 2014 08:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=LYjfu3di7rSEet3t5wGWbQfK4jQxKcQrYrVv1YzNJkc=; b=jmW+7UTLA5cSrwJH/f9zBVwbPlLQ4vVUJFk56zedxqG/xb18ax9jJ5PjHqoAXK3TOG hrNr2Umay2rAvPz6SY9RIfIPmasJ90WvIuvt/eo+5iwbMD4eP989YWV6CwdANWvMFBaS tlFS1kQ4I5IzJwU7sd2mpStQ13mGEOfZQzMFt8jOABCpmzP45qSoasbYQdWfaJ8O+gux bCj7s72c+J0exYeDtoktqfoZxaGGutczSjnXV4qTtamlQ+DfNLswnzCy6XXGzV9Vpixg xRiHY0ztNtDGcy9oMVHj6881J4aX0tL67wNbYIle30ow4V0rNgKh6YCzeskQohizZtrD DhZQ== X-Received: by 10.205.4.10 with SMTP id oa10mr152415bkb.154.1394636791216; Wed, 12 Mar 2014 08:06:31 -0700 (PDT) Original-Received: from keima.localdomain (x2f226a9.dyn.telefonica.de. [2.242.38.169]) by mx.google.com with ESMTPSA id ey13sm18516245bkb.11.2014.03.12.08.06.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Mar 2014 08:06:30 -0700 (PDT) In-Reply-To: <53207462.4020909@sil.org> X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LAD6vKo - b3b88f85e22b - 20140312 (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:86646 Archived-At: --===============0630385751== Content-Type: multipart/alternative; boundary="Apple-Mail=_2281F202-3C32-4F83-9505-AAC26AD6751E" --Apple-Mail=_2281F202-3C32-4F83-9505-AAC26AD6751E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 12.03.2014 um 15:51 schrieb Lars Huttar : > This gets rid of the error, but it seems to prevent any expansion of = the > content of \CurrentUser, because the page head now literally looks = like > this: You can try to print the string in verbatim mode: = \def\CurrentUser{\cldcommand{sprint(tex.vrbcatcodes,os.resultof"whoami")}}= \def\Markname{Compiled \date by \CurrentUser\ \LUATEX +\ConTeXt\ = \contextversion.} Wolfgang= --Apple-Mail=_2281F202-3C32-4F83-9505-AAC26AD6751E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Am 12.03.2014 um 15:51 schrieb Lars = Huttar <lars_huttar@sil.org>:

This gets rid of the error, but it = seems to prevent any expansion of the
content of \CurrentUser, = because the page head now literally looks = like
this:

You can = try to print the string in verbatim mode:

  = \def\CurrentUser{\cldcommand{sprint(tex.vrbcatcodes,os.resultof"whoami")}}=

  \def\Markname{Compiled \date by = \CurrentUser\ \LUATEX +\ConTeXt\ = \contextversion.}

Wolfgang
= --Apple-Mail=_2281F202-3C32-4F83-9505-AAC26AD6751E-- --===============0630385751== 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 ___________________________________________________________________________________ --===============0630385751==--