Mistake in FAQ: Q: Is it possible to add grouping logic to citations? Currently I have something like [1,2,3,4] and I want something like [1-4].

Jun 1, 2009 at 1:16 PM

Hi,

in case of the FAQ
Q: Is it possible to add grouping logic to citations? Currently I have something like [1,2,3,4] and I want something like [1-4].

it is possible to create such an citation by using the b:FirstAuthor and b:LastAuthor and xsl:if

In this case somthing like

<xsl:if test="b:Citation/bFirstAuthor">

<xsl:text>1-</xsl:text>

</xsl:if>

<xsl:if test="b:Citation/bLastAuthor">

<xsl:text>4</xsl:text>

</xsl:if>

 

 

greetz

christian

Coordinator
Jun 1, 2009 at 3:14 PM

Unfortunately your solution won't work. There are at least two reasons I can think of:

  1. You can not display nothing for certain in-text citations. If you don't display anything (which you would do for 2 and 3 in your example), Word would display "Invalid Source Specified.".
  2. If the sequence would be [6, 9, 10, 11, 12], your solution would abbreviate it to [6-12] rather than [6, 9-12].

The problem is the way Word process in-text citations: 1-by-1, even if the citations are grouped together. If they would have send everything in one go, similar as to how a bibliography is send, then logic could be added.