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

Lord Rayleigh #263

Closed
mforbes opened this issue Aug 30, 2021 · 4 comments
Closed

Lord Rayleigh #263

mforbes opened this issue Aug 30, 2021 · 4 comments
Labels

Comments

@mforbes
Copy link

mforbes commented Aug 30, 2021

It turns out that citing papers by Lord Rayleigh is quite a challenge with BibTeX. Here are a couple of suggestions, neither of which works out of the box with sphinxcontrib-bibtex. Any suggestions for a solution?

  • https://texfaq.org/FAQ-bibprefixsort

    Recommends definining something like the following to sort differently than displayed:

    @preamble{ {\providecommand{\noopsort}[1]{}} }
    @article{Rayleigh:1882,
        author = "{\noopsort{Rayleigh}}{Lord Rayleigh}",
        doi = {10.1080/14786448208628425},
        eprint = {https://doi.org/10.1080/14786448208628425},
        journal = {The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science},
        number = {87},
        pages = {184-186},
        publisher = {Taylor & Francis},
        title = {On the equilibrium of liquid conducting masses charged with electricity},
        volume = {14},
        year = {1882}}

    This relies on LaTeX being able to process the \noopsort command, which I don't see a good way of making work in the Sphinx context. (Though this is my preferred solution as it allows me to use journal-defined bst files.)

  • https://tex.stackexchange.com/questions/147932/peerage-titles-in-the-author-field-in-bibtex

    Recommends redefining the style to support a nameaddon field:

    @article{Rayleigh:1882,
            author = {Strutt, John William},
            nameaddon = {3rd Baron Rayleigh},  % Or {Lord Rayleigh}
        doi = {10.1080/14786448208628425},
        eprint = {https://doi.org/10.1080/14786448208628425},
        journal = {The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science},
        number = {87},
        pages = {184-186},
        publisher = {Taylor & Francis},
        title = {On the equilibrium of liquid conducting masses charged with electricity},
        volume = {14},
        year = {1882}}

The second could probably be made to work by customizing the style (have not tried that yet). Is there another option that might be preferable?

@mcmtroffaes
Copy link
Owner

Whatever the solution be, this would require some changes to pybtex, as that's essentially responsible for all bibtex entry formatting. I've forwarded your issue on the pybtex issue tracker:

https://bitbucket.org/pybtex-devs/pybtex/issues/155/support-non-standard-name-formats-such-as

@mforbes
Copy link
Author

mforbes commented Aug 30, 2021

Thanks for forwarding this. I have not yet isolated pybtex behaviour from the whole Sphinx system.

@mcmtroffaes
Copy link
Owner

Sure, no problem at all!

@mcmtroffaes
Copy link
Owner

Closing as this is a purely upstream issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants