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

Add url (and other fields) to bibtex output #8287

Closed
reagle opened this issue Sep 9, 2022 · 4 comments
Closed

Add url (and other fields) to bibtex output #8287

reagle opened this issue Sep 9, 2022 · 4 comments

Comments

@reagle
Copy link

reagle commented Sep 9, 2022

I (sadly) learned that some ACM sigs are still using old school bibtex and bst style files.

I know url wasn't include in Patashnik, but it's been common since at least 2007/2008. I think some of the major bsts can use it and url could be included in pandoc's bibtex output. OR, pandoc could follow some of the old ways of extending bibtex by making use of the howpublished and note fields:

howpublished = "\url{https://www.nasa.gov/nh/pluto-the-other-red-planet}"
note = "Accessed on 2022 Sep 09"

I expect this'll be a one off for me, so it'd be good to have feedback from those who still use latex/bibtex and best know what's out there.

@tarleb
Copy link
Collaborator

tarleb commented Sep 9, 2022

A good workaround might be to use biblatex output. If some fields cause issues, we could remove them with a Lua filter.

@reagle
Copy link
Author

reagle commented Sep 9, 2022

@tarleb, that's a possibility: the date field is the pain-point on using biblatex as bibtex. Bibtex needs year/month/day, other than that, I think most things are used or ignored.

@jgm
Copy link
Owner

jgm commented Sep 9, 2022

howpublished might not be the best choice, though, in the case where a URL is provided in addition to regular journal identification. Or is url only used for web-only resources?

@reagle
Copy link
Author

reagle commented Sep 9, 2022

I was thinking of surveying the fields in the most popular BSTs or public bibtex databases, but that felt like too much work for a cruddy/ancient/ambiguous format I'd rather not bother with at all -- except for the need to make a conference submission. So I'm not sure.

Strict bibtex types also are as dated/limited as the fields, but I suspect most online resources are described as type @misc with a url field, whereas journals have type @article with a url. (Biblatex has type @online.)

@jgm jgm closed this as completed in e92f1a5 Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants