Giter VIP home page Giter VIP logo

Comments (5)

goerz avatar goerz commented on August 20, 2024

The official way to have "corporate authors" in LaTeX is to enclose the name in braces. So, the .bib file should definitely look as

@Misc{OEIS,
  author        = {{OEIS Foundation Inc.}},
  title         = {The {O}n-{L}ine {E}ncyclopedia of {I}nteger {S}equences},
  howpublished  = {Published electronically at https://oeis.org},
  year          = {2023},
  url           = {https://oeis.org}
}

Unfortunately, though, as you point out, this has to be fixed by Azzaare in Bibliography.jl/BibInternal.jl with a new release. I've added 87a14ca (in #47) with a test to track the issue here. If you run that test, you'll see that Bibliography.jl parses the name as

BibInternal.Name
  particle: String ""
  last: String "Inc.}"
  junior: String ""
  first: String ""
  middle: String ""

which is very very wrong.

I figured out a workaround, though: use non-breaking spaces ("\u00A0") for the name in the .bib file.

from documentercitations.jl.

goerz avatar goerz commented on August 20, 2024

This is the workaround: 6aa7f8f

You can't see it in the Github UI (cf. #46 (comment)), but the .bib file contains non-breaking spaces, which you'll have to figure out how to type, or paste from a unicode table

from documentercitations.jl.

lgoettgens avatar lgoettgens commented on August 20, 2024

https://github.com/Humans-of-Julia/BibInternal.jl/releases/tag/v0.3.5 is now available, including Humans-of-Julia/BibInternal.jl#21. So the only work needed here is to adapt the compat bound, and remove some braces from such entries (which is a special instance of #15).

from documentercitations.jl.

goerz avatar goerz commented on August 20, 2024

Oh, wow, I totally missed that, somehow!

Ok, I’ll verify the test on top of #52, and if everything works, we can close this.

I’ll probably leave the compat bound as-is: fundamentally the plugins still works even with the older version. And unless someone specifically pins the old version, they should get the newest release anyway. If they do pin the old version, they’ll have to deal with any bugs in that version (and presumably, they have a reason for wanting the exact old behavior)

from documentercitations.jl.

goerz avatar goerz commented on August 20, 2024

I've verified that the test passes now, so I'll update and merge #47 after #52 is merged. 🎉

I’ll probably leave the compat bound as-is:

Just to clarify: we don't have an explicit dependency on BibInternal.jl, only Bibliography.jl. I'd be reluctant to change that, when BibInternal is not explicitly used in the code.

However, BibInternal v0.3.5 is compatible even with the oldest compat bound Bibliography v0.2.15. I'm explicitly testing in the CI that the minium compat bounds work correctly, so that should be good enough.

from documentercitations.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.