groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [groff] Groff with refer and et-al


From: Ralph Corderoy
Subject: Re: [groff] Groff with refer and et-al
Date: Tue, 10 Sep 2019 12:39:14 +0100

Hi Jaakko,

> What I am getting is :
> (Nolen-Hoeksema, 2017).
>
> What I am expecting is:
> (Nolen-Hoeksema et-al., 2017).

I too get your unexpected result and don't expect it given the logic at
http://git.savannah.gnu.org/cgit/groff.git/tree/src/preproc/refer/label.ypp#n1140

Here's a test case that I think is equivalent to yours for those playing
along at home.

    $ cat hops.ms
    .R1
    database hops.i
    join-authors ", and " ", "
    et-al " et al." 1 0
    bracket-label "" "" ""
    label "@"
    no-label-in-reference
    accumulate
    .R2
    >
    .[
    Zulu
    .]
    >
    .[
    Alpha Bravo
    .]
    >
    .[
    Alpha Zulu
    .]
    $
    $ cat hops.i
    %K az2019
    %A Alpha
    %A Zulu
    %T A-Z

    %K ab2019
    %A Alpha
    %A Bravo
    %A Charlie
    %A Delta
    %A Echo
    %T Alphabet
    $
    $ refer hops.ms
    .lf 1 hops.ms
    .lf 10 hops.ms
    >Alpha, and Zulu
    .lf 14 hops.ms
    >Alpha, Bravo, Charlie, Delta, and Echo
    .lf 18 hops.ms
    >Alpha, and Zulu
    .]<
    .]-
    .ds [A Alpha, and Zulu
    .ds [K az2019
    .ds [T A-Z
    .nr [T 0
    .nr [A 0
    .][ 0 other
    .]-
    .ds [A Alpha, Bravo, Charlie, Delta, and Echo
    .ds [K ab2019
    .ds [T Alphabet
    .nr [T 0
    .nr [A 0
    .][ 0 other
    .]>
    $

-- 
Cheers, Ralph.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]