I got the problem, that links in \url
only break in LyX when there is a \
character in it. I found the solution to add \usepackage[hyphens]{url}
to my preamble.
But the problem is, LyX loads the package url
with no options, and I get an error. How can I solve this?
\PassOptionsToPackage{hyphens}{url}
before\documentclass
and you should be fine :)\documentclass
in LyX. You can add options to the document class however, which will also pass it to all packages (right?).\usepackage[hyphens]{url}
in the LaTeX Preamble in LyX, the option is loaded correctly.