From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81003 Path: news.gmane.org!not-for-mail From: Alasdair McAndrew Newsgroups: gmane.comp.tex.context Subject: Re: A trouble with setupbodyfontenvironment Date: Fri, 1 Mar 2013 21:27:29 +1100 Message-ID: References: <20130228120207.GB3733@homerow> <20130228134046.GA29684@homerow> <20130301095409.GE29684@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0620304966==" X-Trace: ger.gmane.org 1362133660 17749 80.91.229.3 (1 Mar 2013 10:27:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Mar 2013 10:27:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 01 11:28:03 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UBNC6-0003e7-AD for gctc-ntg-context-518@m.gmane.org; Fri, 01 Mar 2013 11:28:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2CA80101EE; Fri, 1 Mar 2013 11:27:41 +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 FMtvhD+vAoXY; Fri, 1 Mar 2013 11:27:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9E57E101E3; Fri, 1 Mar 2013 11:27:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F2B16101E3 for ; Fri, 1 Mar 2013 11:27:33 +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 Kwr2MS0qGTyO for ; Fri, 1 Mar 2013 11:27:32 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 077A0101E2 for ; Fri, 1 Mar 2013 11:27:31 +0100 (CET) Original-Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r21ARU8V013069 for ; Fri, 1 Mar 2013 11:27:30 +0100 Original-Received: by mail-vc0-f169.google.com with SMTP id n10so1880178vcn.28 for ; Fri, 01 Mar 2013 02:27:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=dJo2vV5bIOX5TSkR4x9D99wbg2p3dkASmlLxEhw6Iq8=; b=0OnOWru8srloX3k3fGbtion7nJTNGxo9en1AQps/vZdSMQAIo2atgYvIXFIZQ7cmTc HKuO4IX7Z9Fpe/HfBbE0YvsNtAnSTUSKJtTHEWfLiYhv0O3GjqnBF8+5QhpT8qRBipaJ g+TN+CJR2snNocOwdGL0ZxrDJ7Dz8rtqcZxsZEfC45++m9NULX17Yz/5yd0ZlmLWsY4t h3KjVoEIlBhk857YHQ0mFDwiEMHDbZcV+QQkT2KJ+2V0K6jIsj8jo8GLJWCvJ3pA+nBd cG/mOVG6h0QqZLf1uaI66wur0occ9C20b2KymHGnD8w8v21Ax2Nzq2gwa6s+toUlj32j dcdA== X-Received: by 10.220.242.73 with SMTP id lh9mr3741764vcb.49.1362133649896; Fri, 01 Mar 2013 02:27:29 -0800 (PST) Original-Received: by 10.58.216.34 with HTTP; Fri, 1 Mar 2013 02:27:29 -0800 (PST) In-Reply-To: <20130301095409.GE29684@homerow> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.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: 0NJ6arunb - 9c0dcf1e4017 - 20130301 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:81003 Archived-At: --===============0620304966== Content-Type: multipart/alternative; boundary=14dae9cdcaad56bbae04d6da7438 --14dae9cdcaad56bbae04d6da7438 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I'll try to sort out a minimal example; unfortunately neither of those suggestions worked. In the meantime, here's some more info from the log file: ----- (chapter.tex ! LuaTeX error .../context/tex/texmf-context/tex/context/base/strc-doc.lua:156: attempt to index local 'metadata' (a number value) stack traceback: .../context/tex/texmf-context/tex/context/base/strc-doc.lua:156: in function 'load' .../context/tex/texmf-context/tex/context/base/strc-doc.lua:167: in function '__index' .../context/tex/texmf-context/tex/context/base/strc-doc.lua:143: in function 'save' .../context/tex/texmf-context/tex/context/base/strc-doc.lua:371: in function 'somelevel' [string "\directlua "]:1: in main chunk. system > tex > error on line 1 in file chapter.tex: LuaTeX error ... 1 >> \chapter[ch:this]{My first chapter} ----- It seems to be a mkiv issue; when I attempted to typeset the file(s) with texexec (mkii), I had no problem. Thanks again, Alasdair On Fri, Mar 1, 2013 at 8:54 PM, Marco Patzer wrote: > On 2013=9603=9601 Alasdair McAndrew wrote: > > > Arrgh: more problems. I've downloaded and installed context standalone > > (version 2013.02.26 00:17). Now when I run context I get an error (for > the > > first time ever) when it reaches a chapter heading: > > > > l.1 ...[ch:this]{My first chapter} > > > > ? h > > The lua interpreter ran into a problem, so the > > remainder of this lua chunk will be ignored. > > > > I have the following setups: > > > > \def\chap#1#2{\vbox{\darkgreen Chapter > > #1\crlf\framed[frame=3Doff,topframe=3Don]{#2}}} > > \def\uchap#1#2{#2} > > > > > \setuphead[chapter][command=3D\chap,style=3Dbfd,after=3D{\blank[1cm]},tex= tcolor=3Ddarkgreen,numbercolor=3Ddarkgreen] > > > > None of this has ever given me any problems before. > > It's easier to tell with a minimal example. But here's a guess. Try > > \unexpanded\def#1#2\chap{=85} > > or > > \define[2]\chap{=85} > > > Marco > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --=20 Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew --14dae9cdcaad56bbae04d6da7438 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
I'll try to sort out a minimal example; unfortunately = neither of those suggestions worked.

In the meanti= me, here's some more info from the log file:

-----
(chapter.tex
! LuaTeX error= .../context/tex/texmf-context/tex/context/base/strc-doc.lua:156: attempt t= o index local 'metadata' (a number value)
stack traceback= :
=A0 =A0 =A0 =A0 .../context/tex/texmf-context/tex/context/base/strc-do= c.lua:156: in function 'load'
=A0 =A0 =A0 =A0 .../context= /tex/texmf-context/tex/context/base/strc-doc.lua:167: in function '__in= dex'
=A0 =A0 =A0 =A0 .../context/tex/texmf-context/tex/context/base/strc-do= c.lua:143: in function 'save'
=A0 =A0 =A0 =A0 .../context= /tex/texmf-context/tex/context/base/strc-doc.lua:371: in function 'some= level'
=A0 =A0 =A0 =A0 [string "\directlua "]:1: in main chunk.

system =A0 =A0 =A0 =A0 =A0> tex > error on line= 1 in file chapter.tex: LuaTeX error =A0...

=A01 &= gt;> =A0\chapter[ch:this]{My first chapter}
-----

It seems to be a mkiv issue; when= I attempted to typeset the file(s) with texexec (mkii), I had no problem.<= /div>

Thanks again,
Alasdair=



On Fri, Mar 1, 2013 at 8:54 PM, Marco Patzer <= homerow@lavabit.co= m> wrote:
On 2013=9603=9601 Alasdair= McAndrew wrote:

> Arrgh: more problems. =A0I've downloaded a= nd installed context standalone
> (version 2013.0= 2.26 00:17). =A0Now when I run context I get an error (for the
> first time ever) when it reaches a chapter heading:
>
> l.1 ...[ch:this]{My first chapter}
>
> ? h
> The lua interpreter ran into a problem, so the
> remainder of this lua chunk will be ignored.
>
> I have the following setups:
>
> \def\chap#1#2{\vbox{\darkgreen Chapter
> #1\crlf\framed[frame=3Doff,topframe=3Don]{#2}}}
> \def\uchap#1#2{#2}
>
> \setuphead[chapter][command=3D\chap,style=3Dbfd,after=3D{\blank[1cm]},= textcolor=3Ddarkgreen,numbercolor=3Ddarkgreen]
>
> None of this has ever given me any problems before.

It's easier to tell with a minimal example. But here's a gues= s. Try

=A0 \unexpanded\def#1#2\chap{=85}

or

=A0 \define[2]\chap{=85}


Marco

_________________________________________________________= __________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________



--
= Blog: http://amca= 01.wordpress.com
Web:=A0 = http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/= alasdair.mcandrew
--14dae9cdcaad56bbae04d6da7438-- --===============0620304966== 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 ___________________________________________________________________________________ --===============0620304966==--