ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Bowen <bowenalan03@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: new lua/stack error
Date: Thu, 23 Feb 2017 16:12:36 -0500	[thread overview]
Message-ID: <CAFMOkGXOzgf_i4z6YwOCo2+_MDpkGfQMDfmbVZ9978OzVBF9xw@mail.gmail.com> (raw)
In-Reply-To: <7c1e1de6-a366-bf31-9961-ae7842d8cc2c@wxs.nl>


[-- 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
___________________________________________________________________________________

  reply	other threads:[~2017-02-23 21:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-21 19:25 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFMOkGXOzgf_i4z6YwOCo2+_MDpkGfQMDfmbVZ9978OzVBF9xw@mail.gmail.com \
    --to=bowenalan03@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).