[Refdb-users] URL wrapping (off-topic)
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mar...@mh...> - 2006-02-12 21:36:56
|
Jeremy Malcolm writes: > Is there any way to force URLs in the bibliography to wrap in the > printed output, where the URL extends past the end of a line? Currently > URLs will only wrap if there is a - character in them, they won't wrap > on / characters, which sometimes means they push through the right margin. > This is a general problem also in preformatted text, like <programlisting> or <screen> content. > I tried to do that by using the TeX 'url' package. This requires the > URLs to be <ulink>s. However if I turn my URLs in the bibliography into > <ulinks>, I get errors because the schema does not allow them there. > I'm afraid I've lost you here. The URLs in the bibliography are supposed to be ulinks, and they seem to be, according to your own test data. The generated bibliography contains e.g.: <ulink role="url" url="http://homes.eff.org/~barlow/Declaration-Final.html">http://homes.eff.org/~barlow/Declaration-Final.html</ulink> Or do you mean the *contents* of the ulink element would have to be an <ulink> again for the TeX magic to work? If that were the case, I wonder whether the DSSSL stylesheet could be tweaked to suppress the contents of the element and to pass the remainder to TeX. ulinks as the one shown above are pretty ugly in the printed output anyway as the url is essentially printed twice, the second one being wrapped in parentheses. Could you please send a very simple example of a TeX file with an URL that is wrapped correctly, including the extra packages that you have to include? I'll see whether the necessary tweaks could be included into the RefDB tools. regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |