How can I show the arXiv identifier in the bibliography?

I would like to use the IEEE style (or a custom modified CSL file based on that) for my bibliography. I also want to cite preprints from arXiv. In the .bib file they are usually marked as a @misc entry and have values eprint, archivePrefix, and PrimaryClass. One example would be

@misc{hicken2024constructing,
  title={
    Constructing Stable, High-Order Finite-Difference Operators on Point Clouds
    over Complex Geometries
  },
  author={Hicken, Jason and Yan, Ge and Kaur, Sharanjeet},
  year={2024},
  month=sep,
  eprint={2409.00809},
  archivePrefix={arXiv},
  primaryClass={math.NA}
}

Currently, the fields eprint, archivePrefix, and primaryClass are just ignored and not displayed in the bibliography. However, I would like to show the arXiv identifier in the bibliography as arXiv: 2409.00809 [math.NA] and ideally automatically create a link to the paper. I have seen this recent post by @Philipp, which is already helpful for creating the link, but for this I need to display the arXiv reference in the first place. How can I achieve this?

2 Likes

I’d also be interested in an answer. As a very quick workaround, I added a “note” field into the yaml file (using hayagriva, but should probably also work with a .bib file) and then modified a CSL file to display that note. I just downloaded the IEEE csl file from the zotero style repository and then around line 425, changed it to look like this:

        <else-if type="article">
          <group delimiter=", " suffix=".">
            <text macro="title"/>
            <text macro="issued"/>
            <group delimiter=": ">
              <text macro="publisher" font-style="italic"/>
              <text variable="number"/>
            </group>
            <text variable="note"/>
          </group>
          <text macro="access"/>
        </else-if>

Then in the yaml file, I added the field note: "arXiv: 1234.56789". I don’t know much about CSL and am fairly new to Typst, so there is probably a much better answer. Since this is a common use case, I think it would be nice if that would work out of the box, especially since hayagriva explicitly supports arXiv serial numbers.

1 Like