Skip to content

ibid-with-locator becomes ibid although the supplement differs #280

@wkordalski

Description

@wkordalski

Description

I have two citations, one after another referencing exactly the same entry, with exactly the same supplement.
Why the second citation gets ibid-with-locator instead of ibid position?

Reproduction URL

https://typst.app/project/pAgebwlNuDsnr1q5RMHSZw

main.typ

Par 1 @katalog[p. 5-8].

Par 2 @katalog[p. 5-8].

#bibliography("./bib.yml", style: "./style.csl")

bib.yml

katalog:
    type: Book
    title: "Book"
    author: "Surname, Name"
    location: Warsaw
    date: 1971

style.csl

<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
   <info>
      <title>Citing style</title>
      <id>http://www.example.com/</id>
   </info>

   <citation>
      <layout prefix="" suffix="." delimiter="; ">
         <choose>
            <if position="ibid-with-locator">
              <text term="part" />
            </if>
            <else-if position="ibid">
               <text term="ibid" />
            </else-if>
            <else-if position="subsequent">
              <text term="volume" />
            </else-if>
            <else>
              <text term="book" />
            </else>
         </choose>
      </layout>
   </citation>
  <bibliography>
    <sort>
      <key macro="contributors-biblio"/>
    </sort>
    <layout suffix=".">
      <group delimiter=", ">
        <group delimiter=", ">
          <text macro="locators-chapter"/>
        </group>
      </group>
    </layout>
  </bibliography>
</style>

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions