Rogutės Sparnuotos (2010-06-03 00:16):
Hello,
I defined
\def\url[#1]{\hyphenatedurl{#1}}
for URLs, because I find
\useURL[][] \from[]
inconvenient (there are ~30 URLs in my document and all of them unique). But \hyphenatedurl doesn't work with '%' (and '\%' gets printed literally). I'll just use \useURL as a workaround, but shouldn't \hyphenatedurl work as well?
1. Is anyone hyphenating URLs by hand? How? Is this ok? {\tt http://wiki.contextgarden.net/\crlf{}Article_Abstracts} Perhaps someone has done a macro like \urlparts{http://}{wiki.}{contextgarden}{.net}{Article_}{Abstract}? What about active URLs (\crlf doesn't work in \goto with MkII)? 2. Regarding URL hyphenation, why is an overfull line preferred over a slightly underfull one? \starttext \startframedtext[width=6.3cm] \hyphenatedurl{http://wiki.contextgarden.net/Article_Abstracts} \stopframedtext \stoptext Some observed MkII and MkIV differences follow (still don't know if anyone is interested in these...): 3. It seems that one can't redefine \url[] and still use \useURL[][], \from[] with MkII (but it works with MkIV). 4. \from[] is not hyphenated with MkII, but is hyphenated with MkIV (with \setupinteraction[state=start]). 5. \from[] is typeset in typewriter font with MkII, and in roman with MkIV (without \setupinteraction[state=start]). Example for 4., 5.: \useURL[x][http://minimals.contextgarden.net/pragma/linux-64/texmf-linux-64/bin/] \starttext \from[x] \stoptext -- -- Rogutės Sparnuotos