From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97397 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Bowen Newsgroups: gmane.comp.tex.context Subject: Re: new lua/stack error Date: Thu, 23 Feb 2017 16:41:23 -0500 Message-ID: References: <4a0eba73-c359-f5ff-650d-8a6c761dad71@wxs.nl> <78be1bed-927d-6516-b174-cc887fa936a4@wxs.nl> <7c1e1de6-a366-bf31-9961-ae7842d8cc2c@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7770764943288944357==" X-Trace: blaine.gmane.org 1487886120 6236 195.159.176.226 (23 Feb 2017 21:42:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2017 21:42:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 23 22:41:55 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ch196-0000lE-1k for gctc-ntg-context-518@m.gmane.org; Thu, 23 Feb 2017 22:41:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 767ED83447; Thu, 23 Feb 2017 22:41:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D6NeKNU6tGLK; Thu, 23 Feb 2017 22:41:38 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id B445283448; Thu, 23 Feb 2017 22:41:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 30B7F83444 for ; Thu, 23 Feb 2017 22:41:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CoKTVbQlYcYz for ; Thu, 23 Feb 2017 22:41:35 +0100 (CET) Original-Received: from mail-ua0-f171.google.com (mail-ua0-f171.google.com [209.85.217.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A09A883442 for ; Thu, 23 Feb 2017 22:41:25 +0100 (CET) Original-Received: by mail-ua0-f171.google.com with SMTP id g30so2634267uac.3 for ; Thu, 23 Feb 2017 13:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=aphxgwzaKudrwqy4W6lU4mh9H57f1ewrxHD/Cgiyb8U=; b=sK70JI8kZS7DCMx9S+NK/uxtWqsPhg/U/c+q3HxpIWyOig6UJ8/ka1JplBjYijrFp2 Q8N8Hp/Obj4QWakgmtBTVnW9vdb4i6hLYd7olwwaSAqP2KpDph0CYNwhgG415AN8unWG ufGd6vfUETo6Jv2lsJNBMR2auIVrgtp/CLWsQrNKqasmHpYyLVzE16jakT5cbB6H5B9U WUkDdqzDoEAuu6Io7b+fvdT+VfOPvwZBRYw2r5cCs3C7xuMO16A484ARh+UB6zFyP7mD XSOJFBX83dtgoTNHl9sbCWBCFpLpR8W0MfvmDjEmScW81IImuD+99Pxuq1Y5sK39mjxR S+0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=aphxgwzaKudrwqy4W6lU4mh9H57f1ewrxHD/Cgiyb8U=; b=DwNnRzfnMVAFU+Xy0FsIukFFIedGl2Sl2qJTBPBCDA9r1ArLuI4vcHTMNm86/wOtGJ z+c1hjqtHT4luEzBNHB+npjnKMLztsV5AZDloIsI1w0B3urD/k9shxqEAEwrnADNFAem 5uVzhUX9HKpO5zZypcYBoJM7P8C7FvFPgh6ffi5LR/p6Ve1qPnYlA2kADzHIQ/pg+81Q 0LM2RzjMq3g/hUzAJFyUXT9uVsA9gZz8doQ9+f8FCNO7IIv9h4owdbtqy08wMVoKb/hn XXPgRHiBE5Wq9ewHwEMQrG6fD+DSdjsxcrKx3zwxgtP0E105k7nxxAbgp3hBn5wJEk6J 1slA== X-Gm-Message-State: AMke39klWvf+5NMSnAKq6ohgWxoagkmEp4qkBmjcFlJp/J4EIcdINv50puWDEUYNvdGpOVR5fEIOexG4Q/QkiA== X-Received: by 10.176.18.206 with SMTP id o14mr21760263uac.58.1487886084272; Thu, 23 Feb 2017 13:41:24 -0800 (PST) Original-Received: by 10.31.97.130 with HTTP; Thu, 23 Feb 2017 13:41:23 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:97397 Archived-At: --===============7770764943288944357== Content-Type: multipart/alternative; boundary=f403043613ee84f8b905493979d1 --f403043613ee84f8b905493979d1 Content-Type: text/plain; charset=UTF-8 In my larger document (approx 600 pages, over 1000 references) problematic entries like \cite[{{A, B, and C}}] did not display at all, though the document did process without claims of stack errors etc. Curiously, \goto{A, B, and C}[{{A, B, and C}}] does work as expected. Alan On Thu, Feb 23, 2017 at 4:12 PM, Alan Bowen wrote: > Thanks, Hans! That does work nicely. > > On Thu, Feb 23, 2017 at 3:42 PM, Hans Hagen wrote: > >> On 2/22/2017 6:21 PM, Alan Bowen wrote: >> >>> Here is the file that I have been working with: >>> >>> \installlanguage[packed][en] >>> \setuplanguage[packed][spacing=packed] >>> \startsetups[tightspace] >>> \spaceskip 0.5\interwordspace plus .5\interwordstretch minus >>> \interwordshrink >>> \stopsetups >>> >>> \def\dostartbibitem[#1]{\startBibItem[title={#1},reference={#1}]} >>> \def\startbibitem{\dosingleempty\dostartbibitem} >>> \def\stopbibitem{\stopBibItem} >>> >>> \definedescription[BibItem][ >>> width=broad, >>> margin=1.5pc, >>> indenting={no}, >>> indentnext=no, >>> alternative=hanging, >>> hang=1, >>> headcommand=\gobbleoneargument, >>> align=right, >>> before={\directsetup{tightspace}\bgroup\language[packed]}, >>> after={\egroup}, >>> ] >>> >>> \definereferenceformat [cite] [type=title,left={},right={}] >>> \definereferenceformat [bibpage] [type=page] >>> >>> \starttext >>> >>> \startbibitem[A, B, and C]\stopbibitem % TEST by commenting these >>> %\startbibitem[A{,} B{,} and C]\stopbibitem% lines out >>> >>> \startbibitem[ABC]\stopbibitem >>> \startbibitem[A]\stopbibitem >>> \startbibitem[B]\stopbibitem >>> \startbibitem[C]\stopbibitem >>> >>> * \cite[A, B, and C] \qquad{\red output should be: A{,} B{,} and C} >>> >>> **\cite[ABC] \qquad{\red output should be: ABC} >>> >>> ***\cite[A], \cite[B], \cite[C] \qquad{\red output should be: A, B, C} >>> >>> ****\cite[A]\cite[B]\cite[C] \qquad{\red output should be: ABC} >>> >>> \stoptext >>> >> >> references can be a comma separated list, so >> >> A, B, and C >> >> is actually three tags: "A" "B" "and C" >> >> so, you run into parsing problems, so how to deal with: >> >> [A, B, and C] >> >> maybe: >> >> [{A, B, and C}] >> >> alas, in comma separated list the first level of {} is removed but we can >> cheat: >> >> [{{A, B, and C}}] >> >> works with \cite [{{A, B, and C}}] >> >> Hans >> >> >> ----------------------------------------------------------------- >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl >> ----------------------------------------------------------------- >> ____________________________________________________________ >> _______________________ >> 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/list >> info/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ____________________________________________________________ >> _______________________ >> > > --f403043613ee84f8b905493979d1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In my larger document (approx 600 pages, over 1000 referen= ces)
problematic entries like \cite[{{A, B, and C}}] did not display a= t all, though the document did process without claims of stack errors etc.<= /div>
Curiously,
\goto{A, B, and C}[{{A, B, and C}}]=C2=A0
does wo= rk as expected.

Alan
<= br>
On Thu, Feb 23, 2017 at 4:12 PM, Alan Bowen <= span dir=3D"ltr"><bowenalan03@gmail.com> wrote:
Thanks, Hans! That does work nicely.

On Thu, Feb 23, 2017 at 3:42 PM, Hans Hagen <pragma@wxs.= nl> wrote:
On 2/22= /2017 6:21 PM, Alan Bowen wrote:
Here is the file that I have been working with:

\installlanguage[packed][en]
\setuplanguage[packed][spacing=3Dpacked]
\startsetups[tightspace]
=C2=A0 \spaceskip 0.5\interwordspace plus .5\interwordstretch minus
\interwordshrink
\stopsetups

\def\dostartbibitem[#1]{\startBibItem[title=3D{#1},reference=3D{#= 1}]}
\def\startbibitem{\dosingleempty\dostartbibitem}
\def\stopbibitem{\stopBibItem}

\definedescription[BibItem][
width=3Dbroad,
margin=3D1.5pc,
indenting=3D{no},
indentnext=3Dno,
alternative=3Dhanging,
hang=3D1,
headcommand=3D\gobbleoneargument,
align=3Dright,
before=3D{\directsetup{tightspace}\bgroup\language[packed]},
after=3D{\egroup},
]

\definereferenceformat [cite]=C2=A0 [type=3Dtitle,left=3D{},right=3D{}]
\definereferenceformat [bibpage]=C2=A0 =C2=A0[type=3Dpage]

\starttext

\startbibitem[A, B, and C]\stopbibitem % TEST by commenting these
=
%\startbibitem[A{,} B{,} and C]\stopbibitem% lines out

\startbibitem[ABC]\stopbibitem
\startbibitem[A]\stopbibitem
\startbibitem[B]\stopbibitem
\startbibitem[C]\stopbibitem

* \cite[A, B, and C] \qquad{\red output should=C2=A0 be: A{,} B{,} and C}
**\cite[ABC] \qquad{\red output should be: ABC}

***\cite[A], \cite[B], \cite[C]=C2=A0 \qquad{\red output should be: A, B, C= }

****\cite[A]\cite[B]\cite[C] \qquad{\red output should be: ABC}

\stoptext

references can be a comma separated list, so

A, B, and C

is actually three tags:=C2=A0 "A" "B" "and C"=

so, you run into parsing problems, so how to deal with:

[A, B, and C]

maybe:

[{A, B, and C}]

alas, in comma separated list the first level of {} is removed but we can c= heat:

[{{A, B, and C}}]

works with \cite [{{A, B, and C}}]

Hans


-----------------------------------------------------------------=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0tel: 038 477 53 69 | www.pragma-ade.nl | www.p= ragma-pod.nl
-----------------------------------------------------------------=
_________________________________________________________________= __________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________


--f403043613ee84f8b905493979d1-- --===============7770764943288944357== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============7770764943288944357==--