I am writing my survey report using LyX. In my bibliography section, there is unusual behavior in my pdf. One reference breaks the margin. This is the issue

enter image description here

You can see that one line is out of standard formatting. Why does this happen? Can I solve the problem?

closed as unclear what you're asking by Andrew Swann, Benedikt Bauer, egreg, Jesse, user31729 Jan 11 '15 at 17:54

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I don't know LyX that well, but you can fix that with the url package. Research how to use url with LyX; the solution to that will solve your problem :) – Sean Allred Dec 11 '14 at 3:57
  • But I think it is not related with url . – vigamage Dec 11 '14 at 3:59
  • It looks like a file path, which is a type of URL (more properly called a URI these days) – Sean Allred Dec 11 '14 at 3:59
  • where to put it in preamble? – vigamage Dec 11 '14 at 4:02
  • Anywhere, really. See also tex.stackexchange.com/q/133681/17423. – Sean Allred Dec 11 '14 at 4:02

LaTeX will refuse to break a 'word' if it contains, among a few other characters, a /. This has very solid reasoning that's outside the scope of this answer, but the url LaTeX package will handle these things very cleanly.

Instead of typing in the file path directly, use Insert -> URL. This will (presumably) wrap the argument in \url{<my text here>} so that line breaks are made correctly.

Not the answer you're looking for? Browse other questions tagged or ask your own question.