ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Tobias Burnus <tobias.burnus@physik.fu-berlin.de>
Subject: \hyphenatedurl problem
Date: Sun, 21 Dec 2003 23:35:03 +0100	[thread overview]
Message-ID: <20031221223503.GA16055@physik.fu-berlin.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 781 bytes --]

Hi,

I'm sure I miss something obvious but I have no clue what it is.
I have:

\def\gotoDOI#1{\hyphenatedurl#1}

      \gotoDOI{10.1016/S0009-2614(01)01361-6}
\hyphenatedurl{10.1016/S0009-2614(01)01361-6}

and I redefined supp-lan.tex's \scanurl to hyphenate at '(' and ')'.

The strange thing is: Using gotoDOI the linebreak comes after the last
'-' ('...01361-' // '6') while using hyphenatedurl it's '...(01)' //
'01361-6' (the latter is desired).

See attached test case.


The real definition of gotoDOI will be:
\def\gotoDOI#1{\useURL[doi][#1]\useURL[doiurl][http://dx.doi.org/#1]%
               \goto{\url[doi]}[url(doiurl)]}


MERRY CHRISTMAS (or happy holidays) AND A HAPPY NEW YEAR!


Tobias


PS: Hans, can you include ( and ) as places where a hyphenation may
happen?

[-- Attachment #2: test.tex --]
[-- Type: application/x-tex, Size: 1726 bytes --]

             reply	other threads:[~2003-12-21 22:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-21 22:35 Tobias Burnus [this message]
2003-12-22 11:36 ` Hans Hagen
2015-04-11  5:20 Rik
2015-04-13 17:19 ` Pablo Rodriguez
2015-04-13 18:45   ` Rik Kabel

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=20031221223503.GA16055@physik.fu-berlin.de \
    --to=tobias.burnus@physik.fu-berlin.de \
    --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).