Skip to content

Biblatex reader: Fix wrong combination of subtitle and titleaddon with maintitle#11677

Merged
jgm merged 1 commit into
jgm:mainfrom
adql:fix-biblatex-maintitle
May 30, 2026
Merged

Biblatex reader: Fix wrong combination of subtitle and titleaddon with maintitle#11677
jgm merged 1 commit into
jgm:mainfrom
adql:fix-biblatex-maintitle

Conversation

@adql
Copy link
Copy Markdown
Contributor

@adql adql commented May 29, 2026

A non-chapterlike Biblatex entry which has maintitle and subtitle/titleaddon (without the corresponding main- keys) results in the secondary title parts ending in both title and volume-title:

test.bib:

@book{book_key95,
  title = {Title},
  subtitle = {Subtitle},
  titleaddon = {Title Addon},
  maintitle = {MAIN TITLE},
  author = {Author, Some},
  date = {1995},
  publisher = {Unpublished},
  location = {Nowhere}
}

pandoc -s -t markdown test.bib:

---
nocite: "[@*]"
references:
- author:
  - family: Author
    given: Some
  id: book_key95
  issued: 1995
  publisher: Unpublished
  publisher-place: Nowhere
  title: "MAIN TITLE: Subtitle. Title addon"
  type: book
  volume-title: "Title: Subtitle. Title addon"
---

This pull request fixes this, resulting in:

---
nocite: "[@*]"
references:
- author:
  - family: Author
    given: Some
  id: book_key95
  issued: 1995
  publisher: Unpublished
  publisher-place: Nowhere
  title: MAIN TITLE
  type: book
  volume-title: "Title: Subtitle. Title addon"
---

This doesn't affect a situation where both subtitle and mainsubtitle (or addon respectively) exist, in which case the behavior is as expected-.

@jgm jgm merged commit c6ba4d9 into jgm:main May 30, 2026
7 of 10 checks passed
@jgm
Copy link
Copy Markdown
Owner

jgm commented May 30, 2026

thanks!

@adql adql deleted the fix-biblatex-maintitle branch May 31, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants