When the editor and the translator are the same, it is fine in other style but they are doubled in chicago style. It is totally fine when there is only editor or translator, or the editor is different than the translator.
Thank you.
When the editor and the translator are the same, it is fine in other style but they are doubled in chicago style. It is totally fine when there is only editor or translator, or the editor is different than the translator.
Thank you.
Hello @shing.549 and welcome to the forum,
Instead of pasting some screenshots of code snippets, would you please include them within backticks so we can cut/paste easily? That way you are more likely to get some help.
Like this:
= Test
#lorem(20) // See copy button ----->
Thanks ![]()
Looks like a bug to me.
CSL 1.0.2 Specification — Citation Style Language 1.0.1-dev documentation
… with one exception: when the selection consists of “editor” and “translator”, and when the contents of these two name variables is identical, then the contents of only one name variable is rendered.
#let bib = bytes(
```
@book{
book1,
title={My Book 1},
author={The Author},
publisher={The Publisher},
editor={The Editor},
translator={The Editor},
langid={English},
pagetotal={30},
year={2015}
}
```.text,
)
Refer to @book1
#bibliography(style: "chicago-notes", bib)
Using the very convenient A snippet to debug bibliography entries by showing what CSL receives :
I would report it, just not sure where?
Thank you very much.
I am also not sure where to report this issue.
It looks like these lines in the identifier-contributors-monographic-bib macro are to be blamed:
(According to archive.rs - source, chicago-notes in typst = chicago-notes-bibliography.csl.)
#set page(height: auto, width: 20em, margin: 1em)
#let bib = bytes(
```bib
@book{a,
editor = {The Editor},
translator = {The Editor},
}
```.text,
)
#let csl = bytes(
```csl
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0">
<!-- This file was generated by the Style Variant Builder <https://github.com/citation-style-language/style-variant-builder>. To contribute changes, modify the template and regenerate variants. -->
<info>
<title>Chicago Manual of Style 18th edition (notes and bibliography, Edited)</title>
<id>http://www.zotero.org/styles/chicago-notes-bibliography#Edited</id>
</info>
<citation>
<layout>
<text value="(irrelevant)"/>
</layout>
</citation>
<bibliography>
<layout>
<names variable="editor-translator"/>
<names variable="editor translator"/>
</layout>
</bibliography>
</style>
```.text,
)
Refer to @a
#bibliography(style: csl, bib)
#bibliography(style: "chicago-notes", …) to #bibliography(style: "chicago-notes-bibliography.csl", …).In the APA style, only <names variable="editor translator" /> is used. So perhaps chicago-notes-bibliography.csl should remove editor-translator and keep editor translator only.
Yes, that is the problem. Using the CSL file and deleting the lines works. Thank you so much!
Hi @shing.549, thanks for your question! If you feel the response you got has sufficiently answered your question, be sure to give it a checkmark
. This will help others find the solution in the future. If something is missing, please let us know what so we can resolve your issue.
I would also still encourage you to replace the screenshots of code in your post, as @vmartel08 has pointed out. It makes your post easier to find (since the search box is text based) and increases accessibility for people who depend on screenreaders.
Thanks!