Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ibid becomes ibid-with-locator when not necessary #280

Open
1 task done
wkordalski opened this issue Feb 22, 2025 · 0 comments
Open
1 task done

ibid becomes ibid-with-locator when not necessary #280

wkordalski opened this issue Feb 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@wkordalski
Copy link

wkordalski commented Feb 22, 2025

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
@wkordalski wkordalski added the bug Something isn't working label Feb 22, 2025
@PgBiel PgBiel transferred this issue from typst/typst Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant