From: rogutes@googlemail.com
To: ntg-context@ntg.nl
Subject: URLs [Re: \hyphenatedurl and the '%' character]
Date: Thu, 3 Jun 2010 16:36:42 +0300 [thread overview]
Message-ID: <20100603133641.GA29047@urvas> (raw)
In-Reply-To: <20100602211615.GA32081@urvas>
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2010-06-03 13:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-02 21:16 \hyphenatedurl and the '%' character Rogutės Sparnuotos
2010-06-03 13:36 ` rogutes [this message]
2010-06-03 14:43 ` URLs [Re: \hyphenatedurl and the '%' character] Otared Kavian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100603133641.GA29047@urvas \
--to=rogutes@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).