URL wrapping (off-topic)

"Markus Hoenicka" <[email protected]>
Newsgroups gmane.text.refdb.general
Message-ID <[email protected]>
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
[email protected]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.