ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* new lua/stack error
@ 2017-02-21 19:25 Alan Bowen
  2017-02-21 19:42 ` Alan Bowen
  2017-02-22  8:26 ` Hans Hagen
  0 siblings, 2 replies; 13+ messages in thread
From: Alan Bowen @ 2017-02-21 19:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 800 bytes --]

The latest beta — ConTeXt  ver: 2017.02.19  with LuaTeX, Version 1.0.3 — chokes
on entries such as
\cite[author1, author2, and author3 2017]
and reports an error: e.g.,


lua error       > lua error on line 81 in file c_Brill09-02_Evans.tex:


C stack overflow

stack traceback:

[C]: in function 'type'

...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:373: in
function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:367>

[C]: in function 'tostring'

...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:342: in
function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:317>

If I try something like
\cite[A B and C] all is well.
Adding the commas as in \cite[A, B, and C] gets the error.
Sadly, I need the commas.

Alan

[-- Attachment #1.2: Type: text/html, Size: 2953 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-21 19:25 new lua/stack error Alan Bowen
@ 2017-02-21 19:42 ` Alan Bowen
  2017-02-21 20:33   ` Alan Braslau
  2017-02-22  8:26 ` Hans Hagen
  1 sibling, 1 reply; 13+ messages in thread
From: Alan Bowen @ 2017-02-21 19:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1287 bytes --]

I should add that the problem is with this entry alone. Otherwise the
citations in the chapter work as they should. (Other chapters fail for the
same reason—one of the many citations with commas seems to cause the
error.)

The book processed with incident in the previous beta

Any suggestions about to address this will be gladly received.

A.

On Tue, Feb 21, 2017 at 2:25 PM, Alan Bowen <bowenalan03@gmail.com> wrote:

> The latest beta — ConTeXt  ver: 2017.02.19  with LuaTeX, Version 1.0.3 — chokes
> on entries such as
> \cite[author1, author2, and author3 2017]
> and reports an error: e.g.,
>
>
> lua error       > lua error on line 81 in file c_Brill09-02_Evans.tex:
>
>
> C stack overflow
>
> stack traceback:
>
> [C]: in function 'type'
>
> ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:373: in
> function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:367>
>
> [C]: in function 'tostring'
>
> ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:342: in
> function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:317>
>
> If I try something like
> \cite[A B and C] all is well.
> Adding the commas as in \cite[A, B, and C] gets the error.
> Sadly, I need the commas.
>
> Alan
>

[-- Attachment #1.2: Type: text/html, Size: 4421 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-21 19:42 ` Alan Bowen
@ 2017-02-21 20:33   ` Alan Braslau
  0 siblings, 0 replies; 13+ messages in thread
From: Alan Braslau @ 2017-02-21 20:33 UTC (permalink / raw)
  To: Alan Bowen; +Cc: mailing list for ConTeXt users

\cite [A,B,C]


On Tue, 21 Feb 2017 14:42:23 -0500
Alan Bowen <bowenalan03@gmail.com> wrote:

> I should add that the problem is with this entry alone. Otherwise the
> citations in the chapter work as they should. (Other chapters fail
> for the same reason—one of the many citations with commas seems to
> cause the error.)
> 
> The book processed with incident in the previous beta
> 
> Any suggestions about to address this will be gladly received.
> 
> A.
> 
> On Tue, Feb 21, 2017 at 2:25 PM, Alan Bowen <bowenalan03@gmail.com>
> wrote:
> 
> > The latest beta — ConTeXt  ver: 2017.02.19  with LuaTeX, Version
> > 1.0.3 — chokes on entries such as
> > \cite[author1, author2, and author3 2017]
> > and reports an error: e.g.,
> >
> >
> > lua error       > lua error on line 81 in file
> > c_Brill09-02_Evans.tex:
> >
> >
> > C stack overflow
> >
> > stack traceback:
> >
> > [C]: in function 'type'
> >
> > ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:373: in
> > function
> > <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:367>
> >
> > [C]: in function 'tostring'
> >
> > ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:342: in
> > function
> > <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:317>
> >
> > If I try something like
> > \cite[A B and C] all is well.
> > Adding the commas as in \cite[A, B, and C] gets the error.
> > Sadly, I need the commas.
> >
> > Alan
> >



-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS UMR 3680
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.braslau@cea.fr
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-21 19:25 new lua/stack error Alan Bowen
  2017-02-21 19:42 ` Alan Bowen
@ 2017-02-22  8:26 ` Hans Hagen
  2017-02-22 15:50   ` Alan Bowen
  1 sibling, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2017-02-22  8:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/21/2017 8:25 PM, Alan Bowen wrote:
> The latest beta — ConTeXt  ver: 2017.02.19  with LuaTeX, Version 1.0.3
> — chokes on entries such as
> \cite[author1, author2, and author3 2017]
> and reports an error: e.g.,
>
>
> lua error       > lua error on line 81 in file c_Brill09-02_Evans.tex:
>
>
> C stack overflow
>
> stack traceback:
>
> [C]: in function 'type'
>
> ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:373: in
> function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:367>
>
> [C]: in function 'tostring'
>
> ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:342: in
> function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:317>
>
>
> If I try something like
> \cite[A B and C] all is well.
> Adding the commas as in \cite[A, B, and C] gets the error.
> Sadly, I need the commas.

does {,} solve it? probably the commas end up sometime later in a comma 
separated list

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/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-22  8:26 ` Hans Hagen
@ 2017-02-22 15:50   ` Alan Bowen
  2017-02-22 16:44     ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Bowen @ 2017-02-22 15:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2410 bytes --]

Hi, Hans—

The problem is the line \startbibitem[A, B, and C]\stopbibitem. I can
either keep it and any others like  \cite[A], \cite[B] or \cite[A]\cite[B]
are messed up or I can comment it out and these same citations work.
\startbibitem[A{,} B{,}and C]\stopbibitem (as you suggested) does allow the
other citations to work. But, then, neither \cite[A, B, and C] nor the
\cite[A{,} B{,} and C] works.

Alan


On Wed, Feb 22, 2017 at 3:26 AM, Hans Hagen <pragma@wxs.nl> wrote:

> On 2/21/2017 8:25 PM, Alan Bowen wrote:
>
>> The latest beta — ConTeXt  ver: 2017.02.19  with LuaTeX, Version 1.0.3
>> — chokes on entries such as
>> \cite[author1, author2, and author3 2017]
>> and reports an error: e.g.,
>>
>>
>> lua error       > lua error on line 81 in file c_Brill09-02_Evans.tex:
>>
>>
>> C stack overflow
>>
>> stack traceback:
>>
>> [C]: in function 'type'
>>
>> ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:373: in
>> function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua
>> :367>
>>
>> [C]: in function 'tostring'
>>
>> ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:342: in
>> function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua
>> :317>
>>
>>
>> If I try something like
>> \cite[A B and C] all is well.
>> Adding the commas as in \cite[A, B, and C] gets the error.
>> Sadly, I need the commas.
>>
>
> does {,} solve it? probably the commas end up sometime later in a comma
> separated list
>
> 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
> ____________________________________________________________
> _______________________

[-- Attachment #1.2: Type: text/html, Size: 4205 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-22 15:50   ` Alan Bowen
@ 2017-02-22 16:44     ` Hans Hagen
  2017-02-22 17:21       ` Alan Bowen
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2017-02-22 16:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/22/2017 4:50 PM, Alan Bowen wrote:
> Hi, Hans—
>
> The problem is the line \startbibitem[A, B, and C]\stopbibitem. I can
> either keep it and any others like  \cite[A], \cite[B] or
> \cite[A]\cite[B] are messed up or I can comment it out and these same
> citations work.
> \startbibitem[A{,} B{,}and C]\stopbibitem (as you suggested) does allow
> the other citations to work. But, then, neither \cite[A, B, and C] nor
> the \cite[A{,} B{,} and C] works.

so we need a small example

-----------------------------------------------------------------
                                           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/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-22 16:44     ` Hans Hagen
@ 2017-02-22 17:21       ` Alan Bowen
  2017-02-23 20:42         ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Bowen @ 2017-02-22 17:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2782 bytes --]

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


On Wed, Feb 22, 2017 at 11:44 AM, Hans Hagen <pragma@wxs.nl> wrote:

> On 2/22/2017 4:50 PM, Alan Bowen wrote:
>
>> Hi, Hans—
>>
>> The problem is the line \startbibitem[A, B, and C]\stopbibitem. I can
>> either keep it and any others like  \cite[A], \cite[B] or
>> \cite[A]\cite[B] are messed up or I can comment it out and these same
>> citations work.
>> \startbibitem[A{,} B{,}and C]\stopbibitem (as you suggested) does allow
>> the other citations to work. But, then, neither \cite[A, B, and C] nor
>> the \cite[A{,} B{,} and C] works.
>>
>
> so we need a small example
>
>
> -----------------------------------------------------------------
>                                           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
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 6620 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-22 17:21       ` Alan Bowen
@ 2017-02-23 20:42         ` Hans Hagen
  2017-02-23 21:12           ` Alan Bowen
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2017-02-23 20:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-23 20:42         ` Hans Hagen
@ 2017-02-23 21:12           ` Alan Bowen
  2017-02-23 21:41             ` Alan Bowen
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Bowen @ 2017-02-23 21:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2777 bytes --]

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=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
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 4435 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-23 21:12           ` Alan Bowen
@ 2017-02-23 21:41             ` Alan Bowen
  2017-02-24 10:21               ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Bowen @ 2017-02-23 21:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3237 bytes --]

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 <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=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
>> ____________________________________________________________
>> _______________________
>>
>
>

[-- Attachment #1.2: Type: text/html, Size: 5797 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-23 21:41             ` Alan Bowen
@ 2017-02-24 10:21               ` Hans Hagen
  2017-02-24 12:42                 ` Alan Bowen
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2017-02-24 10:21 UTC (permalink / raw)
  To: ntg-context

On 2/23/2017 10:41 PM, Alan Bowen wrote:
> 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.

i'll upload a beta that support this:

\setupinteraction[state=start]

\starttext

\startchapter[reference={{A, B, and C}},title={Foo}]

     \in{IN}[name{A, B, and C}]

     \in{IN}[name(A, B, and C)]

\stopchapter

you need to be aware of the fact that references have some kind of 
syntax and are parsed (so that we only need one system for every kind of 
referencing); most make only sense for \goto but parsing happens anyway 
for \in and \at so i hooked name() into it, similar to [page(123)] we 
can have [name(abc)] now

Hans


> Alan
>
> On Thu, Feb 23, 2017 at 4:12 PM, Alan Bowen <bowenalan03@gmail.com
> <mailto:bowenalan03@gmail.com>> wrote:
>
>     Thanks, Hans! That does work nicely.
>
>     On Thu, Feb 23, 2017 at 3:42 PM, Hans Hagen <pragma@wxs.nl
>     <mailto: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=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
>         <http://www.pragma-ade.nl> | www.pragma-pod.nl
>         <http://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 <mailto:ntg-context@ntg.nl> /
>         http://www.ntg.nl/mailman/listinfo/ntg-context
>         <http://www.ntg.nl/mailman/listinfo/ntg-context>
>         webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>         archive  : https://bitbucket.org/phg/context-mirror/commits/
>         <https://bitbucket.org/phg/context-mirror/commits/>
>         wiki     : http://contextgarden.net
>         ___________________________________________________________________________________
>
>
>
>
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           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/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-24 10:21               ` Hans Hagen
@ 2017-02-24 12:42                 ` Alan Bowen
  2017-02-24 17:00                   ` Aditya Mahajan
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Bowen @ 2017-02-24 12:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 6351 bytes --]

Excellent, Hans. Many thanks!
Alan

On Fri, Feb 24, 2017 at 5:21 AM, Hans Hagen <pragma@wxs.nl> wrote:

> On 2/23/2017 10:41 PM, Alan Bowen wrote:
>
>> 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.
>>
>
> i'll upload a beta that support this:
>
> \setupinteraction[state=start]
>
> \starttext
>
> \startchapter[reference={{A, B, and C}},title={Foo}]
>
>     \in{IN}[name{A, B, and C}]
>
>     \in{IN}[name(A, B, and C)]
>
> \stopchapter
>
> you need to be aware of the fact that references have some kind of syntax
> and are parsed (so that we only need one system for every kind of
> referencing); most make only sense for \goto but parsing happens anyway for
> \in and \at so i hooked name() into it, similar to [page(123)] we can have
> [name(abc)] now
>
> Hans
>
>
> Alan
>>
>> On Thu, Feb 23, 2017 at 4:12 PM, Alan Bowen <bowenalan03@gmail.com
>> <mailto:bowenalan03@gmail.com>> wrote:
>>
>>     Thanks, Hans! That does work nicely.
>>
>>     On Thu, Feb 23, 2017 at 3:42 PM, Hans Hagen <pragma@wxs.nl
>>     <mailto: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=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
>>         <http://www.pragma-ade.nl> | www.pragma-pod.nl
>>         <http://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 <mailto:ntg-context@ntg.nl> /
>>         http://www.ntg.nl/mailman/listinfo/ntg-context
>>         <http://www.ntg.nl/mailman/listinfo/ntg-context>
>>         webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>         archive  : https://bitbucket.org/phg/context-mirror/commits/
>>         <https://bitbucket.org/phg/context-mirror/commits/>
>>         wiki     : http://contextgarden.net
>>         ____________________________________________________________
>> _______________________
>>
>>
>>
>>
>>
>> ____________________________________________________________
>> _______________________
>> 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
>> ____________________________________________________________
>> _______________________
>>
>>
>
> --
>
> -----------------------------------------------------------------
>                                           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
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 10592 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: new lua/stack error
  2017-02-24 12:42                 ` Alan Bowen
@ 2017-02-24 17:00                   ` Aditya Mahajan
  0 siblings, 0 replies; 13+ messages in thread
From: Aditya Mahajan @ 2017-02-24 17:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 24 Feb 2017, Alan Bowen wrote:

> Excellent, Hans. Many thanks!

Please wifify this!

Aditya
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-02-24 17:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-21 19:25 new lua/stack error Alan Bowen
2017-02-21 19:42 ` Alan Bowen
2017-02-21 20:33   ` Alan Braslau
2017-02-22  8:26 ` Hans Hagen
2017-02-22 15:50   ` Alan Bowen
2017-02-22 16:44     ` Hans Hagen
2017-02-22 17:21       ` Alan Bowen
2017-02-23 20:42         ` Hans Hagen
2017-02-23 21:12           ` Alan Bowen
2017-02-23 21:41             ` Alan Bowen
2017-02-24 10:21               ` Hans Hagen
2017-02-24 12:42                 ` Alan Bowen
2017-02-24 17:00                   ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).