Re: Suggesting Hyphenation Within URL

2006-07-18 Thread Paul A. Rubin

Rich Shepard wrote:
  I must be missing something simple here, so please be gentle when you 
clue

me in.

  The mechanism for providing hyphenation hints to LaTeX is to put {\-} at
acceptable word breaks. However, when a URL is entered (\usepackage{url} in
the preamble) with \url{some/long/text/here.html}, the hyphenation break is
seen as just more characters to be typeset literally.

  What's the magic incantation to suggest hyphenation breaks within a URL?

Thanks,

Rich



I don't think hyphenating a URL is a good idea, since the dash character 
is legal in a URL (so is that a hyphen, or a dash, asks the reader). 
Hints/instructions for using url.sty are stashed at the end of the file 
(not what I'm used to with LaTeX packages, but so be it).  In 
particular, look for the description of \UrlBreaks and \UrlBigBreaks, 
which control where long URLs are broken.


If you want to specify break points yourself, you might try loading with 
the package with the [obeyspaces,spaces] options (also described in 
url.sty) and then inserting spaces where you want breaks.


/Paul




Re: Suggesting Hyphenation Within URL

2006-07-18 Thread Rich Shepard

On Tue, 18 Jul 2006, Paul A. Rubin wrote:


I don't think hyphenating a URL is a good idea, since the dash character
is legal in a URL (so is that a hyphen, or a dash, asks the reader).


Paul,

  I agree totally. But, I don't what the URL hanging out in the right
margin, either.


Hints/instructions for using url.sty are stashed at the end of the file


  Cool! I never looked for documentation within it.

In particular, look for the description of \UrlBreaks and \UrlBigBreaks,
which control where long URLs are broken.


  Thanks. That will be very helpful.

  What I ended up doing -- as I've done in the past with overfull hboxes
that cannot easily be divided, was to re-write the sentences with the
offending URLs and TeX took care of hyphenating them in appropriate places.
:-) That's why it's called creative writing, I suppose.

Many thanks for the hints,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)|Accelerator
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Suggesting Hyphenation Within URL

2006-07-18 Thread Paul A. Rubin

Rich Shepard wrote:
  I must be missing something simple here, so please be gentle when you 
clue

me in.

  The mechanism for providing hyphenation hints to LaTeX is to put {\-} at
acceptable word breaks. However, when a URL is entered (\usepackage{url} in
the preamble) with \url{some/long/text/here.html}, the hyphenation break is
seen as just more characters to be typeset literally.

  What's the magic incantation to suggest hyphenation breaks within a URL?

Thanks,

Rich



I don't think hyphenating a URL is a good idea, since the dash character 
is legal in a URL (so is that a hyphen, or a dash, asks the reader). 
Hints/instructions for using url.sty are stashed at the end of the file 
(not what I'm used to with LaTeX packages, but so be it).  In 
particular, look for the description of \UrlBreaks and \UrlBigBreaks, 
which control where long URLs are broken.


If you want to specify break points yourself, you might try loading with 
the package with the [obeyspaces,spaces] options (also described in 
url.sty) and then inserting spaces where you want breaks.


/Paul




Re: Suggesting Hyphenation Within URL

2006-07-18 Thread Rich Shepard

On Tue, 18 Jul 2006, Paul A. Rubin wrote:


I don't think hyphenating a URL is a good idea, since the dash character
is legal in a URL (so is that a hyphen, or a dash, asks the reader).


Paul,

  I agree totally. But, I don't what the URL hanging out in the right
margin, either.


Hints/instructions for using url.sty are stashed at the end of the file


  Cool! I never looked for documentation within it.

In particular, look for the description of \UrlBreaks and \UrlBigBreaks,
which control where long URLs are broken.


  Thanks. That will be very helpful.

  What I ended up doing -- as I've done in the past with overfull hboxes
that cannot easily be divided, was to re-write the sentences with the
offending URLs and TeX took care of hyphenating them in appropriate places.
:-) That's why it's called creative writing, I suppose.

Many thanks for the hints,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)|Accelerator
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Suggesting Hyphenation Within URL

2006-07-18 Thread Paul A. Rubin

Rich Shepard wrote:
  I must be missing something simple here, so please be gentle when you 
clue

me in.

  The mechanism for providing hyphenation hints to LaTeX is to put {\-} at
acceptable word breaks. However, when a URL is entered (\usepackage{url} in
the preamble) with \url{some/long/text/here.html}, the hyphenation break is
seen as just more characters to be typeset literally.

  What's the magic incantation to suggest hyphenation breaks within a URL?

Thanks,

Rich



I don't think hyphenating a URL is a good idea, since the dash character 
is legal in a URL (so is that a hyphen, or a dash, asks the reader). 
Hints/instructions for using url.sty are stashed at the end of the file 
(not what I'm used to with LaTeX packages, but so be it).  In 
particular, look for the description of \UrlBreaks and \UrlBigBreaks, 
which control where long URLs are broken.


If you want to specify break points yourself, you might try loading with 
the package with the [obeyspaces,spaces] options (also described in 
url.sty) and then inserting spaces where you want breaks.


/Paul




Re: Suggesting Hyphenation Within URL

2006-07-18 Thread Rich Shepard

On Tue, 18 Jul 2006, Paul A. Rubin wrote:


I don't think hyphenating a URL is a good idea, since the dash character
is legal in a URL (so is that a hyphen, or a dash, asks the reader).


Paul,

  I agree totally. But, I don't what the URL hanging out in the right
margin, either.


Hints/instructions for using url.sty are stashed at the end of the file


  Cool! I never looked for documentation within it.

In particular, look for the description of \UrlBreaks and \UrlBigBreaks,
which control where long URLs are broken.


  Thanks. That will be very helpful.

  What I ended up doing -- as I've done in the past with overfull hboxes
that cannot easily be divided, was to re-write the sentences with the
offending URLs and TeX took care of hyphenating them in appropriate places.
:-) That's why it's called "creative writing," I suppose.

Many thanks for the hints,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)|Accelerator
 Voice: 503-667-4517  Fax: 503-667-8863