Re: [NTG-context] bib modules compress a lot

2007-02-03 Thread Aditya Mahajan
On Wed, 31 Jan 2007, Taco Hoekwater wrote:

>
>
> Aditya Mahajan wrote:
>> Hi Taco,
>>
>> I have the following setup for my bibliographies
>>
>> \usemodule  [bib]
>> \setupbibtex[database={IEEEfull,../../collection}]
>> \setuppublications[alternative=num]
>> \setupcite  [num] [compress=yes]
>>
>> When I use \cite[ref1, ref2] I get [1-2]. For only two references,
>> shouldn't this be [1,2]?
>
> I'll put that on the todo list.

Here is what I am using for my project right now. Surely, there will 
be better ways to do this.

\def\doverysimplebibnumref#1#2%
   {\refsep
\ifcase#1\relax \unknownreference{#1}\else
  \def\tempa{#2}\ifx\empty\tempa#1\else#1\docommaordash{#1}{#2}#2\fi
\fi}

\def\docommaordash#1#2%
   {\doifelse{\the\numexpr#1+1-#2\relax}{0}
 {\bibalternative\c!pubsep}
 {\bibalternative\c!inbetween}}


Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bib modules compress a lot

2007-01-31 Thread Taco Hoekwater


Aditya Mahajan wrote:
> Hi Taco,
> 
> I have the following setup for my bibliographies
> 
> \usemodule  [bib]
> \setupbibtex[database={IEEEfull,../../collection}]
> \setuppublications[alternative=num]
> \setupcite  [num] [compress=yes]
> 
> When I use \cite[ref1, ref2] I get [1-2]. For only two references, 
> shouldn't this be [1,2]?

I'll put that on the todo list.

Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bib modules compress a lot

2007-01-30 Thread Aditya Mahajan
Hi Taco,

I have the following setup for my bibliographies

\usemodule  [bib]
\setupbibtex[database={IEEEfull,../../collection}]
\setuppublications[alternative=num]
\setupcite  [num] [compress=yes]

When I use \cite[ref1, ref2] I get [1-2]. For only two references, 
shouldn't this be [1,2]?


Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context