From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97396 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:12:36 -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="===============2005492888712043293==" X-Trace: blaine.gmane.org 1487884410 4601 195.159.176.226 (23 Feb 2017 21:13:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2017 21:13:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 23 22:13:25 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 1ch0hW-0000ci-BC for gctc-ntg-context-518@m.gmane.org; Thu, 23 Feb 2017 22:13:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3993D83353; Thu, 23 Feb 2017 22:12:51 +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 eKaJsd2-QpAG; Thu, 23 Feb 2017 22:12:50 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 79CB98335F; Thu, 23 Feb 2017 22:12:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D89FA8335F for ; Thu, 23 Feb 2017 22:12:48 +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 HnKuO7DPnezd for ; Thu, 23 Feb 2017 22:12:48 +0100 (CET) Original-Received: from mail-ua0-f182.google.com (mail-ua0-f182.google.com [209.85.217.182]) (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 0226F83353 for ; Thu, 23 Feb 2017 22:12:37 +0100 (CET) Original-Received: by mail-ua0-f182.google.com with SMTP id 60so135426uah.1 for ; Thu, 23 Feb 2017 13:12:37 -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=W0Y2B2t0tIzIdP3fqcvCKtwbi72AwppIZXOaYwLKQC0=; b=OwAQqs8tw75Rwqfev1NIyZqH6ElPVRjZFKZQ8LhNcxepy6h22qdRU+UbJrf8bZ8Nw1 26DAJnDKKZcaG/kvssdbPqaTzW/vzobTa27gM22qJw5EIZjz3IEjVdfwsFW2c+mCwUmt naAo13yYTTExqFlCgEvLhhL+ie4DsiWYWmF6pOh8OrrHz97KXK1bLezzJSlS/GflAycZ Ar2fS6wzy7FVcxiRyRXOVrQF71J+os3kiG+XV0JZqqAqDaeYcj/mONxFaYMdMrJu2t5M 5mvvo2s5Zbt2LpeAgVpTDDxOzfkKF7F2rgCW91z8EGOw9yMQTLf9uOTU0GzZIOrHm152 3biA== 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=W0Y2B2t0tIzIdP3fqcvCKtwbi72AwppIZXOaYwLKQC0=; b=MzQeY8djFZhs7DS5C0/gzAdJVQtKqVH38tjE+g2a+vUGU+FLD5Vfy8TdH4xuqicqB7 ZO7DplaeicBTFAJDEltP4adFivMtG+FTycQsPvC43C1ZUjlUNb2btv6oKNKTU6df1QBl 59OkeCoZn0wvx5eq2SLRVx4KzJaWV3L+k3UP09PWnk8r1i0kH2SueSh9IEwka7dcVTDo R3iwBy9H7dhX/WkDQhtZtuWK9zDkVfM45r1FfoN0T2Z81GK7zxmzhzpMsVTTwVa6Dk7W tBrhDw+4XkW+NB6vT36uHZRJLjrpPOxMd7I7DAFZjoOMPvBYE3vBnRAPMxXfoWkvEZXU SqWw== X-Gm-Message-State: AMke39mD7R2xpzfh8I+KF5tqw/oQ4olkPzF6/4etTxr1ziGFv3nsXqJ6+Kum8d8kbq+/6BES1ARiFmMbhLaMfA== X-Received: by 10.176.18.206 with SMTP id o14mr21694866uac.58.1487884356805; Thu, 23 Feb 2017 13:12:36 -0800 (PST) Original-Received: by 10.31.97.130 with HTTP; Thu, 23 Feb 2017 13:12:36 -0800 (PST) In-Reply-To: <7c1e1de6-a366-bf31-9961-ae7842d8cc2c@wxs.nl> 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:97396 Archived-At: --===============2005492888712043293== Content-Type: multipart/alternative; boundary=f403043613ee8dec5105493912fc --f403043613ee8dec5105493912fc Content-Type: text/plain; charset=UTF-8 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 > ____________________________________________________________ > _______________________ > --f403043613ee8dec5105493912fc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks, Hans! That does work nicely.

On Thu, Feb 23, 2017 at 3:4= 2 PM, Hans Hagen <pragma@wxs.nl> wrote:
On 2/22/2017 6:21 PM, Ala= n 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
_________________________________________________________________= __________________

--f403043613ee8dec5105493912fc-- --===============2005492888712043293== 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 --===============2005492888712043293==--