#123 Add \ifentrycitedmultipletimes test

closed
None
5
2012-10-09
2011-03-02
Jan Jakob
No

I apologise in advance if what I am asking for is already possible out of the box (at least without an elaborate workaround); I was not able to find it in the documentation Here is the real-life situation: The McGill guide on legal citation requires on to print certain fields, like the shorthand or the actual reporter used, in the footnote if the entry has been cited more than once. So basically, what I would need is a test to determine whether an entry is cited once or multiple times in the document (or chapter) and then make the printing of the fieds conditional on the true result of this test. I have a vague feeling that this would be possible to implement even with the current feature set of Biblatex (setting a variable true if citeseen is true and only printing the fields if the variable is true if citeseen is false), but I think this might be something of general interest, and it would be more elegant to have a test like \ifciteseen, or the like. I realise that this would probably only work after an additional Latex run.

Cheers,

JJ

Discussion

  • Philip Kime
    Philip Kime
    2011-03-04

    I would strongly recommend asking this at http://tex.stackexchange.com/ as if it's possible with the current feature set, you're very likely to get an answer there quickly.

     
  • Jan Jakob
    Jan Jakob
    2011-03-04

    Thanks for the pointer to the forum, I asked my question there. However, my feature suggestion was regardless of whether that is currently possible though, because there does not seem to be an easy and intuitive way currently, and I was assuming that this might be actually useful outside of the legal citation business. Especially for people who use one bibtex database for all their papers, thus would need to make the decision on whether to print the shorthand field not on a per-entry, but per-paper and per-entry basis. I may be mistaken though.

     
  • Philipp Lehman
    Philipp Lehman
    2011-03-12

    It is not entirely clear to me whether this test is supposed to work synchronously or globally. By synchronously, I mean:

    1st citation -> test false
    2nd citation -> test false
    3rd citation -> test true
    nth citation -> test true

     
  • Jan Jakob
    Jan Jakob
    2011-03-12

    I think I mean globally. The way I envisioned it, if the entry has been cited more than once in the entire reference section, the test would already yield true at the first citation. I did come up with a semi-solution (semi because it does not take reference sections into account) (http://tex.stackexchange.com/questions/12679/check-if-an-entry-is-cited-multiple-times), which is an even more elaborate test than the one I asked for, because it checks whether the entry has been cited at least twice, and at least once subsequently without "ibid" (i.e., the two citations don't are right next to each other). If the feature is not of general interest, I will retract the request. It does still seem logical to me though that one would only want to give a shorthand if an entry is cited at least twice and at least once subsequently without ibid. And there does not seem to be a "biblatex-native" of doing that.

     
  • Jan Jakob
    Jan Jakob
    2011-03-12

    Never mind the part about semi-working. I made it chapter-aware now as documented on stackexchange.

     
  • Philipp Lehman
    Philipp Lehman
    2011-03-14

    The feature you suggested has been implemented in the latest release.