Skip to content

Bugfix/request: Wrap URL for webpages (in 'howpublished' field) in \url{}? #3316

@michael1006

Description

@michael1006

Debug log ID

UV4EB3LM-refs-euc/✓/✓

What happened?

I have an item in Zotero with:

Type: Web Page
URL: http://example.com

In BBT settings, under "Add URLs to BibTeX export", None (default) is selected.

When I export to BibTeX (I'm not using BibLaTeX), the item is a @misc and it places the URL in the howpublished field like this:

howpublished = {http://example.com},

However, the style I'm using (sn-chicago.bst from the Springer Nature template) outputs the URL as regular text, so it's not hyperlinked, and if it were long it would run off the right margin because it would be considered as single word.

So it seems like it really ought to be exported as:

howpublished = {\url{http://example.com}},

Of course, there do seem to be further wrinkles here:

  1. Obviously while I have "Add URLs to BibTeX export" set to None, it makes sense to me and is desired that this still outputs a URL since it is a webpage after all. (When I set Add URLs to something else, it adds tons of extra URL's I don't want, so that current behavior seems A+)
  2. I don't quite understand why it uses howpublished instead of note, but at least for my template it works both ways so no complaints
  3. I know you have options under "Add URLs to BibTeX export" for whether to wrap in \url{...} or not. So it seems like this would perhaps involve removing the ", but assuming the 'url' package is not loaded" variants from the dropdown, and making a general checkbox around wrapping in \url or not that covers both URLs across all items, as well as the ones always included for webpages?

Let me know if anything is unclear? BBT is a godsend so thank you for it. Each time I think there's something I want it to do but assume it can't, I discover it can. It's such a critical tool so thanks again!

Metadata

Metadata

Assignees

Projects

Status

Awaiting user input

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions