On Mon, Jul 23, 2018 at 11:55 AM, Werner LEMBERG <[email protected]> wrote: > shows that @url in @raggedright environments would need some > improvements.
The output looks the same whether it is in @raggedright or not, so it seems that it needs improvement in both cases. > What about adding code to support something similar to > the `hyphens' option of LaTeX's `url' package? This, together with a > call to `\emergencystretch' at the beginning of the ragged-right > environment, seems to solve the issue. I looked at the documentation of the url package at https://ctan.org/pkg/url?lang=en. If I understand it correctly the "hyphens" option allows line breaking at a hyphen. texinfo.tex is supposed to allow breaking at some characters but not the hyphen. I think breaking at "/" would be sufficient in the example you give. The problem is how to achieve this. I tried increasing greatly the values of \urefprestretchamount and \urefpoststretchamount, which causes breaking outside @raggedright, but not inside @raggedright where these values are overridden. The formatting is also messed up. Probably some more experimentation is needed with different options. In the meantime, @/ is an option to allow a break: @url{https://www.gnu.org/software/libc/manual/html_node/Message-catalogs-@/with-gettext.html} Currently, this looks a lot better (to me) in the @raggedright environment where there is no stretch around the "/" characters. > IMHO, an underfull box is always preferable to an overfull one (at > least in technical documentation). > > > Werner
