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

Trouble with ampersands in bibliography URLs #97

Open
joshuahhh opened this issue Jul 11, 2023 · 0 comments
Open

Trouble with ampersands in bibliography URLs #97

joshuahhh opened this issue Jul 11, 2023 · 0 comments

Comments

@joshuahhh
Copy link
Collaborator

I think you're supposed to escape ampersands in bibliography URLs. (Seems like LaTeX yells at me when I don't.)

But something in LP's bibliography pipeline messes them up. In my .md:

@misc{wikipedia-grafting,
  author = "{Wikipedia contributors}",
  title = "Grafting --- {W}ikipedia{,} The Free Encyclopedia",
  year = "2022",
  url = "https://en.wikipedia.org/w/index.php?title=Grafting\&oldid=1095365064",
  note = "[Online; accessed 01-September-2022]"
}

In the output .bib:

@misc{wikipedia-grafting,
	author = {{Wikipedia contributors}},
	year = {2022},
	note = {[Online; accessed 01-September-2022]},
	title = {Grafting --- {Wikipedia}, {The} {Free} {Encyclopedia}},
	howpublished = {https://en.wikipedia.org/w/index.php?title=Grafting%5C&oldid=1095365064},
}

There's actually a bunch of things getting twiddled with here, which is a bit surprising. But the important bit is that \& becomes %5C&, which doesn't work.

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

No branches or pull requests

1 participant