Re: Multiple reference citations

Thomas Schraitle <[email protected]> Tue, 22 Jan 2019 13:38:28 +0100
Newsgroups gmane.text.docbook.misc
Message-ID <[email protected]>
Hi Gerrit,

Am Tue, 22 Jan 2019 11:21:19 +0100
schrieb "Imsieke, Gerrit, le-tex" <[email protected]>:

> [...]
> Is there a canonical way to cite multiple references, as can be done
> in LaTeX using the cite and other packages [1]?
> 
> In one customization we allowed @linkends on biblioref.
> 
> Example: <biblioref linkends="ref1 ref2 ref3 ref6"/> → [1–3,6]

Unfortunately, there is no linkend_s_ (plural), only linkend (singular).


> We are inclined to keep it like that and to use it in other 
> customizations. But maybe there’s a standard way that I am not aware
> of.
> 
> This is not a question about the DocBook stylesheets but just on how
> to mark it up appropriately.

Not sure if this is what you need, but have you tried <citation>?

  <para> 
   See <citation><biblioref
      linkend="ref1"/>, <biblioref
      linkend="ref2"/></citation>.
  </para>

The stylesheets create this output:

  See [1, 2].

Be careful about whitespaces inside <citation>; I think, they are
preserved.

However, if I'm not mistaken, the stylesheets cannot accumulate
citations to 1, 2, and 3 and create 1-3.


-- 
Gruß/Regards,
    Thomas Schraitle