I wrote the codes for generating references as shown:

title = {Translating Embeddings for Modeling Multi-relational Data},
author = {Bordes, Antoine and Usunier, Nicolas and Garcia-Duran, Alberto and Weston, Jason and Yakhnenko, Oksana},
booktitle = {Advances in Neural Information Processing Systems 26},
editor = {C. J. C. Burges and L. Bottou and M. Welling and Z. Ghahramani and K. Q. Weinberger},
pages = {2787--2795},
year = {2013},
publisher = {Curran Associates, Inc.},
url = 

However, the URL is too long and it went beyond the margin of the paper. I'm wondering if we can restrict the URL? See the following picture:

enter image description here

  • 4
    By default URLs are only broken after certain characters (/.,_ etc., but not - to avoid confusion with hyphenation) in your case with narrow text that is a problem. See tex.stackexchange.com/q/3033/35864 for possible ways to improve URL breaking (read all answers, not just the accepted answer).
    – moewe
    May 9 '20 at 14:46
  • 3
    Have you tried loading the xurl package?
    – Mico
    May 9 '20 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.